Skip to content
Permalink
Browse files

Merge pull request #80 from aaronmcox/zip-with-compression

Zip with compression
  • Loading branch information
zutrinken committed Nov 15, 2019
2 parents e1ba372 + 8060f84 commit b3e82b9a0723531c0229f6a94e5cfc3ab49914ab
Showing with 541 additions and 48 deletions.
  1. +23 −17 Gruntfile.js
  2. +2 −2 README.md
  3. +515 −28 package-lock.json
  4. +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: '.'}
]
},
}
});

@@ -57,9 +57,9 @@ Build Grunt project:

grunt build

The zip Grunt task packages the theme files into `dist/<theme-name>.zip`, which you can then upload to your site.
The compress Grunt task packages the theme files into `dist/<theme-name>.zip`, which you can then upload to your site.

grunt zip
grunt compress

## Copyright & License

0 comments on commit b3e82b9

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