Creating a Component Library Fast🚀(using Vite's library mode)

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • css-modules

    Documentation about css-modules

    The components are styled with CSS modules. When building the library, these styles will get transformed to normal CSS style sheets. This means that the consuming application will not even be required to support CSS modules. (In the future I want to extend this tutorial to use vanilla-extract instead.)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vite-plugin-dts

    A Vite plugin for generating `.d.ts` files.

    As this is a Typescript library you also want to ship type definitions with your package. Fortunately there is a Vite plugin that does exactly this: vite-plugin-dts

  • vite-plugin-lib-inject-css

    Inject css at the top of chunk file in lib mode using import statement, support multiple entries.

    For this to work, the transpiled JavaScript bundle must contain an import statement for the CSS file. We are going to use yet another Vite plugin (vite-plugin-lib-inject-css) that does exactly what we need with zero configuration.

  • my-component-library

  • vite

    Next generation frontend tooling. It's fast!

    If you have never worked with Vite, think of it as a replacement for Create React App. Just a few commands and you are ready to go.

  • my-component-library-consumer

  • vanilla-extract

    Zero-runtime Stylesheets-in-TypeScript

    The components are styled with CSS modules. When building the library, these styles will get transformed to normal CSS style sheets. This means that the consuming application will not even be required to support CSS modules. (In the future I want to extend this tutorial to use vanilla-extract instead.)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • A Gentle Intro to TypeScript

    1 project | dev.to | 11 Jul 2024
  • Using Vite for React Applications

    2 projects | dev.to | 14 Jun 2024
  • Migrando do CRA para Vite

    1 project | dev.to | 10 Jun 2024
  • React TypeScript - Vite + React

    1 project | dev.to | 8 May 2024
  • I Disappear

    3 projects | dev.to | 6 May 2024