Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clipboard-health/nx-plugin

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clipboard-health/nx-plugin

Clipboard Health's Nx plugin contains generators to manage applications within an Nx workspace.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
increased by10.34%
Maintainers
0
Weekly downloads
 
Created
Source

@clipboard-health/nx-plugin

Clipboard Health's Nx plugin contains generators to manage libraries within an Nx workspace.

Table of Contents

  • Table of Contents
  • Install
  • Usage

Install

npm install @clipboard-health/nx-plugin

Usage

Adding new libraries

Libraries version and publish separately. We use Nx Local Generators to generate library stubs that successfully build, lint, and test. The --publishable flag sets up semantic versioning from commit messages, GitHub Release creation, and NPM publishing on merges to main (but only if the code within your library package changed, thanks to Nx's dependency graph).

# Optionally, include the --publishable flag to publish to NPM.
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]

Porting existing libraries

Follow Adding new libraries to generate a new package and copy the code from the existing library into it.

To keep the same project name while avoiding publishing version conflicts, create a git tag from the last commit on main with the project name and version:

git checkout main

# Where [VERSION] is the current version of the project
git tag --annotate [PROJECT_NAME]@[VERSION] --message "Port from [OLD_LOCATION]"

git push origin [PROJECT_NAME]@[VERSION]

Keywords

FAQs

Package last updated on 06 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc