All Projects β†’ KaiHotz β†’ React Rollup Boilerplate

KaiHotz / React Rollup Boilerplate

Licence: mit
Boilerplate for creating React component libraries, bundled with Rollup.js to ES6 Modules, React Styleguidist, Typescript

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to React Rollup Boilerplate

React Modern Library Boilerplate
Boilerplate for publishing modern React modules with Rollup
Stars: ✭ 285 (+81.53%)
Mutual labels:  rollup, library, boilerplate
React Spectrum
Generate colorful text placeholders 🎨
Stars: ✭ 289 (+84.08%)
Mutual labels:  rollup, library
Vue Electron Template
An Electron & Vue.js template with Hot-reloading enabled and common Vue plugins, dev, debug and build scripts configured.
Stars: ✭ 260 (+65.61%)
Mutual labels:  rollup, boilerplate
Create React Library
⚑CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+2800.64%)
Mutual labels:  rollup, library
Typescript Starter
Quickly create and configure a new library or Node.js project
Stars: ✭ 2,953 (+1780.89%)
Mutual labels:  library, boilerplate
React Redux Typescript Jspm Starter
Futuristic, bundle-free, development environment for building Component-Driven SPA with React, Redux and TypeScript - powered by JSPM (SystemJS & Rollup with tree-shaking)
Stars: ✭ 238 (+51.59%)
Mutual labels:  rollup, boilerplate
React Component Library
A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
Stars: ✭ 313 (+99.36%)
Mutual labels:  rollup, library
Svelte Tailwind Extension Boilerplate
A Chrome extension boilerplate built with Svelte, TailwindCSS, Jest, and Rollup.
Stars: ✭ 26 (-83.44%)
Mutual labels:  rollup, boilerplate
Preact Redux Typescript Rollup Starter
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
Stars: ✭ 24 (-84.71%)
Mutual labels:  rollup, boilerplate
Preppy
A simple and lightweight tool for preparing the publish of NPM packages.
Stars: ✭ 23 (-85.35%)
Mutual labels:  rollup, library
Ionic Boilerplate
✨ An Ionic Starter kit featuring Tests, E2E, Karma, Protractor, Jasmine, Istanbul, Gitlab CI, Automatic IPA and APK, TypeScript 2, TsLint, Codelyzer, Typedoc, Yarn, Rollup, and Webpack 2
Stars: ✭ 309 (+96.82%)
Mutual labels:  rollup, boilerplate
Vue Ts Lib
Vue 3 library starter in TS with lint, auto release, changelog and tests
Stars: ✭ 119 (-24.2%)
Mutual labels:  library, boilerplate
Jslib Base
A modern JavaScript|Typescript library scaffolding, modularity, purity & extras
Stars: ✭ 721 (+359.24%)
Mutual labels:  rollup, boilerplate
Egeo
EGEO is the open-source UI library used to build Stratio's UI. It includes UI Components, Utilities, Services and much more to build user interfaces quickly and with ease. The library is distributed in AoT mode.
Stars: ✭ 69 (-56.05%)
Mutual labels:  rollup, library
Babel React Rollup Starter
A simple boilerplate for web apps with React, Babel, and Rollup.
Stars: ✭ 124 (-21.02%)
Mutual labels:  rollup, boilerplate
Paintablevectorview
PaintableVectorView enables to change color of paths/groups in Vector Drawable (SVG)
Stars: ✭ 156 (-0.64%)
Mutual labels:  library
Sfml Vscode Boilerplate
A cross-platform SFML 2.5.1 & C++17 build environment for Visual Studio Code
Stars: ✭ 156 (-0.64%)
Mutual labels:  boilerplate
Ofxgpio
Library C++ for raspberrypi and orangepi, GPIO interfaces compatible with openframeworks.
Stars: ✭ 155 (-1.27%)
Mutual labels:  library
Bootstrap 4 Boilerplate
Bootstrap 4.3.1 boilerplate with Browsersync, Sass and Gulp.js
Stars: ✭ 155 (-1.27%)
Mutual labels:  boilerplate
Style Guide Boilerplate
⚑️🎨 A starting point for crafting living style guides.
Stars: ✭ 1,899 (+1109.55%)
Mutual labels:  boilerplate

Support

If you like the project and want to support my work, you can buy me a coffee :)

paypal

Getting started

There are two methods for getting started with this repo.

Familiar with Git?

git clone [email protected]:KaiHotz/react-rollup-boilerplate.git
cd react-rollup-boilerplate
yarn install

Not Familiar with Git?

Click here to download the .zip file. Extract the contents of the zip file, then open your terminal, change to the project directory, and:

yarn install

Developing

To start the developing run :

yarn start

This will build a version of your library, run the watcher and also run the Styleguide. To open the Styleguide manualy open your Browser and navigate to http://localhost:6060. Start developing your components in src/lib/components folder and update the src/lib/index.js file acordingly. Always provide an YourComponent.examples.md file, so your component will show up in the Styleguide. You can refer to example Button component, but i think you'll get the idea.

Proposals (Babel)

For smoother development some Babel plugin are included

Styling your components

SCSS and CSS are supported out of the box just import your styles into your component like you normaly would do. For the use of CSS Modules refere to rollup-plugin-postcss

Testing

Testing is done with Jest, Enzyme and Jasmine Matchers You can refer to Button.test.js as an example.

yarn test

or (for getting coverage)

yarn test:coverage

Linting

Linting is set up through ESLint and configured with eslint-config-airbnb You can modify linting rules by overriding them in the .eslintrc.json file.

yarn lint

or (for for automatic fixing if possible)

yarn lint:fix

Publishing your library to NPM

To release your library to NPM or your private Registry, make sure you have an active account at NPM, your .npmrc file is correctly setup and the repository url in package.json file is set to your repoitory url, then:

yarn release

Styleguide

For custom layouts, styleing and more information about the Styleguide please refer to React Styleguidist documentation.

Deploy the Styleguide to GitHub Pages

Make sure the repository url in package.json file is set to your repoitory url, then:

yarn deploy

Scripts

  • yarn start : Only serves the Styleguide.
  • yarn build : Builds your library (build can be faound in dist folder).
  • yarn styleguide:build : Builds the static Styleguide in case you want to deploy it.
  • yarn test : Runs the tests.
  • yarn test:coverage: Runs the test and shows the coverage.
  • yarn lint : Runs the linter, typescipt typecheck and stylelint.
  • yarn lint:fix : Runs the linter, typescipt typecheck and stylelint and fixes automatic fixable issues.
  • yarn eslint: Runs only the javascipt linter.
  • yarn eslint:fix: Runs only the javascipt linter and fixes automatic fixable issues.
  • yarn stylelint: Runs only the sytle linter.
  • yarn stylelint:fix: Runs only the sytle linter and fixes automatic fixable issues.
  • yarn check-types: Runs typescript type checker.
  • yarn release : Publishes your Library on NPM or your private Registry (depending on your config in your .npmrc file).
  • yarn deploy: Deploys the Styleguide to GitHub Pages.

Resources

Bundler

Code Formatter

Styleguide

Testing

Linting

Compiler

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].