Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mersocarlin/react-webpack-template

Template for building a ReactJS app
https://github.com/mersocarlin/react-webpack-template

Last synced: 1 day ago
JSON representation

Template for building a ReactJS app

Awesome Lists containing this project

README

        

# react-webpack-template

This is my template for building a ReactJS app with all the boilerplate you need to get started:

- No gulp
- No grunt
- es6 syntax (click [here](https://babeljs.io/docs/learn-es6/) if you need more information about es6)

## Development

* Change the default container in `app/app.js`

```js
import React from 'react';
import App from './containers/[your_default_container]';
import './styles/app.scss';

React.render(, document.getElementById('main'));
```

* Change the output file name (*if you want to*) in `index.html` and `webpack.config.js`

```html

```

```js
output: {
path: 'build',
publicPath: 'build/',
filename: '[your_output_file]'
},
```

* Development server `npm run dev`
* Continuously run tests on file changes `npm run watch-test`
* Run tests: `npm test`
* Build `npm run build`