Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rstack Library starter template

TypeScript pnpm Rstack X Follow GitHub Sponsors

Setup

Install the dependencies:

pnpm install

Get started

Build the library:

pnpm run build

Build for the web

pnpm run build:demo

Build the library in watch mode:

pnpm run dev

Run tests:

pnpm run test

Run tests in watch mode:

pnpm run test:watch

Run build analysis. (Rsdoctor)

pnpm run analyze

TypeScript Configuration

Separate tsconfig files for different purposes:

  • tsconfig.node.json - Bundler
  • tsconfig.rslib.json - Library bundling
  • tsconfig.rsbuild.json - Demo/documentation site
  • tsconfig.rstest.json - Testing

Performance note: exclude patterns should include nested directories and hidden files for optimal type-checking performance: https://github.com/microsoft/TypeScript/wiki/Performance#misconfigured-include-and-exclude

Optional: 🪝 Git Hooks (Recommended for Teams)

Use rstack hooks: https://rstack.rs/guide/cli/hooks

🔒️ Safety Measures

This template has "private": true in package.json as a default safety measure.

Before publishing to npm:

  1. Change "private": false
  2. Ensure your package name is unique and correct
  3. Review your package.json metadata (description, keywords, repository, etc.)

This prevents accidental npm publishes during development.

📝 Checklist

When using this template, follow the checklist to update your info properly.

  • Change the author name in LICENSE
  • Update package name and metadata in package.json
  • Change umdName in rstack.config.ts
  • Set "private": false (currently true as a safety measure)
  • Review and adapt AGENTS.md for your project conventions
  • Clean up the READMEs
  • Publish your project.

License

©2026 by Logue. Licensed under the MIT License.

About

Starter template for Library using @web-infra-dev's rsbuild, rslib, rslint, rstest stack.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages