Skip to content

Commit

Permalink
1) Migrate from vue-cli to vite.
Browse files Browse the repository at this point in the history
2) Make sure all SFCs use `.vue` extension on import.
3) Moved babel configuration for jest to `preset-env`.
4) Changed eslint env from `node` to `es2021`.
5) Updated dependencies for security vulnerabilities.
6) Upgrade project from TailwindCSS 2 to Tailwind 3 and removed
references to `tailwindcss/ui` package.
7) Migrated tests from `vue-cli-service` to standalone `jest`
  • Loading branch information
RobSpectre committed Mar 31, 2022
1 parent e29785e commit fc61cfd
Show file tree
Hide file tree
Showing 17 changed files with 11,851 additions and 20,633 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
module.exports = {
root: true,
env: {
node: true
es2021: true
},
extends: [
'plugin:vue/vue3-essential',
'@vue/standard'
],
parserOptions: {
parser: '@babel/eslint-parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
'@babel/preset-env'
]
}
9 changes: 5 additions & 4 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="icon" href="/favicon.ico">
<title>hack.party - Hastily coded games where everyone is welcome and
anyone can play.</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but hack.party doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="module" src="/src/main.js"></script>
</body>
</html>
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest'
preset: '@vue/cli-plugin-unit-jest',
setupFiles: [
'./tests/setupTests.js'
]
}
Loading

0 comments on commit fc61cfd

Please sign in to comment.