-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdeno.jsonc
More file actions
144 lines (144 loc) · 4.71 KB
/
deno.jsonc
File metadata and controls
144 lines (144 loc) · 4.71 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
138
139
140
141
142
143
144
{
// Notes:
// - The tasks should be run inside a Docker container
// - As of now, Deno does not support MDX https://github.com/dprint/dprint-plugin-markdown/issues/93
// - Tasks like `astro` uses `deno run` bare specifiers
// - `DENO_COMPAT=1` is required otherwise astro build fails
// - https://github.com/withastro/starlight/issues/2930
// - `--allowed-hosts=ci,dev` allows a container to connect to another container running the preview
// - https://github.com/withastro/astro/issues/13060
// @todo:
// - Add `astro check` to the task `check`
// - May want to upgrade with command like `npx @astrojs/upgrade`
"tasks": {
"install": "deno install --quiet && deno audit --ignore-unfixable",
"outdated": "deno outdated",
"update": "deno outdated --update --latest --frozen=false",
"fmt": "deno fmt",
"check": "deno check --unstable-tsgo --no-remote --doc && deno lint && deno fmt --check",
"toc": "deno run --cached-only -P=toc --no-prompt doctoc README.md --notitle",
"astro": "DENO_COMPAT=1 deno run --cached-only -P=astro --no-prompt astro $ASTRO_CMD",
"dev": "ASTRO_CMD='dev --host 0.0.0.0' deno task astro",
"build": "rm -fr dist && ASTRO_CMD='build' deno task astro",
"build:debug": {
"description": "deno task build:debug >& debug.log",
"command": "DEBUG=\"astro:*,vite:*\" ASTRO_CMD='build --verbose >& debug.log' deno task astro"
},
"preview": "ASTRO_CMD='preview --host=0.0.0.0 --allowed-hosts=ci,dev' deno task astro",
"deploy": "deno run -P=wrangler wrangler pages deploy dist --project-name=\"$ENV_CLOUDFLARE_PROJECT_NAME\" --branch=\"$ENV_CLOUDFLARE_BRANCH_NAME\" --commit-message=\"Deploy\"",
"deploy:list": "deno run -P=wrangler wrangler pages project list",
"deploy:create": "deno run -P=wrangler wrangler pages project create \"$ENV_CLOUDFLARE_PROJECT_NAME\" --production-branch=\"$ENV_CLOUDFLARE_BRANCH_NAME\"",
"deploy:delete": "deno run -P=wrangler wrangler pages project delete \"$ENV_CLOUDFLARE_PROJECT_NAME\""
},
"permissions": {
"astro": {
"env": true,
"read": {
"allow": [
"/lerna.json",
"/opt/app",
"/opt/lerna.json",
"/opt/package.json",
"/opt/pnpm-workspace.yaml",
"/package.json",
"/pnpm-workspace.yaml",
"/proc",
"/run"
],
"ignore": [
"/"
// For some reason, ignoring .env* files prevents the last updated date to be displayed.
// "/opt/app/.env*"
]
},
"write": [
"/opt/app/.astro",
"/opt/app/dist",
"/opt/app/node_modules/.astro",
"/opt/app/node_modules/.vite"
],
"sys": true,
// Paths require update whenever rollup and sharp change version, as well as when running on different architecture (arm, x86)
"ffi": [
"/opt/app/node_modules/.deno/@rollup+rollup-linux-x64-gnu@4.57.1/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node",
"/opt/app/node_modules/.deno/@rollup+rollup-linux-arm64-gnu@4.57.1/node_modules/@rollup/rollup-linux-arm64-gnu/rollup.linux-arm64-gnu.node",
"/opt/app/node_modules/.deno/@img+sharp-linuxmusl-arm64@0.34.5/node_modules/@img/sharp-linuxmusl-arm64/lib/sharp-linuxmusl-arm64.node",
"/opt/app/node_modules/.deno/@img+sharp-linux-arm64@0.34.5/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node"
],
"net": [
"localhost",
"0.0.0.0:4321",
"127.0.0.1:4321"
],
"run": true
},
"wrangler": {
"env": true,
"run": [
"/usr/bin/deno"
]
},
"toc": {
"read": [
"README.md"
],
"write": [
"README.md"
],
"env": true
}
},
"compilerOptions": {
"erasableSyntaxOnly": true
},
"exclude": [
"dist/",
".astro/",
"docs/",
"demo/",
"misc/",
"diagrams/"
],
"lint": {
"rules": {
"include": [
"camelcase",
"default-param-last",
"eqeqeq",
"explicit-function-return-type",
"explicit-module-boundary-types",
"no-await-in-loop",
"no-boolean-literal-for-arguments"
]
}
},
"fmt": {
"exclude": [
"src/assets/diagrams/*.svg"
]
},
"vendor": true,
"unstable": [
"fmt-component"
],
"lock": {
"frozen": true
},
"imports": {
"@astrojs/starlight": "npm:@astrojs/starlight@0.37.6",
"astro": "npm:astro@5.17.3",
"doctoc": "npm:doctoc@^2.3.0",
"sharp": "npm:sharp@0.34.5",
"wrangler": "npm:wrangler@^4.67.0"
},
"allowScripts": {
"allow": [
"npm:sharp@0.34.5"
],
"deny": [
"npm:esbuild@0.27.0",
"npm:sharp@0.33.5",
"npm:workerd@1.20251210.0"
]
}
}