Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow selecting package manager when creating new project with Nuxi #63

Closed
3 of 4 tasks
DamianGlowala opened this issue Jun 10, 2023 · 1 comment
Closed
3 of 4 tasks
Labels
enhancement New feature or request

Comments

@DamianGlowala
Copy link
Member

DamianGlowala commented Jun 10, 2023

Describe the feature

Currently, Nuxi creates a README.md file with package manager commands that are inconsistent (yarn, npm and pnpm commands vs npm-only in the last two sections). Providing all three variants for the below four stages might be a little bit verbose.

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

I really like how one of the backend frameworks, NestJS, provides a nicer DX by prompting a user to select the package manager and installing dependencies for the user:

image

This would allow Nuxi to tweak commands in README.md file according to the chosen package manager, as well as display more accurate messages in the CLI. "Install dependencies with (...)" could be removed and "Start development server with (...)" shortened:

image

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@danielroe danielroe added the enhancement New feature or request label Jun 10, 2023
@danielroe danielroe transferred this issue from nuxt/nuxt Jul 6, 2023
@pi0
Copy link
Member

pi0 commented Jul 6, 2023

This is done by #38. Thanks for contributing and idea 💯

@pi0 pi0 closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants