Skip to content

Commit

Permalink
clean-up package.json and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtysn committed May 25, 2024
1 parent c553461 commit 3813b20
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 591 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@

On the root folder of the project, run

- `pnpm install`
- `pnpm run start`

### 🛠️ How to deploy to GitHub Pages

On the root folder of the project, run

- `pnpm install`
- `pnpm run predeploy`
- `pnpm run deploy`

### 🖨️ How to create a PDF

- 👨‍💻 If you are working on a local copy

- Run `pnpm run start`
- Run `pnpm install` and `pnpm run start`
- Visit [localhost:3000](http://localhost:3000) (where the app is running)

- 🌐 If you already deployed
Expand Down
20 changes: 5 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"semantic-ui-css": "^2.5.0",
"semantic-ui-react": "^2.1.5",
Expand All @@ -13,10 +13,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"postbuild": "react-snap",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"predeploy": "pnpm run build",
"deploy": "gh-pages -d build"
},
"browserslist": {
Expand All @@ -32,14 +29,7 @@
]
},
"devDependencies": {
"gh-pages": "^6.1.1",
"react-snap": "^1.23.0"
"gh-pages": "^6.1.1"
},
"homepage": "http://mrtysn.github.io/cv",
"reactSnap": {
"minifyHtml": {
"sortClassName": false,
"inlineCss": false
}
}
"homepage": "http://mrtysn.github.io/cv"
}
Loading

0 comments on commit 3813b20

Please sign in to comment.