14.15bdf673.js 4.6 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{455:function(s,n,e){"use strict";e.r(n);var t=e(55),a=Object(t.a)({},(function(){var s=this,n=s.$createElement,e=s._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[e("h1",{attrs:{id:"directory-guide"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#directory-guide"}},[s._v("#")]),s._v(" Directory Guide")]),s._v(" "),e("hr"),s._v(" "),e("p",[s._v("静态资源目录规范指南。")]),s._v(" "),e("hr"),s._v(" "),e("p",[e("strong",[s._v("【强制】")]),s._v(" 所有资源类型必须按以下目录放置;")]),s._v(" "),e("h2",{attrs:{id:"工作流默认目录"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#工作流默认目录"}},[s._v("#")]),s._v(" 工作流默认目录")]),s._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("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")])])]),e("h2",{attrs:{id:"完整目录"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#完整目录"}},[s._v("#")]),s._v(" 完整目录")]),s._v(" "),e("ul",[e("li",[s._v("当该项目为中大型项目或长期维护项目时,请手动添加README.md填写相关文档,"),e("a",{attrs:{href:"https://github.com/duowan/document-template",target:"_blank",rel:"noopener noreferrer"}},[s._v("文档参考模板"),e("OutboundLink")],1),s._v(";")]),s._v(" "),e("li",[s._v("当该项目有需要使用web字体时时,请手动添加"),e("strong",[s._v("font")]),s._v("目录放置字体文件,如有多个字体,请分开文件夹存放;")]),s._v(" "),e("li",[s._v("当该项目有需要使用flash文件时,请手动添加"),e("strong",[s._v("swf")]),s._v("目录放置flash文件;")])]),s._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("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}}]);