Skip to content

Commit

Permalink
package(gh-pages): for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakol committed May 6, 2023
1 parent b0c0bd0 commit d692bd5
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 4 deletions.
255 changes: 255 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
"name": "react-notes-app",
"private": true,
"version": "0.0.0",
"homepage": "https://dimakol.github.io/react-notes-app/",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -24,6 +27,7 @@
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"gh-pages": "^5.0.0",
"typescript": "^5.0.2",
"vite": "^4.3.2"
}
Expand Down
7 changes: 4 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";

// https://vitejs.dev/config/
export default defineConfig({
base: "/react-notes-app/",
plugins: [react()],
})
});

0 comments on commit d692bd5

Please sign in to comment.