Install dependencies:
npm
Run development mode:
# npm run dev <workspace>
npm run dev website
Build single workspace:
# npm run build <workspace>
npm run build website
- @reach/router
- Codecov
- Google Analytics
- Jest
- MobX/MobX State Tree
- React Cosmos
- Sentry
- Styled Components
- Stylelint, tslint
- Syncano
- Typescript
- Webpack
Create workspaces/<workspace_name>/index.tsx
and run:
npm run dev <workspace_name>
Create workspaces/<workspace_name>/webpack.config.js
:
module.exports = function(config) {
// Modify config and return it
return config
}
To setup service worker, during build set PUBLIC_PATH
to website URL.
PUBLIC_PATH=https://website.example npm run build website
- Configure CircleCI env variables:
SENTRY_DSN=https://XXXXXXXXX@sentry.io/XXXXXXX
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
- Setup repository integration on Sentry
To render app at sub directory, set ROUTER_BASEPATH
environment variable the sub directory name.
ROUTER_BASEPATH=/sub-directory-name
To configure code coverage, set CODECOV_TOKEN
environment variable on CircleCI. Learn more at https://codecov.io