-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Description
I tried to create project using vp create, but it does not seem like there is "create project in this directory" option.
As I use ghq for managing my projects, I create a directory that is empty but git repository, then do pnpm init,cargo init, bundle init, or whatever.
So I tried to do so in vp, but it looks like there is no "Create here" option:
❯ : npx --package vite-plus vp create --directory .
VITE+ - The Unified Toolchain for the Web
Parsed package name "." is invalid: name cannot start with a period
The --directory option is invalid
❯ : npx --package vite-plus vp create
VITE+ - The Unified Toolchain for the Web
Vite+ Application
▲ Package name:
.█
name cannot start with a period
Suggested solution
Support --directory ., which creates project in current directory. It would be nice if it asks project name, as someone may make a directory that is not "project name"-friendly. (I sometimes encounter "Your directory's name, foo.bar, cannot be project name. Please specify project name via --lib" in Cargo)
Alternative
Add vp init, which creates project in current directory.
Additional context
Having both solution would be nice I guess.
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
Start date
Target date
Effort