20.f003980f.js 4.6 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[20],{292:function(s,n,e){"use strict";e.r(n);var t=e(13),a=Object(t.a)({},(function(){var s=this,n=s._self._c;return n("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[n("h1",{attrs:{id:"directory-guide"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#directory-guide"}},[s._v("#")]),s._v(" Directory Guide")]),s._v(" "),n("hr"),s._v(" "),n("p",[s._v("静态资源目录规范指南。")]),s._v(" "),n("hr"),s._v(" "),n("p",[n("strong",[s._v("【强制】")]),s._v(" 所有资源类型必须按以下目录放置;")]),s._v(" "),n("h2",{attrs:{id:"工作流默认目录"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#工作流默认目录"}},[s._v("#")]),s._v(" 工作流默认目录")]),s._v(" "),n("div",{staticClass:"language-html extra-class"},[n("pre",{pre:!0,attrs:{class:"language-html"}},[n("code",[s._v("src/ # static resource directory\n|\n|-- css/ # all generated CSS\n| |-- global.sss # the global stylesheet\n| ...\n|\n|-- img/ # all images\n| |-- bg-body.jpg # body background\n| ...\n|\n|-- js/ # all javascript files\n| |-- main.js # general documentation\n| |-- vendor # third-party plugins\n| |-- modernizr-2.8.3.min.js\n| |-- ...\n| ...\n|\n|-- sass/ # all SASS files\n| |-- global.scss # the global SASS\n| |-- _slice.scss # automatic img to css\n| |-- base # the base SASS\n| |-- _base.scss\n| |-- _mixins.scss\n| |-- _normalize.scss\n| |-- lego # the LEGO UI SASS\n| |-- _lego.scss\n| |-- _ui-box.scss\n| |-- _ui-tab.scss\n| |-- ...\n| |-- biz1 # the business SASS\n| |-- ...\n| |-- biz2 # the business SASS\n| |-- ...\n|\n|-- tpl/ # the templates\n| |-- ...\n|\n`-- index.html # the html file\n")])])]),n("h2",{attrs:{id:"完整目录"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#完整目录"}},[s._v("#")]),s._v(" 完整目录")]),s._v(" "),n("ul",[n("li",[s._v("当该项目为中大型项目或长期维护项目时,请手动添加README.md填写相关文档,"),n("a",{attrs:{href:"https://github.com/duowan/document-template",target:"_blank",rel:"noopener noreferrer"}},[s._v("文档参考模板"),n("OutboundLink")],1),s._v(";")]),s._v(" "),n("li",[s._v("当该项目有需要使用web字体时时,请手动添加"),n("strong",[s._v("font")]),s._v("目录放置字体文件,如有多个字体,请分开文件夹存放;")]),s._v(" "),n("li",[s._v("当该项目有需要使用flash文件时,请手动添加"),n("strong",[s._v("swf")]),s._v("目录放置flash文件;")])]),s._v(" "),n("div",{staticClass:"language-html extra-class"},[n("pre",{pre:!0,attrs:{class:"language-html"}},[n("code",[s._v("src/ # static resource directory\n|\n|-- css/ # all generated CSS\n| |-- global.sss # the global stylesheet\n| ...\n|\n|-- img/ # all images\n| |-- bg-body.jpg # body background\n| ...\n|\n|-- js/ # all javascript files\n| |-- main.js # general documentation\n| |-- vendor # third-party plugins\n| |-- modernizr-2.8.3.min.js\n| |-- ...\n| ...\n|\n|-- sass/ # all SASS files\n| |-- global.scss # the global SASS\n| |-- _slice.scss # automatic img to css\n| |-- base # the base SASS\n| |-- _base.scss\n| |-- _mixins.scss\n| |-- _normalize.scss\n| |-- lego # the LEGO UI SASS\n| |-- _lego.scss\n| |-- _ui-box.scss\n| |-- _ui-tab.scss\n| |-- ...\n| |-- biz1 # the business SASS\n| |-- ...\n| |-- biz2 # the business SASS\n| |-- ...\n|\n|-- font/ # all web fonts\n| ...\n|\n|-- swf/ # the flash files\n| |-- logo-duowan.swf\n| |-- ...\n|\n|-- tpl/ # the templates\n| |-- ...\n|\n`-- README.md # the project document\n`-- index.html # the html file\n")])])])])}),[],!1,null,null,null);n.default=a.exports}}]);