All Projects → yamafaktory → buble-react-rollup-starter

yamafaktory / buble-react-rollup-starter

Licence: MIT License
A simple starter project to build cool React applications with Bublé and Rollup.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to buble-react-rollup-starter

angular-gulp-starter
Simple dev/prod build for Angular (2+) using gulp, systemjs, rollup, ngc (AOT), scss, Visual Studio
Stars: ✭ 18 (-75.34%)
Mutual labels:  rollup
vue-ssr-starter
Starter kit for projects with Webpack 4, Vue 2 and SSR
Stars: ✭ 53 (-27.4%)
Mutual labels:  buble
markushatvan.com
Personal website and blog written from scratch with SvelteKit and TailwindCSS.
Stars: ✭ 82 (+12.33%)
Mutual labels:  rollup
angular-rollup-starter
Angular2 & Rollup.js including AoT and Universal Prerendering
Stars: ✭ 33 (-54.79%)
Mutual labels:  rollup
es-aux
JavaScript开发辅助,包含了开发过程中很多场景需要用到的函数。
Stars: ✭ 22 (-69.86%)
Mutual labels:  rollup
rollup-lib-bundler
Simple lib bundler
Stars: ✭ 13 (-82.19%)
Mutual labels:  rollup
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-73.97%)
Mutual labels:  rollup
svelte-credit-card
A svelte component to render a credit card 💳
Stars: ✭ 30 (-58.9%)
Mutual labels:  rollup
wasi-worker
WASM / WASI interface for browser service workers
Stars: ✭ 31 (-57.53%)
Mutual labels:  rollup
svelte-typescript-rollup
Svelte + Typescript + Rollup
Stars: ✭ 79 (+8.22%)
Mutual labels:  rollup
rollup-plugin-purs
Bundles PureScript modules with Rollup
Stars: ✭ 71 (-2.74%)
Mutual labels:  rollup
rollup-plugin-generate-html-template
Rollup plugin for automatically injecting a script tag with the final bundle into an html file.
Stars: ✭ 58 (-20.55%)
Mutual labels:  rollup
monoreact
📦 React workspaces implementation
Stars: ✭ 13 (-82.19%)
Mutual labels:  rollup
termy-the-terminal
Web-based terminal powered by React
Stars: ✭ 43 (-41.1%)
Mutual labels:  rollup
optimism
The Optimism monorepo
Stars: ✭ 884 (+1110.96%)
Mutual labels:  rollup
rollup-plugin-istanbul
Seamless integration between Rollup and Istanbul
Stars: ✭ 39 (-46.58%)
Mutual labels:  rollup
rolldown
Modern bundler built on Rollup with couple more features, such as multiple entry points, presets, better configuration experience and more.
Stars: ✭ 17 (-76.71%)
Mutual labels:  rollup
postcss-font-grabber
A postcss plugin, it grabs remote font files and update your CSS, just like that.
Stars: ✭ 26 (-64.38%)
Mutual labels:  rollup
urley
📦 An easy cross-platform utility library to work with URLs in Javascript.
Stars: ✭ 14 (-80.82%)
Mutual labels:  rollup
snabbdom-pragma
'NotReact.createElement' jsx pragma although for snabbdom
Stars: ✭ 47 (-35.62%)
Mutual labels:  buble

buble-react-rollup-starter Build Status npm version Standard - JavaScript Style Guide

A simple boilerplate for web apps with React, Bublé and Rollup.

The aim of this project is to provide a simple boilerplate to get started with React bundled as an ES2015 module via Rollup, compiled by Bublé.

To sum up and give an overview of what can be achieved like a breath of fresh air:

// Import React, ReactDOM and the DummyComponent.
import React from 'react'
import ReactDOM from 'react-dom'
import { DummyComponent } from './components/dummy-component.jsx'

// Define the root element.
const root = document.querySelector('main')

// Append the DummyComponent instance to the root element.
ReactDOM.render(<DummyComponent />, root)

Rollup will magically includes only what you need in your bundle depending on the imports!

Prerequisite

NodeJS

The easiest way to go is to use nvm and to install one of the recent NodeJS versions bundled with npm 3 by default (i.e. NodeJS >= 5.0.0).

Installation

Via npm into a fresh project:

npm i buble-react-rollup-starter

Or using Git:

git clone https://github.com/yamafaktory/buble-react-rollup-starter.git
cd buble-react-rollup-starter
npm i

For a faster installation, use yarn instead of npm.

Usage

Development

A basic workflow involving Browsersync is already implemented. Running the following command will open your default browser pointing to the html/index-dev.html file. Any modification of one of the files included in the src directory will trigger a new development build and refresh your browser:

npm start

You can also generate a development build by running the following command:

npm run build:dev

Production

First run the following command:

npm run build

Then open the html/index.html file in your browser.

The Rollup production configuration file switch the NodeJS environment to production and minifies the code with UglifyJS.

Linting

The code quality is checked by the JavaScript Standard Style.

License

Released under the MIT license by Davy Duperron.

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