npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@froko/create-vite-ts

v7.1.0

Published

A CLI to bootstrap new vite-based TypeScript projects

Downloads

1,288

Readme

@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:

  • npm run dev: Starts the application at http://localhost:3000
  • npm run build: Builds the application into the dist folder
  • npm run preview: Serves the built application at http://localhost:3000

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:

  • npm run storybook: Starts Storybook at http://localhost:6006

Only available with Ladle option:

  • npm run ladle: Starts Ladle at http://localhost:61000

Only available with Histoire option:

  • npm run histoire: Starts Histoire at http://localhost:6006

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
  • ...