This manager is mainly used in engineering work, welcome to star, as an encouragement, more NPM extensions continue to be updated. Please give me a github star: 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 is used to generate additional package dependency files (package-extra-json by default), which can be managed differently from package.json and can be easily split in engineering.
  • For the 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
Copy the code

Fast use

Get help

npme
Copy the code

Get subCommand

npme install --help
Copy the code

View version

npme -V
npme --version
Copy the code

init package-extra.json

npme init
Copy the code

Install dependence

  • Install all dependences accroding to package-extra.json.
    npme install
    npme i
Copy the code
  • 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
Copy the code

Uninstall dependence

  • Uninstall all
    npme uninstall
    npme un
Copy the code
  • Uninstall specific dependence
    npme uninstall vue
    npme un --no-save vue
Copy the code

Config

  • confg base cmd, has been set to yarn by default.
    npme config -b yarn
    npme config -b npm
Copy the code
  • config dependence filename
    npme config -f package-extra.json
    npme config --file package-extra.json
Copy the code