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

https://github.com/esamattis/react-makefile

Makefile boilerplate for React.js
https://github.com/esamattis/react-makefile

boilerplate reactjs webpack

Last synced: 5 months ago
JSON representation

Makefile boilerplate for React.js

Awesome Lists containing this project

README

          

# Makefile boilerplate for React.js

Simple React.js boilerplate for GNU Make and Webpack 2.

## Install

Install yarn using

npm install -g yarn

Clone this repo and cd into it

git clone https://github.com/epeli/react-makefile myapp
cd myapp

You might want to reset git history

rm -rf .git
git init
git add .
git commit -m initial

Start by installing all the deps from `package.json`

yarn

Add `yarn.lock` to git

git add yarn.lock && git commit -m "Add yarn.lock"

## Hacking

Start development server

make js-server

and open and hack on `src/index.js`

## Production

Build production bundle with

make js

and preview it with

make server

and open

Commit the production bundle with

make commit-bundle

Using this task is required for commiting the bundle changes because the bundle the changes are hidden from git using `--assume-unchanged`.