Skip to content

Commit

Permalink
feat: 主流程加载机制重构
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 24, 2023
1 parent a74a9d8 commit 113bd28
Show file tree
Hide file tree
Showing 19 changed files with 802 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ lerna-debug.log*
node_modules
dist
dist-ssr
dist-cjs

*.local

# Editor directories and files
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
- 完全模仿知乎风格
- 整合热门挂件以及其他小工具,提供统一的入口
- 天生支持插件系统
- 同时搞定主题与预览,安装了 zhi 主题相当于额外安装了一个插件系统,一个带权限的在线博客,默认私有

## TODO

- 文章预览默认带密码,custom-publish-access 字段控制,公开是public,带密码是 protected ,默认 private

## 快速上手

Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc && vite build -c vite.cjs.config.ts --outDir dist-cjs",
"build:esm": "tsc && vite build",
"preview": "vite preview",
"test": "vitest",
"coverage": "vitest run --coverage"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -19,6 +23,7 @@
"prettier": "^2.8.4",
"sass": "^1.58.3",
"typescript": "^4.9.3",
"vite": "^4.1.0"
"vite": "^4.1.0",
"vitest": "^0.28.5"
}
}
Loading

0 comments on commit 113bd28

Please sign in to comment.