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
850
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
280
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.4k
Other Decks in Programming
See All in Programming
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
160
Jakarta EE Meets AI
ivargrimstad
0
780
Serving TUIs over SSH with Go
caarlos0
0
570
開発者フレンドリーで顧客も満足?Platformの秘密
algoartis
0
160
On-the-fly Suggestions of Rewriting Method Deprecations
ohbarye
1
4.8k
大LLM時代にこの先生きのこるには-ITエンジニア編
fumiyakume
7
3.3k
The Evolution of the CRuby Build System
kateinoigakukun
1
760
個人開発の学生アプリが企業譲渡されるまで
akidon0000
2
1.1k
Improve my own Ruby
sisshiki1969
0
100
ウォンテッドリーの「ココロオドル」モバイル開発 / Wantedly's "kokoro odoru" mobile development
kubode
1
260
M5UnitUnified 最新動向 2025/05
gob
0
120
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
160
Featured
See All Featured
Statistics for Hackers
jakevdp
798
220k
Optimising Largest Contentful Paint
csswizardry
37
3.2k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Git: the NoSQL Database
bkeepers
PRO
430
65k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.4k
It's Worth the Effort
3n
184
28k
How STYLIGHT went responsive
nonsquared
100
5.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
23
2.7k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
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/*/(