JSPM

create-clasp

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q25315F
    • License MIT

    CLI tool for setting up GAS projects with TypeScript

    Package Exports

    • create-clasp
    • create-clasp/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-clasp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    create-clasp

    GAS (Google Apps Script) プロジェクトのセットアップを自動化するCLIツール。

    インストール

    npm install -g create-clasp
    # or
    pnpm add -g create-clasp
    # or
    yarn global add create-clasp

    前提条件

    • Node.js >= 18
    • @google/clasp がグローバルインストールされていること
    • clasp login 済み
    • Google Apps Script API 有効化済み

    使い方

    プロジェクト作成

    # インタラクティブモード
    npx create-clasp init
    
    # プロジェクト名を指定
    npx create-clasp init my-project

    ビルド

    # プロジェクトディレクトリ内で
    npx create-clasp build

    プッシュ

    # ビルド + GASへプッシュ
    npx create-clasp push

    生成されるプロジェクト構造

    my-project/
    ├── src/
    │   └── index.ts          # 初期コード
    ├── dist/                 # ビルド出力先
    ├── appsscript.json       # GAS設定
    ├── .clasp.json           # clasp設定
    ├── .claspignore          # push除外設定
    ├── tsconfig.json         # TypeScript設定
    ├── package.json          # npm scripts
    └── .gitignore            # Git除外設定

    GASプロジェクトタイプ

    • Standalone - 独立したスクリプト
    • Google Sheets - スプレッドシートにバインド
    • Google Docs - ドキュメントにバインド
    • Google Forms - フォームにバインド
    • Google Slides - スライドにバインド
    • Web App - Webアプリケーション

    ライセンス

    MIT