1.0.10 • Published 1 year ago

create-ts-package-template v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

create-ts-package-template

Typescript template for creating and publishing with rollup, typescript, jest, eslint, prettier, and husky

Usage

npx create-ts-package-template package-name

React

To add React linting and compatibility for publishing things like components, you can specify the --react flag during creation:

npx create-ts-package-template package-name --react

You can then cd into the package-name directory and build, test or publish

Building

yarn build

Or, to minify and remove source maps:

yarn build-production

Testing

yarn test

Note: If publishing for a web app, you may need the jsdom testEnvironment in the jest.config.js See https://jestjs.io/docs/configuration#testenvironment-string

Publishing

yarn publish

This should build the package with rollup, use the specified version, and publish the results.

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago