Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Dart Sass であれを作った
Search
Yusuke Yagyu
July 28, 2020
Programming
96
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dart Sass であれを作った
2020.7.28 FukuokaJS #11 リモート開催
Yusuke Yagyu
July 28, 2020
More Decks by Yusuke Yagyu
See All by Yusuke Yagyu
ペパボのデザインシステムと、モバイル領域における取り組み
gyugyu
0
1.3k
Android CI: 2016 edition
gyugyu
3
2.6k
少し変わった論理削除
gyugyu
3
18k
Other Decks in Programming
See All in Programming
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
720
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
320
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
120
mrbgem 三角測量 開発
ogom
0
210
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
16k
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
340
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
480
AIに “答え“を書かせるのを やめてみた
___akari11
0
110
R8 の設定見直しでアプリサイズ削減
andpad
0
190
Simple Storage Service(S3) is not simple
iwatsukayura
0
220
最近”作らせてる” ローカルAIアプリの話
akit37
0
220
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
800
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
900
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
310
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
790
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Transcript
Dart Sass であれを作った 2020.7.28 FukuokaJS #11 リモート開催 柳生 祐介 (gyugyu)
Dart Sass であれを作った 2 describe(me); const { name, company, department,
job } = me; console.log(name); // => 柳生 祐介 (gyugyu) console.log(company); // => GMO ペパボ株式会社 console.log(department); // => デザイン部 console.log(job); // => エンジニア
Dart Sass であれを作った 3 最近作ったもの • https://github.com/gyugyu/sassunit • https://github.com/gyugyu/array-map-sass •
https://github.com/gyugyu/camelize-sass
Dart Sass であれを作った 4 Sass new module system (2019.10-) •
Dart Sass のみ • `@use` `@forward` • 比較的まともなモジュールシステム ◦ 開放・閉鎖原則に比較的忠実
Dart Sass であれを作った 5 Dart Sass Dart を JS にトランスパイルしてそのまま使ってる
Dart Sass であれを作った 6 Sass JavaScript API https://sass-lang.com/documentation/js-api
Dart Sass であれを作った 7 Function Plugin • https://sass-lang.com/documentation/js-api#f unctions •
要は未定義の Sass function call に対して JS の世 界で実装できる ◦ 同期だけではなく非同期でもできる(!)
つまり JS でサポートすれば Sass でウェブアプリ作れる? 8
Dart Sass であれを作った 9 作った • https://github.com/gyugyu/sass-webapp • Express から全リクエストを
Sass にプロクシ • Request/Response アダプタの役割を果たす Sass function を定義
Dart Sass であれを作った 10 非同期 API があるので • JS 側で
async/await 必要な処理もできる • なので Redis ( DB なんでもいいけど)に値保存でき る • アクセスカウンターができる!
デモ 11
何かの役に立つんですか? 12
さあ…? 13 多分何かに使えるはず