Skip to content

Commit 151f449

Browse files
committed
Add github pages setup
1 parent 715c9b5 commit 151f449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "example-map-react-leaflet",
33
"version": "0.1.0",
44
"private": true,
5+
"homepage": "https://hanneolsen.github.io/example-map-react-leaflet",
56
"dependencies": {
67
"@testing-library/jest-dom": "^5.11.4",
78
"@testing-library/react": "^11.1.0",
@@ -11,6 +12,7 @@
1112
"@types/node": "^12.0.0",
1213
"@types/react": "^16.14.2",
1314
"@types/react-dom": "^16.9.8",
15+
"gh-pages": "^3.1.0",
1416
"leaflet": "^1.7.1",
1517
"react": "^17.0.1",
1618
"react-dom": "^17.0.1",
@@ -20,6 +22,8 @@
2022
"web-vitals": "^0.2.4"
2123
},
2224
"scripts": {
25+
"predeploy": "npm run build",
26+
"deploy": "gh-pages -d build",
2327
"start": "react-scripts start",
2428
"build": "react-scripts build",
2529
"test": "react-scripts test",

0 commit comments

Comments
 (0)