Skip to content

Commit 3c3a50a

Browse files
committed
include linting for npm test
To ensure uniform contributions we run the lint command as part of testing.
1 parent cc89ff3 commit 3c3a50a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ module.exports = function(grunt) {
106106
}
107107
});
108108

109+
grunt.registerTask('lint', ['jshint', 'jscs']);
109110
grunt.registerTask('default', ['sass', 'cssmin', 'jshint', 'jscs', 'copy', 'uglify']);
110111
grunt.registerTask('e2e-test', ['connect', 'protractor_webdriver', 'protractor']);
111112
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"build": "grunt ; doctoc ./README.md ; doctoc ./doc/README.md ; doctoc ./doc/CHANGES.md",
12-
"test": "karma start karma.conf.js"
12+
"test": "grunt lint && karma start karma.conf.js"
1313
},
1414
"keywords": [
1515
"gridstack",

0 commit comments

Comments
 (0)