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:
commit
ac82022997
1 changed files with 12 additions and 0 deletions
|
@ -59,6 +59,14 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
|
|
||||||
shell: {
|
shell: {
|
||||||
|
'npm-install': {
|
||||||
|
command: 'npm install'
|
||||||
|
},
|
||||||
|
|
||||||
|
'bower-install': {
|
||||||
|
command: 'bower install'
|
||||||
|
},
|
||||||
|
|
||||||
csscombfix: {
|
csscombfix: {
|
||||||
command: path.resolve(cwd + '/node_modules/.bin/csscomb -c app/styles/csscomb.json -v app/styles')
|
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',
|
grunt.registerTask('lint', 'Run the code style checks and linter',
|
||||||
['jshint', 'jscs', 'shell:csscomblint']
|
['jshint', 'jscs', 'shell:csscomblint']
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue