mirror of
https://github.com/Chouchen/motsmeles.git
synced 2018-06-07 06:04:38 +02:00
35 lines
966 B
JavaScript
35 lines
966 B
JavaScript
|
module.exports = function(grunt) {
|
||
|
|
||
|
// Project configuration.
|
||
|
grunt.initConfig({
|
||
|
pkg: grunt.file.readJSON('package.json'),
|
||
|
uglify: {
|
||
|
options: {
|
||
|
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
||
|
},
|
||
|
build: {
|
||
|
src: 'src/js/*.js',
|
||
|
dest: 'dist/js/<%= pkg.name %>.min.js'
|
||
|
}
|
||
|
},
|
||
|
cssmin: {
|
||
|
target: {
|
||
|
files: {
|
||
|
'dist/css/<%= pkg.name %>.css': 'src/css/*.css'
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
jshint: {
|
||
|
all: ['src/js/*.js']
|
||
|
}
|
||
|
});
|
||
|
|
||
|
// Load the plugin that provides the "uglify" task.
|
||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||
|
|
||
|
// Default task(s).
|
||
|
grunt.registerTask('default', ['jshint', 'uglify','cssmin' ]);
|
||
|
|
||
|
};
|