We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3e1e5e commit 89538faCopy full SHA for 89538fa
bin/vuepress.js
@@ -38,6 +38,17 @@ program
38
wrapCommand(build)(path.resolve(dir), { debug, outDir })
39
})
40
41
+program
42
+ .command('eject [targetDir]')
43
+ .description('copy the default theme into .vuepress/theme for customization.')
44
+ .action(async (dir = '.') => {
45
+ const { copy } = require('fs-extra')
46
+ const source = path.resolve(__dirname, '../lib/default-theme')
47
+ const target = path.resolve(dir, '.vuepress/theme')
48
+ await copy(source, target)
49
+ console.log(`Copied default theme into ${chalk.cyan(target)}.`)
50
+ })
51
+
52
// output help information on unknown commands
53
program
54
.arguments('<command>')
0 commit comments