mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 03:42:34 +02:00
feat(v2): skip dependency install on docusaurus init (#3986)
* fix: #3450 Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> * test: fix failing test Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
869e118e4f
commit
0bb5e547b1
4 changed files with 22 additions and 10 deletions
|
@ -39,9 +39,13 @@ program
|
|||
program
|
||||
.command('init [siteName] [template] [rootDir]')
|
||||
.option('--use-npm')
|
||||
.option('--skip-install')
|
||||
.description('Initialize website')
|
||||
.action((siteName, template, rootDir = '.', {useNpm}) => {
|
||||
wrapCommand(init)(path.resolve(rootDir), siteName, template, {useNpm});
|
||||
.action((siteName, template, rootDir = '.', {useNpm, skipInstall}) => {
|
||||
wrapCommand(init)(path.resolve(rootDir), siteName, template, {
|
||||
useNpm,
|
||||
skipInstall,
|
||||
});
|
||||
});
|
||||
|
||||
program.arguments('<command>').action((cmd) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue