- Clone this repo and
cd
into it - Run
npm install
to pull dependencies - Run
npm start
to runwebpack-dev-server
in development mode with hot module replacement
If you want to build a local version run npm build
, it will create the files in the dist
folder.
You do not need to build to deploy the code, that is automatic. See more info in the Deployment section below.
- Make sure if you are using Visual Studio Code that you use the workspace version of TypeScript.
To ensure that you are open a TypeScript file in VSC and then click on the version number next to
TypeScript React
in the status bar and select 'Use Workspace Version' in the popup menu.
TODO Set up Travis Deployment
Production releases to S3 are based on the contents of the /dist folder and are built automatically by Travis for each branch pushed to GitHub and each merge into production.
Merges into production are deployed to http://connected-bio-spaces.concord.org.
Other branches are deployed to http://connected-bio-spaces.concord.org/branch/.
You can view the status of all the branch deploys here.
To deploy a production release:
- Increment version number in package.json
- Create new entry in CHANGELOG.md
- Run
git log --pretty=oneline --reverse <last release tag>...HEAD | grep '#' | grep -v Merge
and add contents (after edits if needed to CHANGELOG.md) - Run
npm run build
- Copy asset size markdown table from previous release and change sizes to match new sizes in
dist
- Create
release-<version>
branch and commit changes, push to GitHub, create PR and merge - Checkout master and pull
- Checkout production
- Run
git merge master --no-ff
- Push production to GitHub
- Use https://github.com/concord-consortium/connected-bio-spaces/releases to create a new release tag
Run npm test
to run jest tests. Run npm run test:full
to run jest and Cypress tests.
Connected Bio Spaces are Copyright 2018 (c) by the Concord Consortium and is distributed under the MIT license.
See license.md for the complete license text.