font-awesome-animation/Gruntfile.js

56 lines
1.5 KiB
JavaScript
Raw Normal View History

2014-01-22 06:03:43 +08:00
'use strict';
module.exports = function(grunt) {
var path = require('path');
2014-01-22 06:03:43 +08:00
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt'),
init: true, //auto grunt.initConfig
config: {
pkg: grunt.file.readJSON('package.json'),
yeoman: {
// configurable paths
src: 'src',
dist: 'dist',
build: '.tmp',
demo: 'demo',
styles: 'styles',
currentDir: path.resolve(__dirname),
banner: '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * https://github.com/<%= pkg.author %>/<%= pkg.name %>\n' +
' * License: MIT\n' +
' */\n'
2014-01-22 06:03:43 +08:00
}
}
});
/** ---------------------------------------------------- */
/** ------------- GRUNT TASKS REGISTRATION ------------- */
/** ---------------------------------------------------- */
grunt.registerTask('serve', [
'clean:server',
'express:livereload',
'watch:livereload'
]);
2014-01-22 06:03:43 +08:00
grunt.registerTask('build', [
'clean:dist',
'myth',
2014-01-22 06:03:43 +08:00
'cssmin',
'concat:bannerCSS'
]);
grunt.registerTask('test', [
'build'
]);
2014-01-22 06:03:43 +08:00
grunt.registerTask('default', [
'build'
]);
};