fisx-command-install
Install component package command for fisx.
How to use
Install specified package
fisx install er # install the latest version, using the default endpoint fisx install echarts@^2.0.0 # specify the version information fisx install ecomfe/etpl@3.0.1 # install component from github fisx install github:ecomfe/etpl@3.0.1 # is equivalent to previous commad, specify the endpoint fisx install edp:er # install component from edp registry fisx install npm:jquery # install component from npm fisx install gitlab:fis-components/jquery # install component from gitlab fisx install moye2=ecomfe/moye # specify the alias name `moye2` fisx install https://codeload.github.com/jquery/jquery/legacy.zip/3.0.0-alpha1 # install from url fisx intall ./xx/mypackage.zip # install from local fisx install npm:etpl --registry http://registry.npm.baidu.com # specify custom registry fisx install npm:react --registry http://registry.npm.taobao.org # using the custom registry
By default, the component package information will always save to dependencies
of package.json
.
If not specify the endpoint, it'll use the default edp
endpoint. If you wanna change the default endpoint
, using the component.defaultEndPoint
configure item:
fis;fis; // default using `http://registry.npmjs.org`fis;
If using gitlab, some custom options you can configure:
fis;fis;
The private token information, you can refer here. By default the private token value will be read from environment variable GITLAB_TOKEN
.
Init project dependence
fisx install # install all deps and devdeps specified in `package.json`fisx install --production # only install dependencies exclude devdependencies
View help information
fisx install -h