0.1.0 • Published 10 years ago
fis-lol v0.1.0
fis-lol
德玛西亚万岁!基于fis的二次解决方案。
安装
npm install -g fis-lol使用
跟fis的命令差不多。
lol releas模块化
类似scrat,同时支持业务模块跟生态模块:
- 业务模块:modules下的模块,模块主入口与模块名相同。比如
/modules/app/app.js - 生态模块:lego_modules下的模块,模块主入口由
main字段声明,否则为index.js,比如/lego_modules/jquery/2.0.0/jquery.js 同时存在同名的业务模块、生态模块,业务模块优先
业务模块引用
比如要引用modules下的app模块,只需要这样
require('app');目录结构如下:
modules/
├── app
│ └── app.js
├── footer
│ ├── footer.js
│ └── lib.js
└── jquery1
└── jquery.js生态模块引用
比如要引用lego_modules下的jquery模块,只需要
require('jquery');目录结构如下:
lego_modules/
├── header
│ └── 1.0.0
└── jquery
└── 2.0.0