Skip to content

Commit d789d7a

Browse files
committed
Build: Use bower to manage client-side dependencies
Fixes #9507 Closes gh-1201
1 parent a40647f commit d789d7a

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

Gruntfile.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,28 @@ grunt.initConfig({
213213
src: "build/**/*.js"
214214
},
215215
grunt: "Gruntfile.js"
216+
},
217+
218+
bowercopy: {
219+
options: {
220+
clean: true
221+
},
222+
qunit: {
223+
files: {
224+
"external": "qunit/qunit"
225+
}
226+
},
227+
mousewheel: {
228+
files: {
229+
"external": "jquery-mousewheel/*.js"
230+
}
231+
},
232+
jshint: {
233+
files: {
234+
"external": "jshint/dist/jshint.js"
235+
}
236+
},
237+
"jquery.js": "jquery/dist/jquery.js"
216238
}
217239
});
218240

bower.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"tests"
99
],
1010
"dependencies": {
11-
"jquery": ">=1.6"
11+
"jquery": ">=1.6 <1.11"
12+
},
13+
"devDependencies": {
14+
"jquery-mousewheel": "3.1.0",
15+
"jshint": "2.3.0",
16+
"qunit": "1.14.0"
1217
}
1318
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"devDependencies": {
5959
"commitplease": "1.6.0",
6060
"grunt": "0.4.2",
61+
"grunt-bowercopy": "0.8.0",
6162
"grunt-compare-size": "0.4.0",
6263
"grunt-contrib-concat": "0.1.3",
6364
"grunt-contrib-csslint": "0.2.0",

0 commit comments

Comments
 (0)