mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Adds grunt lint task for code style checking
no issue - convenience function runs both jshint and jscs
This commit is contained in:
parent
28cf0a68d3
commit
94feb8616a
1 changed files with 7 additions and 2 deletions
|
@ -760,12 +760,17 @@ var _ = require('lodash'),
|
||||||
//
|
//
|
||||||
// `grunt test` will lint and test your pre-built local Ghost codebase.
|
// `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
|
// `grunt test` runs jshint and jscs as well as the 4 test suites. See the individual sub tasks below for
|
||||||
// each of the test suites.
|
// details of each of the test suites.
|
||||||
//
|
//
|
||||||
grunt.registerTask('test', 'Run tests and lint code',
|
grunt.registerTask('test', 'Run tests and lint code',
|
||||||
['jshint', 'jscs', 'test-routes', 'test-unit', 'test-integration', 'test-functional']);
|
['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)*
|
// ### Unit Tests *(sub task)*
|
||||||
// `grunt test-unit` will run just the unit tests
|
// `grunt test-unit` will run just the unit tests
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue