LoginSignup
0
0

More than 5 years have passed since last update.

Typescriptのお勉強2

Last updated at Posted at 2018-10-03

oclifを使ってコマンドラインのツールを作った

IDEはinttelij

会社のlambdaのコードもtypescriptにしたくなった

ググった
上位互換なので、拡張子を変えれば動く
intellijでtypescriptについての追加記述のおすすめはしてくれるっぽい

gmail add-onのclaspがtypescript対応しているとのこと
これを試してみるのもいいかもな

Google Apps ScriptsでTypescriptが超簡単に使えるようになった! - アクトインディ開発者ブログ
https://tech.actindi.net/2018/09/10/083314

gmail-add-ons-samples/github at master · gsuitedevs/gmail-add-ons-samples
https://github.com/gsuitedevs/gmail-add-ons-samples/tree/master/github

gmail-add-ons-samples/meeting-assistant at master · gsuitedevs/gmail-add-ons-samples
https://github.com/gsuitedevs/gmail-add-ons-samples/tree/master/meeting-assistant

claspとTypeScriptの型定義で楽をする2018年のGoogle Apps Script開発 - mottox2 blog
https://mottox2.com/posts/160/

claspを使ってみる(app scriptも調べる)

導入チュートリアル的に活用した

clasp が Typescript をサポートした! - Qiita
https://qiita.com/HeRo/items/f2ce057c6b1456e896ad

インストールの際にデプロイのusersettingのapiを有効化したりとかした(注記に記載あるな。)
tsconfigとかtslintもちゃんとは理解できてないなあ。。

公式

clasp/README.md at master · google/clasp
https://github.com/google/clasp/blob/master/README.md#clone

読まずに`logs`を実行してみて、project-id-xxxxxを見つけるまでちょっと戸惑った
`push --watch`することを考えると`.claspignore`で有効ファイルをホワイトリストした方がいいかもな

マニフェスト

Google Apps Scriptに追加されたマニフェストについて - Qiita
https://qiita.com/tanaike/items/b3538e7550555ebb51f5

マニフェストもいろいろできるのね

Manifests  |  Apps Script  |  Google Developers
https://developers.google.com/apps-script/concepts/manifests

exceptionLoggingでログの例外場所とか変更できるのね。今はNoneかデフォルトのスタックドライバーしかない。

GASライブラリによるマニフェストの活用について - Qiita
https://qiita.com/tanaike/items/6488f755f742c9031e73

jsDoc

上位互換性はあるけど本来の書き方は違いがあるのね

JavaScript IntelliSense の JSDoc コメントを作成する
https://msdn.microsoft.com/ja-jp/library/mt162307.aspx

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0