aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-18 04:44:13 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-18 04:44:13 +0800
commit59743d32daeb4679bb213a153815851a9ea6c115 (patch)
treec66550076cdaba4c8a0ed54902cfb48f236b1543 /packages/instant
parent5ec4b27200297708298deca97603849a37b2f66a (diff)
downloaddexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar.gz
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar.bz2
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar.lz
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar.xz
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.tar.zst
dexon-sol-tools-59743d32daeb4679bb213a153815851a9ea6c115.zip
feat: create dogfood url and deployment workflow
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/.discharge.json13
-rw-r--r--packages/instant/README.md12
-rw-r--r--packages/instant/package.json2
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..3de085cf9
--- /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 25aca9d3b..2437835c8 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 0c4b470fa..f7892e614 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 @@
},
"devDependencies": {
"@0xproject/tslint-config": "^1.0.8",
+ "@static/discharge": "^1.2.2",
"@types/enzyme": "^3.1.14",
"@types/enzyme-adapter-react-16": "^1.0.3",
"@types/jest": "^23.3.5",