7.1.0 • Published 1 month ago

@froko/create-vite-ts v7.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@froko/create-vite-ts

A CLI to bootstrap new vite-based TypeScript projects. Rely on hand-crafted installation and configuration of the following products:

  • vite.js
  • TypeScript
  • EsLint
  • Prettier
  • Visual Studio Code Extension recommendations
  • Visual Studio Code settings (format & lint your code on save)
  • TailwindCSS (optional)
  • Lit (optional)
  • React (optional)
  • Vue.js (optional)
  • Svelte (optional)
  • Cypress.io (optional)
  • Playwright (optional)
  • Storybook (optional)
  • Ladle (optional)
  • Histoire (optional)

Quick start

npm init @froko/vite-ts@latest

It will ask the following questions:

  • Project name
  • Template type
  • Testing framework
  • Component explorer

The CLI will create a new directory named by the project name.

Available template types

  • Vanilla Typescript
  • Vanilla TypeScript with TailwindCSS
  • Lit
  • Lit with TailwindCSS
  • React
  • React with TailwindCSS
  • Vue.js
  • Vue.js with TailwindCSS
  • Svelte
  • Svelte with TailwindCSS

Available testing frameworks

  • Cypress.io
  • Playwright
  • None (if you don't want to benefit from e2e and component testing)

Available component explorers

  • Storybook
  • Ladle (only React)
  • Histoire (only Vue.js and Svelte)
  • None (if you don't want to benefit from isolated component visualization)

npm scripts

Available in all templates:

Only available with Cypress.io option:

  • npm run cypress: Starts the application & runs Cypress.io in visual mode
  • npm run cypress:ci: Serves the builtapplication & runs Cypress.io in headless mode

Only available with Playwright option:

  • npm run playwright: Runs your playwright e2e tests in different headless browsers
  • npm run playwright:ct: Runs your playwright component tests in different headless browsers
  • npm run playwright:report: Shows the Playwright HTML report of the last test run

Only available with Storybook option:

Only available with Ladle option:

Only available with Histoire option:

Sample application

All templates provide a simple rating app. While building this product, I wanted to have something more than just a Click-Counter-Button to showcase the capabilities of web components together with sophisticated testing (Cypress.io, Playwright) and visualization (Storybook, Ladle, Histoire).

The rating app looks like this: Rating App

Feel free to delete all the sample application related code in the src folder and start over with your own project!

What's next?

  • Include solidjs templates
  • Include Angular templates
  • ...
7.1.0

1 month ago

7.0.0

2 months ago

1.0.0-next.1

2 months ago

1.0.0-next.2

2 months ago

7.0.0-next.1

2 months ago

6.5.1

4 months ago

6.5.3

4 months ago

6.5.0

4 months ago

6.4.0

9 months ago

6.3.1

10 months ago

6.3.0

11 months ago

6.2.0

1 year ago

6.1.0

1 year ago

5.2.1

1 year ago

5.2.0

1 year ago

5.1.0

1 year ago

5.0.0

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

3.0.1

2 years ago

3.0.0

2 years ago

4.1.0

1 year ago

4.0.1

2 years ago

4.0.0

2 years ago

4.1.2

1 year ago

4.1.1

1 year ago

1.3.0

2 years ago

1.2.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago