1.x 版本
前端开发辅助工具,基于freemark模板引擎,webpack模块化的构建工具,实现前端开发与JAVA套版直接共用模板
如何使用
//生成项目脚手架
gelei init [tpl-url]
//启动服务
gelei server --v 1
注: tpl-url地址是http://lwfex.zhixike.net/static/gelei-demo-1.zip
更多说明(http://lwfex.zhixike.net/?p=104)
2.x 版本
单页应用开发辅助工具
如何使用
//生成项目脚手架
gelei init [tpl-url]
//启动服务
gelei server
注: tpl-url地址是http://lwfex.zhixike.net/static/gelei-demo-2.zip
命令参数说明
gelei server
- --port 自定义端口号
- --https 使用https默认使用http
目录结构说明
dist 发布文件目录src 源文件目录 -- css 样式文件目录 -- image 图片文件目录 -- page 页面实现目录 -- index.ts 应用入口文件web web页面目录gelei.config.js gelei配置文件webpack.config.js webpack配置文件
两级资源地址 /hello/world[.html] 示例
- 对应的html页面默认是
web
目录下的index.html
或自定义html页面hello-world.html
- 对应的脚本文件为
src/page/hello/world.ts
多级资源地址 /hello/more/greeting[.html] 示例
- 对应的html页面默认是
web
目录下的index.html
或自定义html页面hello-more-world.html
- 对应的脚本文件为
src/page/hello/more-greeting.ts
更新说明
v0.2.2
- 更新gener
- 解决乱码问题
v0.2.3
- 解决待验证信息的跨域访问问题
- 新增https链接支持
- 新增命令行自定义端口号
v0.2.4
- fix gelei v1 版本热加载不生效
- fix gelei 未内置依赖babel-preset-es2015,造成不能把es6编译为es5