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:
Amy Lam 2018-05-15 20:06:44 -07:00 committed by Yangshun Tay
parent c730bc7bb7
commit 1796764b1c
3 changed files with 16 additions and 9 deletions

View file

@ -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) {