pomelott / npm-extra

πŸ”§ npm-extra is used to generate additional dependency information files. It is very convenient to split business dependencies in front-end engineering.

Home Page:https://github.com/pomelott/npm-extra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.
  • Continue to increase and expand, please give star β˜† and encourage.

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.
  • It is very convenient when it is necessary to distinguish between the development environment dependency and business dependency of engineering scaffolding.

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

  • view configuration
    npme config --list
    npme config --list filename
    npme config -l baseSys
  • config base cmd, has been set to yarn by default(now supports npm and yarn).
    npme config -b yarn
    npme config -b npm
  • config dependence filename
    npme config -f package-extra.json
    npme config --file package-extra.json
  • init json file according to a relative path resolved with the execicute path.
    npme config -f ./src/package-extra.json

About

πŸ”§ npm-extra is used to generate additional dependency information files. It is very convenient to split business dependencies in front-end engineering.

https://github.com/pomelott/npm-extra

License:MIT License


Languages

Language:JavaScript 100.0%