loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.95k stars 1.07k forks source link

Generate lb4 application in local-directory or specific directory using --directory flag #3654

Closed DanielChuDC closed 4 years ago

DanielChuDC commented 5 years ago

Hi , may I ask does lb4 support --directory flag to generate the source code under a specific directory and not to create a new directory.

raymondfeng commented 5 years ago

@DanielChuDC What's your use case?

Please note that lb4 app allows --outdir option to supply the directory name to be created.

DanielChuDC commented 5 years ago

Hi, my use case like Angular project able to generate the source code into the local directory using . or ./ For example: ng new --directory . It is convenient for create a project under a github folder.

By using --outdir, does not generate in the local directory where it will return a error saying that the . or ./ already exists.

lb4 app
? Project name: git-hub
? Project description: GitHub
? Project root directory: ./
>> Directory ./ already exists.
raymondfeng commented 5 years ago

Do you want to allow the outdir to exist even it's not empty?

DanielChuDC commented 5 years ago

Hi, technically the folder can be empty or not empty. Not empty as in the folder may including those file like .git; it is empty also because is hidden files.

If there are able to generate the new app lb4 by using ./ or . for those git initialized folder, that will be great.

stale[bot] commented 4 years ago

This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.

stale[bot] commented 4 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.