Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/core-decorators-issue-48
https://github.com/jayphelps/core-decorators-issue-48
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jayphelps/core-decorators-issue-48
- Owner: jayphelps
- Created: 2016-03-03T22:07:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T22:07:48.000Z (almost 9 years ago)
- Last Synced: 2024-10-19T17:58:41.249Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-webpack-boilerplate
## Prerequisites
You must have node and npm installed, then install the webpack development server:```bash
$ npm install webpack-dev-server -g
```## 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`.