@21epub/npm-link-peerdeps
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@21epub/npm-link-peerdeps

A npm-link helper for npm package develop with Main Project

NPM JavaScript Style Guide Build Status Codecov

Intro

Start your npm library created by create-parcel-react-library

Link your npm package to Main Project to test in Project ENV.

Auto-run npm-link for both Library and Project.

Link peers to the Main Project

Feature

  • [x] Easy-to-use

Usage

Use npx directly

To start npm-link your library :

npx @21epub/npm-link-peerdeps start # start npm-link for project dev

After answer prompts , It will do something below:

  • Npm link current library in library cwd
  • Rm peers from node_modules
  • Install library to Main Project & Link it to Main project
  • Watch & re bundle library code

To stop npm-link and return back to your library local dev :

npx @21epub/npm-link-peerdeps stop # stop npm-link for project dev

Or install and run as global

npm install -g @21epub/npm-link-peerdeps
npm-link-peerdeps start
...
npm-link-peerdeps stop

License

MIT © 21epub

Package Sidebar

Install

npm i @21epub/npm-link-peerdeps

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

58.5 kB

Total Files

10

Last publish

Collaborators

  • csj117
  • gary.guzy
  • zhangwei0126
  • dxsix
  • wagon1104
  • ongyuxing