diff --git a/package.json b/package.json index e3f9a32..9908c5f 100644 --- a/package.json +++ b/package.json @@ -20,13 +20,19 @@ "build:definition-header:esm": "cross-env TS_CONFIG=tsconfig-esm.json node definition-header.js", "build:esm": "npm run build:uncompressed:esm && npm run build:definition-header:esm", "build": "npm run clean && npm run build:es5 && npm run build:esm", - "package:clean": "cross-env-shell rimraf $npm_package_name-$npm_package_version.tgz", - "package:uncompress": "cross-env-shell tar xopf $npm_package_name-$npm_package_version.tgz", - "package": "npm run build && npm pack && npm run package:uncompress && npm run package:clean", - "serve": "static -p 8080", + "pack:clean": "cross-env-shell rimraf $npm_package_name-$npm_package_version.tgz", + "pack:uncompress": "cross-env-shell tar xopf $npm_package_name-$npm_package_version.tgz", "test": "jest --coverage && coveralls < coverage/lcov.info", "lint": "eslint --config .eslintrc.js './src/**/*'", - "lint:fix": "eslint --fix --config .eslintrc.js './src/**/*'" + "lint:fix": "eslint --fix --config .eslintrc.js './src/**/*'", + "examples-update": "npm run examples-update:script-tag && npm run examples-update:angular && npm run examples-update:react", + "examples-update:script-tag": "npm --prefix ./examples/script-tag r crypto-pro && npm --prefix ./examples/script-tag i crypto-pro", + "examples-update:angular": "npm --prefix ./examples/angular r crypto-pro && npm --prefix ./examples/angular i crypto-pro", + "examples-update:react": "npm --prefix ./examples/react r crypto-pro && npm --prefix ./examples/react i crypto-pro", + "prepack": "npm run build", + "postpack": "npm run pack:uncompress && npm run pack:clean", + "prepublishOnly": "npm run lint && jest && npm run build", + "postpublish": "npm run examples-update" }, "repository": { "type": "git",