@nodeblocks/frontend-list-order-table-block
v0.0.8
Published
Welcome to the Nodeblocks Frontend Starter Kit! π This kit is designed to make building frontend libraries in React super easy, helping you streamline your development workflow with minimal fuss. Let's dive in! π€Ώ
Downloads
25
Keywords
Readme
π Nodeblocks Frontend Starter Kit
Welcome to the Nodeblocks Frontend Starter Kit! π This kit is designed to make building frontend libraries in React super easy, helping you streamline your development workflow with minimal fuss. Let's dive in! π€Ώ
β¨ Features
- π Bundling with Rollup: Get a clean, minimalistic approach to bundling your JavaScript files for smoother frontend development.
- π TypeScript Support: We've included a pre-configured
tsconfig.jsonto ensure your TypeScript setup is strict, efficient, and ready to go. - βοΈ Peer Dependencies: Keep bundle sizes lean with React and React DOM set as peer dependencies.
- π¨ CSS Support: Easily import and process CSS files, giving you more control over your styles.
π οΈ How to Use
Clone this repository π:
git clone <repository-url> cd <repository-directory>Install dependencies π¦:
npm installStart development π οΈ:
npm run watchBuild for production ποΈ:
npm run build
π§ͺ How to Test
The test folder contains examples that demonstrate how to use the libraries you create with this starter kit. These examples show compatibility with various bundlers, such as:
- Create React App (Webpack)
- Vite β‘
- Rollup (itself) (Coming soon) π
- Parcel (Coming soon) π¦
This ensures Nodeblocks libraries integrate seamlessly with different workflows. π οΈβ¨
Before running each project make sure you run npm link:
- In the root of this project:
npm link - In the test project you want to run:
npm i npm link @basaldev/frontend-starter-kit
(Note that in real life your library would not be called frontend-starter-kit.)
- Then you can follow your usual workflow either with Create React App (
npm start) or with Vite (npm run dev). This will give you a development environment where whenever you change your library it will be available in your test project.
