function activateAnimations() {
  var categories = JSON.parse(fs.readFileSync('animate-config.json')),
    category,
    files,
    file,
    target = [],
    count = 0;

  for (category in categories) {
    if (categories.hasOwnProperty(category)) {
      files = categories[category];

      for (file in files) {
        if (files[file]) {
          // marked as true
          target.push('source/' + category + '/' + file + '.css');
          count += 1;
        }
      }
    }
  }
  // prepend base CSS
  target.push('source/_base.css');

  if (!count) {
    gutil.log('No animations activated.');
  } else {
    gutil.log(count + (count > 1 ? ' animations' : ' animation') + ' activated.');
  }

  return target;
}
function activateAnimations() {
  var categories = JSON.parse(fs.readFileSync('animate-config.json')),
    category,
    files,
    file,
    target = [],
    count = 0;

  for (category in categories) {
    if (categories.hasOwnProperty(category)) {
      files = categories[category];

      for (file in files) {
        if (files[file]) {
          // marked as true
          target.push('source/' + category + '/' + file + '.css');
          count += 1;
        }
      }
    }
  }
  // prepend base CSS
  target.push('source/_base.css');

  if (!count) {
    gutil.log('No animations activated.');
  } else {
    gutil.log(count + (count > 1 ? ' animations' : ' animation') + ' activated.');
  }

  return target;
}
function activateAnimations ( ) { var categories = JSON . parse ( fs . readFileSync ( 'animate-config.json' ) ) , category , files , file , target = [ ] , count = 0 ; for ( category in categories ) { if ( categories . hasOwnProperty ( category ) ) { files = categories [ category ] ; for ( file in files ) { if ( files [ file ] ) { // marked as true target . push ( 'source/' + category + '/' + file + '.css' ) ; count += 1 ; } } } } // prepend base CSS target . push ( 'source/_base.css' ) ; if ( ! count ) { gutil . log ( 'No animations activated.' ) ; } else { gutil . log ( count + ( count > 1 ? ' animations' : ' animation' ) + ' activated.' ) ; } return target ; }
---------------------------- Helpers/functions ---------------------------- Read the config file and return an array of the animations to be activated
---------------------------- Helpers / functions ---------------------------- Read the config file and return an array of the animations to be activated
activate animations