Socket
Book a DemoInstallSign in
Socket

@citrus327/react-template-lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citrus327/react-template-lib

my react lib starter

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

react-lib-starter

Version

Introduction

This is my personal React library template.

What's included

The template includes the following:

  • rollup + swc with esm and cjs output
  • panda-css integration as a postcss plugin
  • Changesets setup for versioning and auto changelog generation.
  • auto NPM package publishing workflow via changesets action
  • zero dependency by default
  • vitest for testing
  • minify all bundled files via @rollup/plugin-terser.
  • .d.ts generation with alias support via tsc-alias
  • single tree-shaked .d.ts file via rollup-plugin-dts
  • bundle analyze via rollup-plugin-visualizer

What's missing

  • A quick playground for components

Usage

  • Directly use this repo as a template in github
  • use degit: degit git@github.com:citrus327/react-lib-starter.git

Workflow

  • Create new branch
  • Do as many commits as you want
  • After push all the commits, execute pnpm run change or npx changeset to create a changeset
  • Modify changeset markdown file in .changeset folder if needed
  • Push all the changes to current branch
  • Make a pull request manually in your repo or just merge into the main branch
  • Then changeset action will detect the changesets you've made and create new PR for it.
  • After accepting the new PR, the changeset action will then go change the package version and publish to target registry

FAQs

Package last updated on 13 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts