Skip to content

Commit

Permalink
feat: show theme version in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Oct 5, 2024
1 parent 74e7259 commit 5523a0f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 63 deletions.
4 changes: 2 additions & 2 deletions packages/valaxy-theme-yun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valaxy-theme-yun",
"version": "0.20.0-beta.3",
"version": "0.20.0-beta.4",
"author": {
"email": "[email protected]",
"name": "YunYouJun",
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"@ctrl/tinycolor": "^4.1.0",
"@explosions/fireworks": "^0.0.3",
"@explosions/fireworks": "^0.1.0",
"@iconify-json/ant-design": "^1.2.1",
"@iconify-json/simple-icons": "^1.2.5",
"@vueuse/motion": "^2.2.5",
Expand Down
4 changes: 3 additions & 1 deletion packages/valaxy/node/cli/utils/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ import { vLogger } from '../../logger'
let server: ViteDevServer | undefined

export function printInfo(options: ResolvedValaxyOptions, port?: number, remote?: string | boolean) {
const themeVersion = blue(`v${options.config.themeConfig?.pkg?.version}`) || 'unknown'

console.log()
console.log(` ${bold('🌌 Valaxy')} ${blue(`v${version}`)}`)
console.log()
console.log(`${dim(' 🪐 theme ')} > ${(options.theme ? green(options.theme) : gray('none'))}`)
console.log(`${dim(' 🪐 theme ')} > ${(options.theme ? green(options.theme) : gray('none'))} (${themeVersion})`)
console.log(` ${dim('📁')} ${dim(path.resolve(options.userRoot))}`)
if (port) {
console.log()
Expand Down
83 changes: 23 additions & 60 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5523a0f

Please sign in to comment.