aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/package.json
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-03 06:48:00 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-03 06:48:00 +0800
commit2540660262313c2d53a2d38af190748857ba3f8d (patch)
tree51d59c5d458e785038282469c0941db00714a026 /packages/instant/package.json
parent20f18c305495c0d9656bd0cbdfd322f60764c847 (diff)
downloaddexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.gz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.bz2
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.lz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.xz
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.tar.zst
dexon-sol-tools-2540660262313c2d53a2d38af190748857ba3f8d.zip
Add dev environment
Diffstat (limited to 'packages/instant/package.json')
-rw-r--r--packages/instant/package.json14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 7f1530fa8..d33dfb7c3 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -8,19 +8,26 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
+ "build": "yarn build:all",
+ "build:all": "run-p build:umd:prod build:commonjs",
+ "build:umd:prod": "webpack --mode production",
+ "build:commonjs": "tsc -b",
"watch_without_deps": "tsc -w",
+ "dev": "webpack-dev-server --mode development",
"lint": "tslint --project .",
"test": "jest",
"test:coverage": "jest --coverage",
"rebuild_and_test": "run-s clean build test",
"test:circleci": "yarn test:coverage",
"clean": "shx rm -rf lib coverage scripts",
- "build": "webpack --mode production && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},
"config": {
"postpublish": {
- "assets": []
+ "assets": [
+ "packages/instant/public/index.js",
+ "packages/instant/public/index.min.js"
+ ]
}
},
"repository": {
@@ -66,7 +73,8 @@
"typedoc": "0.12.0",
"typescript": "3.0.1",
"webpack": "^4.20.2",
- "webpack-cli": "^3.1.1"
+ "webpack-cli": "^3.1.1",
+ "webpack-dev-server": "^3.1.9"
},
"publishConfig": {
"access": "private"