Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shotaromatsuya/mygadgeticism
GASスクリプト開発用repo
https://github.com/shotaromatsuya/mygadgeticism
clasp esbuild gas musixmatch-api slack-api spotify-api strava-api typescript withings
Last synced: about 1 month ago
JSON representation
GASスクリプト開発用repo
- Host: GitHub
- URL: https://github.com/shotaromatsuya/mygadgeticism
- Owner: ShotaroMatsuya
- Created: 2021-12-30T00:09:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:53:28.000Z (about 1 year ago)
- Last Synced: 2023-12-15T06:53:26.767Z (about 1 year ago)
- Topics: clasp, esbuild, gas, musixmatch-api, slack-api, spotify-api, strava-api, typescript, withings
- Language: TypeScript
- Homepage:
- Size: 342 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyGadgeticism
## プロジェクト作成
```bash
mkdir
cd
npm init
npm install -D typescript @google/clasp @types/google-apps-script esbuild esbuild-gas-plugin
# typescriptを使う場合(optional)
npx tsc --init
```## clasp との接続
```bash
# ログイン(事前にAPI認証すませること)
npx clasp login# プロジェクト作成
npx clasp create --title <タイトル># dist/とsrc/index.tsとbuild.jsを作って開発
```## package.json に scripts 追加
```json
{
// ...
"scripts": {
"build": "node build.js"
}
// ...
}
``````bash
npm run build
```## デプロイ
```bash
# 予めbuild.jsを作成しdist直下にindex.jsをbuiodする
# .clasp.jsonのrootDirを./distに書き換え,distフォルダにappsscript.jsonを移動
npx clasp push
npx clasp deploy
```## 既存プロジェクトの取り込み
```bash
clasp clone [project id]
```