## redfile.json 该文件用来描述整个项目的基本信息 ## 选项 | 选项名 | 可选项 | 默认值 | 描述 | 参数类型 | | ------- | ----------------- | ------- | ---------------------------------------- | ------- | | type | project/component | project | 描述项目类型,project 表示独立项目,component 表示可复用UI组件 | string | | spa | true/false | false | 如果type为project,该选项表示项目的类型,true 为单页应用(SPA),false 表示传统多页面应用 | boolean | | options | {} | N/A | 传递给编译器的选项,详细见下表 | object | | author | | | 项目作者信息 | string |
Activity
wssgcg1213 commentedon Dec 13, 2016
独立项目目录结构
单页(SPA)应用 src 目录
传统多页(多入口)应用 src 目录
组件项目目录结构
wssgcg1213 commentedon Dec 13, 2016
可复用组件文件组织形式
1. 简单可复用组件(单文件)
2. 复杂可复用组件
index.js:Component.jsxComponent.less:[-]redfile.json 规范[/-][+]项目/组件目录结构 以及 redfile.json 规范[/+]