mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf(cli): update templates (#220)
This commit is contained in:
parent
b0a6736d05
commit
117522969e
@ -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`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
},
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user