Skip to content

Commit cde6a49

Browse files
author
kent.willis
committed
Added bower install for local testing
1 parent 3b038e6 commit cde6a49

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module.exports = function(grunt) {
1717
eqnull: true,
1818

1919
globals: {
20-
jQuery: true
20+
jQuery: true,
21+
require: true
2122
}
2223
},
2324
},
@@ -39,6 +40,11 @@ module.exports = function(grunt) {
3940
grunt.loadNpmTasks('grunt-contrib-qunit');
4041
grunt.loadNpmTasks('grunt-mocha-test');
4142

43+
grunt.registerTask('install', function() {
44+
var exec = require('child_process').exec;
45+
exec('bower install');
46+
});
47+
4248
// Default task.
43-
grunt.registerTask('default', ['jshint', 'qunit', 'mochaTest']);
49+
grunt.registerTask('default', ['install', 'jshint', 'qunit', 'mochaTest']);
4450
};

0 commit comments

Comments
 (0)