An open API service indexing awesome lists of open source software.

https://github.com/nerdbeere/typescript-react-rollup-starter


https://github.com/nerdbeere/typescript-react-rollup-starter

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# babel-react-rollup-starter [![Build Status](https://travis-ci.org/yamafaktory/babel-react-rollup-starter.svg?branch=master)](https://travis-ci.org/yamafaktory/babel-react-rollup-starter) [![npm version](https://img.shields.io/npm/v/babel-react-rollup-starter.svg?style=flat)](https://www.npmjs.com/package/babel-react-rollup-starter) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

> A simple boilerplate for web apps with [React](https://facebook.github.io/react/), [Babel](http://babeljs.io/), and [Rollup](http://rollupjs.org/).

## Installation

```sh
npm install --global babel-react-rollup-starter
```

## Usage

### Development

Running the following command will open your default browser to `html/index-dev.html`. Thanks to [Browsersync](https://www.browsersync.io/), any modifications inside `src` trigger a browser refresh:

```sh
npm test
```

To generate a development bundle:

```sh
npm run build:dev
```

### Production

1. First run the following command:

```sh
npm run build
```

2. Open `html/index.html` in your browser.

The Rollup production configuration file changes `NODE_ENV` to production and minifies the code with [UglifyJS](http://lisperator.net/uglifyjs/).

## Linting

The code quality is checked by the [JavaScript Standard Style](http://standardjs.com/).

## License

Released under the [MIT license](https://opensource.org/licenses/MIT) by Davy Duperron.