Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
GASええやん
Search
U76NER
May 16, 2022
Programming
1
89
GASええやん
WASD Inc. LT会(仮)
2022-02-04
U76NER
May 16, 2022
Tweet
Share
More Decks by U76NER
See All by U76NER
JSのクラスの後ろ向きな話
u76ner
0
130
競プロへの誘 -いざな-
u76ner
0
930
mockdateええやん
u76ner
0
310
Other Decks in Programming
See All in Programming
認証・認可の基本を学ぼう前編
kouyuume
0
190
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
120
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
connect-python: convenient protobuf RPC for Python
anuraaga
0
400
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
5
2k
AIコーディングエージェント(NotebookLM)
kondai24
0
170
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
120
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
140
React Native New Architecture 移行実践報告
taminif
1
150
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
380
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2.2k
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Docker and Python
trallard
47
3.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Building Applications with DynamoDB
mza
96
6.8k
Statistics for Hackers
jakevdp
799
230k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Transcript
GASええやん LT会(仮) 2022/02/04 u76ner
GASとは何ぞや 2 - Google Apps Script - https://workspace.google.co.jp/intl/ja/products/apps-script/ -
Googleのサービスを自動化するスクリプト言語
GASとは何ぞや 3 - Google Apps Script - https://workspace.google.co.jp/intl/ja/products/apps-script/ -
Googleのサービスを自動化するスクリプト言語 - 早い話がGoogle版VBA - スプレッドシートの自動化マクロ組んだりとかまんまソレ
(エンジニア的な)GASの利点 4 - JavaScriptで書ける - ネット上に転がってるやつだと古い書き方のことが多い
(エンジニア的な)GASの利点 5 - JavaScriptで書ける - ネット上に転がってるやつだと古い書き方のことが多い
- けどES2015でももちろんok
(エンジニア的な)GASの利点 6 - ローカルで書けてデプロイできる(!)
(エンジニア的な)GASの利点 7 - ローカルで書けてデプロイできる(!) - TypeScriptで書ける(!!)
(エンジニア的な)GASの利点 8 - ローカルで書けてデプロイできる(!) - TypeScriptで書ける(!!) GOD
(エンジニア的な)GASの利点 9 - ローカルで書けてデプロイできる(!) - TypeScriptで書ける(!!) - 型が効いて超快適にマクロが書ける
(エンジニア的な)GASの利点 10 - ローカルで書けてデプロイできる(!) - TypeScriptで書ける(!!) - 型が効いて超快適にマクロが書ける
- Claspを使えばとても楽 - Command Line Apps Script Projects - https://github.com/google/clasp
開発環境の構築 11 - Clasp(とかTypeScriptとかTSLintとか)を入れる $ npm install -g @google/clasp
開発環境の構築 12 - GASのAPIを有効にしておく - https://script.google.com/home/usersettings
開発環境の構築 13 - ディレクトリをつくってnpm initする - @typesを入れておく $ npm
init —-y $ npm install @types/google-apps-script —-save-dev
開発環境の構築 14 - 初期化 - サービスを選ぶと、そのままGoogle Drive上にファイルを作ってくれる
開発環境の構築 15 - 書く - rootDirを指定してなければ直下におけばok 型の恩恵も受け放題
開発環境の構築 16 - デプロイ $ clasp push
開発環境の構築 17 - デプロイ これが
開発環境の構築 18 - デプロイ こうなってる、神
まとめ 19 - クッソ楽 - npm initして@typesいれてTSで書いてpushするだけ -
エンジニアじゃない人がここまでやるのは非現実的だけど、 環境が整ってるなら爆速でマクロ書けるのでいい感じ
20