link-dev
v1.0.4
Published
link your local npm packages automatically by a config file
Downloads
4
Readme
Link your local npm packages automatically by a config file
npm
,yarn
,pnpm
package managers are supported.
Installation
npm install link-dev -g
Usage
Config your local packages at root path of your project, for package.local.json
.
The ** key ** is the name of the package, and the ** value ** is the local path of the package (both absolute and relative paths are supported).
json config for example:
{
"my-components": "../components",
"my-utils": "/Users/yangyong/utils"
}
Then, you can configure the 'link-dev' command to pre-boot.
package.json
, for example:
//...
"scripts": {
"dev": "link-dev && xxxxxxxx",
}
//...
Options
config: custom your config file, default:
package.local.json
.link-dev --config myConfigFile.json