@clipboard-health/nx-plugin
v0.4.7
Published
Clipboard Health's Nx plugin contains generators to manage applications within an Nx workspace.
Downloads
528
Readme
@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 --publishPublicly
flag publishes the NPM package publicly.
# Optionally, include the --publishPublicly flag.
npx nx generate @clipboard-health/nx-plugin:node-lib [PROJECT_NAME]
# Change your mind? Remove it just as easily...
npx nx generate @nx/workspace:remove --projectName [PROJECT_NAME]
# ...or rename it. Note: after running this command, perform a find/replace for remaining references
# to the old 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.