Skip to content

Commit

Permalink
[Github Pages] Add configuration to package.json to deploy to Githu…
Browse files Browse the repository at this point in the history
…b Pages (#2)

* Install gh-pages package

* Add homepage property for the site url

* Add command for predeploy and deploy
  • Loading branch information
yuhueilee authored Feb 22, 2024
1 parent 92cf042 commit b63cbc8
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 3 deletions.
162 changes: 161 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "wendyfolio",
"version": "0.1.0",
"homepage": "https://yuhueilee.github.io/wendyfolio",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
Expand All @@ -25,7 +26,9 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
Expand All @@ -47,6 +50,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-private-property-in-object": "^7.23.4"
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
"gh-pages": "^6.1.1"
}
}

0 comments on commit b63cbc8

Please sign in to comment.