Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite1949f4

Browse files
committed
Build: drop bower; use npm for front-end deps
Fixes #15186Closesgh-1620
1 parente519098 commite1949f4

File tree

6 files changed

+26
-23
lines changed

6 files changed

+26
-23
lines changed

‎.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
.sizecache.json
1010

1111
/dist
12-
/bower_components
1312
/node_modules

‎Gruntfile.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,18 @@ module.exports = function( grunt ) {
4646
}
4747
}
4848
},
49-
bowercopy:{
49+
npmcopy:{
5050
all:{
5151
options:{
52-
clean:true,
5352
destPrefix:"external"
5453
},
5554
files:{
5655
"sizzle/dist":"sizzle/dist",
5756
"sizzle/LICENSE.txt":"sizzle/LICENSE.txt",
5857

59-
"qunit/qunit.js":"qunit/qunit/qunit.js",
60-
"qunit/qunit.css":"qunit/qunit/qunit.css",
61-
"qunit/MIT-LICENSE.txt":"qunit/MIT-LICENSE.txt",
58+
"qunit/qunit.js":"qunitjs/qunit/qunit.js",
59+
"qunit/qunit.css":"qunitjs/qunit/qunit.css",
60+
"qunit/MIT-LICENSE.txt":"qunitjs/MIT-LICENSE.txt",
6261

6362
"requirejs/require.js":"requirejs/require.js",
6463

@@ -138,7 +137,6 @@ module.exports = function( grunt ) {
138137
// Integrate jQuery specific tasks
139138
grunt.loadTasks("build/tasks");
140139

141-
grunt.registerTask("bower","bowercopy");
142140
grunt.registerTask("lint",["jshint","jscs"]);
143141

144142
// Short list as a high frequency watch task

‎bower.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
"Gruntfile.js",
1414
"package.json"
1515
],
16-
"devDependencies": {
17-
"sizzle":"2.0.0",
18-
"requirejs":"2.1.10",
19-
"qunit":"1.14.0",
20-
"sinon":"1.8.1"
21-
},
2216
"keywords": [
2317
"jquery",
2418
"javascript",

‎build/ensure-sizzle.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
varfs=require("fs"),
2-
bower=require("grunt-bowercopy/node_modules/bower"),
2+
npm=require("npm"),
33
sizzleLoc=__dirname+"/../external/sizzle/dist/sizzle.js",
44
rversion=/Enginev(\d+\.\d+\.\d+(?:-\w+)?)/;
55

6+
require("colors");
7+
68
/**
7-
* Retrieve the latest tag of Sizzle frombower
9+
* Retrieve the latest tag of Sizzle fromnpm
810
*@param {Function(string)} callback
911
*/
1012
functiongetLatestSizzle(callback){
11-
bower.commands.info("sizzle","version")
12-
.on("end",callback);
13+
npm.load(function(err,npm){
14+
if(err){
15+
throwerr;
16+
}
17+
npm.commands.info(["sizzle","version"],function(err,info){
18+
if(err){
19+
throwerr;
20+
}
21+
callback(Object.keys(info)[0]);
22+
});
23+
});
1324
}
1425

1526
/**

‎package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@
3030
],
3131
"dependencies": {},
3232
"devDependencies": {
33-
"colors":"^0.6.2",
33+
"colors":"0.6.2",
3434
"commitplease":"1.9.0",
3535
"grunt":"0.4.2",
36-
"grunt-bowercopy":"1.1.0",
3736
"grunt-cli":"0.1.13",
3837
"grunt-compare-size":"0.4.0",
3938
"grunt-contrib-jshint":"0.8.0",
@@ -42,9 +41,14 @@
4241
"grunt-git-authors":"1.2.0",
4342
"grunt-jscs-checker":"0.4.1",
4443
"grunt-jsonlint":"1.0.4",
44+
"grunt-npmcopy":"0.1.0",
4545
"gzip-js":"0.3.2",
4646
"load-grunt-tasks":"0.3.0",
47-
"requirejs":"2.1.10",
47+
"npm":"1.4.21",
48+
"qunitjs":"1.14.0",
49+
"requirejs":"2.1.14",
50+
"sinon":"1.10.3",
51+
"sizzle":"2.0.0",
4852
"testswarm":"1.1.0"
4953
},
5054
"scripts": {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp