}
}
},
+ npmcopy: {
+ all: {
+ options: {
+ destPrefix: "external"
+ },
+ files: {
+ "npo/npo.js": "native-promise-only/lib/npo.src.js",
+
+ "qunit/qunit.js": "qunit/qunit/qunit.js",
+ "qunit/qunit.css": "qunit/qunit/qunit.css",
+ "qunit/LICENSE.txt": "qunit/LICENSE.txt",
+
+ "requirejs/require.js": "requirejs/require.js",
+
+ "sinon/sinon.js": "sinon/pkg/sinon.js",
+ "sinon/LICENSE.txt": "sinon/LICENSE"
+ }
+ }
+ },
jsonlint: {
pkg: {
src: [ "package.json" ]
},
files: [
"test/data/jquery-1.9.1.js",
- "node_modules/sinon/pkg/sinon.js",
- "node_modules/native-promise-only/lib/npo.src.js",
- "node_modules/requirejs/require.js",
+ "external/sinon/sinon.js",
+ "external/npo/npo.js",
+ "external/requirejs/require.js",
"test/data/testinit.js",
"test/jquery.js",
served: true,
nocache: true
},
- { pattern: "node_modules/**", included: false, served: true },
+ { pattern: "external/**", included: false, served: true },
{
pattern: "test/**/*.@(js|css|jpg|html|xml|svg)",
included: false,
] );
grunt.registerTask( "test:prepare", [
+ "npmcopy",
"qunit_fixture",
"babel:tests"
] );
<head>
<meta charset="utf-8">
<title>jQuery Test Suite</title>
- <link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css" />
+ <link rel="stylesheet" href="../external/qunit/qunit.css" />
<link rel="stylesheet" href="data/testsuite.css" />
<!--
-->
<script src="data/jquery-1.9.1.js"></script>
- <script src="../node_modules/qunit/qunit/qunit.js"></script>
- <script src="../node_modules/sinon/pkg/sinon.js"></script>
- <script src="../node_modules/native-promise-only/lib/npo.src.js"></script>
- <script src="../node_modules/requirejs/require.js"></script>
+ <script src="../external/qunit/qunit.js"></script>
+ <script src="../external/sinon/sinon.js"></script>
+ <script src="../external/npo/npo.js"></script>
+ <script src="../external/requirejs/require.js"></script>
<!-- See testinit for the list of tests -->
<script src="data/testinit.js"></script>
<title>DEBUG</title>
<meta charset="utf-8">
<!-- Karma serves this page from /context.html. Other files are served from /base -->
- <link rel="stylesheet" href="/base/node_modules/qunit/qunit/qunit.css" />
+ <link rel="stylesheet" href="/base/external/qunit/qunit/qunit.css" />
<link rel="stylesheet" href="/base/test/data/testsuite.css" />
</head>
<body id="body">