batch_operations/Gruntfile.js
2015-08-07 22:47:07 +03:00

53 строки
1.0 KiB
JavaScript

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
batch: {
src: 'js/batch.js',
dest: 'js/batch.min.js'
}
},
stylus: {
compile: {
files: {
'css/batch.css':'css/batch.styl',
'css/notice.css':'css/notice.styl'
}
}
},
csso: {
dist: {
files: {
'css/batch.css':'css/batch.css',
'css/notice.css':'css/notice.css'
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-internal');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-csso');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.registerTask('js',['uglify']);
grunt.registerTask('css',['stylus','csso']);
// Default task(s).
grunt.registerTask('default', ['css','js']);
};