Skip to content

Commit

Permalink
conf: Setup Github Pages
Browse files Browse the repository at this point in the history
Install package gh-pages
Update the homepage option
Add scripts to process build and deploy
Run the script deploy
  • Loading branch information
ryomario committed Nov 11, 2023
1 parent 082fe8d commit 5895084
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 1 deletion.
162 changes: 162 additions & 0 deletions package-lock.json

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

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "homepage",
"version": "0.1.0",
"private": true,
"homepage": "./",
"homepage": "https://ryomario.github.io/homepage",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand All @@ -19,6 +19,8 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand All @@ -41,5 +43,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^6.0.0"
}
}

0 comments on commit 5895084

Please sign in to comment.