Skip to content

nodejs-tw/new-website

Repository files navigation

NodeJS 網站

使用技術

LiveScript

LiveScript 非常簡化,而且同一件事情寫法很多種,如果寫法不統一程式碼會亂,所以請統一寫法,請 嚴格遵守 LiveScript style guide,其他這份文件沒列到的就繼承 nodejs coding style 還有 Google 的 JavaScript style guide。

Stylus

class 命名使用 smacss + bem

Example:

...
<body>
  <header class="header header--page">
    <h1 class="header__title">Site Name</h1>
  </header>
</body>
...

Jade

Generator

Config

{
  "generator": {
    "[名稱]": {
      "template": "[Template 檔案(Jade)]",
      "source": "[Markdown  檔案來源]",
      "destination": "[輸出目錄]"
    }
  }
}

Command

$ node ./tools/generator/index.js [名稱1] [名稱2]

or

$ npm run gen

License

Copyright (c) 2013 NodeJS.tw Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages