It can be used to move structor components to talentui
The package can be used like npm,and there are three commands:
- cpDir setGroupUrl:Use to set base group url in structor
- cpDir move:Use to copy the file or directory to the target directory,if there is the target directory,please delete it.
- cpDir fix:Use to change the file of talent. The
cpDir move
will do fix automatic. so you can ignore it.
Usage:
cpDir setGroupUrl srcUrl
- srcUrl: source url of the structor,it is a whole name of the group which you used in structor.
cpDir move groupName componentNames [src] [tar]
- groupName:the name of the group which you have used in structor.
- componentNames:use ',' to split,use 'all' to copy all of the components.
- src:the source url of the file or folder,if you have used the command 'cpDir setGroupUrl' seted a url,you can omit it.
- tar:the target folder where you store the group,you should make sure the target url is not exist or you can omit is if your current url is the root url of the talentUI.
cpDir fix groupName componentNames
- groupName:the name of the group you named in structor.
- componentNames: the name of the component you created by the structor.Use ',' to split.
Get Start:
npm install structor-tool-talentui -g
if your system is linux,please run
sudo npm install structor-tool-talentui -g
Notation
make sure your current url is the root url of the TalentUI or the directory will be missed.