mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Automate CSScomb
This commit is contained in:
parent
7114f0a936
commit
3e6cf30cfd
1 changed files with 13 additions and 2 deletions
15
Gruntfile.js
15
Gruntfile.js
|
@ -83,6 +83,13 @@ var _ = require('lodash'),
|
|||
// **Note:** Without this option specified express won't be reloaded
|
||||
nospawn: true
|
||||
}
|
||||
},
|
||||
csscomb: {
|
||||
files: ['core/client/app/styles/**/*.css'],
|
||||
tasks: ['shell:csscombfix'],
|
||||
options: {
|
||||
livereload: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -337,8 +344,12 @@ var _ = require('lodash'),
|
|||
command: 'npm shrinkwrap'
|
||||
},
|
||||
|
||||
csscomb: {
|
||||
csscombfix: {
|
||||
command: path.resolve(cwd + '/node_modules/.bin/csscomb -c core/client/app/styles/csscomb.json -v core/client/app/styles')
|
||||
},
|
||||
|
||||
csscomblint: {
|
||||
command: path.resolve(cwd + '/node_modules/.bin/csscomb -c core/client/app/styles/csscomb.json -lv core/client/app/styles')
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -615,7 +626,7 @@ var _ = require('lodash'),
|
|||
//
|
||||
// `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']
|
||||
['jshint', 'jscs', 'shell:csscomblint']
|
||||
);
|
||||
|
||||
// ### test-setup *(utility)(
|
||||
|
|
Loading…
Add table
Reference in a new issue