大家好,我是考100分的小小码 ,祝大家学习进步,加薪顺利呀。今天说一说利用npm-extra-extension拆分pakcage.json,重新生成指定的json文件,并区别管理。,希望您对编程的造诣更进一步.
此管理器主要用于工程化工作中,欢迎给星,以示鼓励,更多npm扩展持续更新中。 详细内容请看, 请赐我一颗github小星星: github.com/pomelott/np…
npm-extra-extension
- npm-extra-extension is used to generate additional dependency information files. It is very convenient to split business dependencies in front-end engineering.
- npm-extra-extension 用于生成额外的包依赖文件(默认为package-extra.json),能够与 package.json 区别管理,能够很方便的在工程化中对依赖做拆分。
- for detail : github.com/pomelott/np…
- Continue to increase and expand, please star ☆ and encourage: github.com/pomelott/np…
Description
The package-extra.json file is generated in the root directory by default. You can also use it with private libraries such as verdaccio.
Install npm-extra-extension
npm install -g npm-extra-extension
Fast use
Get help
npme
Get subCommand
npme install --help
View version
npme -V
npme --version
init package-extra.json
npme init
Install dependence
- Install all dependences accroding to package-extra.json.
npme install
npme i
- Install specific dependence
notice: this has the same param as npm
npme install vue
npme i vue
npme install -D webpack
npme install --save-dev webpack
Uninstall dependence
- Uninstall all
npme uninstall npme un
- Uninstall specific dependence
npme uninstall vue
npme un --no-save vue
Config
- confg base cmd, has been set to yarn by default.
npme config -b yarn
npme config -b npm
- config dependence filename
npme config -f package-extra.json
npme config --file package-extra.json
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/13104.html