Skip to content

Commit

Permalink
Make grunt artifact work again
Browse files Browse the repository at this point in the history
  • Loading branch information
igorschoester committed Mar 10, 2021
1 parent 4f60468 commit 92b042a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 17 additions & 0 deletions config/grunt/task-config/compress.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// See: https://github.com/gruntjs/grunt-contrib-compress for details.
module.exports = {
artifact: {
options: {
archive: "artifact.zip",
level: 9,
},
files: [
{
expand: true,
cwd: "artifact/",
src: [ "**" ],
dest: "<%= pluginSlug %>",
},
],
},
};
8 changes: 6 additions & 2 deletions config/grunt/task-config/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ module.exports = {
"frontend/**",
"images/**",
"inc/**",
"js/vendor/**/*.js",
"js/dist/**/*.js",
"languages/**",
"src/**",
"lib/**",
Expand All @@ -135,6 +133,12 @@ module.exports = {
],
dest: "<%= files.artifact %>",
},
{
expand: true,
cwd: "packages",
src: [ "js/dist/**/*.js" ],
dest: "<%= files.artifact %>",
},
],
},
};

0 comments on commit 92b042a

Please sign in to comment.