Skip to content

Commit

Permalink
feat: upgrade to [email protected] without compile
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Jul 21, 2022
1 parent 074e78e commit e478a31
Show file tree
Hide file tree
Showing 15 changed files with 460 additions and 821 deletions.
5 changes: 3 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"serve": "vite preview"
},
"dependencies": {
"valaxy": "^0.9.3",
"valaxy": "latest",
"valaxy-theme-starter": "workspace:*"
},
"devDependencies": {
"nodemon": "^2.0.19"
"nodemon": "^2.0.19",
"vite-plugin-inspect": "^0.6.0"
}
}
1 change: 1 addition & 0 deletions demo/pages/posts/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
---

::: zh-CN

[[toc]]

标题是一级标题
Expand Down
9 changes: 0 additions & 9 deletions demo/setup/main.ts

This file was deleted.

20 changes: 0 additions & 20 deletions demo/valaxy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,6 @@ export default defineConfig<ThemeConfig>({
},
],

markdownIt: {
blocks: {
tip: {
icon: 'i-carbon-thumbs-up',
text: 'ヒント',
},
warning: {
icon: 'i-carbon-warning-alt',
text: '注意',
},
danger: {
icon: 'i-carbon-warning',
text: '警告',
},
info: {
text: 'información',
},
},
},

comment: {
enable: true,
waline: {
Expand Down
13 changes: 4 additions & 9 deletions demo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { defineConfig } from 'vite'
// import { VitePWA } from 'vite-plugin-pwa'

const safelist = [
'i-ri-home-line',
]
import Inspect from 'vite-plugin-inspect'

export default defineConfig({
valaxy: {
unocss: {
safelist,
},
},
// https://github.com/antfu/vite-plugin-inspect
// Visit http://localhost:3333/__inspect/ to see the inspector
plugins: [Inspect()],
})
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"packageManager": "[email protected]",
"homepage": "https://valaxy.site",
"scripts": {
"prepublishOnly": "npm run build",
"build": "npm -C theme run build",
"build": "npm run build:demo",
"build:demo": "npm -C demo run build",
"ci:publish": "pnpm -r publish --access public --no-git-checks",
"dev": "npm -C theme run dev",
"dev": "npm run demo",
"demo": "npm -C demo run dev",
"lint": "eslint .",
"release": "cd theme && git add -A && bumpp",
Expand All @@ -16,10 +15,10 @@
"devDependencies": {
"@antfu/eslint-config": "^0.25.2",
"bumpp": "^8.2.1",
"eslint": "^8.19.0",
"tsup": "^6.1.3",
"eslint": "^8.20.0",
"typescript": "^4.7.4",
"valaxy": "latest",
"valaxy-theme-starter": "workspace:*",
"vue-tsc": "^0.38.5"
"vue-tsc": "^0.38.9"
}
}
Loading

0 comments on commit e478a31

Please sign in to comment.