deno task bundle fixes
parent
66461c72e7
commit
9f6063998f
|
@ -46,6 +46,9 @@ ENV SB_FOLDER /space
|
||||||
|
|
||||||
# Copy the bundled version of silverbullet into the container
|
# Copy the bundled version of silverbullet into the container
|
||||||
ADD ./dist/silverbullet.js /silverbullet.js
|
ADD ./dist/silverbullet.js /silverbullet.js
|
||||||
|
# Precache any remaining dependencies
|
||||||
|
RUN deno cache /silverbullet.js
|
||||||
|
|
||||||
# As well as the docker-entrypoint.sh script
|
# As well as the docker-entrypoint.sh script
|
||||||
ADD ./docker-entrypoint.sh /docker-entrypoint.sh
|
ADD ./docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@ await esbuild.build({
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
logLevel: "error",
|
logLevel: "error",
|
||||||
minify: true,
|
minify: true,
|
||||||
|
external: [
|
||||||
|
"https://deno.land/std@*",
|
||||||
|
],
|
||||||
plugins: denoPlugins({
|
plugins: denoPlugins({
|
||||||
configPath: new URL("./deno.json", import.meta.url).pathname,
|
configPath: new URL("./deno.json", import.meta.url).pathname,
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -137,6 +137,7 @@
|
||||||
"@std/io/read-all": "jsr:@std/io@^0.224.3/read-all",
|
"@std/io/read-all": "jsr:@std/io@^0.224.3/read-all",
|
||||||
"@std/path": "jsr:@std/path@^1.0.2",
|
"@std/path": "jsr:@std/path@^1.0.2",
|
||||||
"@std/testing": "jsr:@std/testing@^0.225.3",
|
"@std/testing": "jsr:@std/testing@^0.225.3",
|
||||||
|
"@std/yaml": "jsr:@std/yaml@^1.0.5",
|
||||||
"cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.4/",
|
"cliffy/": "https://deno.land/x/cliffy@v1.0.0-rc.4/",
|
||||||
"crelt": "https://esm.sh/crelt@1.0.6",
|
"crelt": "https://esm.sh/crelt@1.0.6",
|
||||||
"denosass": "https://deno.land/x/denosass@1.0.6/mod.ts",
|
"denosass": "https://deno.land/x/denosass@1.0.6/mod.ts",
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
// Remember to keep in sync with deno.json !
|
// Remember to keep in sync with deno.json !
|
||||||
// We have to use different deps for client and server as esbuild doesn't
|
// We have to use different deps for client and server as esbuild doesn't
|
||||||
// support wildcard exporting. See https://github.com/evanw/esbuild/issues/1420
|
// support wildcard exporting. See https://github.com/evanw/esbuild/issues/1420
|
||||||
export { globToRegExp } from "https://deno.land/std@0.165.0/path/glob.ts";
|
export { globToRegExp } from "@std/path";
|
||||||
export { walk } from "https://deno.land/std@0.165.0/fs/mod.ts";
|
export { walk } from "@std/fs";
|
||||||
export * as path from "https://deno.land/std@0.165.0/path/mod.ts";
|
export * as path from "@std/path";
|
||||||
export { mime } from "https://deno.land/x/mimetypes@v1.0.0/mod.ts";
|
export { mime } from "mimetypes";
|
||||||
export * as YAML from "https://deno.land/std@0.184.0/yaml/mod.ts";
|
export * as YAML from "@std/yaml";
|
||||||
export { Cron } from "https://deno.land/x/croner@4.4.1/src/croner.js";
|
export { Cron } from "https://deno.land/x/croner@4.4.1/src/croner.js";
|
||||||
|
|
Loading…
Reference in New Issue