Skip to content
Permalink
Browse files

replace grunt-zip with grunt-contrib-compress

  • Loading branch information
aaronmcox committed Nov 15, 2019
1 parent e1ba372 commit a779d7943ffaca54c56ae4b2218f1e1c4adbfa56
Showing with 539 additions and 46 deletions.
  1. +23 −17 Gruntfile.js
  2. +515 −28 package-lock.json
  3. +1 −1 package.json
@@ -78,23 +78,29 @@ module.exports = function(grunt) {
tasks: ['sass:dev', 'copy:dev', 'postcss:dev']
}
},
zip: {
dist: {
src: [
'**',
'!node_modules',
'!node_modules/**',
'!src',
'!src/**',
'!dist',
'!dist/**',
'!.git',
'!.gitignore',
'!Gruntfile.js',
'!package-lock.json'
],
dest: `dist/${require('./package.json').name}.zip`
}
compress: {
main: {
options: {
archive: `dist/${require('./package.json').name}.zip`,
level: 9
},
files: [{
src: [
'**',
'!node_modules',
'!node_modules/**',
'!src',
'!src/**',
'!dist',
'!dist/**',
'!.git',
'!.gitignore',
'!Gruntfile.js',
'!package-lock.json'
],
dest: '.'}
]
},
}
});

0 comments on commit a779d79

Please sign in to comment.
You can’t perform that action at this time.