rainbow modules
1.0.0
yarn install
yarn build
import { App } from 'package-1'. Yarn workspaces will symlink each package which means that /node_modules/package-1 will point to the package folder itself and since the main field of the package.json is "main": "lib/index.js", lib is required as its index.js file will be the entry point of each package.yarn startNote that you need environment variables in .env file in to root of the project
# firebase project config
STORYBOOK_API_KEY=
STORYBOOK_AUTH_DOMAIN=
STORYBOOK_DATABASE_URL=
STORYBOOK_PROJECT_ID=
STORYBOOK_STORAGE_BUCKET=
STORYBOOK_MESSAGING_SENDER_ID=
STORYBOOK_APP_ID=
# maps
STORYBOOK_MAPBOX_ACCESS_TOKEN=map box access token
STORYBOOK_GOOGLE_MAPS_API_KEY=google maps api key
If you want to run command in a specific package:
yarn workspace <package-name> <command>If you want to add a common dependency to all packages:
yarn add some-package -W