0.0.1 • Published 4 years ago
react-esca-api v0.0.1
npm-package-boilerplate
A boilerplate for creating NPM packages (new 2020)
Uses Babel and Jest, comes with the following scripts by default:
yarn build
– transpiles all files insrc
and outputs todist
yarn test
– runs Jest (assuming any files use it; see example insrc
)
Adding a new package to a monorepo:
- Clone this repo outside the monorepo folder
- Copy & paste this repo's folder into the monorepo's
packages
folder - Rename the pasted folder to the package name
- Update the pasted folder's
package.json
to have the desired package name, version, etc. - Update the pasted folder's
.npmrc
to have the desired version tag prefix for Git (e.g. zygote-plugin-whatever@) - Make any source code changes/additions desired for the initial commit of the package
- Commit the above changes to the monorepo
- Run
lerna bootstrap
oryarn bootstrap
at the root level of the monorepo - Publish the package with Yarn/NPM/Lerna (see readme in monorepos)
0.0.1
4 years ago