question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow to initialize template project in actual folder instead of subfolder.

See original GitHub issue

Clear and concise description of the problem

doing npm init vite -- --template svelte ask me for project directory, if I don’t fill it, it will create project inside vite-project subfolder, instead of actual folder.

Suggested solution

allow to initialize template project in actual folder instead of subfolder (if I don’t write name or write just . to input).

Alternative

No response

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sapphi-redcommented, Jun 2, 2022

If you type . when Project name: is prompt, it will create the project in the current folder. It might be difficult to find this out.

1reaction
bluwycommented, Jun 5, 2022

I’m not really sure where we can put this “trick” in the CLI. The prompt is Project name: and . isn’t actually one. It might take a small re-design of the CLI to better support this, so it may not be as easy as it seems for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C++ Item Template Wizard does not create file in project ...
However, I do have a problem with a simple Item Template Wizard, if the newly created source file shall be located in a...
Read more >
Issue with visual studio template & directory creation
All the sub projects\templates have to be located under the real template file folder. Zip template internal structure example: RootTemplateFix.
Read more >
New/Edit Template - Files and Folders - SolidWorks Web Help
To create a new template, right-click Templates and click New Template. ... If you select Current Folder, the template creates the subfolder (or...
Read more >
Create a project template for dotnet new - .NET | Microsoft Learn
In your terminal, navigate to the working\templates folder and create a new subfolder named consoleasync. Enter the subfolder and run dotnet ...
Read more >
Creating Project Browser Folders - Paul F. Aubin
I had an email today from a reader asking how to create custom folders in the Revit Project Browser. You can do this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found