mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 16:41:24 +03:00
Merge pull request #4070 from ErisDS/grunt-lint
Adds grunt lint task for code style checking
This commit is contained in:
commit
3cfda5f989
@ -760,12 +760,17 @@ var _ = require('lodash'),
|
||||
//
|
||||
// `grunt test` will lint and test your pre-built local Ghost codebase.
|
||||
//
|
||||
// `grunt test` runs jshint and jscs as well as the 4 test suites. See the individual sub tasks below for details of
|
||||
// each of the test suites.
|
||||
// `grunt test` runs jshint and jscs as well as the 4 test suites. See the individual sub tasks below for
|
||||
// details of each of the test suites.
|
||||
//
|
||||
grunt.registerTask('test', 'Run tests and lint code',
|
||||
['jshint', 'jscs', 'test-routes', 'test-unit', 'test-integration', 'test-functional']);
|
||||
|
||||
// ### Lint
|
||||
//
|
||||
// `grunt lint` will run the linter and the code style checker so you can make sure your code is pretty
|
||||
grunt.registerTask('lint', 'Run the code style checks and linter', ['jshint', 'jscs']);
|
||||
|
||||
// ### Unit Tests *(sub task)*
|
||||
// `grunt test-unit` will run just the unit tests
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user