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