A tool for managing JavaScript projects with multiple packages 🔥
commands | description |
---|---|
npx lerna init |
init lerna |
lerna create |
create a package |
yarn bootstrap |
install dependencies |
yarn package:user |
runs user server 🏃 |
yarn remove |
removes a package |
tech | description |
---|---|
next |
server side rendering |
react-query |
data fetching library |
lerna |
multi-package repos |
axios |
HTTP client |
typescript |
type system for JS |
styled-components |
CSS in JS |
$ lerna add next-compose-plugins --scope=user
$ lerna add next-transpile-modules --scope '{admin,user}'
-
https://medium.com/wesionary-team/creating-next-js-monorepo-d41ea78f4afb
-
TypeError: Cannot read property 'concat' of undefined |
yarn --frozen-lockfile