Skip to content

yoshiso/html5_app_boilerplate

Repository files navigation

#What is this? coffeescriptを使用したhtml5アプリケーションのためのボイラープレート。 jasmineを使用したテストの自動化,coffeescriptの自動コンパイルを インストールと同時に始めるためのテンプレートです。

#How to install - インストール方法 *要Node.js,Grunt

Gruntのインストール

sudo npm install -g grunt-cli

このボイラープレートのインストール

$ git clone git@github.com:yss44/html5_app_boilerplate.git
$ cd html5_app_boilerplate
$ npm install

#How to use spec/coffee以下にテストケースを、src/coffee以下にアプリケーション本体を記述してください。

coffeescriptのコンパイルとjasmineによるテストは以下のコマンドで使用します。

$ grunt

src/coffeespec/coffeeでgruntが以下の*.coffeeファイルの変更を監視し始めます。 ファイルに変更があった場合、coffeescriptをコンパイルしsrc/js/,spec/js以下にコンパイルされたjavascriptファイルを吐き出します。 その後自動でjasmineによるテストが走ります。

サンプルとしてsrc/js/Player.js,src/js/Song.js,spec/js/PlayerSpec.js,spec/js/SpecHeler.jsが最初に入っているので、src,spec,SpecRunnber.htmlから、サンプル部分を削除してから開発を始めてください。

SpecRunner.htmlをブラウザから開くと、テストの結果を見ることも可能です。

About

Application boilerplate with jasmine,grunt and coffeescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published