Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (24 sloc)
889 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set directory to location of this script | |
# https://stackoverflow.com/a/3355423/1867984 | |
cd "$(dirname "$0")" | |
cd .. # Up to project root | |
# Helpful to verify which versions we're using | |
yarn -v | |
node -v | |
# Install build deps and all monorepo package dependencies. Yarn Workspaces | |
# should also symlink all projects appropriately | |
yarn run lerna:restore | |
yarn install --no-ignore-optional --pure-lockfile | |
# Build && Move PWA Output | |
yarn run build:ci | |
mkdir -p ./.netlify/www/pwa | |
mv platform/viewer/dist/* .netlify/www/pwa -v | |
# Build && Move script output | |
# yarn run build:package | |
# Cache all of the node_module dependencies in | |
# extensions, modules, and platform packages | |
yarn run lerna:cache | |
echo 'Nothing left to see here. Go home, folks.' | |
# Build using react-scripts | |
# npx cross-env PUBLIC_URL=/demo APP_CONFIG=config/netlify.js react-scripts --max_old_space_size=4096 build |