Skip to content

Commit

Permalink
script for publishing all npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdf committed Feb 7, 2021
1 parent 6220527 commit 49d87d4
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 27 deletions.
4 changes: 4 additions & 0 deletions commonjs/pcejs-atarist/.npmignore
@@ -0,0 +1,4 @@
umd.sh
prepublish.sh
pthread-main.js
pce-*.worker.js
7 changes: 1 addition & 6 deletions commonjs/pcejs-atarist/package.json
Expand Up @@ -6,7 +6,7 @@
"browserify"
],
"author": "James Friend",
"version": "0.2.0",
"version": "0.2.2",
"dependencies": {
"xtend": "^3.0.0"
},
Expand All @@ -19,11 +19,6 @@
"scripts": {
"prepublish": "./prepublish.sh atarist && ./umd.sh"
},
"files": [
"index.js",
"pcejs-atarist.umd.js",
"lib/pcejs-atarist.js"
],
"homepage": "https://github.com/jsdf/pce",
"bugs": "https://github.com/jsdf/pce/issues",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions commonjs/pcejs-ibmpc/.npmignore
@@ -0,0 +1,4 @@
umd.sh
prepublish.sh
pthread-main.js
pce-*.worker.js
8 changes: 1 addition & 7 deletions commonjs/pcejs-ibmpc/package.json
Expand Up @@ -6,7 +6,7 @@
"browserify"
],
"author": "James Friend",
"version": "0.2.0",
"version": "0.2.2",
"dependencies": {
"xtend": "^3.0.0"
},
Expand All @@ -19,12 +19,6 @@
"scripts": {
"prepublish": "./prepublish.sh ibmpc && ./umd.sh"
},
"files": [
"index.js",
"ibmpc-pcex.rom",
"pcejs-ibmpc.umd.js",
"lib/pcejs-ibmpc.js"
],
"homepage": "https://github.com/jsdf/pce",
"bugs": {
"url": "https://github.com/jsdf/pce/issues"
Expand Down
6 changes: 6 additions & 0 deletions commonjs/pcejs-macplus/.npmignore
@@ -0,0 +1,6 @@
umd.sh
prepublish.sh
pthread-main.js
pce-*.worker.js
example/
example-umd/
2 changes: 1 addition & 1 deletion commonjs/pcejs-macplus/package-lock.json

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

9 changes: 1 addition & 8 deletions commonjs/pcejs-macplus/package.json
Expand Up @@ -6,7 +6,7 @@
"browserify"
],
"author": "James Friend",
"version": "0.2.0",
"version": "0.2.2",
"dependencies": {
"xtend": "^3.0.0"
},
Expand All @@ -19,13 +19,6 @@
"scripts": {
"prepublish": "./prepublish.sh macplus && ./umd.sh"
},
"files": [
"index.js",
"macplus-pcex.rom",
"pcejs-macplus.umd.js",
"pce-macplus.wasm",
"lib/pcejs-macplus.js"
],
"homepage": "https://github.com/jsdf/pce",
"bugs": "https://github.com/jsdf/pce/issues",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions commonjs/pcejs-util/.npmignore
@@ -0,0 +1 @@
umd.sh
6 changes: 1 addition & 5 deletions commonjs/pcejs-util/package.json
Expand Up @@ -6,7 +6,7 @@
"browserify"
],
"author": "James Friend",
"version": "0.1.1",
"version": "0.2.2",
"licenses": [
{
"type": "GPL",
Expand All @@ -16,10 +16,6 @@
"scripts": {
"prepublish": "./umd.sh"
},
"files": [
"index.js",
"pcejs-util.umd.js"
],
"homepage": "https://github.com/jsdf/pce",
"bugs": "https://github.com/jsdf/pce/issues",
"repository": {
Expand Down
10 changes: 10 additions & 0 deletions commonjs/publish-all.sh
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

declare -a PACKAGES=("pcejs-macplus" "pcejs-ibmpc" "pcejs-atarist" "pcejs-util")
for pkgdir in "${PACKAGES[@]}"; do
pushd "$pkgdir"
npm version patch --no-git-tag-version
npm publish .
popd
done

0 comments on commit 49d87d4

Please sign in to comment.