@21epub/npm-link-peerdeps 中文文档教程
@21epub/npm-link-peerdeps
用于 npm 包开发的 npm-link 帮助程序
Intro
开始你的 npm 库由 create-parcel-react-library
将你的 npm 包链接到要在项目 ENV 中测试的主要项目。
为库和项目自动运行 npm-link。
将同行链接到主项目
Feature
- [x] Easy-to-use
Usage
Use npx directly
要启动 npm-link 你的库:
npx @21epub/npm-link-peerdeps start # start npm-link for project dev
在回答提示后,它将执行以下操作:
- 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
停止 npm-link 并返回到你的库本地开发:
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
麻省理工学院 © 21epub
@21epub/npm-link-peerdeps
A npm-link helper for npm package develop with Main Project
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