-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a more robust getting started section * Rename API Ref section * add headless mode to config in README.md * added babel eslint plugin * add headless mode status to all event logs * Add tests with headless mode implemented * Add headless mode check to UI calls * made onboarding a no-op if headless mode is enabled * added changes to readme * fixed type * ensured that custom onboard images work * Made all error objects consistent * updated tests to read message property instead of msg * removed unecessary variable from test * update for npm (package name and doc * patch version update for doc change * changed onboard from no-op to checking the user environment and reporting back to dev what stage the user is at * Add CircleCI config file (#15) * Add CircleCI config file * Update CI config to save node_modules * Add CircleCI deployment to S3 (#16) * Add CircleCI staging deployments for develop branch * Ensure we use the correct value for cache-control on s3 * added missing parenthesis * Update documentation (#18) * Add some sections to the README to explain other features * Capitalisation in README * Change dapp id to API key * update to version 0.3.0 and new script host URL (#19) * Update config.yml * public read access grant public read access to objects synced to s3 bucket * Minor updates to the README
- Loading branch information
Showing
18 changed files
with
753 additions
and
1,380 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:8.15-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
- v1-dependencies- | ||
- run: yarn | ||
- run: yarn test | ||
- run: yarn build | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
deploy: | ||
docker: | ||
- image: circleci/node:8.15-browsers | ||
steps: | ||
- checkout | ||
- run: sudo apt update && sudo apt install awscli | ||
- run: yarn | ||
- run: yarn build | ||
- run: gzip -9 /home/circleci/project/lib/assist.js | ||
- run: gzip -9 /home/circleci/project/lib/assist.min.js | ||
- run: mv /home/circleci/project/lib/assist.js.gz /home/circleci/project/lib/assist.js | ||
- run: mv /home/circleci/project/lib/assist.min.js.gz /home/circleci/project/lib/assist.min.js | ||
- run: ls -al | ||
- run: echo export VERSION=`awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json | sed 's/\./-/g'` >> $BASH_ENV | ||
- run: mkdir /home/circleci/project/deploy-temp | ||
- run: mkdir /home/circleci/project/deploy-temp/${VERSION} | ||
- run: mv /home/circleci/project/lib/*.js /home/circleci/project/deploy-temp/${VERSION}/ | ||
- run: mv /home/circleci/project/lib/* /home/circleci/project/deploy-temp/ | ||
- run: aws s3 sync /home/circleci/project/deploy-temp s3://staging.assist.blocknative.com --content-type "text/javascript" --content-encoding "gzip" --cache-control "max-age=31536000" --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers | ||
workflows: | ||
version: 2 | ||
test_build: | ||
jobs: | ||
- test | ||
- deploy: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- develop |
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
Oops, something went wrong.