mirror of
https://github.com/animate-css/animate.css.git
synced 2024-10-01 07:21:31 +02:00
Added the .json extension to .animate-config
For the sake of syntax highlighting, as the content of .animate-config is valid JSON.
This commit is contained in:
parent
bb2c830e08
commit
ddfed810b2
@ -41,7 +41,7 @@ module.exports = function(grunt) {
|
|||||||
files: [
|
files: [
|
||||||
'source/**/*',
|
'source/**/*',
|
||||||
'!node_modules',
|
'!node_modules',
|
||||||
'.animate-config'
|
'.animate-config.json'
|
||||||
],
|
],
|
||||||
// Run Sass, autoprefixer, and CSSO
|
// Run Sass, autoprefixer, and CSSO
|
||||||
tasks: ['concat-anim', 'autoprefixer', 'csso'],
|
tasks: ['concat-anim', 'autoprefixer', 'csso'],
|
||||||
@ -58,7 +58,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.registerTask('default', ['watch']);
|
grunt.registerTask('default', ['watch']);
|
||||||
|
|
||||||
grunt.registerTask('concat-anim', 'Concatenates activated animations', function () {
|
grunt.registerTask('concat-anim', 'Concatenates activated animations', function () {
|
||||||
var config = grunt.file.readJSON('.animate-config'),
|
var config = grunt.file.readJSON('.animate-config.json'),
|
||||||
target = [ 'source/_base.css' ],
|
target = [ 'source/_base.css' ],
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ $ cd path/to/animate.css/
|
|||||||
$ sudo npm install
|
$ 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` 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
|
```javascript
|
||||||
"attention_seekers": {
|
"attention_seekers": {
|
||||||
|
Loading…
Reference in New Issue
Block a user