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
fly & ava
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Pine Mizune
December 08, 2015
Programming
3
660
fly & ava
Meguro.es #1 in Drecom の発表資料です。
http://meguroes.connpass.com/event/21510/
Pine Mizune
December 08, 2015
Tweet
Share
More Decks by Pine Mizune
See All by Pine Mizune
多言語対応と絵文字ジェネレーター / i18n of Emoji Generator
pine
0
850
C++ 製グラフィックライブラリ Skia の紹介 / Introduction to the graphics library Skia written by C++
pine
0
1.9k
asyncio + aiohttp で作るウェブサービス / How to develop a web service with asyncio and aiohttp
pine
0
680
Lerna による明示的疎結合アーキテクチャ
pine
1
660
CircleCI 2.0 x JavaScript
pine
3
560
Perl 卒業式
pine
0
360
Android Studio の気になる warnings を抑制する方法まとめ
pine
0
510
Emoji Generator meets Browser Extensions
pine
1
3k
近年の OSS 開発における CI 選択のベストプラクティス
pine
3
4.5k
Other Decks in Programming
See All in Programming
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
440
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
ThorVG Viewer In VS Code
nors
0
760
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
AI時代の認知負荷との向き合い方
optfit
0
140
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.7k
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
440
CSC307 Lecture 08
javiergs
PRO
0
660
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
600
Featured
See All Featured
KATA
mclloyd
PRO
34
15k
Docker and Python
trallard
47
3.7k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
320
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Scaling GitHub
holman
464
140k
The SEO identity crisis: Don't let AI make you average
varn
0
64
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Transcript
fly & ava Pine Mizune 8 Dec, 2015 / Meguro.es
#1
自己紹介 o ID / HN: @pine613 o 好きな言語: JavaScript /
Crystal o 仕事で書いてる: Perl / Swift / Kotlin o Mobile Factory, Inc o 最寄り: 五反田駅
目次 • fly とは ? • ava とは ? •
ava + Promise • ava + Generator • ava + Async • ava + fly
• ES6 ベースの次世代ビルドシステム • 今回は詳しく説明しません – Gotanda.js #1 の発表資料参照 fly
とは ? 作者: bucaran
• ES6/7 ベースのテストランナー • Promise, Generator, Async との相性 • Babel,
co, power-assert のビルトインサポート ava とは ? 作者: sindresorhus
ava でのテストの書き方 import test from ‘ava’ test(‘testFunc’, t => {
t.is(testFunc(result), 10) })
mocha + Callback var expect = require(‘chai’).expect; it(‘testFunc’, function (done)
{ testFunc(function (result) { expect(result).to.equal(10); done(); }); });
ava + Callback import test from ‘ava’ test.cb(‘testFunc’, t =>
{ testFunc(result => { t.is(result, 10) t.end() }) })
mocha + Promise var expect = require(‘chai’).expect; it(‘testFunc’, function (done)
{ testFunc().then(function (result) { expect(result).to.equal(10); done(); }); });
ava + Promise import test from ‘ava’ test(‘testFunc’, t =>
{ return testFunc().then(result => { t.is(result, 10) }) }) Promise をそのまま返せる!
ava + co import test from ‘ava’ test(‘testFunc’, t =>
{ return co(function *() { const result = yield testFunc() t.is(result, 10) }) })
ava + Generator import test from ‘ava’ test(‘testFunc’, function *()
{ const result = yield testFunc() t.is(result, 10) }) Generator をそのまま返せる!
ava + Async import test from ‘ava’ test(‘testFunc’, async t
=> { const result = await testFunc() t.is(result, 10) }) async / await 対応
ava + fly export function* test() { this.source(‘./test/**/*.js’).ava() } $
npm install fly fly-ava ava $ fly test flyfile.js
告知: Gotanda.js #2 開催決定!! ü Gotanda.js #2 〜JS新年会〜 ü 日時:
2016 年 1 月 8 日 (金) ü 会場: 株式会社ガイアックス ü 内容: LT 祭!! (5min LT x 8) Ø 申し込みは Connpass から! http://gotandajs.connpass.com/event/22162/