Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ProjectSpecification
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guohao
ProjectSpecification
Commits
be08ed3a
Commit
be08ed3a
authored
May 11, 2020
by
guohao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(目录文件命名规则修改): 下划线改为横杠 my_project_name -> my-project-name
parent
2daf7ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
目录文件命名规则.md
docs/chapter1/目录文件命名规则.md
+8
-7
No files found.
docs/chapter1/目录文件命名规则.md
View file @
be08ed3a
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
## 项目命名
## 项目命名
全部采用小写方式, 以下划线分隔。
全部采用小写方式, 以-分隔。
例:my_project_name
例:my-project-name
## 目录命名
## 目录命名
...
@@ -19,22 +20,22 @@ eg:
...
@@ -19,22 +20,22 @@ eg:
images - img
images - img
data
_
models - modules
data
-
models - modules
```
```
## JS文件命名
## JS文件命名
参照项目命名规则。
参照项目命名规则。
例:account
_
model.js
例:account
-
model.js
## CSS, SCSS文件命名
## CSS, SCSS文件命名
参照项目命名规则。
参照项目命名规则。
例:retina
_
sprites.scss
例:retina
-
sprites.scss
## HTML文件命名
## HTML文件命名
参照项目命名规则。
参照项目命名规则。
例:error_report.html
例:error-report.html
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment