perf(cli): update templates (#220)

This commit is contained in:
pengzhanbo 2024-09-27 08:39:47 +08:00 committed by GitHub
parent b0a6736d05
commit 117522969e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ export async function createPackageJson(
'docs:preview': `http-server ${docsDir}/.vuepress/dist`,
}
if (mode === Mode.create) {
pkg.scripts['vp-update'] = 'vp-update'
pkg.scripts['vp-update'] = `${packageManager === 'npm' ? 'npx' : `${packageManager} dlx`} vp-update`
}
}

View File

@ -1,12 +1,12 @@
import { defineClientConfig } from 'vuepress/client'
import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
import CustomComponent from './theme/components/Custom.vue'
// import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
// import CustomComponent from './theme/components/Custom.vue'
import './theme/styles/custom.css'
// import './theme/styles/custom.css'
export default defineClientConfig({
enhance({ app }) {
app.component('RepoCard', RepoCard)
app.component('CustomComponent', CustomComponent)
// app.component('RepoCard', RepoCard)
// app.component('CustomComponent', CustomComponent)
},
})