/coin-compare

syncano/react learning example

Primary LanguageTypeScript

Eyedea Webmaster Kit

npm yarn

Getting started

Install with yarn:

yarn

Run development mode:

# yarn dev <workspace>
yarn dev website

Build single workspace:

# yarn build <workspace>
yarn build website

Adding new workspaces

Create workspaces/<workspace_name>/index.tsx and run:

yarn dev <workspace_name>

Custom workspace webpack config

Create workspaces/<workspace_name>/webpack.config.js:

module.exports = function(config) {
  // Modify config and return it
  return config
}

Configure service worker for production

To setup service worker, during build set PUBLIC_PATH to website URL.

PUBLIC_PATH=https://website.example yarn build website

Configure error tracking with Sentry

To setup error tracking, set SENTRY_URL environment variable to your sentry project url.

SENTRY_URL=https://XXXXXXXXX@sentry.io/XXXXXXX