Holistics open-source javascript packages
- NodeJS
- Yarn
- Clone this repo
- Bootstrap
cd path/to/repo/root
yarn installThis is a monorepo containing many packages. To quickly create a new package:
- Copy
samplepackage
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.jsif needed
For Holistics team members only
- Create a branch for the new version, e.g.
2.11.0 - Run
yarn lerna:versionat 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
distby cd ./packages/your-packagenpm publishto both public npm and Holistics internal packages. Hint: usenpmrcto manage your profiles
TODO: automate this process into a single trigger.