diff --git a/ghost/admin/Gruntfile.js b/ghost/admin/Gruntfile.js index bfd72862dc..cc3af6082f 100644 --- a/ghost/admin/Gruntfile.js +++ b/ghost/admin/Gruntfile.js @@ -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'] );