Skip to content

Commit

Permalink
Updated instructions for React Project
Browse files Browse the repository at this point in the history
  • Loading branch information
walnutdust committed Jun 11, 2020
1 parent 5cee5ba commit baf9308
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Personal Website React/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $ cd personal-website
$ git remote add origin https://github.com/<github-username>/<github-username>.github.io.git
$ git add .
$ git commit -m "Initial commit"
$ git push
$ git push --set-upstream origin master
```

**Add gh-pages package**
Expand All @@ -56,6 +56,7 @@ $ git push
5. Go to `package.json`, add a homepage to your `package.json` like this:

```json
// package.json
{
"name": "My Personal Website",
"version": "0.1.0",
Expand All @@ -68,8 +69,16 @@ $ git push
6. Add the following under scripts of package.json:

```json
"predeploy": "npm run build",
"deploy": "gh-pages -d build -b master”
// package.json
{
...
"scripts": {
...
"predeploy": "npm run build",
"deploy": "gh-pages -d build -b master”,
},
...
}
```

**Changing the default branch**
Expand Down

0 comments on commit baf9308

Please sign in to comment.