From 8e3d0b81d28c341733e23ee0d6084593a95e69b1 Mon Sep 17 00:00:00 2001 From: Phil Cockfield Date: Wed, 13 Nov 2024 20:16:24 +1300 Subject: [PATCH] bump --- code/sys.driver/driver-vitepress/deno.json | 2 +- .../src/-tmpl/tmpl.script.main.ts | 9 ++++++--- code/sys.driver/driver-vitepress/src/mod.ts | 15 ++++++++++++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/code/sys.driver/driver-vitepress/deno.json b/code/sys.driver/driver-vitepress/deno.json index 43399f09e..96f5c1c1c 100644 --- a/code/sys.driver/driver-vitepress/deno.json +++ b/code/sys.driver/driver-vitepress/deno.json @@ -1,6 +1,6 @@ { "name": "@sys/driver-vitepress", - "version": "0.0.9", + "version": "0.0.10", "license": "MIT", "tasks": { "lint": "deno lint", diff --git a/code/sys.driver/driver-vitepress/src/-tmpl/tmpl.script.main.ts b/code/sys.driver/driver-vitepress/src/-tmpl/tmpl.script.main.ts index 0cf385890..4c2a35540 100644 --- a/code/sys.driver/driver-vitepress/src/-tmpl/tmpl.script.main.ts +++ b/code/sys.driver/driver-vitepress/src/-tmpl/tmpl.script.main.ts @@ -1,7 +1,10 @@ +import { pkg } from '../pkg.ts'; +import { pkg as pkgStdS } from '@sys/std-s'; + export const main = ` -import { VitePress } from '@sys/driver-vitepress'; -import { c, Args, HttpServer, Pkg } from '@sys/std-s'; -import { pkg } from '../src/pkg.ts'; +import { VitePress } from 'jsr@sys/${pkg.name}@${pkg.version}'; +import { c, Args, HttpServer, Pkg } from '@sys/${pkgStdS.name}@${pkgStdS.version}'; +import { pkg } from './pkg.ts'; type C = 'dev' | 'build' | 'serve'; type T = { cmd: C }; diff --git a/code/sys.driver/driver-vitepress/src/mod.ts b/code/sys.driver/driver-vitepress/src/mod.ts index c0fd44ab9..2218d158f 100644 --- a/code/sys.driver/driver-vitepress/src/mod.ts +++ b/code/sys.driver/driver-vitepress/src/mod.ts @@ -27,11 +27,14 @@ * ``` * * @example - * Once the project is initialized, use the three main commands via the `deno task` + * Once the project is initialized, use the three main commands `dev`, `build` + * and `serve` via the `deno task`. * - * To run the HMR dev server: + * To run the HMR (hot-module-reload) development server while authoring: * * ```bash + * deno task dev + * * Terminal Output: * * vitepress v @@ -40,7 +43,13 @@ * ➜ Network: use --host to expose * ``` * - * Then move over to Obsidian (or other markdown editor of choice) to author your content. + * Open the web-browser at http://localhost:1234/ (or hit the `o` key to open your browser + * at that address). + * + * Then move over to Obsidian (or your other markdown editor of choice) to author your content + * seeing the resulting output live updating in your browser. + * + * --- * * Once ready to release, `build` the content into a Pkg bundle to deploy to the cloud. * You can test it locally using the local `serve` command: