Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 546dd9d

Browse files
committed
项目目录结构调整
1 parent 10bba10 commit 546dd9d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,27 @@
9797
|-- layout 布局
9898
|-- widget 组件
9999
|-- usage 项目具体实现
100-
|-- project
100+
|-- project 某个子项目
101101
|-- core 核心代码:桥接lib中的core,可以进行项目级扩展
102102
|-- fragment 项目公用碎片
103103
|-- module 模块
104104
|-- page page桥接文件目录:src-list
105105
|-- export page pack之后的文件目录
106-
|-- src 生产环境
106+
|-- prd 生产环境
107107
|-- bgimg 背景图目录(假设有的话)
108108
|-- image 前景图目录(假设有的话)
109109
|-- font 字体目录(假设有的话)
110110
|-- scripts 脚本目录
111111
|-- styles(Yo) 样式目录
112-
|-- usage 项目具体实现
113-
|-- mobile
114-
|-- index.css
115-
|-- login.css
116-
|-- and etc...
117-
|-- pad
118-
|-- index.css
119-
|-- login.css
120-
|-- and etc...
112+
|-- project1 子项目
113+
|-- index.css
114+
|-- login.css
115+
|-- and etc...
116+
|-- project2 子项目
117+
|-- index.css
118+
|-- login.css
121119
|-- and etc...
120+
|-- and etc...
122121
```
123122

124123
> `src`, `scripts`, `styles` 三个目录是为了和现有项目保持一致,避免修改过大,所以保持不变。
@@ -129,6 +128,7 @@
129128
130129
> 至于 `html`, `bgimg`, `image`, `font` 这几个目录为什么没有加 `s`,主要是因为不希望大家去想某个目录是否为复数,简单点就好。
131130
131+
> `prd` 为生产环境目录,以 `xxx`项目为例,其生产环境中的某个CSS外链大致如下:`//sitename.com/styles/mobile/index.css`
132132
133133
<a name="separate"></a>
134134
### 2.分离

0 commit comments

Comments
 (0)