-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeno.json
More file actions
137 lines (137 loc) · 5.06 KB
/
Copy pathdeno.json
File metadata and controls
137 lines (137 loc) · 5.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "@unyt/datex",
"version": "0.0.15",
"license": "MIT",
"exports": {
".": "./src/mod.ts",
"./default": "./src/default.ts",
"./interfaces/websocket-server-base": "./src/network/interfaces/websocket-server-base.ts",
"./interfaces/websocket-server-deno": "./src/network/interfaces/websocket-server-deno.ts"
},
"compilerOptions": {
"noImplicitOverride": true,
"lib": [
"deno.window",
"dom"
]
},
"tasks": {
"build": {
"description": "Build the default debug WASM artifact.",
"dependencies": ["build:debug"]
},
"build:debug": {
"description": "Build the WASM package with the debug profile.",
"command": "deno run -A scripts/build-wasm.ts --profile debug"
},
"build:release": {
"description": "Build the WASM package with the release profile.",
"command": "deno run -A scripts/build-wasm.ts --profile release"
},
"build:debug:unsecure": {
"description": "Build debug WASM with unsigned block support enabled.",
"command": "deno run -A scripts/build-wasm.ts --profile debug --features allow_unsigned_blocks"
},
"build:debug:no-opt": {
"description": "Build debug WASM without optimization.",
"command": "deno run -A scripts/build-wasm.ts --profile debug --no-opt"
},
"types": {
"description": "Generate TypeScript declarations from the Rust type registry.",
"command": "cargo run -p rs-lib-generate -- ./src/datex-web/types"
},
"test": {
"description": "Build debug WASM without optimization, then run Deno tests.",
"dependencies": ["build:debug:no-opt"],
"command": "deno test -A --no-check"
},
"test:no-build": {
"description": "Run Deno tests without rebuilding WASM.",
"command": "deno test -A --no-check"
},
"build:npm": {
"description": "Build the npm package output.",
"command": "deno run -A scripts/build-npm.ts"
},
"build:bundle": {
"description": "Build the browser bundle.",
"command": "deno run -A scripts/build-bundle.ts"
},
"build:all:release": {
"description": "Build release WASM, npm package, and browser bundle.",
"dependencies": ["build:release"],
"command": "deno task build:npm && deno task build:bundle"
},
"browser-demo": {
"description": "Build debug WASM and npm package, then start the browser demo.",
"dependencies": ["build:debug:no-opt"],
"command": "deno task build:npm && cd datex-browser-demo && npm install && npm run dev"
},
"browser-demo:no-build": {
"description": "Build the npm package only, then start the browser demo.",
"command": "deno task build:npm && cd datex-browser-demo && npm install && npm run dev"
},
"fmt": {
"description": "Format Deno and Rust sources.",
"command": "deno fmt && cargo fmt"
},
"lint": {
"description": "Report Deno lint and Rust clippy issues without applying fixes.",
"command": "deno lint && cargo clippy --all-targets --all-features"
},
"check": {
"description": "Type-check TypeScript sources and tests.",
"command": "deno check -I ./src ./test"
},
"fix": {
"description": "Apply automatic formatting and lint fixes for Deno and Rust.",
"command": "deno fmt && cargo fmt && deno lint --fix && cargo clippy --fix --all-features --allow-dirty --allow-staged"
}
},
"fmt": {
"indentWidth": 4,
"lineWidth": 120,
"exclude": [
"./npm"
]
},
"imports": {
"@david/path": "jsr:@david/path@^0.2.0",
"@david/temp": "jsr:@david/temp@^0.1.1",
"@deno/dnt": "jsr:@deno/dnt@^0.42.3",
"@qnighy/dedent": "jsr:@qnighy/dedent@^0.1.2",
"@std/assert": "jsr:@std/assert@^1.0.19",
"@std/cli": "jsr:@std/cli@^1.0.28",
"@std/encoding": "jsr:@std/encoding@^1.0.10",
"@std/fmt": "jsr:@std/fmt@^1.0.9",
"@std/fs": "jsr:@std/fs@^1.0.23",
"@std/tar": "jsr:@std/tar@^0.1.10",
"@std/uuid": "jsr:@std/uuid@^1.1.0",
"@unyt/speck": "jsr:@unyt/speck@^0.0.10",
"datex/": "./src/"
},
"test": {
"exclude": [
"./npm",
"./datex-browser-demo"
]
},
"publish": {
"exclude": [
".github",
".gitmodules",
".rustfmt.toml",
".vscode",
"Cargo.toml",
"Cargo.lock",
".cargo",
"rust-toolchain.toml",
"scripts",
"test",
"rs-lib",
"rs-lib-generate",
"!src/datex-web/datex_web.wasm",
"!src/datex-web/datex_web.internal.js"
]
}
}