0
Fork 0
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:
Hannah Wolfe 2014-09-19 15:52:48 +01:00
parent 28cf0a68d3
commit 94feb8616a

View file

@ -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
//