Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ The remainder of this document contains a tutorial on creating a React app (usin
```
$ cd react-gh-pages
$ npm install gh-pages --save-dev
or
$ yarn add gh-pages --dev
```

* The commands shown in the following steps can all be issued from within the app's folder.
Expand Down Expand Up @@ -99,6 +101,8 @@ The remainder of this document contains a tutorial on creating a React app (usin
```sh
$ sed -i '5i\ "homepage": "http://gitname.github.io/react-gh-pages",' ./package.json
$ sed -i '15i\ "predeploy": "npm run build",' ./package.json
or
$ sed -i '15i\ "predeploy": "yarn build",' ./package.json
$ sed -i '16i\ "deploy": "gh-pages -d build",' ./package.json
```

Expand Down