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
86 lines (86 loc) · 2.06 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 2.06 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"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": "biome check --apply .; 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 <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@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"
}