This commit is contained in:
Pierre Rudloff 2015-04-13 00:53:05 +02:00
parent eb782a6277
commit 7d12ae6907

View file

@ -1,43 +1,45 @@
/*jslint node: true */ /*jslint node: true */
module.exports = function (grunt) { module.exports = function (grunt) {
'use strict'; 'use strict';
grunt.initConfig({ grunt.initConfig(
uglify: { {
combine: { uglify: {
files: { combine: {
'dist/main.js': ['js/cast.js'] files: {
'dist/main.js': ['js/cast.js']
}
} }
} },
}, cssmin: {
cssmin: { combine: {
combine: { files: {
files: { 'dist/main.css': ['css/*.css']
'dist/main.css': ['css/*.css'] }
} }
}
},
watch: {
scripts: {
files: ['js/*.js'],
tasks: ['uglify']
}, },
styles: { watch: {
files: ['css/*.css'], scripts: {
tasks: ['cssmin'] files: ['js/*.js'],
} tasks: ['uglify']
}, },
phpcs: { styles: {
php: { files: ['css/*.css'],
src: ['*.php'] tasks: ['cssmin']
}
}, },
js: { phpcs: {
src: ['js/*.js'] php: {
}, src: ['*.php']
Gruntfile: { },
src: ['Gruntfile.js'] js: {
src: ['js/*.js']
},
Gruntfile: {
src: ['Gruntfile.js']
}
} }
} }
}); );
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');