Learn more about this workspace setup and its capabilities or run npx nx graph to visually explore what was created. Now, let's get you up to speed!
npx nx g @nx/js:lib packages/pkg1 --publishable --importPath=@my-org/pkg1 --bundler=tsc --unitTestRunner=jest --linter=eslintTo build the library use:
npx nx build pkg1To run any task with Nx use:
npx nx <target> <project-name>These targets are either inferred automatically or defined in the project.json or package.json files.
More about running tasks in the docs »
To version and release the library use
npx nx release [-p <project-name>] [--dry-run]Pass --dry-run to see what would happen without actually releasing the library.
Publish to npm with:
npx nx run <project-name>:nx-release-publish --access public --otp=<one-time-password-if-needed>Learn more:
- Learn more about this workspace setup
- Learn about Nx on CI
- Releasing Packages with Nx release
- What are Nx plugins?
And join the Nx community: