@clipboard-health/nx-plugin
Clipboard Health's Nx plugin contains generators to manage libraries within an Nx workspace.
Table of Contents
Install
npm install @clipboard-health/nx-plugin
Usage
Libraries version and publish separately. We use Nx Local Generators to generate library stubs that successfully build, lint, and test. The --publishConfigPublicAccess
flag publishes the NPM package publicly.
npx nx generate @clipboard-health/nx-plugin:node-lib [PROJECT_NAME]
npx nx generate @nx/workspace:remove --projectName [PROJECT_NAME]
npx nx generate @nx/workspace:move --projectName [PROJECT_NAME] --destination [NEW_PROJECT_NAME]
To porting an existing library, follow the above to generate a new package and copy the code from the existing library into it.