Name Last Update
apps Loading commit data...
config Loading commit data...
doc Loading commit data...
doraemon Loading commit data...
logs Loading commit data...
mock Loading commit data...
public 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...
bash.exe.stackdump 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的有货前端开发框架

规约

BLK 页面规范

<div class="your-page blk-page">
    {{# contetn}}
        ...your content here
    {{/ content}}
</div>

数据规范

  • 所有页面都以content作为最外层
  • 图片的键为img,链接为link,请规范

js模块命令规范

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

页面加载静态资源规范

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