npm install fis-scaffold-demo介绍:fis默认脚手架仓库为lightsjs.duapp.com。这里提供从github下载的脚手架功能。
可以参考此处代码来实现其他repos的下载。
fisp init -h
``bash
Usage: init
Commands:
module create a module
widget create a widget
Options:
-h, --help output usage information
-s, --scaffold
-d, --dir
--with-plugin if create a module, whether include plugin`
--repos
--verbose output verbose help
--list [query] list component from the repos
`bash`
fisp init module -s github -d ../
`bash`
fisp init widget -s github -d ../
`bash``
fisp init :owner/:repos/:ref -s github -d ../
* :owner/:repos/:ref 是github的项目地址
* 例如可以下载 fisp init lily-zhangying/fis-site/master
* ref不写默认为master
* 无法处理依赖
默认fisjiao脚手架(repos为lightjs.duapp.com),在会递归下载所有依赖 ,然后再进行处理。github下载不会处理依赖。