https://github.com/nerdbeere/typescript-react-rollup-starter
https://github.com/nerdbeere/typescript-react-rollup-starter
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nerdbeere/typescript-react-rollup-starter
- Owner: nerdbeere
- License: mit
- Created: 2016-09-20T08:06:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-20T08:06:46.000Z (over 9 years ago)
- Last Synced: 2025-01-29T16:11:26.478Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-react-rollup-starter [](https://travis-ci.org/yamafaktory/babel-react-rollup-starter) [](https://www.npmjs.com/package/babel-react-rollup-starter) [](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.