All Projects → DimiMikadze → Create React Library

DimiMikadze / Create React Library

Licence: mit
React NPM library starter kit based on Facebook's create react app

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Create React Library

Ram
⚛️ React Application Manager: create and run React (and other) applications – no command line or build setup required
Stars: ✭ 585 (-2.01%)
Mutual labels:  create-react-app, npm
Ifvisible.js
Crossbrowser & lightweight way to check if user is looking at the page or interacting with it.
Stars: ✭ 1,896 (+217.59%)
Mutual labels:  library, npm
Markdown Builder
1kb Markdown builder for Node.js
Stars: ✭ 67 (-88.78%)
Mutual labels:  library, npm
Functions.js
📦 A hub of numerous functions with various functionalities
Stars: ✭ 22 (-96.31%)
Mutual labels:  library, npm
Length.js
📏 JavaScript library for length units conversion.
Stars: ✭ 292 (-51.09%)
Mutual labels:  library, npm
Angular Library Starter Kit
Angular 5 Library Starter Kit based on Angular-CLI
Stars: ✭ 35 (-94.14%)
Mutual labels:  library, npm
Tosin
Initialize a npm package with everything included, from CI to documentation website
Stars: ✭ 142 (-76.21%)
Mutual labels:  library, npm
Preppy
A simple and lightweight tool for preparing the publish of NPM packages.
Stars: ✭ 23 (-96.15%)
Mutual labels:  library, npm
React Modern Library Boilerplate
Boilerplate for publishing modern React modules with Rollup
Stars: ✭ 285 (-52.26%)
Mutual labels:  create-react-app, library
Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (-57.12%)
Mutual labels:  library, npm
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+10.39%)
Mutual labels:  library, npm
React Native Blurhash
🖼️ A library to show colorful blurry placeholders while your content loads.
Stars: ✭ 430 (-27.97%)
Mutual labels:  library, npm
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (-83.75%)
Mutual labels:  library, npm
React Use Api
Async HTTP request data for axios. Designed for diverse UI states, SSR and data pre-caching.
Stars: ✭ 49 (-91.79%)
Mutual labels:  create-react-app, npm
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+662.81%)
Mutual labels:  create-react-app, library
React Tutorial
A walkthrough of basic React concepts.
Stars: ✭ 482 (-19.26%)
Mutual labels:  create-react-app, library
Kotlin Frontend Plugin
Gradle Kotlin (http://kotlinlang.org) plugin for frontend development
Stars: ✭ 578 (-3.18%)
Mutual labels:  npm
Navigation Toolbar
Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion
Stars: ✭ 587 (-1.68%)
Mutual labels:  library
Djangae
The best way to run Django on Google Cloud. This project is now on GitLab: https://gitlab.com/potato-oss/djangae/djangae
Stars: ✭ 576 (-3.52%)
Mutual labels:  library
Imgui markdown
Markdown for Dear ImGui
Stars: ✭ 594 (-0.5%)
Mutual labels:  library

Create React Library npm PRs Welcome

Create React NPM Library with no build configuration, based on Facebook's Create React App. We are constantly updating the repository with the updates of create-react-app, so we have all new features and bug fixes of it.

Quick Overview

npx @udilia/create-react-library my-lib
cd my-lib
npm start

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

Then open http://localhost:3000 to see demo library running in the browser.

npm start

Creating a Library

You’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine.

To create a new library, you may choose one of the following methods:

npx

npx @udilia/create-react-library my-lib

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

npm

npm init @udilia/react-library my-lib

npm init <initializer> is available in npm 6+

Yarn

yarn create @udilia/react-library my-lib

yarn create is available in Yarn 0.25+

It will create a directory called my-lib inside the current folder. Inside that directory, it will generate the initial project structure and install dependencies.

my-lib
├── config
├── node_modules
├── public
├── scripts
├── src
    ├── demo
    ├── lib
├── .gitignore
├── package.json
├── README.md

All library files are located inside src/lib folder.

Inside src/demo folder, you can test your library while developing.

Once the installation is done, you can open your project folder:

cd my-lib

Inside the newly created project, you can run some built-in commands:

npm start or yarn start

Runs the library in development mode. Open http://localhost:3000 to view it in the browser.

npm run test or yarn run test

Runs the test watcher in an interactive mode.

npm run build or yarn build

Builds the library for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

npm publish

Publishes the library to NPM.

Contributing

Please read our CONTRIBUTING.md before submitting a Pull Request to the project.

Typescript

Adding Typescript support

Troubleshooting

Usage of other libraries within your library

  • Add the library as a peer dependency in package.json (effectively requiring the calling project to provide this dependency)
  • Add the library as a dev dependency in package.json (effectively allowing this library to successfully build without complaining about not having this dependency)
  • Add the library to the externals config in your webpack.config file(s). By default, only react and react-dom are there, meaning that those are the only two libraries that you can use within your new shared library.

Example libraries built with Create React Library

https://github.com/DimiMikadze/react-under-construction

License

MIT License Copyright (c) 2019 Dimi Mikadze

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].