batch_operations/Gruntfile.js

53 строки
1.0 KiB
JavaScript
Исходник Обычный вид История

2015-06-09 13:11:49 +00:00
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: {
2015-08-07 19:47:07 +00:00
'css/batch.css':'css/batch.styl',
'css/notice.css':'css/notice.styl'
2015-06-09 13:11:49 +00:00
}
}
},
csso: {
dist: {
files: {
2015-08-07 19:47:07 +00:00
'css/batch.css':'css/batch.css',
'css/notice.css':'css/notice.css'
2015-06-09 13:11:49 +00:00
}
}
}
});
// 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']);
};