mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Move all external libraries to external directory
Closes gh-1593
This commit is contained in:
parent
8d113104e9
commit
c5d9d88dce
2
.jscsrc
2
.jscsrc
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"preset": "jquery",
|
"preset": "jquery",
|
||||||
|
|
||||||
"excludeFiles": [ "src/intro.js", "src/outro.js", "src/sizzle/**/*" ]
|
"excludeFiles": [ "external", "src/intro.js", "src/outro.js" ]
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
external
|
||||||
src/intro.js
|
src/intro.js
|
||||||
src/outro.js
|
src/outro.js
|
||||||
src/sizzle/**/*
|
|
||||||
test/libs/**/*
|
|
||||||
test/data/jquery-1.9.1.js
|
test/data/jquery-1.9.1.js
|
||||||
test/data/badcall.js
|
test/data/badcall.js
|
||||||
test/data/badjson.js
|
test/data/badjson.js
|
||||||
|
26
Gruntfile.js
26
Gruntfile.js
@ -47,22 +47,22 @@ module.exports = function( grunt ) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
bowercopy: {
|
bowercopy: {
|
||||||
|
all: {
|
||||||
options: {
|
options: {
|
||||||
clean: true
|
clean: true,
|
||||||
},
|
destPrefix: "external"
|
||||||
src: {
|
|
||||||
files: {
|
|
||||||
"src/sizzle/dist": "sizzle/dist"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
tests: {
|
|
||||||
options: {
|
|
||||||
destPrefix: "test/libs"
|
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
"qunit": "qunit/qunit",
|
"sizzle/dist": "sizzle/dist",
|
||||||
"require.js": "requirejs/require.js",
|
|
||||||
"sinon/fake_timers.js": "sinon/lib/sinon/util/fake_timers.js"
|
"qunit/qunit.js": "qunit/qunit/qunit.js",
|
||||||
|
"qunit/qunit.css": "qunit/qunit/qunit.css",
|
||||||
|
"qunit/MIT-LICENSE.txt": "qunit/MIT-LICENSE.txt",
|
||||||
|
|
||||||
|
"requirejs/require.js": "requirejs/require.js",
|
||||||
|
|
||||||
|
"sinon/fake_timers.js": "sinon/lib/sinon/util/fake_timers.js",
|
||||||
|
"sinon/LICENSE.txt": "sinon/LICENSE"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var fs = require( "fs" ),
|
var fs = require( "fs" ),
|
||||||
bower = require( "grunt-bowercopy/node_modules/bower" ),
|
bower = require( "grunt-bowercopy/node_modules/bower" ),
|
||||||
sizzleLoc = __dirname + "/../src/sizzle/dist/sizzle.js",
|
sizzleLoc = __dirname + "/../external/sizzle/dist/sizzle.js",
|
||||||
rversion = /Engine v(\d+\.\d+\.\d+(?:-\w+)?)/;
|
rversion = /Engine v(\d+\.\d+\.\d+(?:-\w+)?)/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,7 @@ module.exports = function( grunt ) {
|
|||||||
endFile: "src/outro.js"
|
endFile: "src/outro.js"
|
||||||
},
|
},
|
||||||
paths: {
|
paths: {
|
||||||
sizzle: "sizzle/dist/sizzle"
|
sizzle: "../external/sizzle/dist/sizzle"
|
||||||
},
|
},
|
||||||
rawText: {},
|
rawText: {},
|
||||||
onBuildWrite: convert
|
onBuildWrite: convert
|
||||||
|
21
external/qunit/MIT-LICENSE.txt
vendored
Normal file
21
external/qunit/MIT-LICENSE.txt
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Copyright 2013 jQuery Foundation and other contributors
|
||||||
|
http://jquery.com/
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27
external/sinon/LICENSE.txt
vendored
Normal file
27
external/sinon/LICENSE.txt
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
(The BSD License)
|
||||||
|
|
||||||
|
Copyright (c) 2010-2013, Christian Johansen, christian@cjohansen.no
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of Christian Johansen nor the names of his contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||||
<title>jQuery Test Suite</title>
|
<title>jQuery Test Suite</title>
|
||||||
<link rel="Stylesheet" media="screen" href="libs/qunit/qunit.css" />
|
<link rel="Stylesheet" media="screen" href="../external/qunit/qunit.css" />
|
||||||
<link rel="Stylesheet" media="screen" href="data/testsuite.css" />
|
<link rel="Stylesheet" media="screen" href="data/testsuite.css" />
|
||||||
<!-- Includes -->
|
<!-- Includes -->
|
||||||
|
|
||||||
@ -14,9 +14,9 @@
|
|||||||
-->
|
-->
|
||||||
<script src="data/jquery-1.9.1.js"></script>
|
<script src="data/jquery-1.9.1.js"></script>
|
||||||
|
|
||||||
<script src="libs/qunit/qunit.js"></script>
|
<script src="../external/qunit/qunit.js"></script>
|
||||||
<script src="libs/require.js"></script>
|
<script src="../external/requirejs/require.js"></script>
|
||||||
<script src="libs/sinon/fake_timers.js"></script>
|
<script src="../external/sinon/fake_timers.js"></script>
|
||||||
<!-- See testinit for the list of tests -->
|
<!-- See testinit for the list of tests -->
|
||||||
<script src="data/testinit.js"></script>
|
<script src="data/testinit.js"></script>
|
||||||
|
|
||||||
|
2
test/jquery.js
vendored
2
test/jquery.js
vendored
@ -19,7 +19,7 @@
|
|||||||
require.config({
|
require.config({
|
||||||
baseUrl: path,
|
baseUrl: path,
|
||||||
paths: {
|
paths: {
|
||||||
sizzle: "src/sizzle/dist/sizzle"
|
sizzle: "external/sizzle/dist/sizzle"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
src = "src/jquery";
|
src = "src/jquery";
|
||||||
|
Loading…
Reference in New Issue
Block a user