Directory Guide

【强制】 所有资源类型必须按以下目录放置;

工作流默认目录

src/                                # static resource directory
|
|-- css/                            # all generated CSS
|   |-- global.sss                  # the global stylesheet
|   ...
|
|-- img/                            # all images
|   |-- bg-body.jpg                 # body background
|   ...
|
|-- js/                             # all javascript files
|   |-- main.js                     # general documentation
|   |-- vendor                      # third-party plugins
|       |-- modernizr-2.8.3.min.js
|       |-- ...
|   ...
|
|-- sass/                           # all SASS files
|   |-- global.scss                 # the global SASS
|   |-- _slice.scss                 # automatic img to css
|   |-- base                        # the base SASS
|       |-- _base.scss
|       |-- _mixins.scss
|       |-- _normalize.scss
|   |-- lego                        # the LEGO UI SASS
|       |-- _lego.scss
|       |-- _ui-box.scss
|       |-- _ui-tab.scss
|       |-- ...
|   |-- biz1                        # the business SASS
|       |-- ...
|   |-- biz2                        # the business SASS
|       |-- ...
|
|-- tpl/                            # the templates
|   |-- ...
|
`-- index.html                      # the html file

完整目录

  • 当该项目为中大型项目或长期维护项目时,请手动添加README.md填写相关文档,文档参考模板
  • 当该项目有需要使用web字体时时,请手动添加font目录放置字体文件,如有多个字体,请分开文件夹存放;
  • 当该项目有需要使用flash文件时,请手动添加swf目录放置flash文件;
src/                                # static resource directory
|
|-- css/                            # all generated CSS
|   |-- global.sss                  # the global stylesheet
|   ...
|
|-- img/                            # all images
|   |-- bg-body.jpg                 # body background
|   ...
|
|-- js/                             # all javascript files
|   |-- main.js                     # general documentation
|   |-- vendor                      # third-party plugins
|       |-- modernizr-2.8.3.min.js
|       |-- ...
|   ...
|
|-- sass/                           # all SASS files
|   |-- global.scss                 # the global SASS
|   |-- _slice.scss                 # automatic img to css
|   |-- base                        # the base SASS
|       |-- _base.scss
|       |-- _mixins.scss
|       |-- _normalize.scss
|   |-- lego                        # the LEGO UI SASS
|       |-- _lego.scss
|       |-- _ui-box.scss
|       |-- _ui-tab.scss
|       |-- ...
|   |-- biz1                        # the business SASS
|       |-- ...
|   |-- biz2                        # the business SASS
|       |-- ...
|
|-- font/                           # all web fonts
|   ...
|
|-- swf/                            # the flash files
|   |-- logo-duowan.swf
|   |-- ...
|
|-- tpl/                            # the templates
|   |-- ...
|
`-- README.md                       # the project document
`-- index.html                      # the html file
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML标准。 注意:讲述HT...
    kismetajun阅读 27,765评论 1 45
  • Swift1> Swift和OC的区别1.1> Swift没有地址/指针的概念1.2> 泛型1.3> 类型严谨 对...
    cosWriter阅读 11,148评论 1 32
  • 介绍 捆绑是macOS和iOS中用于封装代码和资源的基础技术。软件包通过为所需资源提供已知位置来简化开发人员体验,...
    nicedayCoco阅读 1,281评论 0 1
  • 一、Python简介和环境搭建以及pip的安装 4课时实验课主要内容 【Python简介】: Python 是一个...
    _小老虎_阅读 5,837评论 0 10
  • 四季里的春天最美 春天里的四月最醉人 奔跑在乡村野外 抓一把春风 闻一季花香 不想与春色擦肩而过,即使匆匆,也会忍...
    半边莲花阅读 408评论 6 3