aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-30 01:55:30 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-30 01:55:30 +0800
commit2b87d20290084a4bc547a0bfa1222e2152037988 (patch)
treed68d0937b7e20cd6147a31981a939b5b64329e09
parent42e83ae643bbcb04d9c9ccf4c9eca476d055f47a (diff)
downloaddexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar.gz
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar.bz2
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar.lz
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar.xz
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.tar.zst
dexon-sol-tools-2b87d20290084a4bc547a0bfa1222e2152037988.zip
Set .env in builds, and update profile to use 0xproject
-rw-r--r--packages/instant/.dogfood.discharge.json4
-rw-r--r--packages/instant/.production.discharge.json4
-rw-r--r--packages/instant/.staging.discharge.json4
-rw-r--r--packages/instant/package.json7
4 files changed, 8 insertions, 11 deletions
diff --git a/packages/instant/.dogfood.discharge.json b/packages/instant/.dogfood.discharge.json
index ca36b3861..6e669ebaa 100644
--- a/packages/instant/.dogfood.discharge.json
+++ b/packages/instant/.dogfood.discharge.json
@@ -1,12 +1,12 @@
{
"domain": "0x-instant-dogfood",
- "build_command": "WEBPACK_OUTPUT_PATH=public yarn build:umd:prod",
+ "build_command": "WEBPACK_OUTPUT_PATH=public yarn build --env.dogfood",
"upload_directory": "public",
"index_key": "index.html",
"error_key": "index.html",
"trailing_slashes": true,
"cache": 3600,
- "aws_profile": "default",
+ "aws_profile": "0xproject",
"aws_region": "us-east-1",
"cdn": false,
"dns_configured": true
diff --git a/packages/instant/.production.discharge.json b/packages/instant/.production.discharge.json
index 447fa1756..b2369d43e 100644
--- a/packages/instant/.production.discharge.json
+++ b/packages/instant/.production.discharge.json
@@ -1,12 +1,12 @@
{
"domain": "instant.0xproject.com",
- "build_command": "yarn build",
+ "build_command": "yarn build --env.production_cdn",
"upload_directory": "umd",
"index_key": "instant.js",
"error_key": "404.html",
"trailing_slashes": true,
"cache": 3600,
- "aws_profile": "default",
+ "aws_profile": "0xproject",
"aws_region": "us-east-1",
"cdn": true,
"dns_configured": true
diff --git a/packages/instant/.staging.discharge.json b/packages/instant/.staging.discharge.json
index c917a650b..6df436f73 100644
--- a/packages/instant/.staging.discharge.json
+++ b/packages/instant/.staging.discharge.json
@@ -1,12 +1,12 @@
{
"domain": "0x-instant-staging",
- "build_command": "WEBPACK_OUTPUT_PATH=public yarn build:umd:prod",
+ "build_command": "WEBPACK_OUTPUT_PATH=public yarn build:prod --env.staging",
"upload_directory": "public",
"index_key": "index.html",
"error_key": "index.html",
"trailing_slashes": true,
"cache": 3600,
- "aws_profile": "default",
+ "aws_profile": "0xproject",
"aws_region": "us-east-1",
"cdn": false,
"dns_configured": true
diff --git a/packages/instant/package.json b/packages/instant/package.json
index 427d5984e..bc46aa732 100644
--- a/packages/instant/package.json
+++ b/packages/instant/package.json
@@ -8,7 +8,7 @@
"main": "umd/instant.js",
"private": true,
"scripts": {
- "build": "webpack --mode production",
+ "build": "webpack --mode production --env.production_standalone",
"build:ci": "yarn build",
"watch_without_deps": "tsc -w",
"dev": "webpack-dev-server --mode development",
@@ -25,10 +25,7 @@
},
"config": {
"postpublish": {
- "assets": [
- "packages/instant/umd/instant.js",
- "packages/instant/umd/instant.js.map"
- ]
+ "assets": ["packages/instant/umd/instant.js", "packages/instant/umd/instant.js.map"]
}
},
"repository": {