統合開発Yeoman(概要)

53
佐川 夫美雄@albatrosary 株式会社ゼノフィ 2014/6/9 HTML5 開発ツール天下一武道会 (IDE+α編 : 初夏の陣) 第二回 html5jウェブプラットフォーム部ナイトセミナー

description

 

Transcript of 統合開発Yeoman(概要)

Page 1: 統合開発Yeoman(概要)

佐川 夫美雄@albatrosary 株式会社ゼノフィ

2014/6/9 HTML5 開発ツール天下一武道会 (IDE+α編 : 初夏の陣) 第二回 html5jウェブプラットフォーム部ナイトセミナー

Page 2: 統合開発Yeoman(概要)

佐川 夫美雄

HTML5Expert.jpコントリビュータ html5jエンタープライズ部 副部長 html5j Web Platform部 - メンバー knockoutjs Japan User Group Sencha UG CO-ORGANIZER AngularJS Japan User Group - メンバー

http://albatrosary.hateblo.jp/ http://html5experts.jp/albatrosary/

(Fumio SAGAWA)

Page 3: 統合開発Yeoman(概要)

Xenophy CO.,LTDWebアプリケーション開発をトータルサポート

開発者の生産力向上 複数のプラットフォーム開発環境の提供 高品質なユーザーエクスペリエンスの提供 モバイル、タブレット、デスクトップへの対応

Page 4: 統合開発Yeoman(概要)

Sencha Ext JSExt JS 3.0がリリースされました

Page 5: 統合開発Yeoman(概要)

Sencha Touch

Page 6: 統合開発Yeoman(概要)

SenchaにはSencha Architectというのがあるんです

The Ultimate HTML5 App Builder

Page 7: 統合開発Yeoman(概要)

Sencha ArchitectBuild for Mobile and Desktop

Build apps using Sencha Architect 3 and reach more people on more platforms leveraging HTML5. Sencha Architect 3 is the fastest way to build HTML5 apps for the web and mobile devices.

Page 8: 統合開発Yeoman(概要)

本日のテーマ

http://yeoman.io/

Page 9: 統合開発Yeoman(概要)

YEOMAN

Page 10: 統合開発Yeoman(概要)

いいところテンプレートがそろってる

Web開発に必要なツールがたくさんある

lint,hint,ビルド,テストが行える

html,css,js,画像をminifyしてくれる

まだまだ色々あります

Page 11: 統合開発Yeoman(概要)

エディターは何でも

Sublime Text

Vim

Emacs

Page 12: 統合開発Yeoman(概要)

livereloadとか

WebSocketlisten to change

change occured/reset

Page 13: 統合開発Yeoman(概要)

YEOMANというのは

Web開発のscaffolding

scaffoldingとは、1(建築現場などの)足場/2[集合的に] 足場材料

Page 14: 統合開発Yeoman(概要)

面倒なことをタスク化し

仕事をさぼろう!

Page 15: 統合開発Yeoman(概要)

ことはじめMACユーザなら

改めてすることはないです

Page 16: 統合開発Yeoman(概要)

ことはじめWindowsユーザなら

msysgitを入れよう

個人的におすすめです

Page 17: 統合開発Yeoman(概要)

ことはじめubuntuユーザなら

いっ、いいと思います!

Page 18: 統合開発Yeoman(概要)

使い始めるのは簡単!

Page 19: 統合開発Yeoman(概要)

これは必要必須事項です。これ入れないと何もできません。

node.js

nodeはnodebrewがおすすめ

Page 20: 統合開発Yeoman(概要)

$ npm install -g yo

Page 21: 統合開発Yeoman(概要)

出来上がり!

Page 22: 統合開発Yeoman(概要)

YEOMANはYEOMANはyoとbowerとgruntから成り立ってます

yo bower grunt

Page 23: 統合開発Yeoman(概要)

yo 雛形作成ツール

bower フロントエンドパッケージマネージャ

grunt タスクランナー

Page 24: 統合開発Yeoman(概要)

具体的には

$ npm install -g generator-hoge

$ yo hoge (※$ bower installも実行してます)

$ grunt serve

$ grunt build

Page 25: 統合開発Yeoman(概要)

なぁ、黒い画面好きだろう?

Page 26: 統合開発Yeoman(概要)

ちなみに入れる場合があります

ruby

comapss

Page 27: 統合開発Yeoman(概要)

yo scaffolds out a new application, writing your Grunt configuration and pulling in relevant Grunt tasks and Bower dependencies that you might need for your build.

Page 28: 統合開発Yeoman(概要)

scaffoldingツール

多くのgenerator

Page 29: 統合開発Yeoman(概要)

OFFICIAL GENERATORS 20

COMMUNITY GENERATORS 782

Page 30: 統合開発Yeoman(概要)

Bower

Page 31: 統合開発Yeoman(概要)

Bower is used for dependency management, so that you no longer have to manually download and manage your scripts.

Page 32: 統合開発Yeoman(概要)

パッケージマネージャ

Twitter, opne-source community

bower.jsonで設定管理

Page 33: 統合開発Yeoman(概要)

Bower Packages 13,178

Page 34: 統合開発Yeoman(概要)

Grunt

Page 35: 統合開発Yeoman(概要)

!

Grunt is used to build, preview and test your project, thanks to help from tasks curated by the Yeoman team and grunt-contrib.

Page 36: 統合開発Yeoman(概要)

JavaScriptラスクランナー

package.jsonで設定管理

Gruntfile.jsでタスクを定義

Page 37: 統合開発Yeoman(概要)

Grunt plugin 2,990

Page 38: 統合開発Yeoman(概要)

gruntのおすすめおすすめのgruntプラグイン

grunt-contrib-yuidoc JavaScriptのドキュメント化 grunt-codo CoffeeScriptのドキュメント化 grunt-styleguide SASSのドキュメント化 grunt-text-replace ファイルの内容を変える grunt-easymock モックAPIサーバ grunt-stubby モックAPIサーバ grunt-connect-proxy プロキシサーバ

Page 39: 統合開発Yeoman(概要)

構成(概要)

generator

bower.jsonGruntfile.json

package.json

Node Packager Managergithub

Page 40: 統合開発Yeoman(概要)

YEOMANとwebapp

$ npm install -g generator-webapp

$ mkdir webapp && cd webapp

$ yo webapp

Page 41: 統合開発Yeoman(概要)

YEOMANとangular

$ npm install -g generator-anglar

$ mkdir anglar && cd anglar

$ yo anglar

Page 42: 統合開発Yeoman(概要)

YEOMANとember

$ npm install -g generator-ember

$ mkdir ember && cd ember

$ yo ember

Page 43: 統合開発Yeoman(概要)

YEOMANとbackbone

$ npm install -g generator-backbone

$ mkdir backbone && cd backbone

$ yo backbone

Page 44: 統合開発Yeoman(概要)

YEOMANとThree.js

$ npm install -g generator-threejs

$ mkdir threejs && cd threejs

$ yo threejs

Page 45: 統合開発Yeoman(概要)

YEOMANとgit.gitignoreの中身

node_modules dist .tmp .sass-cache bower_components test/bower_components

Page 46: 統合開発Yeoman(概要)

bowerの使い方bowerの使い方のひとつ

$ bower install

backbone.localStorage ̶save

bower.jsonに定義を追加

Page 47: 統合開発Yeoman(概要)

gruntの使い方gruntの使い方のひとつ

$ npm install

grunt-contrib-yuidoc ̶save-dev

package.jsonに定義を追加

Page 48: 統合開発Yeoman(概要)

使ってみます!

Page 49: 統合開発Yeoman(概要)

まとめ

環境構築の煩わしさから解放

スムーズな開発初動

多様なツール郡

Page 50: 統合開発Yeoman(概要)

取扱注意!

YEOMANを触っていると

面白くて仕事になりません

Page 51: 統合開発Yeoman(概要)

Sencha Architectもよろしくね

Page 52: 統合開発Yeoman(概要)

Thanks

Page 53: 統合開発Yeoman(概要)

Webアプリケーション開発はゼノフィ http://www.xenophy.com/