@bro-academy/create-vite-bundler
v0.0.7
Published
Scaffolding tool to create new projects with Vite build configuration
Downloads
12
Readme
@bro-academy/create-vite-bundler
A scaffolding tool to create new projects with Vite build configuration.
Features
- Creates a new project with Vite build configuration
- Sets up a basic project structure with assets, styles, and templates
- Initializes npm and git
- Installs dependencies
- Makes an initial commit
Usage
You can use this package with npm init:
npm init @bro-academy/vite-bundler my-projectOr with npx:
npx @bro-academy/create-vite-bundler my-projectIf you don't provide a project name, you will be prompted to enter one.
Project Structure
The generated project will have the following structure:
my-project/
├── node_modules/
├── src/
│ ├── assets/
│ │ └── icons/
│ ├── styles/
│ │ └── main.scss
│ └── templates/
│ └── layout.njk
├── index.html
├── package.json
└── vite.config.jsAvailable Commands
Once your project is created, you can use the following commands:
npm start- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Lint codenpm run lint:fix- Fix linting issuesnpm run stylelint- Lint SCSS filesnpm run stylelint:fix- Fix SCSS linting issues
Requirements
- Node.js 16 or higher
- npm 7 or higher
License
ISC
