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
- Host: GitHub
- URL: https://github.com/esamattis/react-makefile
- Owner: esamattis
- License: unlicense
- Created: 2015-12-21T19:18:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T23:53:26.000Z (almost 8 years ago)
- Last Synced: 2025-06-14T20:14:24.153Z (about 1 year ago)
- Topics: boilerplate, reactjs, webpack
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`.