Skip to content

Commit 45443ff

Browse files
author
kent.willis
committed
Removed Grunt install for bower and moved into package.json
1 parent cde6a49 commit 45443ff

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Gruntfile.js

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

1919
globals: {
20-
jQuery: true,
21-
require: true
20+
jQuery: true
2221
}
2322
},
2423
},
@@ -40,11 +39,6 @@ module.exports = function(grunt) {
4039
grunt.loadNpmTasks('grunt-contrib-qunit');
4140
grunt.loadNpmTasks('grunt-mocha-test');
4241

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.2",
44
"description": "A plugin to make Backbone.js keep track of nested attributes.",
55
"scripts": {
6-
"test": "grunt"
6+
"test": "bower install; grunt"
77
},
88
"dependencies": {
99
"jquery": ">=1.8.3",

0 commit comments

Comments
 (0)