0.9.0 • Published 4 months ago

esbuild-gas-plugin v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

esbuild-gas-plugin

npm version test

esbuild plugin for Google Apps Script.

This is inspired by gas-webpack-plugin.

Install

npm install -D esbuild-gas-plugin
// or
yarn add -D esbuild-gas-plugin
// or
pnpm add -D esbuild-gas-plugin

Usage

Add this to Your build script file, and paste dist/bundle.js to script editor.

A simple example can be found in here.

Node

// build.js
const { GasPlugin } = require('esbuild-gas-plugin');

require('esbuild').build({
  entryPoints: ['src/index.ts'],
  bundle: true,
  outfile: 'dist/bundle.js',
  plugins: [GasPlugin]
}).catch((e) => {
  console.error(e)
  process.exit(1)
})

and

node build.js

Deno

// build.ts
import { build, stop } from 'https://deno.land/x/esbuild@v0.12.15/mod.js'
import { GasPlugin } from 'npm:esbuild-gas-plugin@0.7.0'
import httpFetch from 'https://deno.land/x/esbuild_plugin_http_fetch@v1.0.2/index.js'

await build({
  entryPoints: ['src/index.ts'],
  bundle: true,
  outfile: 'dist/bundle.js',
  plugins: [httpFetch, GasPlugin ]
})
stop()

and

deno run --allow-read --allow-env --allow-run --allow-write build.ts
# or
deno run -A build.ts
0.9.0

4 months ago

0.8.0

2 years ago

0.7.0

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago