Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-css-flip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2014-03-13 03:29:49 +0400
committerChris Rebert <code@rebertia.com>2014-03-13 03:30:55 +0400
commite060f2a3e21d93b1d6b581b62d2c095fbfa66d0d (patch)
tree4a04dd6b4029db1154c673bf7fb066b538169e0a
parentfdaa42897e0014cb9c8af0f0f81691afd9547b9a (diff)
add JSCS to Grunt config
-rw-r--r--Gruntfile.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 9e729c6..2bc8dfb 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,14 +13,25 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
+ options: {
+ jshintrc: '.jshintrc'
+ },
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= nodeunit.tests %>'
- ],
+ ]
+ },
+
+ jscs: {
options: {
- jshintrc: '.jshintrc'
- }
+ config: '.jscsrc'
+ },
+ all: [
+ 'Gruntfile.js',
+ 'tasks/*.js',
+ '<%= nodeunit.tests %>'
+ ]
},
// Before generating any new files, remove any previously-created files.
@@ -64,6 +75,6 @@ module.exports = function(grunt) {
grunt.registerTask('test', ['clean', 'css_flip', 'nodeunit']);
// By default, lint and run all tests.
- grunt.registerTask('default', ['jshint', 'test']);
+ grunt.registerTask('default', ['jshint', 'jscs', 'test']);
};