0.0.5 • Published 1 year ago

docubook v0.0.5

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
1 year ago

aka.js - Quickly generate static sites

Feature

#EC63AA ...

Ⅰ.Development and debug

开发中调试命令

# complile project (run tsc -w)
pnpm dev

# then debug aka-cli (not necessary)
aka dev docs 

打包 aka.js

pnpm build

ESLint

# check code
pnpm lint
# check code and fix
pnpm lint:fix

测试

# 单元测试
pnpm test:unit
# or watch it 
pnpm test:watch
# or with vitest UI
pnpm test:ui

# e2e
# 1.prepare env
pnpm prepare:e2e
# 2.then test it
pnpm test:e2e

Ⅱ.如何使用 aka.js

Regist all commands here: src/node/cli.ts

在docs目录下编辑你的项目,并开启调试(支持hmr):

aka dev docs 
# then visit http://127.0.0.1:5173/

打包你的成果

# build ssr
aka build docs

# then start serve to preview
cd docs/build && serve . 
# or "pnpm preview"

License

aka.js is open source software licensed as GPL.