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
260
How to publish Sakura icons-set on Cacoo
esukei
1
1.9k
Tries for creating a UXD culture
esukei
1
1.7k
Creating a UI Design culture
esukei
2
2.3k
Other Decks in Programming
See All in Programming
ErdMap: Thinking about a map for Rails applications
makicamel
1
630
20241217 競争力強化とビジネス価値創出への挑戦:モノタロウのシステムモダナイズ、開発組織の進化と今後の展望
monotaro
PRO
0
280
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
420
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
3
590
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
1.2k
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
2025.01.17_Sansan × DMM.swift
riofujimon
2
550
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
400
Fibonacci Function Gallery - Part 2
philipschwarz
PRO
0
210
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.4k
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Writing Fast Ruby
sferik
628
61k
Producing Creativity
orderedlist
PRO
343
39k
A Philosophy of Restraint
colly
203
16k
What's in a price? How to price your products and services
michaelherold
244
12k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Being A Developer After 40
akosma
89
590k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Unsuck your backbone
ammeep
669
57k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
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/*/(