Name Last Update
apps Loading commit data...
config Loading commit data...
doc Loading commit data...
doraemon Loading commit data...
library Loading commit data...
log Loading commit data...
public Loading commit data...
test/library Loading commit data...
utils Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.stylelintignore Loading commit data...
.stylelintrc Loading commit data...
README.md Loading commit data...
app.js Loading commit data...
dispatch.js Loading commit data...
lint.js Loading commit data...
oneapm.js Loading commit data...
package.json Loading commit data...
process.json Loading commit data...

基于Express的有货前端开发框架

规约

js模块命令规范

  • JS按大模块放置,比如:home或者guang
  • 页面加载的JS使用*.page.js, 且page的JS只能放在模块下的一级目录
  • 非页面加载的JS直接*.js

页面加载静态资源规范

  • 传模块名module和页面名page,即模块的目录名和当前页面的JS文件名的前缀,以加载对应页面的JS