Move from using lerna multi-package commands to wsrun, update README's accordingly
This commit is contained in:
@@ -30,18 +30,16 @@ yarn install
|
||||
|
||||
### Initial setup
|
||||
|
||||
The **first** time you work with this package, you must build **all** packages within the monorepo. This is because packages that depend on other packages located inside this monorepo are symlinked when run from **within** the monorepo. This allows you to make changes across multiple packages without first publishing dependent packages to NPM. To build all packages, run the following from the monorepo root directory:
|
||||
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
|
||||
|
||||
```bash
|
||||
yarn lerna:rebuild
|
||||
PKG=@0xproject/website yarn build
|
||||
```
|
||||
|
||||
### Run dev server
|
||||
|
||||
The the `website` root directory, run:
|
||||
|
||||
```bash
|
||||
yarn dev
|
||||
PKG=@0xproject/website yarn watch
|
||||
```
|
||||
|
||||
Visit [0xproject.localhost:3572](http://0xproject.localhost:3572) in your browser.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"build": "NODE_ENV=production webpack; exit 0;",
|
||||
"clean": "shx rm -f public/bundle*",
|
||||
"lint": "tslint --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
|
||||
"dev": "webpack-dev-server --content-base public --https",
|
||||
"watch": "webpack-dev-server --content-base public --https",
|
||||
"deploy_staging": "npm run build; aws s3 sync ./public/. s3://staging-0xproject --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
|
||||
"deploy_live": "npm run build; aws s3 sync ./public/. s3://0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user