Skip to content

Commit

Permalink
(chore) Switch example site from CRA to Vite (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Feb 20, 2024
1 parent ff0ba7f commit b442d97
Show file tree
Hide file tree
Showing 17 changed files with 1,476 additions and 10,703 deletions.
16 changes: 16 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="metar-taf-parser example site" />
<title>metar-taf-parser</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
54 changes: 25 additions & 29 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,37 @@
"homepage": "https://aeharding.github.io/metar-taf-parser",
"packageManager": "pnpm@8.15.3+sha256.fc4a49bd609550a41e14d20efbce802a4b892aa4cac877322de2f0924f122991",
"private": true,
"type": "module",
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@fortawesome/fontawesome-free": "^6.2.0",
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@fortawesome/fontawesome-free": "^6.5.1",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.0",
"@types/node": "^18.11.5",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.7",
"axios": "^1.1.3",
"date-fns": "^2.29.3",
"@types/node": "^20.11.19",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"axios": "^1.6.7",
"date-fns": "^3.3.1",
"lodash": "^4.17.21",
"metar-taf-parser": "^8.0.0",
"metar-taf-parser": "^8.0.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-json-view": "^1.21.3",
"react-router": "^6.4.2",
"react-router-dom": "^6.4.2",
"react-scripts": "5.0.1",
"react-textarea-autosize": "^8.3.4",
"typescript": "^4.8.4",
"web-vitals": "^3.0.4"
"react-router": "^6.22.1",
"react-router-dom": "^6.22.1",
"react-textarea-autosize": "^8.5.3",
"typescript": "^5.3.3",
"web-vitals": "^3.5.2"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"predeploy": "pnpm build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build && cp build/index.html build/404.html",
"test": "react-scripts test",
"eject": "react-scripts eject"
"start": "vite",
"build": "tsc && vite build",
"serve": "vite preview"
},
"eslintConfig": {
"extends": [
Expand All @@ -60,9 +55,10 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/lodash": "^4.14.186",
"gh-pages": "^4.0.0",
"source-map-explorer": "^2.5.3"
"@types/lodash": "^4.14.202",
"@vitejs/plugin-react": "^4.2.1",
"gh-pages": "^6.1.1",
"source-map-explorer": "^2.5.3",
"vite": "^5.1.3"
}
}
Loading

0 comments on commit b442d97

Please sign in to comment.