LoginSignup
4
4

More than 5 years have passed since last update.

backbone.marionetteでの第一歩

Last updated at Posted at 2013-09-04

個人的なまとめ

公式サイト

marionettejs公式
yeoman公式
generator-marionette github

xxとは

marionetteとは

Backbone.jsをラップしたライブラリ。

yeomanとは

webフロントエンド周りのビルドツール?rakeとかantとかmavenとかに似てる。内部ではbowerやgruntと連携していい感じにしてくれる。

generator-marionetteとは

yeomanのmarionetteのジェネレーター。marionetteはもちろん、mongoDBやexpress(node.jsのフレームワーク)の環境も作ってくれる。
backbone.js and expressの組み合わせ環境を簡単に作ってくれるので、これを使い始めた。

導入

yeomanを入れる。generator-marionetteを入れる。generator-marionetteの説明通りにインストールする。
はまりどころは特にない。

2013/9/4時点では対応しているtwitter bootstrapが2.3.2だが3系にしても動くんじゃないだろうか・・・。

yeomanのジェネレータが特定のディレクトリ構成を強制してしまうのでとりあえずファイル移動している。

yo marionette:itemview xxxx

これはapp/views/item/配下に作られる。

yo marionette:itemview user/xxx

とやってもapp/views/item/user/配下に作られる。app/views/user/配下に作ってくれると嬉しかった。

4
4
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
4
4