recursive-proxy-mock
create-react-library
Our great sponsors
recursive-proxy-mock | create-react-library | |
---|---|---|
4 | 5 | |
8 | 4,794 | |
- | - | |
0.0 | 2.6 | |
over 1 year ago | about 1 year ago | |
TypeScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
recursive-proxy-mock
-
How to include dependent types in library build?
Let's take a specific example. One of my libraries recursive-proxy-mock is bundled with Rollup. If you take a look at dist/cjs/index.js you can see there is one big file with everything in it, all bundled together. There are named exports for each thing. This can easily have unused code eliminated either via tree shaking or dead code elimination. I've never made a distinction as to which applies in which scenario since both should always be used together. But I guess my point is, a bundled library doesn't need to have any special format which would require a bundlers help to drop dead code.
-
How to setup a project for browser js library in a best way?
If you want to check out my build config for my library that sounds very similar in architecture to yours, feel free: https://github.com/CreativeTechGuy/recursive-proxy-mock
-
Cool examples of using Javascript proxies
Take a look at the recursive-proxy-mock library. The ability to create an object where every property or function "exists" with infinite depth is a really powerful primitive. Not just for providing mock implementations to complex objects for testing, but also for the ability to store and replay operations on another object in the future.
-
How are you bundling a React Component Library?
If you are just looking for a TS library config (not related to react) then here's a good example I can share: https://github.com/CreativeTechGuy/recursive-proxy-mock/blob/main/rollup.config.js
create-react-library
-
How are you bundling a React Component Library?
At first i thought that this was THE solution but looking deeper at the source code, this tool is a wrapper around a wrapper around a wrapper.... Don't get me wrong, it probably works, but it's currently using a rollup configuration that was created in 2018, the package itself has not seen any updates in 17 months and has 106 open issues. Also the owner says himself that he's not able to work that much on it anymore and suggest to use TSDX which in return hasn't been updated in several months, many open issues and extensive customization is recommended with patch-package which already in itself is a red-flag :(
-
Awesome React Resources
create-react-library - CLI for creating reusable, modern React libraries using Rollup and create-react-app.
-
Build your own styled-components
Using create-react-library to scaffold a React component library.
-
How Did I build My First React Package
create-react-library
-
Looking for recommendation for react component starter
Just found this: https://github.com/transitive-bullshit/create-react-library
What are some alternatives?
kcd-scripts - CLI toolbox for common scripts for my projects
tsdx - Zero-config CLI for TypeScript package development
nosx
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
rollup-react-example - An example React application using Rollup with ES modules, dynamic imports, Service Workers, and Flow.
patch-package - Fix broken node modules instantly 🏃🏽♀️💨
razzle - ✨ Create server-rendered universal JavaScript applications with no configuration
vue3-component-library - This is a template for building vue components library.Project makes use of vue3.0 with rollup configuration to build treeshakable imports and Postcss for compilation of css
pdf-export-component - React components, that we're using in order to export database data into PDF files. Using react-pdf as main package