There is a example of copy-directory
The package can be used like npm,and there are three commands：
- 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.
- cpDir setGroup:Use to set base group url 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.
cpDir setGroup srcUrl
- srcUrl: source url of the structor,it is a whole name of the group which you used in structor.
npm install example-copy-directory -g
if your system is linux,please run
sudo npm install example-copy-directory -g
make sure your current url is the root url of the TalentUI or the directory will be missed.