Skip to content
Permalink
Browse files

added zip Grunt task

  • Loading branch information...
daskepon committed Sep 12, 2018
1 parent a05afd6 commit d9d9546a91dcaa8e01a8a91458859b17f9f044d8
Showing with 49 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +10 −2 Gruntfile.js
  3. +4 −0 README.md
  4. +1 −1 assets/js/script.js
  5. +31 −0 package-lock.json
  6. +1 −0 package.json
@@ -1,2 +1,3 @@
.DS_store
node_modules
node_modules
dist/
@@ -58,7 +58,9 @@ module.exports = function(grunt) {
options: {
map: true,
processors: [
require('autoprefixer-core')({ browsers: ['last 2 versions'] })
require('autoprefixer-core')({
browsers: ['last 2 versions']
})
]
},
dev: {
@@ -78,7 +80,13 @@ module.exports = function(grunt) {
watch: {
css: {
files: '<%= config.cssSrcDir %>/**/*.scss',
tasks: ['sass:dev','copy:dev','postcss:dev']
tasks: ['sass:dev', 'copy:dev', 'postcss:dev']
}
},
zip: {
dist: {
src: ['**','!node_modules', '!node_modules/**', '!src', '!src/**', '!.git', '!.git/**', '!.gitignore', '!dist', '!dist/**'],
dest: `dist/${require('./package.json').name}.zip`
}
}
});
@@ -53,6 +53,10 @@ 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.

grunt zip

## Copyright & License

Copyright (C) 2015-2018 Peter Amende - Released under the [MIT License](https://github.com/zutrinken/attila/blob/master/LICENSE).

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more.

@@ -41,6 +41,7 @@
"grunt-contrib-watch": "^1.0.0",
"grunt-postcss": "^0.9.0",
"grunt-sass": "^2.1.0",
"grunt-zip": "^0.18.1",
"load-grunt-tasks": "^3.5.2"
},
"config": {

0 comments on commit d9d9546

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