Skip to content

Commit

Permalink
Merge pull request #27 from Cactus-proj/fix-npm
Browse files Browse the repository at this point in the history
site: 修复缺失的依赖
  • Loading branch information
inkydragon authored Oct 5, 2024
2 parents 2bdaaac + 8316bbe commit a6ca974
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install and Build
run: |
yarn install
yarn run build
npm install
npm run build
- name: Deploy
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/main'
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,17 @@

本项目基于 VuePress 进行开发,以提供比 Github Mardown 更佳的阅读体验

依赖于 [`node.js`][nodejs][`yarn`][yarn][`vuepress`][vuepress] 等环境
依赖于 [`node.js`][nodejs][`vuepress`][vuepress] 等环境

[nodejs]: https://nodejs.org/zh-cn/
[yarn]: https://yarnpkg.com/
[vuepress]: https://v2.vuepress.vuejs.org/zh/


```sh
git clone https://github.com/Cactus-proj/A-Philosophy-of-Software-Design-zh.git
cd A-Philosophy-of-Software-Design-zh/
yarn install # 安装 VuePress@next
yarn dev # 编译并打开网页预览
npm install # 安装 VuePress@next
npm run dev # 编译并打开网页预览
```


Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"devDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.11",
"@vuepress/theme-default": "^2.0.0-rc.30",
"sass-embedded": "^1.79.4",
"vuepress": "^2.0.0-rc.11"
}
}

0 comments on commit a6ca974

Please sign in to comment.