mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
Print out directory tree during docusaurus-init (#665)
* WIP does not work * rm -rf website/ Run docusaurus-init Even by deleting text here, it still shows up? Confused. * Shift in tree printing logic * Shift printing logic to the current location
This commit is contained in:
parent
c730bc7bb7
commit
1796764b1c
3 changed files with 16 additions and 9 deletions
|
@ -201,14 +201,14 @@ if (feature === 'translations') {
|
|||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (exampleSiteCreated) {
|
||||
console.log(
|
||||
`${chalk.green('Example website created')} in ${chalk.green(
|
||||
outerFolder + '/website'
|
||||
)}\n`
|
||||
);
|
||||
if (exampleSiteCreated) {
|
||||
const tree = require('tree-node-cli');
|
||||
const dirString = tree(path.join(CWD, '..'), {
|
||||
exclude: [/node_modules/],
|
||||
});
|
||||
console.log(dirString);
|
||||
}
|
||||
}
|
||||
|
||||
if (docsCreated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue