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

viject

v1.2.3

Published

A tool for migrating your React app from react-scripts (Create React App) to Vite

Downloads

98

Readme

Viject ⚡

A tool for migrating your React app from react-scripts (Create React App) to Vite

Usage

cd <YOUR_APP>
npx viject

Concept

Enables one-shot migration from CRA to Vite. Differences are absorbed in vite.config, allowing for a gradual migration with minimal changes.

See more details in doc

How it works

  1. Rewrite npm scripts
  2. Add dependencies
  3. Rewrite react-app-env.d.ts
  4. Move index.html
  5. Transform .js files including JSX into .jsx
  6. Add vite.config.(js|ts) includes plugins for CRA compatibility

Supported features

  • 🟢 Using HTTPS in Development

Styles and Assets

  • 🟢 Adding a Stylesheet
  • 🟢 Adding a CSS Modules Stylesheet
  • 🟢 Adding a Sass Stylesheet
  • 🟡 Adding a CSS Reset (https://create-react-app.dev/docs/adding-css-reset)
  • 🟢 Post-Processing CSS
  • 🟢 Adding Images, Fonts, and Files
  • 🟡 Loading .graphql Files (https://create-react-app.dev/docs/loading-graphql-files)
  • 🟢 Using the Public Folder
  • 🟢 Code Splitting

Build

  • 🟢 Adding Bootstrap
  • 🟡 Adding Flow (https://create-react-app.dev/docs/adding-flow)
  • 🟢 Adding TypeScript
  • 🟡 Adding Relay (https://create-react-app.dev/docs/adding-relay)
  • 🟢 Adding a Router
  • 🟢 Adding Custom Environment Variables
  • 🟡 Making a Progressive Web App
  • 🟢 Measuring Performance
  • 🟢 Creating a Production Build (https://create-react-app.dev/docs/production-build)

Testing

https://vitest.dev/guide/migration.html

Back-End Integration

  • 🟢 Proxying API Requests in Development (https://create-react-app.dev/docs/proxying-api-requests-in-development)
  • 🟢 Fetching Data with AJAX Requests

Advanced Configuration

https://create-react-app.dev/docs/advanced-configuration

  • 🟢 BROWSER
  • 🟡 BROWSER_ARGS
  • 🟢 HOST
  • 🟢 PORT
  • 🟢 HTTPS
  • 🚫 WDS_SOCKET_HOST
  • 🚫 WDS_SOCKET_PATH
  • 🚫 WDS_SOCKET_PORT
  • 🟢 PUBLIC_URL
  • 🟢 BUILD_PATH
  • 🚫 CI
  • 🚫 REACT_EDITOR
  • 🚫 CHOKIDAR_USEPOLLING
  • 🟢 GENERATE_SOURCEMAP
  • 🟡 INLINE_RUNTIME_CHUNK
  • 🟡 IMAGE_INLINE_SIZE_LIMIT
  • 🟢 FAST_REFRESH
  • 🟡 TSC_COMPILE_ON_ERROR
  • 🟡 ESLINT_NO_DEV_ERRORS
  • 🟡 DISABLE_ESLINT_PLUGIN
  • 🚫 DISABLE_NEW_JSX_TRANSFORM

Contribution

See Contributing Guide

License

MIT