diff --git a/Gruntfile.js b/Gruntfile.js index 6dfb466..d002718 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -26,13 +26,11 @@ module.exports = function(grunt) { }, // Minify CSS - csso: { - dist: { - files: { - // Output compressed CSS to style.min.css - 'animate.min.css': ['animate.css'] - } - } + cssmin: { + minify: { + src: ['animate.css'], + dest: 'animate.min.css', + }, }, // Watch files for changes @@ -41,10 +39,10 @@ module.exports = function(grunt) { files: [ 'source/**/*', '!node_modules', - '.animate-config.json' + 'animate-config.json' ], // Run Sass, autoprefixer, and CSSO - tasks: ['concat-anim', 'autoprefixer', 'csso'], + tasks: ['concat-anim', 'autoprefixer', 'cssmin'], } } @@ -54,11 +52,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-autoprefixer'); - grunt.loadNpmTasks('grunt-csso'); - grunt.registerTask('default', ['watch']); + grunt.loadNpmTasks('grunt-contrib-cssmin'); + grunt.registerTask('default', ['concat-anim', 'autoprefixer', 'cssmin', 'watch']); grunt.registerTask('concat-anim', 'Concatenates activated animations', function () { - var config = grunt.file.readJSON('.animate-config.json'), + var config = grunt.file.readJSON('animate-config.json'), target = [ 'source/_base.css' ], count = 0 diff --git a/README.md b/README.md index b6fbb0c..3943e21 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ $ cd path/to/animate.css/ $ sudo npm install ``` -Next, run `grunt watch` to watch for changes and compile your custom builds. For example, if you want only some of the the “attention seekers”, simply edit the `.animate-config.json` file to select only the animations you want to use. +Next, run `grunt watch` to watch for changes and compile your custom builds. For example, if you want only some of the the “attention seekers”, simply edit the `animate-config.json` file to select only the animations you want to use. ```javascript "attention_seekers": { diff --git a/.animate-config.json b/animate-config.json similarity index 99% rename from .animate-config.json rename to animate-config.json index 3f4ae95..e21f369 100644 --- a/.animate-config.json +++ b/animate-config.json @@ -95,4 +95,4 @@ "rollOut": true } -} +} \ No newline at end of file diff --git a/bower.json b/bower.json index 90bd8c0..cf6c7de 100644 --- a/bower.json +++ b/bower.json @@ -1,5 +1,5 @@ { "name": "animate.css", - "version": "3.0.0", + "version": "3.1.0", "main": "./animate.css" } diff --git a/package.json b/package.json index 32960a6..4af2988 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "grunt-contrib-sass": "~0.5.0", "grunt-contrib-watch": "~0.5.3", "grunt-csso": "~0.5.0", - "grunt-contrib-concat": "~0.3.0" + "grunt-contrib-concat": "~0.3.0", + "grunt-contrib-cssmin": "~0.8.0" } }