mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Add grunt init
task
refs https://github.com/TryGhost/Ghost/pull/7005 - add `grunt init` task that installs `npm` and `bower` dependencies - allows Ghost to call this task via subgrunt avoiding the need for a global bower install
This commit is contained in:
parent
7c2034df21
commit
5e3fafa79a
@ -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']
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user