From f4ece3c0c92b5bbe01a04e0c04be4536fd7a6823 Mon Sep 17 00:00:00 2001 From: vgoma Date: Sun, 8 Nov 2020 14:33:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D0=BB=20npm=20?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B=20=D0=BA=20=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BF=D1=80=D0=B8=D0=BD=D1=8F=D1=82=D1=8B?= =?UTF-8?q?=D0=BC=20=D0=BA=D0=BE=D0=BD=D0=B2=D0=B5=D0=BD=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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",