Updated gruntfile
This commit is contained in:
parent
d4f85241d0
commit
3a160e61a6
1 changed files with 7 additions and 3 deletions
10
Gruntfile.js
10
Gruntfile.js
|
@ -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/**/*',
|
||||
|
|
Loading…
Add table
Reference in a new issue