Skip to content

Commit

Permalink
added grunt-newer, to only lint changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jul 30, 2014
1 parent 5a28bae commit 5106d1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Expand Up @@ -71,7 +71,7 @@ module.exports = function (grunt) {
}
}
, jscs: {
src: [
files: [
'**/*.js', '!submodules/**', '!node_modules/**',
'!lib/server/static/**', '!lib/devices/firefoxos/atoms/*.js',
'!test/harmony/**/*.js', '!sample-code/examples/node/**/*-yiewd.js',
Expand All @@ -93,10 +93,11 @@ module.exports = function (grunt) {
, maxBuffer: 2000 * 1024
});

grunt.loadNpmTasks('grunt-newer');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks("grunt-jscs-checker");
grunt.registerTask('lint', ['jshint','jscs']);
grunt.registerTask('lint', ['newer:jshint','jscs']);
grunt.registerTask('test', 'mochaTest:unit');
grunt.registerTask('unit', 'mochaTest:unit');
grunt.registerTask('default', ['test']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -104,8 +104,9 @@
"chai-as-promised": "~4.1.1",
"glob": "~4.0.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-jscs-checker": "~0.6.0",
"grunt-jscs-checker": "~0.6.1",
"grunt-mocha-test": "~0.11.0",
"grunt-newer": "^0.7.0",
"js-yaml": "~3.0.2",
"mocha": "~1.20.0",
"monocle-js": "~0.6.5",
Expand Down

0 comments on commit 5106d1b

Please sign in to comment.