JimmyLv / JimmyLv/react-redux.zen

Setup monorepo with yarn, lerna, create-react-app, react-scripts

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## create GitHub repo and add issues
- `gcl git@github.com:JimmyLv/react-redux.zen.git`

## install tools and init monorepo
- `npm i lerna, yarn -g`
- `yarn config set workspaces-experimental true`
- `lerna init`

## install react-scripts
- `gcl git@github.com:facebookincubator/create-react-app.git`
- `cp -r create-react-app/packages/react-scripts react-redux.zen/packages`

## init ui project as one package
- `yarn create react-app haiku-ui` -> should before yarn workspace
- `rm -rf haiku-ui/node_moduels`

## setup workspace and install deps
- setup workspace in `react-redux.zen/package.json`
- make `react-scripts/package.json` private
- `yarn` (equal `yarn install`, better than `lerna bootstrap`)

## add other related files
- add `.gitignore`
- ~~`rm -rf packages/react-scripts/template`~~

## setup npm scripts
- `"start": "lerna run start --scope haiku-ui"`
- `yarn start`

## added GitHub integration with WebStorm

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.