Skip to content

Commit

Permalink
chore(build): add publish script (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibing-old-email authored and nnixaa committed Oct 3, 2018
1 parent a957079 commit efa7f61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"release:validate": "npm-run-all release:prepare build:wp ci:lint e2e:wp test:wp --watch=false",
"release:dev": "npm-run-all release:prepare:dev publish",
"release": "npm-run-all release:validate publish",
"publish": "npm publish --access=public src/.lib/theme && npm publish --access=public src/.lib/auth && npm publish --access=public src/.lib/security",
"publish": "./scripts/publish.sh",
"cli:firefox-fix": "rimraf node_modules/@angular-devkit/build-angular/node_modules/uglify-es && rimraf node_modules/@angular-devkit/build-angular/node_modules/uglifyjs-webpack-plugin",
"postinstall": "npm run cli:firefox-fix"
},
Expand Down
8 changes: 8 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Iterates over all modules bundled in the src/.lib and publish them
for dir in ./src/.lib/*/
do
dir=${dir%*/}
npm publish --access=public src/.lib/${dir##*/}
done

0 comments on commit efa7f61

Please sign in to comment.