diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-10-20 00:38:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 00:38:36 +0800 |
commit | eb3a4d2fabcab3c2423d5827aba2fcaffc348320 (patch) | |
tree | 0bd34b345ef58cc6156f700b93b44cd5f32ea420 /packages | |
parent | 669ea191a5e34ec704851377ee5eedb03c2d1538 (diff) | |
parent | 6f2217570f0dd7060cf208da32b18c52c9798871 (diff) | |
download | dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar.gz dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar.bz2 dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar.lz dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar.xz dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.tar.zst dexon-sol-tools-eb3a4d2fabcab3c2423d5827aba2fcaffc348320.zip |
Merge pull request #1148 from 0xProject/feature/instant/discharge
[instant] Create dogfood url and deployment workflow
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/.discharge.json | 13 | ||||
-rw-r--r-- | packages/instant/README.md | 12 | ||||
-rw-r--r-- | packages/instant/package.json | 2 |
3 files changed, 27 insertions, 0 deletions
diff --git a/packages/instant/.discharge.json b/packages/instant/.discharge.json new file mode 100644 index 000000000..9ade97d01 --- /dev/null +++ b/packages/instant/.discharge.json @@ -0,0 +1,13 @@ +{ + "domain": "0x-instant-dogfood", + "build_command": "yarn build:umd:prod", + "upload_directory": "public", + "index_key": "index.html", + "error_key": "index.html", + "trailing_slashes": true, + "cache": 3600, + "aws_profile": "default", + "aws_region": "us-east-1", + "cdn": false, + "dns_configured": true +} diff --git a/packages/instant/README.md b/packages/instant/README.md index 55b4404e7..07b01ac95 100644 --- a/packages/instant/README.md +++ b/packages/instant/README.md @@ -46,6 +46,18 @@ The package is also available as a UMD module named `zeroExInstant`. </body> ``` +## Deploying + +You can deploy a work-in-progress version of 0x Instant at http://0x-instant-dogfood.s3-website-us-east-1.amazonaws.com for easy sharing. + +To build and deploy the site run + +``` +yarn deploy +``` + +**NOTE: On deploying the site, it will say the site is available at a non-existent URL. Please ignore and use the (now updated) URL above.** + ## Contributing We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository. diff --git a/packages/instant/package.json b/packages/instant/package.json index cf30a5354..d7ec85b2f 100644 --- a/packages/instant/package.json +++ b/packages/instant/package.json @@ -22,6 +22,7 @@ "rebuild_and_test": "run-s clean build test", "test:circleci": "yarn test:coverage", "clean": "shx rm -rf lib coverage scripts", + "deploy": "discharge deploy", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" }, "config": { @@ -60,6 +61,7 @@ "ts-optchain": "^0.1.1" }, "devDependencies": { + "@static/discharge": "^1.2.2", "@0x/tslint-config": "^1.0.9", "@types/enzyme": "^3.1.14", "@types/enzyme-adapter-react-16": "^1.0.3", |