Include workspace deps (demos) from build (#220)

* Include workspace deps (demos) from build

* Fix React demo
This commit is contained in:
Jaco Greeff
2019-10-01 16:02:35 +02:00
committed by GitHub
parent f00ff53fc1
commit a0637fee5b
6 changed files with 22 additions and 17 deletions
+7 -5
View File
@@ -13,14 +13,16 @@
"typescript": "^3.6.3"
},
"scripts": {
"build": "polkadot-dev-build-ts && polkadot-dev-build-docs",
"build": "yarn build:ts && yarn build:docs",
"build:docs": "polkadot-dev-build-docs",
"build:ts": "polkadot-dev-build-ts",
"check": "yarn lint",
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
"clean": "polkadot-dev-clean-build",
"demo:identicon:react": "webpack-serve --config packages/react-identicon/webpack.config.js --content packages/react-identicon --port 8080",
"demo:identicon:vue": "webpack-serve --config packages/vue-identicon/webpack.config.js --content packages/vue-identicon --port 8080",
"example:react": "cd packages/example-react && webpack --config webpack.config.js",
"example:vue": "cd packages/example-vue && webpack --config webpack.config.js",
"demo:identicon:react": "yarn build:ts && webpack-serve --config packages/react-identicon/webpack.config.js --content packages/react-identicon --port 8080",
"demo:identicon:vue": "yarn build:ts && webpack-serve --config packages/vue-identicon/webpack.config.js --content packages/vue-identicon --port 8080",
"example:react": "yarn build:ts && cd packages/example-react && webpack --config webpack.config.js",
"example:vue": "yarn build:ts && cd packages/example-vue && webpack --config webpack.config.js",
"postinstall": "polkadot-dev-yarn-only",
"test": "jest --coverage --runInBand",
"test:one": "jest"