feat: presite

This commit is contained in:
Anthony Fu 2020-12-02 19:56:10 +08:00
parent d6736284c4
commit c76cad5caa
5 changed files with 886 additions and 43 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules
.DS_Store
dist
*.local
.presite

View File

@ -34,6 +34,8 @@
- 🔥 Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227)
- 🖨 Server side generation via [presite](https://github.com/egoist/presite)
- 🦾 TypeScript, of course
- ☁️ Deploy on Netlify, zero-config

View File

@ -2,7 +2,7 @@
NPM_FLAGS = "--prefix=/dev/null"
[build]
publish = "dist"
publish = ".presite"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"
[[redirects]]

View File

@ -2,11 +2,11 @@
"private": true,
"scripts": {
"dev": "vite --port 3333 --open",
"build": "cross-env NODE_ENV=production vite build"
"build": "cross-env NODE_ENV=production vite build && presite ./dist"
},
"dependencies": {
"@iconify/iconify": "^2.0.0-rc.2",
"@vueuse/core": "^4.0.0-rc.4",
"@vueuse/core": "^4.0.0-rc.5",
"nprogress": "^0.2.0",
"vue": "^3.0.3",
"vue-i18n": "9.0.0-beta.8",
@ -14,21 +14,22 @@
},
"devDependencies": {
"@antfu/eslint-config-vue": "^0.4.3",
"@iconify/json": "^1.1.266",
"@iconify/json": "^1.1.267",
"@purge-icons/generated": "^0.4.1",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@vue/compiler-sfc": "^3.0.3",
"@vuedx/typescript-plugin-vue": "^0.2.3",
"autoprefixer": "^10.0.4",
"cross-env": "^7.0.2",
"cross-env": "^7.0.3",
"eslint": "^7.14.0",
"postcss-nested": "^5.0.1",
"presite": "^2.0.1",
"tailwindcss": "^2.0.1",
"typescript": "^4.1.2",
"vite": "^1.0.0-rc.13",
"vite-plugin-components": "^0.5.0",
"vite-plugin-md": "^0.1.2",
"vite-plugin-md": "^0.1.3",
"vite-plugin-purge-icons": "^0.4.5",
"vite-plugin-pwa": "^0.1.7",
"vite-plugin-voie": "npm:@knightly/vite-plugin-voie@pr11",

File diff suppressed because it is too large Load Diff