Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A starter project that makes creating a TypeScript library extremely easy.

License

NotificationsYou must be signed in to change notification settings

crper/rollup-typescript-lib-boilerplate

Repository files navigation

A starter project that makes creating a TypeScript library extremely easy.

Features

  • Tests using Vitest
  • Rollup(v4.x) for bundling and packaging
  • Automatic releases and changelog(release-it)
  • Lint-staged test (husky and init hooks: pre-commit, commit-msg)
    • eslint、prettier、commitlint、vitest
  • The configuration file template released by the npm package (refer to package.json)
  • Automatic types (*.d.ts) file generation (typescript v5.x)

Usage

# 1. clone repogit clone https://github.com/crper/rollup-typescript-lib-boilerplate.git my-project# 2. cd to project directorycd my-project# 3. pnpm install dependenciespnpm install# ----- npm scripts -----# run development mode  (output)pnpm watch# run production mode (output minify)pnpm build# run tests# Run all test suites but watch for changes and rerun tests when they change.pnpm test# Perform a single run without watch mode.pnpm test:prod# interactive commit (Angular Conventional Commit)pnpm commit# npm publish --dry-run (view tarball)pnpm v-pub-tarball# release-it is interactive and allows you to confirm each task before execution:pnpm release

NPM Scripts Demo Gif

npm-scripts-intro.md

Technologies

NameVersionGithub
rollup4.xhttps://github.com/rollup/rollup
typescript5.xhttps://github.com/microsoft/TypeScript
vitest1.xhttps://github.com/vitest-dev/vitest
eslint8.xhttps://github.com/eslint/eslint
pnpm8.xhttps://github.com/pnpm/pnpm

FAQ

  1. Q: (!) @rollup/plugin-typescript TS5096: Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.

known issue:rollup/plugins#1536

Enjoy!

About

A starter project that makes creating a TypeScript library extremely easy.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp