Commit 3c3a50a8 authored by Eli Flanagan's avatar Eli Flanagan
Browse files

include linting for npm test

To ensure uniform contributions we run the lint command
as part of testing.
parent cc89ff31
......@@ -106,6 +106,7 @@ module.exports = function(grunt) {
}
});
grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('default', ['sass', 'cssmin', 'jshint', 'jscs', 'copy', 'uglify']);
grunt.registerTask('e2e-test', ['connect', 'protractor_webdriver', 'protractor']);
};
......@@ -9,7 +9,7 @@
},
"scripts": {
"build": "grunt ; doctoc ./README.md ; doctoc ./doc/README.md ; doctoc ./doc/CHANGES.md",
"test": "karma start karma.conf.js"
"test": "grunt lint && karma start karma.conf.js"
},
"keywords": [
"gridstack",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment