Skip to content

Commit

Permalink
fix(ci): make bundle great again
Browse files Browse the repository at this point in the history
  • Loading branch information
elzinko committed Nov 2, 2023
1 parent 060029a commit 9e7d542
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ wpcs
vendor
dist
node_modules

.DS_Store
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
},
"devDependencies": {
"auto-changelog": "^2.4.0",
"dir-archiver": "2.1.0"
"dir-archiver": "^2.1.0"
},
"scripts": {
"changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'",
"tag": "git describe --tags --always",
"bundle": "npm run tag | tail -n 1 | xargs -I {} dir-archiver --src . --dest ./dist/$npm_package_name-{}.zip --exclude .DS_Store .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .github",
"prebundle": "mkdir -p dist",
"bundle": "npm run tag | tail -n 1 | xargs -I {} npx dir-archiver --src . --dest ./dist/$npm_package_name-{}.zip --exclude .DS_Store .git .gitattributes .github .gitignore README.md composer.json composer.lock node_modules vendor package-lock.json package.json .github devel samples",
"clean": "rm -rf dist && rm -rf node_modules"
}
}

0 comments on commit 9e7d542

Please sign in to comment.