Tech-Talk-FS / create-fso-stack

0 stars 0 forks source link

Research: Vite create method #1

Open IrwinJames-FS opened 3 weeks ago

IrwinJames-FS commented 3 weeks ago

Find a cli command option that will create a vite project without needing to interact with vite cli interface.

BradleyMatera commented 3 weeks ago

For setting up a Vite project without needing interactive CLI prompts, here are the recommended non-interactive commands:

Recommended Commands for Vite Project Setup

React Project with npm:

npm create vite@latest my-project -- --template react

Explanation: • Initializes the latest Vite version with my-project as the directory name and specifies the react template.

Other Framework Options: For various frameworks and package managers, here’s a quick summary of commands: • React with yarn: yarn create vite my-project --template react • React with pnpm: pnpm create vite my-project -- --template react • Vue: npm create vite@latest my-vue-app -- --template vue • Vanilla JavaScript: npm create vite@latest my-vanilla-app -- --template vanilla • TypeScript with React: npm create vite@latest my-react-ts-app -- --template react-ts • Svelte: npm create vite@latest my-svelte-app -- --template svelte

Summary of Commands

Framework Command React (npm) npm create vite@latest my-project -- --template react React (yarn) yarn create vite my-project --template react React (pnpm) pnpm create vite my-project -- --template react Vue npm create vite@latest my-vue-app -- --template vue Vanilla JS npm create vite@latest my-vanilla-app -- --template vanilla React TS npm create vite@latest my-react-ts-app -- --template react-ts Svelte npm create vite@latest my-svelte-app -- --template svelte

For further details, refer to the Vite Documentation.

Using these commands will streamline project setup and allow automation for efficient workflows without manual CLI input.