Node build tool for npm packages in a git repository. Npm 7 workspaces are
supported. Heavy lifting is done by the
The build tool works with git repostiories that contain npm packages. Either with or witout workspaces.
Creating Github releases requires a token with write access to the repository.
You can rename template.env.development into
.env.development and save the token in there.
npm install -g @jaccomeijer/jmmake
Run without installing
npx @jaccomeijer/jmmake build
List all packages in a repository
Lists the workspaces of a package. Without workspaces the repository itself is listed.
Build all packages in a repository
The build command runs
npm run build in all package folders. The command does
not publish, push or release.
Version a package in a repository
The version command updates all related packages in a repository. The command does not publish, push or release.
jmmake version @org/package-name
Publish a package in a repository
The publish command publishes the package to the npm repository. The command also pushes and releases to git.
jmmake publish @org/package-name
Release a package in a repository
The release command combines the three commands above. The command will build, version and publish the package.
jmmake release @org/package-name
Sync and sort package.json for all workspaces
Read values from the root
package.json and write them to the
package.json of all workspaces.
These fields values are synced:
This key order is used:
Link packages from another repository into the working directory
Creates symlinks in the
./node_modules folder for the package found at the path specified.
jmmake link ../link/this/repository