Skip to content

Commit

Permalink
fix(addon-waline): add optimizeDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Apr 18, 2024
1 parent f434a5f commit 9f802eb
Show file tree
Hide file tree
Showing 8 changed files with 7,556 additions and 5,727 deletions.
2 changes: 1 addition & 1 deletion demo/custom/valaxy-theme-custom/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "valaxy-theme-custom",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@9.0.1",
"packageManager": "pnpm@9.0.2",
"author": {
"email": "me@yunyoujun.cn",
"name": "YunYouJun",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.18.6",
"private": true,
"packageManager": "pnpm@9.0.1",
"packageManager": "pnpm@9.0.2",
"description": "📄 Vite & Vue powered static blog generator.",
"author": {
"email": "me@yunyoujun.cn",
Expand Down Expand Up @@ -76,7 +76,7 @@
"valaxy-theme-yun": "workspace:*"
},
"devDependencies": {
"@antfu/eslint-config": "2.14.0",
"@antfu/eslint-config": "2.15.0",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/vscode-icons": "^1.1.33",
"@microsoft/api-extractor": "^7.43.1",
Expand Down
Empty file modified packages/create-valaxy/bin/index.mjs 100644 → 100755
Empty file.
19 changes: 0 additions & 19 deletions packages/create-valaxy/src/valaxy.ts
Expand Up @@ -70,25 +70,6 @@ export async function init() {

try {
result = await prompts([
{
type:
argTemplate && TEMPLATE_CHOICES.includes(argTemplate) ? null : 'select',
name: 'template',
message:
typeof argTemplate === 'string' && !TEMPLATE_CHOICES.includes(argTemplate)
? reset(
`"${argTemplate}" isn't a valid template. Please choose from below: `,
)
: reset('Select a type:'),
initial: 0,
choices: TEMPLATES.map((template) => {
const tColor = template.color
return {
title: tColor(template.display || template.name) + dim(` - ${template.desc}`),
value: template,
}
}),
},
{
type: argTargetDir ? null : 'text',
name: 'projectName',
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy-addon-waline/package.json
@@ -1,6 +1,6 @@
{
"name": "valaxy-addon-waline",
"version": "0.1.3",
"version": "0.1.4",
"description": "Waline Composition API for Valaxy",
"repository": {
"url": "https://github.com/YunYouJun/valaxy/tree/main/packages/valaxy-addon-waline"
Expand Down
9 changes: 9 additions & 0 deletions packages/valaxy-addon-waline/valaxy.config.ts
@@ -0,0 +1,9 @@
import { defineValaxyConfig } from 'valaxy'

export default defineValaxyConfig({
vite: {
optimizeDeps: {
include: ['@waline/client/component'],
},
},
})
6 changes: 3 additions & 3 deletions packages/valaxy/package.json
Expand Up @@ -120,7 +120,7 @@
"star-markdown-css": "^0.4.2",
"unocss": "^0.59.3",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-markdown": "^0.26.1",
"unplugin-vue-markdown": "^0.26.2",
"unplugin-vue-router": "^0.8.6",
"vanilla-lazyload": "^19.1.3",
"vite": "^5.2.9",
Expand All @@ -129,8 +129,8 @@
"vite-ssg": "0.23.6",
"vite-ssg-sitemap": "0.6.1",
"vue": "^3.4.23",
"vue-i18n": "^9.12.1",
"vue-router": "^4.3.0",
"vue-i18n": "^9.13.0",
"vue-router": "^4.3.1",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down

1 comment on commit 9f802eb

@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://662086a2813207e2e53be9bf--valaxy.netlify.app

Please sign in to comment.