aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-09 02:10:44 +0800
committerGitHub <noreply@github.com>2018-11-09 02:10:44 +0800
commitadcfe51190c8ca5cd4d11e49eb7e100c80fbd16c (patch)
tree491fe8503a0475ffb1b18fdb2d5b68fc1adb52c9
parentf6abc007ffb249e4bbf85b8a7a77309d43e0a147 (diff)
parent370452238f0cb221ee80f71939a7049ea3de7add (diff)
downloaddexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.gz
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.bz2
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.lz
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.xz
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.tar.zst
dexon-0x-contracts-adcfe51190c8ca5cd4d11e49eb7e100c80fbd16c.zip
Merge pull request #1226 from 0xProject/fix/website/build-time
[website] Turn off production flag when building locally
-rw-r--r--.circleci/config.yml2
-rw-r--r--packages/website/package.json9
2 files changed, 6 insertions, 5 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 7811b9b34..0ab512f58 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -31,7 +31,7 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run: cd packages/website && yarn build
+ - run: cd packages/website && yarn build:prod
test-contracts-ganache:
docker:
- image: circleci/node:9
diff --git a/packages/website/package.json b/packages/website/package.json
index efb97d309..dd14d4b17 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -7,14 +7,15 @@
"private": true,
"description": "Website and 0x portal dapp",
"scripts": {
- "build": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
+ "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",
"clean": "shx rm -f public/bundle*",
"lint": "tslint --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
"dev": "webpack-dev-server --mode development --content-base public --https",
- "deploy_dogfood": "npm run build; 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; 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; aws s3 sync ./public/. s3://0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js"
+ "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://0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js"
},
"author": "Fabio Berger",
"license": "Apache-2.0",