Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mersocarlin/react-webpack-template
- Owner: mersocarlin
- License: mit
- Created: 2015-04-24T17:08:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-25T07:57:40.000Z (over 8 years ago)
- Last Synced: 2024-04-24T10:07:10.164Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.06 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`