My most used commands for front-end

· JavaScript, Workflow · Patrick Smith
# Create a new TypeScript library with TSDX
npx tsdx create <project-name>

# Create a new web app with Vite
npm init vite-app <project-name> # Vue by default
npm init vite-app <project-name> --template preact
npm init vite-app <project-name> --template react

# Measure HTTP response time
httpstat ""

# Run Google’s PageSpeed Insights
npx psi "" --strategy=mobile

# Optimize & minify SVG file
npx svgo <some-file.svg>