LoginSignup
0
0

More than 5 years have passed since last update.

静的サイトジェネメモ(node.js系)

Last updated at Posted at 2015-06-16

Roots

enlightened static sites
http://roots.cx/

使ってみた

中身は超シンプルで、面倒くさいこと考えずにコーディングできて楽しい。

良かった点

  • 導入コストが低い。普段gulp/grunt使いだったらいろんな面で楽できる
  • なんかAXISとかRuptureってのがついてくる。
  • 拡張が簡単そう。でも、最低限node.js書けないと辛いかも。

めんどい点

  • vimmerは *.swp しないと始まらない
  • デフォルトで、データとテンプレートが別れてない。
  • そいで、jadeがファックなところが眼と鼻につく。(gulp-data的なimportを自前でやんなきゃ。)
  • 公式サイトが見づらい。オサレだけども。見づらい。
  • 基本変わったことやりたいなら、拡張書けよスタンス。というのも、設定ファイルがjsonベースなんで、gruntを思い出して辛くなる。

Wintersmith

Flexible, minimalistic, multi-platform static site generator built on top of node.js.
http://wintersmith.io/

使ってみた

最初は独自ルールを覚えないとハマる。ちゃんとドキュメント読みましょう。

config.json
{
  "locals": {
    "url": "http://localhost:4545",
    "name": "project",
    "owner": "yohawing",
    "description": "ws sample"
  },
  "plugins": [
    "wintersmith-less",
    "wintersmith-browserify",
    "wintersmith-yaml-page",
    "wintersmith-livereload"
  ],
  "contents": "./src",
  "ignore": [
    "**/.DS_Store",
    "**/vender"
  ],
  "browserify": {
    "transforms": [
      "babelify"
    ],
    "fileGlob": "common/scripts/*.js",
    "extensions": [
      ".js",
      ".es6"
    ]
  },
  "port": 4545,
  "jade": {
    "pretty": true
  }
}

設定はこんな感じが吉。
もろもろ便利なプラグインが用意されてるし、
自前でプラグイン書くこともできる。

ドキュメントは舐めてるのかってくらい見づらい。
素直に、Githubを回遊するのが吉。

もう一回使いたいかと言われると、もう二度と使いたくない。

Assemble

Static site generator for Node.js, Grunt.js, and Yeoman and Gulp.

metalsmith

An extremely simple, pluggable

punch

A FUN AND EASY WAY TO BUILD MODERN WEBSITES

Hexo

A fast, simple & powerful blog framework

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0