Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (47 sloc) 1.2 KB
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
dev: {
options: {
sourceMap: true
},
files: {
'assets/js/vendor.min.js': ['assets/js/vendor/**/*.js']
}
},
dist: {
options: {
sourceMap: false
},
files: {
'assets/js/vendor.min.js': ['assets/js/vendor/**/*.js']
}
}
},
compress: {
dist: {
options: {
archive: '<%= pkg.name %>.v<%= pkg.version %>.zip'
},
files: [
{src: ['!node_modules/**/*', 'bower_components/**/*', '**/*.php', '*.css', '**/*.twig', 'assets/**/*.min.js', 'assets/**/*.css', 'admin/**/*.css', 'assets/images/**/*', 'screenshot.png', 'plugins.json', 'README.md', 'readme.txt']},
]
}
},
version: {
css: {
options: {
prefix: 'Version\\:\\s'
},
src: ['assets/css/style.scss', 'style.css'],
},
project: {
src: ['package.json', 'bower.json']
}
},
});
grunt.registerTask('default', []);
grunt.registerTask('bundle', ['compress:dist']);
};