Skip to content

Commit

Permalink
Merge pull request #647 from no-chris/migrate-to-vite
Browse files Browse the repository at this point in the history
Migrate from Webpack to Vite
  • Loading branch information
no-chris committed Feb 29, 2024
2 parents c755eda + 299b481 commit 4cfc843
Show file tree
Hide file tree
Showing 115 changed files with 1,797 additions and 2,812 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {

transform: {
'\\.js$': 'babel-jest',
'\\.jsx$': 'babel-jest',
'\\.txt': 'jest-text-transformer',
'\\.svg': 'jest-text-transformer',
},
Expand All @@ -29,5 +30,6 @@ module.exports = {
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/tests/styleMock.js',
'\\.(png)$': '<rootDir>/tests/assetMock.js',
'.*\\.txt\\?raw': 'jest-text-transformer',
},
};
Binary file added logo/favicon/notes-only-color.afdesign
Binary file not shown.
23 changes: 3 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,26 @@
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@size-limit/preset-app": "^11.0.2",
"@size-limit/webpack": "^11.0.2",
"@vitejs/plugin-react": "^4.2.1",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.9.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"deep-freeze": "0.0.1",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jam3": "^0.2.3",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"expressjs": "^1.0.1",
"file-loader": "^6.2.0",
"generate-changelog": "^1.8.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^5.6.0",
"jest": "^29.7.0",
"jest-localstorage-mock": "^2.4.26",
"lerna": "^8.0.2",
"long": "^5.2.3",
"mini-css-extract-plugin": "^2.7.7",
"prettier": "^3.2.4",
"regenerator-runtime": "^0.14.1",
"sass": "^1.70.0",
"sass-loader": "^13.3.3",
"size-limit": "^11.0.2",
"sloc": "0.2.1",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.90.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.10.0",
"workbox-webpack-plugin": "^7.0.0"
"vite": "^5.1.4",
"vite-plugin-pwa": "^0.19.0"
},
"engines": {
"node": ">=20.0"
Expand Down
42 changes: 21 additions & 21 deletions packages/chord-chart-studio/SLOC
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,53 @@ Source code:

---------- Result ------------

Physical : 6257
Source : 5185
Comment : 133
Physical : 6455
Source : 5360
Comment : 135
Single-line comment : 64
Block comment : 69
Block comment : 71
Mixed : 9
Empty block comment : 0
Empty : 948
Empty : 969
To Do : 0

Number of files read : 142
Number of files read : 148

----------------------------

Tests:

---------- Result ------------

Physical : 7167
Source : 5891
Comment : 67
Single-line comment : 60
Physical : 7335
Source : 6023
Comment : 69
Single-line comment : 62
Block comment : 7
Mixed : 10
Mixed : 11
Empty block comment : 0
Empty : 1219
Empty : 1254
To Do : 0

Number of files read : 65
Number of files read : 67

----------------------------

Total:

---------- Result ------------

Physical : 13424
Source : 11076
Comment : 200
Single-line comment : 124
Block comment : 76
Mixed : 19
Physical : 13790
Source : 11383
Comment : 204
Single-line comment : 126
Block comment : 78
Mixed : 20
Empty block comment : 0
Empty : 2167
Empty : 2223
To Do : 0

Number of files read : 207
Number of files read : 215

----------------------------

Binary file removed packages/chord-chart-studio/assets/favicon.png
Binary file not shown.
3 changes: 0 additions & 3 deletions packages/chord-chart-studio/assets/service-worker.js

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions packages/chord-chart-studio/build/assets/index-C5Goj58V.js

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions packages/chord-chart-studio/build/assets/vendor-BPGk5lTF.js

Large diffs are not rendered by default.

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

This file was deleted.

This file was deleted.

Binary file added packages/chord-chart-studio/build/favicon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/chord-chart-studio/build/favicon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/chord-chart-studio/build/favicon.ico
Binary file not shown.
Binary file removed packages/chord-chart-studio/build/favicon.png
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/chord-chart-studio/build/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 49 additions & 4 deletions packages/chord-chart-studio/build/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
<!doctype html><html class="no-js" lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Chord Chart Studio</title><meta name="description" content="Build chord charts easily for all musicians. The official editor of ChordMark."><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Mono:400,700" rel="stylesheet"><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><link rel="“icon”" href="”favicon.ico”" type="“image/x-icon”"><link rel="manifest" href="manifest.json"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-EGKBT2J600"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
<!doctype html>
<html class="no-js" lang="en_EN">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Chord Chart Studio</title>
<meta
name="description"
content="Build chord charts easily for all musicians. The official editor of ChordMark."
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Mono:400,700"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />

gtag('config', 'G-EGKBT2J600');</script><link rel="icon" href="favicon.png"><script defer="defer" src="vendors.a392a146987c4951f596.js"></script><script defer="defer" src="main.a392a146987c4951f596.js"></script><link href="css/main.a392a146987c4951f596.css" rel="stylesheet"></head><body><div id="app" class="theme-dark"></div></body></html>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-EGKBT2J600"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-EGKBT2J600');
</script>
<script type="module" crossorigin src="/assets/index-C5Goj58V.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-BPGk5lTF.js">
<link rel="stylesheet" crossorigin href="/assets/vendor-D780UWrd.css">
<link rel="stylesheet" crossorigin href="/assets/index-1ovoJZ2z.css">
<script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
<body>
<div id="app" class="theme-dark"></div>
</body>
</html>

This file was deleted.

This file was deleted.

7 changes: 6 additions & 1 deletion packages/chord-chart-studio/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"description": "Create and manage chord charts",
"icons": [
{
"src": "favicon.png",
"src": "favicon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "favicon-512.png",
"sizes": "512x512",
"type": "image/png"
}
Expand Down
1 change: 1 addition & 0 deletions packages/chord-chart-studio/build/registerSW.js

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

2 changes: 0 additions & 2 deletions packages/chord-chart-studio/build/service-worker.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/chord-chart-studio/build/service-worker.js.map

This file was deleted.

Loading

0 comments on commit 4cfc843

Please sign in to comment.