diff options
author | Chris Rebert <code@rebertia.com> | 2014-03-13 03:40:31 +0400 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2014-03-13 03:40:31 +0400 |
commit | d10b6bc7de25e2416e28b37285e7948d8d4d40cb (patch) | |
tree | 3a47aa277e089828f98616c509629f8f5c1c5575 | |
parent | d29ab83441ae0ff0074be8b68751d3b7bc4303d3 (diff) |
rename task from css_flip to cssflip; fixes #1
-rw-r--r-- | Gruntfile.js | 4 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | tasks/css_flip.js | 2 | ||||
-rw-r--r-- | test/css_flip_test.js | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 2bc8dfb..b65037c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -40,7 +40,7 @@ module.exports = function(grunt) { }, // Configuration to be run (and then tested). - css_flip: { + cssflip: { default_options: { options: {}, files: { @@ -72,7 +72,7 @@ module.exports = function(grunt) { // Whenever the "test" task is run, first clean the "tmp" dir, then run this // plugin's task(s), then test the result. - grunt.registerTask('test', ['clean', 'css_flip', 'nodeunit']); + grunt.registerTask('test', ['clean', 'cssflip', 'nodeunit']); // By default, lint and run all tests. grunt.registerTask('default', ['jshint', 'jscs', 'test']); @@ -21,14 +21,14 @@ Once the plugin has been installed, it may be enabled inside your Gruntfile with grunt.loadNpmTasks('grunt-css-flip'); ``` -## The "css_flip" task +## The "cssflip" task ### Overview -In your project's Gruntfile, add a section named `css_flip` to the data object passed into `grunt.initConfig()`. +In your project's Gruntfile, add a section named `cssflip` to the data object passed into `grunt.initConfig()`. ```js grunt.initConfig({ - css_flip: { + cssflip: { options: { // Task-specific options go here. }, @@ -63,7 +63,7 @@ In this example, two CSS files are flipped using css-flip's default settings. ```js grunt.initConfig({ - css_flip: { + cssflip: { options: {}, files: { 'flipped-one.css': 'original-one.css', @@ -78,7 +78,7 @@ In this example, the resulting flipped CSS files will also be slightly compresse ```js grunt.initConfig({ - css_flip: { + cssflip: { options: { compress: true }, diff --git a/tasks/css_flip.js b/tasks/css_flip.js index 3342f8e..386e678 100644 --- a/tasks/css_flip.js +++ b/tasks/css_flip.js @@ -12,7 +12,7 @@ var flip = require('css-flip'); module.exports = function(grunt) { - grunt.registerMultiTask('css_flip', "Grunt plugin for Twitter's css-flip", function () { + grunt.registerMultiTask('cssflip', "Grunt plugin for Twitter's css-flip", function () { var options = this.options({}); this.files.forEach(function (f) { diff --git a/test/css_flip_test.js b/test/css_flip_test.js index 8eebdbc..cf29a53 100644 --- a/test/css_flip_test.js +++ b/test/css_flip_test.js @@ -22,7 +22,7 @@ var grunt = require('grunt'); test.ifError(value) */ -exports.css_flip = { +exports.cssflip = { setUp: function(done) { // setup here if necessary done(); |