Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Learning Ember CLI
Search
Satoru Kawahara
July 30, 2014
Programming
4
840
Learning Ember CLI
Summary of Ember CLI and the reason why I choose Ember CLI.
@ Ember.js Tokyo Meetup 2014-07-30
Satoru Kawahara
July 30, 2014
Tweet
Share
More Decks by Satoru Kawahara
See All by Satoru Kawahara
本当に必要ですか?そのステージング環境〜Web制作を Docker でちょっと便利にしよう〜
esukei
1
250
How to publish Sakura icons-set on Cacoo
esukei
1
1.8k
Tries for creating a UXD culture
esukei
1
1.6k
Creating a UI Design culture
esukei
2
2.3k
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
0
650
Jakarta EE meets AI
ivargrimstad
0
200
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.4k
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
690
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
300
距離関数を極める! / SESSIONS 2024
gam0022
0
280
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Featured
See All Featured
A Tale of Four Properties
chriscoyier
156
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Being A Developer After 40
akosma
87
590k
Become a Pro
speakerdeck
PRO
25
5k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
900
Transcript
-FBSOJOH&NCFS$-* &NCFSKT5PLZP.FFUVQ!4",63"*OUFSOFU CZ!FTVLFJ 4BUPSV,BXBIBSB
&NCFS$-*
IUUQXXXFNCFSDMJDPN “The command line interface for ambitious web applications.”
node -v v0.10.x npm install -g bower npm install -g
phantomjs 1SFSFRVJTJUFT
npm install -g ember-cli *OTUBMMBUJPO
ember new ember generate ember serve ember test ember build
$PNNBOET
ember new <app-name> <options...> (FOFSBUFTBO"QQMJDBUJPO4USVDUVSF
'PMEFSMBZPVU app/ &NCFSBQQDPEFT dist/ EJTUSJCVUFTZPVSBQQ public/ TUBUJDBTTFUT JNBHFT GPOUT tests/
UFTUDPEFT tmp/ UFNQPSBSZ vendor/ CPXFSDPNQPOFOUT .jshintrc .gitignore Brocfile.js CVJMETQFDJDBUJPOGPS#SPDDPMJ bower.json package.json
'PMEFSMBZPVUXJUIJOBQQ app/app.js FOUSZQPJOU app/index.html app/router.js SPVUFDPOHVSBUJPO app/styles/ TUZMFTIFFUT app/templates/ IBOEMFCBST
app/components/ app/controllers/ app/helpers/ app/routes/ app/views/
ember generate <generator-name> <options...> (FOFSBUFTBTQFDJD&NCFS0CKFDU 3PVUF $POUSPMMFS .PEFM
ember serve #VJMEZPVSBQQ 3VOBMPDBMTFSWFS FYQSFTT 3VOBMJWFSFMPBE
ember test 3VOBUFTU 2VOJU
ember build #VJMEZPVSBQQ
"TTFU$PNQJMBUJPO app/styles/app.{css,less,sass} assets/<app-name>.css app/**/*.js assets/<app-name>.js app.import(‘*.css’) assets/vendor.css app.import(‘*.js’) assets/vendor.js public/assets/*
assets/*
DPNNBOETBSF7&3:6TFGVM #VU ember
5IFSFBTPOXIZ*VTF&NCFS$-* JT
.PEVMFT 3FTPMWFS /BNJOH$POWFOUJPO
&4NPEVMFTZOUBY &4.PEVMF5SBOTQJMFS
3FTPMWFS/BNJOH$POWFOUJPO
8IFO ZPVXBOUUPDSFBUFBDPOUSPMMFSGPS *OEFYQBHFPG$PNNFOUTGPSB1PTU
&NCFSKTXBZ var PostCommentsIndexController = App.Ember.ArrayController.extend({ model: function () {}; });
&NCFS$-*XBZ import Ember from "ember"; ! export default Ember.ArrayController.extend({ model:
function () {}; }); "OE
4BWFBT app/controllers/post/comments/index.js
/BNJOH$POWFOUJPOTGPS'JMFOBNF
NBLFTJUFBTZ ember generate ember generate controller post/comments/index create app/controllers/post/comments/index.js create
tests/unit/controllers/post/comments/index-test.js
Ԩ "WPJEHMPCBMWBSJBCMFT Ԩ "WPJEUPPMPOHWBSJBCMFTˏOBNF Ԩ &BTZUP3FGBDUPS Ԩ ,FFQTUSVDUVSF$MFBO
JT .03& UIBO KVTUB$-* &NCFS$-*
IUUQTHJUIVCDPNTUFGBOQFOOFSFNCFSDMJ “Although potentially exciting, this is still really a WIP,
use at your own risk.” 8"3/*/(