From 766c3e2eb45b745a23abc655f9a4b63da3b21a0b Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 25 Jan 2024 16:29:25 +0100 Subject: [PATCH] Bump cliffy version --- build_bundle.ts | 30 ++++++------------------------ build_web.ts | 10 ++++------ silverbullet.ts | 2 +- website/CHANGELOG.md | 1 + 4 files changed, 12 insertions(+), 31 deletions(-) diff --git a/build_bundle.ts b/build_bundle.ts index 886de3e..6f9969e 100644 --- a/build_bundle.ts +++ b/build_bundle.ts @@ -11,30 +11,12 @@ await esbuild.build({ bundle: true, treeShaking: true, sourcemap: false, - minify: false, - plugins: [ - // ESBuild plugin to make npm modules external - { - name: "npm-external", - 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(), - }), - ], + logLevel: "error", + minify: true, + plugins: denoPlugins({ + importMapURL: new URL("./import_map.json", import.meta.url) + .toString(), + }), }); const bundleJs = await Deno.readTextFile("dist/silverbullet.js"); // Patch output JS with import.meta.main override to avoid ESBuild CLI handling diff --git a/build_web.ts b/build_web.ts index 516958f..ef07bfa 100644 --- a/build_web.ts +++ b/build_web.ts @@ -105,12 +105,10 @@ async function buildCopyBundleAssets() { jsx: "automatic", jsxFragment: "Fragment", jsxImportSource: "https://esm.sh/preact@10.11.1", - plugins: [ - ...denoPlugins({ - importMapURL: new URL("./import_map.json", import.meta.url) - .toString(), - }), - ], + plugins: denoPlugins({ + importMapURL: new URL("./import_map.json", import.meta.url) + .toString(), + }), }); // Patch the service_worker {{CACHE_NAME}} diff --git a/silverbullet.ts b/silverbullet.ts index 35b3724..3d8ec50 100755 --- a/silverbullet.ts +++ b/silverbullet.ts @@ -1,5 +1,5 @@ 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"; diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 5d526df..3808d86 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -5,6 +5,7 @@ release. ## 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)._ * 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.