-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeno.json
More file actions
118 lines (118 loc) · 3.69 KB
/
Copy pathdeno.json
File metadata and controls
118 lines (118 loc) · 3.69 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
{
"name": "@nick/comrak",
"version": "0.48.0-rc.0",
"license": "MIT",
"author": {
"name": "Nicholas Berlette",
"email": "nick@berlette.com",
"url": "https://github.com/nberlette/comrak-wasm"
},
"exports": {
".": "./mod.ts",
"./adapters": "./src/adapters.ts",
"./cm": "./src/cm.ts",
"./commonmark": "./src/cm.ts",
"./html": "./src/html.ts",
"./nodes": "./src/nodes.ts",
"./options": "./src/options.ts",
"./parse": "./src/parse.ts",
"./wasm": "./src/_wasm.ts",
"./xml": "./src/xml.ts"
},
"lock": true,
"nodeModulesDir": "auto",
"tasks": {
"build": {
"command": "deno run -Aq --env-file=.env scripts/build.ts",
"description": "Build, optimize, and compress the WASM binary."
},
"build:exists": "deno eval \"var{exit:x,stat:s}=Deno,m=await s('./src/lib/comrak_wasm.js').then(r=>r.mtime,_=>0),l=await s('./crates/comrak-wasm/src/lib.rs').then(r=>r.mtime,_=>0);x(m&&l&&m>l?0:1)\"",
"build:ensure": {
"description": "Ensures the WASM binary is built and up-to-date.",
"command": "deno task build:exists || deno task build"
},
"test": {
"command": "deno test -A --no-check=remote --parallel --coverage=.coverage",
"description": "Run unit tests with coverage and type checking.",
"dependencies": ["build:ensure"]
},
"test:docs": {
"command": "deno test -A --no-check=remote --parallel --coverage=.coverage --doc",
"description": "Run documentation tests to ensure code examples are valid.",
"dependencies": ["build:ensure"]
},
"bench": {
"command": "deno bench -A --no-check=remote",
"description": "Run benchmarks to measure performance.",
"dependencies": ["build:ensure"]
},
"fmt": {
"command": "deno fmt",
"description": "Format the codebase using Deno's formatter."
},
"fmt:check": {
"command": "deno fmt --check",
"description": "Verify the codebase is formatted correctly."
},
"lint": {
"command": "deno lint",
"description": "Lint the codebase for potential issues.",
"dependencies": ["build:ensure"]
},
"lint:fix": {
"command": "deno lint --fix",
"description": "Lint and auto-fix issues (where possible).",
"dependencies": ["build:ensure"]
},
"lint:docs": {
"command": "deno doc --lint mod.ts src/[a-z]*.ts",
"description": "Lint the documentation comments for potential issues.",
"dependencies": ["build:ensure"]
},
"lint:all": {
"description": "Run all linting tasks (code and docs).",
"dependencies": ["lint", "lint:docs"]
},
"fix": {
"command": "deno task lint:fix",
"description": "Run all auto-fix tasks (formatting and linting).",
"dependencies": ["fmt"]
},
"check": {
"command": "deno task test",
"description": "Run all checks (formatting, linting, testing).",
"dependencies": ["fmt:check", "lint"]
},
"publish:dry": {
"command": "deno publish --dry-run --allow-dirty",
"description": "Simulate publishing to catch potential issues.",
"dependencies": ["check"]
},
"publish": {
"command": "deno publish --allow-dirty",
"description": "Publish the package to the JSR registry.",
"dependencies": ["publish:dry"]
}
},
"fmt": {
"include": ["examples", "src", "scripts", "mod.ts", "*.{ts,md,json}"],
"exclude": ["lib", "target", "node_modules", "crates"]
},
"publish": {
"include": [
"mod.ts",
"src/**/*",
"README.md",
"LICENSE"
],
"exclude": [
"**/.*",
"**/*.test.*",
"**/*.bench.*",
"target",
"scripts",
"examples"
]
},
"exclude": ["**/.*"]
}