forked from googleworkspace/apps-script-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
58 lines (58 loc) · 1.79 KB
/
package.json
File metadata and controls
58 lines (58 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "example",
"version": "0.1.0",
"description": "An example integration of WASM with Rust into Apps Script",
"scripts": {
"build": "wireit",
"build:rust": "wireit",
"build:wasm": "wireit",
"clean": "rm -rf dist pkg target",
"deploy": "wireit",
"format": "cargo fmt",
"start": "wireit"
},
"wireit": {
"build": {
"command": "node build.js",
"dependencies": ["build:wasm"],
"files": ["src/*.js", "src/*.json", "*.js", "package.json"],
"output": ["dist"]
},
"build:rust": {
"command": "cargo build --release --target wasm32-unknown-unknown",
"output": ["./target/wasm32-unknown-unknown/release/example.wasm"],
"files": ["Cargo.lock", "Cargo.toml", "src/**/*.rs", "package.json"]
},
"build:wasm": {
"command": "wasm-bindgen --out-dir src/pkg --target bundler ./target/wasm32-unknown-unknown/release/example.wasm && wasm-opt src/pkg/example_bg.wasm -Oz -o src/pkg/example_bg.wasm",
"dependencies": ["build:rust"],
"files": [
"./target/wasm32-unknown-unknown/release/example_bg.wasm",
"package.json"
],
"output": ["src/pkg"]
},
"start": {
"command": "node dist/index.js",
"dependencies": ["build"]
},
"deploy": {
"command": "clasp push -f",
"dependencies": ["build"],
"files": [".clasp.json", ".claspignore"]
}
},
"author": "Justin Poehnelt <justin.poehnelt@gmail.com>",
"license": "Apache-2.0",
"devDependencies": {
"@google/clasp": "^2.4.2",
"esbuild": "^0.20.1",
"esbuild-plugin-wasm": "github:Tschrock/esbuild-plugin-wasm#04ce98be15b9471980c150eb142d51b20a7dd8bd",
"vitest": "^1.3.1",
"wireit": "^0.14.4"
},
"dependencies": {
"fastestsmallesttextencoderdecoder": "^1.0.22"
},
"type": "module"
}