From 6623de1c9c0efc4298f7a18bcd51f7f2395f4b4d Mon Sep 17 00:00:00 2001 From: Rafael Pedicini Date: Wed, 21 Apr 2021 23:37:34 -0400 Subject: [PATCH] Add rollpkg as an option for creating libraries --- docs/advanced/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/advanced/index.md b/docs/advanced/index.md index 870d0563..a6424d6a 100644 --- a/docs/advanced/index.md +++ b/docs/advanced/index.md @@ -14,6 +14,8 @@ title: Advanced Cheatsheet The best tool for creating React + TS libraries right now is [`tsdx`](https://github.com/palmerhq/tsdx). Run `npx tsdx create` and select the "react" option. You can view [the React User Guide](https://github.com/palmerhq/tsdx/issues/5) for a few tips on React+TS library best practices and optimizations for production. +Another option is [Rollpkg](https://github.com/rafgraph/rollpkg), which uses Rollup and the TypeScript compiler (not Babel) to create packages. It includes default configs for TypeScript, Prettier, ESLint, and Jest (setup for use with React), as well as Bundlephobia package stats for each build. + - Be sure to also check [`basarat`'s guide](https://basarat.gitbooks.io/typescript/content/docs/quick/library.html) for library tsconfig settings. - Alec Larson: [The best Rollup config for TypeScript libraries](https://gist.github.com/aleclarson/9900ed2a9a3119d865286b218e14d226) - From the Angular world, check out https://github.com/bitjson/typescript-starter