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

Automate CSScomb

This commit is contained in:
John O'Nolan 2015-05-17 13:33:41 +01:00 committed by Hannah Wolfe
parent 7114f0a936
commit 3e6cf30cfd

View file

@ -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)(