Giter Site home page Giter Site logo

shotaromatsuya / mygadgeticism Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 350 KB

GASスクリプト開発用repo

JavaScript 30.33% Python 10.85% Dockerfile 0.53% TypeScript 58.29%
clasp esbuild gas typescript musixmatch-api slack-api spotify-api strava-api withings

mygadgeticism's Introduction

MyGadgeticism

プロジェクト作成

mkdir <pj_name>
cd <pj_name>
npm init
npm install -D typescript @google/clasp @types/google-apps-script esbuild esbuild-gas-plugin
# typescriptを使う場合(optional)
npx tsc --init

clasp との接続

# ログイン(事前にAPI認証すませること)
npx clasp login

# プロジェクト作成
npx clasp create --title <タイトル>

# dist/とsrc/index.tsとbuild.jsを作って開発

package.json に scripts 追加

{
  // ...
  "scripts": {
    "build": "node build.js"
  }
  // ...
}
npm run build

デプロイ

# 予めbuild.jsを作成しdist直下にindex.jsをbuiodする
# .clasp.jsonのrootDirを./distに書き換え,distフォルダにappsscript.jsonを移動
npx clasp push
npx clasp deploy

既存プロジェクトの取り込み

clasp clone [project id]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.