生成fanstic包
metafanstatic的Python项目详细描述
- 创建依赖配置
- 通过依赖项配置下载存储库文件
- 通过scannig下载的存储库创建用于生成包的配置
- 生成fanstatic包
$ metafanstatic search bootstrap-timepicker # 1. create depenency config $ metafanstatic dependency --recursive bootstrap-timepicker > config.json # 2. download repository files via dependency config $ metafanstatic download --config config.json # 3. create config for generating package via scannig downloaded repository $ metafanstatic scan `ls | grep -v *.json` > generate.config.json # 4. generating fanstatic packages $ metafanstatic create generate.config.json .
在上述说明之后
$ ls autotype generate.config.json meta.js.bootstrap-timepicker bootstrap-2.3.2 jquery-2.0.3 meta.js.jquery bootstrap-timepicker-0.2.6 meta.js.autotype config.json meta.js.bootstrap
安装包后
# for i in meta.*; do popd $i; python setup.py develop; popd; done $ metafanstatic list from js.autotype import jquery_autotype_js; jquery_autotype_js.need() from js.bootstrap import bootstrap_css; bootstrap_css.need() from js.bootstrap import bootstrap_js; bootstrap_js.need() from js.bootstrap_timepicker import bootstrap_timepicker_min_css; bootstrap_timepicker_min_css.need() from js.bootstrap_timepicker import bootstrap_timepicker_min_js; bootstrap_timepicker_min_js.need() from js.jquery import jquery_js; jquery_js.need()