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
830
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
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
110
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
430
Nuxtベースの「WXT」でChrome拡張を作成する | Vue Fes 2024 ランチセッション
moshi1121
1
530
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
920
カスタムしながら理解するGraphQL Connection
yanagii
1
1.2k
/←このスケジュール表に立ち向かう フロントエンド開発戦略 / A front-end development strategy to tackle a single-slash schedule.
nrslib
1
590
破壊せよ!データ破壊駆動で考えるドメインモデリング / data-destroy-driven
minodriven
16
4.1k
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.3k
プロジェクト新規参入者のリードタイム短縮の観点から見る、品質の高いコードとアーキテクチャを保つメリット
d_endo
1
1k
Go言語でターミナルフレンドリーなAIコマンド、afaを作った/fukuokago20_afa
monochromegane
2
140
Server Driven Compose With Firebase
skydoves
0
400
Content Security Policy入門 セキュリティ設定と 違反レポートのはじめ方 / Introduction to Content Security Policy Getting Started with Security Configuration and Violation Reporting
uskey512
1
430
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Raft: Consensus for Rubyists
vanstee
136
6.6k
GitHub's CSS Performance
jonrohan
1030
460k
Side Projects
sachag
452
42k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
46
2.1k
Typedesign – Prime Four
hannesfritz
39
2.4k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Designing the Hi-DPI Web
ddemaree
280
34k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.8k
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/*/(