kserver
KISSY 静态资源服务, 便于开发调试. 不需要编译js
直接运行;
Install
$ npm install --save-dev kserver
options
mode: ['kissy', 'define', 'modulex'] // 支持三种形式
Demo
var kserver = ;
index.js source
moduleexports = 'a' : 'hello world';
http get > http://127.0.0.1:8181/index.js
return :
// kserver file path:C:\E\github\noyobo\kserver\example\src\index.jsKISSY;
http get > http://127.0.0.1:8181/xtpl/index-render.js
return :
// kserver file path:C:\E\github\noyobo\kserver\example\build\xtpl\index-render.jsmoduleexports = 'xtpl': 'hello world';
应用到项目中
KISSY KISSY