Pagic模板

首页

1.Install deno§

Deno ships as a single executable with no dependencies. You can install it using the installers below, or download a release binary from the releases page.

Shell (Mac, Linux):

curl -fsSL https://deno.land/x/install/install.sh | sh

PowerShell (Windows):

iwr https://deno.land/x/install/install.ps1 -useb | iex

Homebrew (Mac):

brew install deno

Chocolatey (Windows):

choco install deno

Scoop (Windows):

scoop install deno

Build and install from source using Cargo

cargo install deno

See deno_install for more installation options.

2.Install pagic§

deno install --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic https://deno.land/x/pagic/mod.ts

3.Create pagic.config.ts and README.md§

mkdir site && cd site && echo "export default {};" > pagic.config.ts && echo "# Hello world" > README.md

4.Run pagic§

pagic build --watch --serve

自定义端口:

--port 8001