Holistics open-source javascript packages
- NodeJS
- Yarn
- Clone this repo
- Bootstrap
cd path/to/repo/root
yarn install
This is a monorepo containing many packages. To quickly create a new package:
- Copy
sample
package
cd path/to/repo/root
cp -R packages/sample packages/your-new-package
- Edit new package's
package.json
vim packages/your-new-package/package.json
# remember to change package's 'name', 'main' and set its 'version' back to '0.0.0'
- Update new package's
webpack.config.js
if needed
For Holistics team members only
- Create a branch for the new version, e.g.
2.11.0
- Run
yarn lerna:version
at the repo root
- It will automatically
- Push a new commit which
- Bumps version in
package.json
- Adds a Changelog entry for the new version
- Bumps version in
- Build the new version
dist
- Push a new tag for the new version on the new commit
- Push a new commit which
- Create a PR and merge into
master
- Publish the new
dist
by cd ./packages/your-package
npm publish
to both public npm and Holistics internal packages. Hint: usenpmrc
to manage your profiles
TODO: automate this process into a single trigger.