Détail du package

rive

guoyunhe411GPL-3.03.1.2

Effortless React Library Development Experience

react, typescript, library, component

readme

RiVE - Effortless React Library Development Experience

Features

  • zero-config needed
  • lightning fast speed
  • support TypeScript and bundle a single .d.ts
  • support Sass, Less, styled-components
  • enforced coding style with ESLint, Stylelint and Prettier
  • output ESM and CJS formats (sorry UMD, you are too old)

Getting Started

Run the following command to create new projects or migrate old projects

npm create rive my-lib

Configurations

Browser Compatibility

Default:

{
  "browserslist": ["defaults", "not IE 11", "maintained node versions"]
}

See https://github.com/browserslist/browserslist

Related projects

The creation of RiVE is inspired by the following open source projects:

  • tsdx: zero-config build tool for React library development
  • f2elint: all-in-one front-end code linter from Alibaba
  • docusaurus: the document generator that Rive uses

See

changelog

Changelog

3.1.0 - 2025-04-20

  • Added Preact support
  • Fixed doc dependency resolve

3.0.0 - 2024-12-29

  • BREAKING CHANGE: Updated eslint from 8.x to 9.x with new configuration file format

2.3.0 - 2024-12-28

  • Changed remark-mdx-images to rehype-mdx-import-media

2.2.0 - 2024-12-28

  • Update vitest from 1.x to 2.x

2.1.0 - 2024-12-28

  • Update vite from 5.x to 6.x

2.0.0 - 2024-01-17

  • BREAKING CHANGE: use tsc as library compiler, instead of vite, to support style tree-shaking, multiple entries, etc.
  • BREAKING CHANGE: use vitest as test runner, instead of jest, to support esm-only modules
  • BREAKING CHANGE: removed init command, please use npm create rive instead
  • Updated typescript 4.x to 5.x
  • Updated prettier 2.x to 3.x

1.1.0

  • External node built-in modules

0.7.2

  • Init jest preset

0.7.1

  • Fix test command

0.7.0

  • Add test command

0.6.2

  • Fix GitHub CI

0.6.1

  • Add #!/usr/bin/env node

0.6.0

  • Build docs

0.5.4

  • Clean up dependencies
  • Clean up translations

0.5.3

  • Fix build

0.5.2

  • Fix config import

0.5.1

  • Fix previous build

0.5.0

  • Add jest and preset

0.4.0

  • Build lib with vite
  • Initialize GitHub CI and GitLab CI

0.3.0

  • Add init command
  • Add eslint-config-rive and dependencies

0.2.0

  • Add bundled *.d.ts output

0.1.0

  • Add build command with ESM and CJS output