Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jayphelps/react-webpack-boilerplate

NOTE: As of now, this is used mostly internally by our team so it'll have some things like Semantic UI, etc that you might not want.
https://github.com/jayphelps/react-webpack-boilerplate

Last synced: 16 days ago
JSON representation

NOTE: As of now, this is used mostly internally by our team so it'll have some things like Semantic UI, etc that you might not want.

Awesome Lists containing this project

README

        

# react-webpack-boilerplate

**NOTE: As of now, this is used mostly internally by our team so it'll have some things like Semantic UI, etc that you might not want.**

## Prerequisites
You must have node and npm installed, then install the webpack development server:

```bash
$ npm install webpack-dev-server -g
```

Then install the local dependencies

```bash
$ npm install
```

## Dev build + livereload webserver
```bash
$ npm start
```

## Dev build
```bash
$ npm run build
```

## Prod build
```bash
$ npm run build-prod
```

## Run tests
```bash
$ npm test
```

## Project name/importing from app src root

Importing from your `src/` directory root instead of using a relative path can be done using a fully-qualified path that starts with the same name as the name field in your `package.json`, which is `react-webpack-boilerplate` by default but you should probably change this.

```js
import someFile from 'react-webpack-boilerplate/path/to/file';
// will import from 'src/path/to/file'
```

## Linting

By default, all stage 0 features of JavaScript that are available in Babel are included and linted with a very opinionated profile. If you'd prefer to change the linting settings, you can do so in `.eslintrc`.