Skip to content

Commit

Permalink
chore: add publish scripts for npm (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Mar 14, 2019
1 parent c7d5b8c commit 00b4815
Show file tree
Hide file tree
Showing 35 changed files with 64 additions and 135 deletions.
6 changes: 1 addition & 5 deletions deprecated/core-graphql/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"test": "cross-env CORE_ENV=test jest --runInBand --forceExit",
"test:coverage": "cross-env CORE_ENV=test jest --coverage --coveragePathIgnorePatterns='/(defaults.ts|index.ts)$' --runInBand --forceExit",
"test:debug": "cross-env CORE_ENV=test node --inspect-brk ../../node_modules/.bin/jest --runInBand",
Expand Down
6 changes: 1 addition & 5 deletions deprecated/core-logger-winston/package.json
Expand Up @@ -13,18 +13,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"test": "cross-env CORE_ENV=test jest --runInBand --forceExit",
"test:coverage": "cross-env CORE_ENV=test jest --coverage --coveragePathIgnorePatterns='/(defaults.ts|index.ts)$' --runInBand --forceExit",
"test:debug": "cross-env CORE_ENV=test node --inspect-brk ../../node_modules/.bin/jest --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion deprecated/core-snapshots-cli/package.json
Expand Up @@ -30,7 +30,7 @@
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"debug": "node --inspect-brk ./dist/index.js",
"dump": "yarn snapshot dump",
"dump:mainnet": "yarn snapshot dump --network mainnet",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -9,10 +9,6 @@
"bootstrap": "yarn lerna bootstrap",
"clean": "yarn lerna clean --yes",
"build": "yarn lerna run build",
"publish:alpha": "yarn lerna run publish:alpha",
"publish:beta": "yarn lerna run publish:beta",
"publish:rc": "yarn lerna run publish:rc",
"publish:latest": "yarn lerna run publish:latest",
"lint": "yarn lerna run lint",
"format": "yarn lint && yarn prettier",
"prettier": "prettier --write \"./*.{ts,js,json,md}\" \"./packages/**/*.{ts,js,json,md}\"",
Expand All @@ -32,6 +28,10 @@
"test:integration:watch": "cross-env CORE_ENV=test jest ./__tests__/integration --runInBand --watch",
"test:integration:watch:all": "cross-env CORE_ENV=test jest ./__tests__/integration --runInBand --watchAll",
"snyk": "./node_modules/.bin/snyk protect",
"publish:alpha": "cross-env-shell ./scripts/publish/alpha.sh",
"publish:beta": "cross-env-shell ./scripts/publish/beta.sh",
"publish:rc": "cross-env-shell ./scripts/publish/rc.sh",
"publish:latest": "cross-env-shell ./scripts/publish/latest.sh",
"upgrade": "cross-env-shell ./scripts/upgrade.sh",
"version": "cross-env-shell ./scripts/version.sh",
"updates": "yarn lerna run updates",
Expand Down
6 changes: 1 addition & 5 deletions packages/core-api/package.json
Expand Up @@ -13,18 +13,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-blockchain/package.json
Expand Up @@ -14,18 +14,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-container/package.json
Expand Up @@ -12,18 +12,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-database-postgres/package.json
Expand Up @@ -12,18 +12,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn copy && yarn compile",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
Expand Down
6 changes: 1 addition & 5 deletions packages/core-database/package.json
Expand Up @@ -14,18 +14,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-elasticsearch/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-error-tracker-bugsnag/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-error-tracker-sentry/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-event-emitter/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-forger/package.json
Expand Up @@ -13,18 +13,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-http-utils/package.json
Expand Up @@ -11,18 +11,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
4 changes: 0 additions & 4 deletions packages/core-interfaces/package.json
Expand Up @@ -15,10 +15,6 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
Expand Down
6 changes: 1 addition & 5 deletions packages/core-jest-matchers/package.json
Expand Up @@ -13,18 +13,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-json-rpc/package.json
Expand Up @@ -12,18 +12,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core-logger-pino/package.json
Expand Up @@ -23,7 +23,7 @@
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-logger/package.json
Expand Up @@ -12,18 +12,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions packages/core-p2p/package.json
Expand Up @@ -15,18 +15,14 @@
"dist"
],
"scripts": {
"publish:alpha": "npm publish --tag alpha",
"publish:beta": "npm publish --tag beta",
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "bash ../../scripts/pre-test.sh",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"docs": "../../node_modules/typedoc/bin/typedoc src --out docs",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' '__tests__/**/*.ts' --fix",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"updates": "../../node_modules/npm-check-updates/bin/npm-check-updates -a"
},
"dependencies": {
Expand Down

0 comments on commit 00b4815

Please sign in to comment.