Updated gruntfile

This commit is contained in:
Sergio Brighenti 2019-10-23 12:12:24 +02:00
parent d4f85241d0
commit 3a160e61a6

View file

@ -1,9 +1,14 @@
module.exports = function (grunt) {
let version = grunt.file.readJSON('composer.json').version;
let releaseFilename = 'release-v' + version + '.zip';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['Gruntfile.js', 'src/js/app.js']
all: ['Gruntfile.js', 'src/js/app.js'],
options: {
'esversion': 6,
}
},
cssmin: {
@ -94,9 +99,8 @@ module.exports = function (grunt) {
],
},
},
zip: {
'release.zip': [
[releaseFilename]: [
'app/**/*',
'bin/**/*',
'bootstrap/**/*',