totorox-cli
v0.0.2
Published
init totoroX-devloper tools.
Downloads
1
Readme
totoroX-cli
init totoroX-devloper tools.
Install
install the CLI tool.
$ npm i totorox-cli -g
Initialize project
pull the totoroX-devloper tool.
$ totorox init
$ cd totoroX-devloper
$ npm i
Create a component
Usage:
totorox create -n=Button
or
totorox create -n=Button -t=ppmoney
Options:
--name, -n the name of the component
--type, -t the category of the component
Configure
configure registry, token and so on
you can get the token from the 'Personal Center' on totorox website, if you are the developer or the superAdmin of totorox website.
Usage:
totorox config -e=dev -r=http://xxxx -t=xxxxx
totorox config
Options:
--env, -e the environment of the configure
--registry, -r the registry where you will publish the component
--token, -t the token of the registry
Debug a component
$ npm run dev Button
$ npm start
for more details, you can read README in totoroX-devloper project.
Publish a component
please ensure that you have already configure registry and token before you publish a component.
If you donnot assign an environment, your component will be published to the environment named default.
Usage:
totorox publish -e=dev -n=Button
Options:
--env, -e the environment to publish to
--name, -n the name of the component to pubulish
--force, -f to overwrite the online component which has the same name