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

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules node_modules
.DS_Store .DS_Store
dist dist
*.local *.local
.presite

View File

@ -34,6 +34,8 @@
- 🔥 Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227) - 🔥 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 - 🦾 TypeScript, of course
- ☁️ Deploy on Netlify, zero-config - ☁️ Deploy on Netlify, zero-config

View File

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

View File

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

File diff suppressed because it is too large Load Diff