create-near-app icon indicating copy to clipboard operation
create-near-app copied to clipboard

No option to create-near-app in a blank folder

Open weiler1 opened this issue 2 years ago • 2 comments

I am looking for something like create-near-app . that assumes the name of the enclosing folder and doesn't create one additional project folder underneath, similar to npx create-react-app .

Is there any way to do this with create-near-app, or can this be included in a subsequent update?

weiler1 avatar Jan 05 '23 14:01 weiler1

hi @weiler1, what do you mean by "that assumes the name of the enclosing folder" ? I am not understanding the expected behaviour.

gagdiez avatar Jan 05 '23 22:01 gagdiez

Do you (@weiler1) mean we can't do something like this?

npx create-near-app . --contract js --frontend react --tests js

I would say, Ideally, the above command should initialize the project on the current working directory if this directory is empty. But, should it restrict initialization if there is already some content (eg: an src/ folder) inside the folder, if not restricted, this may render conflict.

subashcs avatar Jul 01 '23 05:07 subashcs

we are not planning to add this, since it would add extra logic and complexity to a project that is being supported by only one person (me)

gagdiez avatar Apr 11 '24 14:04 gagdiez