1.0.4 • Published 4 years ago
link-dev v1.0.4
Link your local npm packages automatically by a config file
npm,yarn,pnpmpackage managers are supported.
Installation
npm install link-dev -gUsage
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