0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #79 from kevinansfield/grunt-init

Add `grunt init` task
This commit is contained in:
Austin Burdine 2016-06-18 14:20:47 -04:00 committed by GitHub
commit ac82022997

View file

@ -59,6 +59,14 @@ module.exports = function(grunt) {
},
shell: {
'npm-install': {
command: 'npm install'
},
'bower-install': {
command: 'bower install'
},
csscombfix: {
command: path.resolve(cwd + '/node_modules/.bin/csscomb -c app/styles/csscomb.json -v app/styles')
},
@ -69,6 +77,10 @@ module.exports = function(grunt) {
}
});
grunt.registerTask('init', 'Install the client dependencies',
['shell:npm-install', 'shell:bower-install']
);
grunt.registerTask('lint', 'Run the code style checks and linter',
['jshint', 'jscs', 'shell:csscomblint']
);