directory-guide.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>Directory Guide | 偶游前端</title>
  7. <meta name="generator" content="VuePress 1.5.0">
  8. <meta name="description" content="">
  9. <link rel="preload" href="/docs/assets/css/0.styles.fa04140f.css" as="style"><link rel="preload" href="/docs/assets/js/app.6eb096df.js" as="script"><link rel="preload" href="/docs/assets/js/2.eb3dc6dc.js" as="script"><link rel="preload" href="/docs/assets/js/14.15bdf673.js" as="script"><link rel="prefetch" href="/docs/assets/js/10.121c4396.js"><link rel="prefetch" href="/docs/assets/js/11.4152d57d.js"><link rel="prefetch" href="/docs/assets/js/12.6f3f98e4.js"><link rel="prefetch" href="/docs/assets/js/13.121cf2d2.js"><link rel="prefetch" href="/docs/assets/js/15.5a659b8b.js"><link rel="prefetch" href="/docs/assets/js/16.6c83c4bd.js"><link rel="prefetch" href="/docs/assets/js/17.a200da04.js"><link rel="prefetch" href="/docs/assets/js/18.bac57b7c.js"><link rel="prefetch" href="/docs/assets/js/19.6246c10b.js"><link rel="prefetch" href="/docs/assets/js/3.34e7d28d.js"><link rel="prefetch" href="/docs/assets/js/4.c124f7a5.js"><link rel="prefetch" href="/docs/assets/js/5.36672b5d.js"><link rel="prefetch" href="/docs/assets/js/6.2072c2b2.js"><link rel="prefetch" href="/docs/assets/js/7.c034f81f.js"><link rel="prefetch" href="/docs/assets/js/8.8ed5f3ae.js"><link rel="prefetch" href="/docs/assets/js/9.39b37f48.js">
  10. <link rel="stylesheet" href="/docs/assets/css/0.styles.fa04140f.css">
  11. </head>
  12. <body>
  13. <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/docs/" class="home-link router-link-active"><!----> <span class="site-name">偶游前端</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><a href="/docs/" aria-current="page" class="sidebar-link">偶游前端(原多玩前端)</a></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>项目</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/currentProgram/tank.html" class="sidebar-link">坦克专题</a></li><li><a href="/docs/currentProgram/hiydMini.html" class="sidebar-link">hi运动教练小程序</a></li><li><a href="/docs/currentProgram/hiydShop.html" class="sidebar-link">hi运动商城</a></li><li><a href="/docs/currentProgram/webGame.html" class="sidebar-link">多玩游戏大厅</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>开发规范</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/standard/html-guide.html" class="sidebar-link">HTML规范</a></li><li><a href="/docs/standard/css-guide.html" class="sidebar-link">css规范</a></li><li><a href="/docs/standard/javascript-guide.html" class="sidebar-link">JavaScript规范</a></li><li><a href="/docs/standard/directory-guide.html" aria-current="page" class="active sidebar-link">目录规范</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/docs/standard/directory-guide.html#工作流默认目录" class="sidebar-link">工作流默认目录</a></li><li class="sidebar-sub-header"><a href="/docs/standard/directory-guide.html#完整目录" class="sidebar-link">完整目录</a></li></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>工具类</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/utils/fetch.html" class="sidebar-link">Fetch</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>博客</span> <!----></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="directory-guide"><a href="#directory-guide" class="header-anchor">#</a> Directory Guide</h1> <hr> <p>静态资源目录规范指南。</p> <hr> <p><strong>【强制】</strong> 所有资源类型必须按以下目录放置;</p> <h2 id="工作流默认目录"><a href="#工作流默认目录" class="header-anchor">#</a> 工作流默认目录</h2> <div class="language-html extra-class"><pre class="language-html"><code>src/ # static resource directory
  14. |
  15. |-- css/ # all generated CSS
  16. | |-- global.sss # the global stylesheet
  17. | ...
  18. |
  19. |-- img/ # all images
  20. | |-- bg-body.jpg # body background
  21. | ...
  22. |
  23. |-- js/ # all javascript files
  24. | |-- main.js # general documentation
  25. | |-- vendor # third-party plugins
  26. | |-- modernizr-2.8.3.min.js
  27. | |-- ...
  28. | ...
  29. |
  30. |-- sass/ # all SASS files
  31. | |-- global.scss # the global SASS
  32. | |-- _slice.scss # automatic img to css
  33. | |-- base # the base SASS
  34. | |-- _base.scss
  35. | |-- _mixins.scss
  36. | |-- _normalize.scss
  37. | |-- lego # the LEGO UI SASS
  38. | |-- _lego.scss
  39. | |-- _ui-box.scss
  40. | |-- _ui-tab.scss
  41. | |-- ...
  42. | |-- biz1 # the business SASS
  43. | |-- ...
  44. | |-- biz2 # the business SASS
  45. | |-- ...
  46. |
  47. |-- tpl/ # the templates
  48. | |-- ...
  49. |
  50. `-- index.html # the html file
  51. </code></pre></div><h2 id="完整目录"><a href="#完整目录" class="header-anchor">#</a> 完整目录</h2> <ul><li>当该项目为中大型项目或长期维护项目时,请手动添加README.md填写相关文档,<a href="https://github.com/duowan/document-template" target="_blank" rel="noopener noreferrer">文档参考模板<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>;</li> <li>当该项目有需要使用web字体时时,请手动添加<strong>font</strong>目录放置字体文件,如有多个字体,请分开文件夹存放;</li> <li>当该项目有需要使用flash文件时,请手动添加<strong>swf</strong>目录放置flash文件;</li></ul> <div class="language-html extra-class"><pre class="language-html"><code>src/ # static resource directory
  52. |
  53. |-- css/ # all generated CSS
  54. | |-- global.sss # the global stylesheet
  55. | ...
  56. |
  57. |-- img/ # all images
  58. | |-- bg-body.jpg # body background
  59. | ...
  60. |
  61. |-- js/ # all javascript files
  62. | |-- main.js # general documentation
  63. | |-- vendor # third-party plugins
  64. | |-- modernizr-2.8.3.min.js
  65. | |-- ...
  66. | ...
  67. |
  68. |-- sass/ # all SASS files
  69. | |-- global.scss # the global SASS
  70. | |-- _slice.scss # automatic img to css
  71. | |-- base # the base SASS
  72. | |-- _base.scss
  73. | |-- _mixins.scss
  74. | |-- _normalize.scss
  75. | |-- lego # the LEGO UI SASS
  76. | |-- _lego.scss
  77. | |-- _ui-box.scss
  78. | |-- _ui-tab.scss
  79. | |-- ...
  80. | |-- biz1 # the business SASS
  81. | |-- ...
  82. | |-- biz2 # the business SASS
  83. | |-- ...
  84. |
  85. |-- font/ # all web fonts
  86. | ...
  87. |
  88. |-- swf/ # the flash files
  89. | |-- logo-duowan.swf
  90. | |-- ...
  91. |
  92. |-- tpl/ # the templates
  93. | |-- ...
  94. |
  95. `-- README.md # the project document
  96. `-- index.html # the html file
  97. </code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
  98. <a href="/docs/standard/javascript-guide.html" class="prev">
  99. JavaScript规范
  100. </a></span> <span class="next"><a href="/docs/utils/fetch.html">
  101. Fetch
  102. </a>
  103. </span></p></div> </main></div><div class="global-ui"></div></div>
  104. <script src="/docs/assets/js/app.6eb096df.js" defer></script><script src="/docs/assets/js/2.eb3dc6dc.js" defer></script><script src="/docs/assets/js/14.15bdf673.js" defer></script>
  105. </body>
  106. </html>