Skip to content

Feature request: Add way to create project in cwd #1077

@sevenc-nanashi

Description

@sevenc-nanashi

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

No one assigned

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions