fsk-cmp
v1.2.3
Published
fsk-cmp for liepinfe
Downloads
16
Readme
fsk-cmp
- 模板编译
如何安装
nodejs & npm
- 开发中使用的版本 0.12.0
Usage
fsk-cmp arguments
fsk-cmp 编辑当前目录下模板文件扩展名必须为.tpl(**.tpl) 递归执行,不能跨端编译: fsk-cmp
fsk-cmp --less 编译当前文件夹下所有less文件 依赖 lessc npm install less -g
fsk-cmp --seajs 开启seajs支持 true or false
cd ~/Desktop/fe/core/h5/trunk
fsk-cmp --seajs 编译~/Desktop/fe/core/h5/trunk
fsk-cmp --watch 监听命令执行文件夹下,包括子目录下,扩展名为.tpl文件的改变以保存为准。(支持windows, win7下测试通过, win7系统有1~2秒的延迟, 系统问题不在修复)
各端域名
prefixdict = { "core-h5" : 'http://core.h5.lietou-static.com', "a-h5" : 'http://a.h5.lietou-static.com', "article-h5" : 'http://article.h5.lietou-static.com', "ats-h5" : 'http://ats.h5.lietou-static.com', "c-h5" : 'http://c.h5.lietou-static.com', "campus-h5" : 'http://campus.h5.lietou-static.com', "city-h5" : 'http://city.h5.lietou-static.com', "clt-h5" : 'http://clt.h5.lietou-static.com', "company-h5" : 'http://company.h5.lietou-static.com', "erp-h5" : 'http://erp.h5.lietou-static.com', "event-h5" : 'http://event.h5.lietou-static.com', "h-h5" : 'http://h.h5.lietou-static.com', "job-h5" : 'http://job.h5.lietou-static.com', "lpt-h5" : 'http://lpt.h5.lietou-static.com', "phone-h5" : 'http://phone.h5.lietou-static.com', "sns-h5" : 'http://sns.h5.lietou-static.com', "www-h5" : 'http://www.h5.lietou-static.com', "it-h5" : 'http://it.h5.lietou-static.com', "core-pc" : 'http://core.pc.lietou-static.com', "a-pc" : 'http://a.pc.lietou-static.com', "article-pc" : 'http://article.pc.lietou-static.com', "ats-pc" : 'http://ats.pc.lietou-static.com', "c-pc" : 'http://c.pc.lietou-static.com', "campus-pc" : 'http://campus.pc.lietou-static.com', "city-pc" : 'http://city.pc.lietou-static.com', "clt-pc" : 'http://clt.pc.lietou-static.com', "company-pc" : 'http://company.pc.lietou-static.com', "erp-pc" : 'http://erp.pc.lietou-static.com', "event-pc" : 'http://event.pc.lietou-static.com', "h-pc" : 'http://h.pc.lietou-static.com', "job-pc" : 'http://job.pc.lietou-static.com', "lpt-pc" : 'http://lpt.pc.lietou-static.com', "phone-pc" : 'http://phone.pc.lietou-static.com', "sns-pc" : 'http://sns.pc.lietou-static.com', "www-pc" : 'http://www.pc.lietou-static.com', "it-pc" : 'http://it.pc.lietou-static.com' }