Update the tools MDX files from authoritative S3 before build and dev server start

This commit is contained in:
fabioberger
2019-08-26 10:28:21 +02:00
parent 576bd5585f
commit c2ba6b3a0f
2 changed files with 7 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ Add the following to your `/etc/hosts` file:
127.0.0.1 0xproject.localhost
```
You will also need to have the [aws CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html) installed locally and your credentials set up.
### Install dependencies:
```bash

View File

@@ -7,13 +7,14 @@
"private": true,
"description": "Website and 0x portal dapp",
"scripts": {
"build": "yarn build:dev",
"build:prod": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build:dev": "../../node_modules/.bin/webpack --mode development",
"build": "npm run update:tools; yarn build:dev",
"build:prod": "npm run update:tools; node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build:dev": "npm run update:tools; ../../node_modules/.bin/webpack --mode development",
"clean": "shx rm -f public/bundle*",
"lint": "tslint --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
"fix": "tslint --fix --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
"dev": "node --max-old-space-size=8192 ../../node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --content-base public --https",
"update:tools": "aws s3 sync s3://docs-markdown/ mdx/tools/",
"dev": "npm run update:tools; node --max-old-space-size=8192 ../../node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --content-base public --https",
"deploy_dogfood": "npm run build:prod; aws s3 sync ./public/. s3://dogfood.0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
"deploy_staging": "npm run build:prod; 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": "DEPLOY_ROLLBAR_SOURCEMAPS=true npm run build:prod; aws s3 sync ./public/. s3://0x.org --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js",