mirror of
https://github.com/koodiklinikka/palkkakysely.git
synced 2026-03-04 13:00:00 +00:00
Switch from react-scripts to Vite
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
working-directory: analysaattori
|
working-directory: analysaattori
|
||||||
env:
|
env:
|
||||||
GENERATE_SOURCEMAP: 'false'
|
GENERATE_SOURCEMAP: 'false'
|
||||||
- run: cp -a analysaattori/build ./out/analysaattori
|
- run: cp -a analysaattori/dist ./out/analysaattori
|
||||||
- run: ls -laR out
|
- run: ls -laR out
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
uses: JamesIves/github-pages-deploy-action@4.0.0
|
||||||
|
|||||||
2
analysaattori/.gitignore
vendored
2
analysaattori/.gitignore
vendored
@@ -9,7 +9,7 @@
|
|||||||
/coverage
|
/coverage
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
/dist
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
<link rel="icon" href="./favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="description" content="Web site created using create-react-app" />
|
<meta name="description" content="Web site created using create-react-app" />
|
||||||
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script>
|
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script>
|
||||||
@@ -11,5 +11,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/index.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -4,22 +4,35 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://koodiklinikka.github.io/palkkakysely/analysaattori/",
|
"homepage": "https://koodiklinikka.github.io/palkkakysely/analysaattori/",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^14.14.31",
|
|
||||||
"@types/react": "^17.0.2",
|
|
||||||
"@types/react-dom": "^17.0.1",
|
|
||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^17.0.1",
|
||||||
"react-pivottable": "^0.11.0",
|
"react-pivottable": "^0.11.0",
|
||||||
"react-plotly.js": "^2.5.1",
|
"react-plotly.js": "^2.5.1",
|
||||||
"react-scripts": "4.0.2",
|
"swr": "^0.4.2"
|
||||||
"swr": "^0.4.2",
|
},
|
||||||
"typescript": "^4.1.5"
|
"devDependencies": {
|
||||||
|
"@types/node": "^14.14.31",
|
||||||
|
"@types/plotly.js": "^1.54.8",
|
||||||
|
"@types/react-plotly.js": "^2.2.4",
|
||||||
|
"@types/react": "^17.0.38",
|
||||||
|
"@types/react-dom": "^17.0.11",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||||
|
"@typescript-eslint/parser": "^5.30.6",
|
||||||
|
"@vitejs/plugin-react": "^2.0.0",
|
||||||
|
"eslint": "^8.19.0",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
|
"eslint-plugin-react": "^7.30.1",
|
||||||
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
|
"prettier": "^2.7.1",
|
||||||
|
"typescript": "^4.1.5",
|
||||||
|
"vite": "^3.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"dev": "vite",
|
||||||
"build": "react-scripts build",
|
"build": "tsc && vite build",
|
||||||
"test": "react-scripts test",
|
"serve": "vite preview",
|
||||||
"eject": "react-scripts eject"
|
"lint": "eslint .",
|
||||||
|
"prettify": "prettier --write ."
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "react-app"
|
"extends": "react-app"
|
||||||
@@ -36,9 +49,5 @@
|
|||||||
"last 1 firefox version",
|
"last 1 firefox version",
|
||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/plotly.js": "^1.54.8",
|
|
||||||
"@types/react-plotly.js": "^2.2.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
analysaattori/src/react-app-env.d.ts
vendored
1
analysaattori/src/react-app-env.d.ts
vendored
@@ -1 +0,0 @@
|
|||||||
/// <reference types="react-scripts" />
|
|
||||||
1
analysaattori/src/vite-env.d.ts
vendored
Normal file
1
analysaattori/src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/// <reference types="vite/client" />
|
||||||
7
analysaattori/vite.config.ts
Normal file
7
analysaattori/vite.config.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { defineConfig } from "vite";
|
||||||
|
import react from "@vitejs/plugin-react";
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [react()],
|
||||||
|
});
|
||||||
11659
analysaattori/yarn.lock
11659
analysaattori/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user