0.2.0 • Published 5 years ago
@aligov/tpl-h5-rax v0.2.0
h5-rax
@aligov/tpl-h5-rax
intro scaffold
Getting Started
npm run start
Runs the app in development mode.
Open http://localhost:3333 to view it in the browser.
The page will reload if you make edits.
npm run build
Builds the app for production to the build
folder.
目录文件说明
├── README.md
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── abc.json:发布配置
├── build:构建目录
│ └── web
├── build.json:rax 构建配置
├── fie.config.js:fie 脚本配置
├── package.json
├── plugin:rax 构建插件目录
│ └── webpack.js
├── src
│ ├── app.js:入口 js 文件
│ ├── app.json:页面路由配置
│ ├── components:多个页面共用的组件,若是更加通用的组件,建议用组件模板贡献通用组件
│ ├── config:配置文件目录,可根据需要增加不同的配置
│ ├── document:渲染 index.html 模板
│ ├── hooks:通用的 hook 处理逻辑,最大可能逻辑复用
│ ├── models:数据模型,用于多页面共享数据及状态,可参考 icestore
│ ├── pages:页面目录
│ ├── services:请求服务
│ ├── stores:store 模型配置,每次新增数据模型都需要在这个 store 里面配置注册
│ └── utils:工具方法目录,一般以 xxxxHelper.ts 命名
├── swagger——swagger 配置及模板
│ ├── apigen.config.js:接口配置
│ └── service_template.njk:模板
└── tsconfig.json