Skip to content

Commit

Permalink
feat: add site
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jul 2, 2022
1 parent 1b04e31 commit 1d5d116
Show file tree
Hide file tree
Showing 59 changed files with 7,224 additions and 49 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!site/.vitepress
dist
node_modules
.output
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
dist/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ English | <a href='./README.zh-CN.md'>简体中文</a>

## 📖 Introduction

I like `Vue.js` 💗. It's so Awesome 🚀. It helps me finish my work well and build applications.
I like `Vue.js` ♥️. It's so Awesome 🚀. It helps me finish my work well and build applications.

I was looking for a project for everyone to learn `Vue.js` together, and that's why this project was born. I believe we can grow together here, and hope it helps you.

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Vue.js 挑战合集

## 📖 介绍

我喜欢`Vue.js`💗 。它太棒了 🚀 。它帮助我很好地完成我的工作和构建应用程序。
我喜欢`Vue.js` ♥️ 。它太棒了 🚀 。它帮助我很好地完成我的工作和构建应用程序。

我过去一直在寻找一个可以让每个人一起学习`Vue.js`的项目,这就是这个项目诞生的原因。我相信我们可以在这里共同成长,也希望它能对你有所帮助。

Expand Down
12 changes: 12 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build.environment]
NPM_FLAGS = "--version"
NODE_VERSION = "16"

[build]
publish = "site/.vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run site:build"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
"author": "",
"main": "index.js",
"scripts": {
"build": "tsx ./scripts/build.ts"
"build": "tsx ./scripts/build.ts",
"site:dev": "pnpm run -C site update && pnpm run -C site dev",
"site:build": "pnpm run -C site build",
"site:serve": "pnpm run -C site serve",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx,.json --max-warnings 0",
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx,.json"
},
"bugs": {
"url": "https://github.com/webfansplz/vuejs-challenges/issues"
Expand Down
Loading

0 comments on commit 1d5d116

Please sign in to comment.