Skip to content

Commit

Permalink
feat(addon-waline): upgrade waline deps
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 15, 2024
1 parent 5e6b6c2 commit c41b385
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 82 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@iconify-json/simple-icons": "^1.1.91",
"nodemon": "^3.0.3",
"vite": "^5.1.1",
"vite": "^5.1.2",
"vitepress": "1.0.0-rc.42"
}
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"test:space": "export NODE_OPTIONS='--inspect --max-old-space-size=2048' && pnpm -C demo/yun run build:ssg",
"prepare": "husky install"
},
"dependencies": {
"c12": "^1.7.0"
},
"devDependencies": {
"@antfu/eslint-config": "2.6.4",
"@iconify-json/logos": "^1.1.42",
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"unplugin-vue-router": "^0.7.0",
"vite": "^5.1.1"
"vite": "^5.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/valaxy-addon-waline/components/WalineClient.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Waline } from '@waline/client/component'
import { commentCount, pageviewCount } from '@waline/client'
import { getEmojis } from '../utils'
import '@waline/client/dist/waline.css'
import '@waline/client/style'
import type { WalineOptions } from '../types'
const props = defineProps<{
Expand Down
4 changes: 2 additions & 2 deletions packages/valaxy-addon-waline/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valaxy-addon-waline",
"version": "0.1.1",
"version": "0.1.2",
"description": "Waline Composition API for Valaxy",
"repository": {
"url": "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-waline"
Expand All @@ -19,6 +19,6 @@
"valaxy": "latest"
},
"dependencies": {
"@waline/client": "^2.15.8"
"@waline/client": "^3.0.1"
}
}
5 changes: 3 additions & 2 deletions packages/valaxy/node/utils/addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import process from 'node:process'
import { resolve } from 'pathe'
import fs from 'fs-extra'
import defu from 'defu'
import { cyan, dim, yellow } from 'picocolors'
import { blue, cyan, dim, yellow } from 'picocolors'
import ora from 'ora'
import type { ValaxyAddonResolver, ValaxyAddons } from '../types'
import { logger } from '../logger'
Expand Down Expand Up @@ -34,7 +34,8 @@ export async function parseAddons(addons: ValaxyAddons, userRoot = process.cwd()
spinner.succeed()
const resolvedAddons = Object.values(resolvers).filter(item => item.enable)
resolvedAddons.forEach((addon, i) => {
logger.log(` ${i === resolvedAddons.length - 1 ? '└─' : '├─'} ${yellow(addon.name)}${addon.global ? cyan(' (global)') : ''} ${dim(addon.pkg.homepage || addon.pkg.repository?.url || addon.pkg.repository)}`)
// eslint-disable-next-line no-console
console.log(` ${i === resolvedAddons.length - 1 ? '└─' : '├─'} ${yellow(addon.name)} ${blue(`v${addon.pkg?.version}`)}${addon.global ? cyan(' (global)') : ''} ${dim(addon.pkg.homepage || addon.pkg.repository?.url || addon.pkg.repository || '')}`)
})
return resolvedAddons
}
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"unplugin-vue-markdown": "^0.26.0",
"unplugin-vue-router": "^0.7.0",
"vanilla-lazyload": "^17.8.8",
"vite": "^5.1.1",
"vite": "^5.1.2",
"vite-plugin-vue-devtools": "^7.0.14",
"vite-plugin-vue-layouts": "0.11.0",
"vite-ssg": "0.23.6",
Expand Down

1 comment on commit c41b385

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://65cdc2afb0b0eb7d894fae4f--valaxy.netlify.app

Please sign in to comment.