1
0

Bump cliffy version

This commit is contained in:
Zef Hemel 2024-01-25 16:29:25 +01:00
parent dbb87902cc
commit 766c3e2eb4
4 changed files with 12 additions and 31 deletions

View File

@ -11,30 +11,12 @@ await esbuild.build({
bundle: true, bundle: true,
treeShaking: true, treeShaking: true,
sourcemap: false, sourcemap: false,
minify: false, logLevel: "error",
plugins: [ minify: true,
// ESBuild plugin to make npm modules external plugins: denoPlugins({
{ importMapURL: new URL("./import_map.json", import.meta.url)
name: "npm-external", .toString(),
setup(build: any) { }),
build.onResolve({ filter: /^npm:/ }, (args: any) => {
return {
path: args.path,
external: true,
};
});
},
},
{
name: "json",
setup: (build) =>
build.onLoad({ filter: /\.json$/ }, () => ({ loader: "json" })),
},
...denoPlugins({
importMapURL: new URL("./import_map.json", import.meta.url)
.toString(),
}),
],
}); });
const bundleJs = await Deno.readTextFile("dist/silverbullet.js"); const bundleJs = await Deno.readTextFile("dist/silverbullet.js");
// Patch output JS with import.meta.main override to avoid ESBuild CLI handling // Patch output JS with import.meta.main override to avoid ESBuild CLI handling

View File

@ -105,12 +105,10 @@ async function buildCopyBundleAssets() {
jsx: "automatic", jsx: "automatic",
jsxFragment: "Fragment", jsxFragment: "Fragment",
jsxImportSource: "https://esm.sh/preact@10.11.1", jsxImportSource: "https://esm.sh/preact@10.11.1",
plugins: [ plugins: denoPlugins({
...denoPlugins({ importMapURL: new URL("./import_map.json", import.meta.url)
importMapURL: new URL("./import_map.json", import.meta.url) .toString(),
.toString(), }),
}),
],
}); });
// Patch the service_worker {{CACHE_NAME}} // Patch the service_worker {{CACHE_NAME}}

View File

@ -1,5 +1,5 @@
import.meta.main = false; import.meta.main = false;
import { Command } from "https://deno.land/x/cliffy@v0.25.2/command/command.ts"; import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";
import { version } from "./version.ts"; import { version } from "./version.ts";

View File

@ -5,6 +5,7 @@ release.
## Edge ## Edge
$edge $edge
_The changes below are not yet released “properly”. To them out early, check out [the docs on edge](https://community.silverbullet.md/t/living-on-the-edge-builds/27)._ _The changes below are not yet released “properly”. To them out early, check out [the docs on edge](https://community.silverbullet.md/t/living-on-the-edge-builds/27)._
* Tag pages: when you click on a #tag you will now be directed to a page that shows all pages, tasks, items and paragraphs tagged with that tag. * Tag pages: when you click on a #tag you will now be directed to a page that shows all pages, tasks, items and paragraphs tagged with that tag.