Skip to content

Commit 44b0659

Browse files
authored
refactoring (#2)
* bump dependencies + migrate to vite for build * add pinia stores + refactored the app
1 parent ebee88f commit 44b0659

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4293
-8918
lines changed

.browserslistrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
parserOptions: {
13+
ecmaVersion: 'latest'
14+
}
15+
}

.eslintrc.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": true,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
# Mythic+ Team Randomiser
22

3-
> **This started life as a tool I made for my guild. I figured it could be useful to the wider community. If you find any bugs or have any suggestions, please [let me know](mailto:mythic+randomiser@merry.earth?subject=Suggestions).**
3+
> This started life as a tool I made for my guild. I figured it could be useful to the wider community. If you find any bugs please [raise an issue](https://github.com/devi4nt/mythic-plus-team-randomiser/issues). If you have any ideas or suggestions feel free to [start a discussion](https://github.com/devi4nt/mythic-plus-team-randomiser/discussions).
44
5-
If you like this tool & found it useful, please consider [buying me a coffee](https://buymeacoffee.com/devi4nt). It's a great way to support my work and motivate me to keep creating new tools.
5+
If you like this tool & found it useful, please consider [buying me a coffee](https://buymeacoffee.com/devi4nt). It's a great way to support my work and motivate me to keep creating new tools.
66

77
<a href="https://buymeacoffee.com/devi4nt"><img src="src/assets/images/buy-me-a-coffee-qr.png" width="150" height="150"></a>
88

9-
109
This project uses https://pnpm.io/ as it's package manager.
1110

1211
## Project setup
12+
1313
```
1414
pnpm install
1515
```
1616

1717
### Compiles and hot-reloads for development
18+
1819
```
1920
pnpm run serve
2021
```
2122

2223
### Compiles and minifies for production
24+
2325
```
2426
pnpm run build
2527
```
2628

2729
### Lints and fixes files
30+
2831
```
2932
pnpm run lint
3033
```
3134

3235
### Customize configuration
36+
3337
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

index.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
7+
<title>WoW Mythic+ Team Randomiser - Team Selection for Your Guild</title>
8+
<meta
9+
name="description"
10+
content="Struggling to fairly distribute players when there are too many online for a single Mythic+ group? Our WoW Mythic+ Team Randomiser is the perfect solution for World of Warcraft guilds. Easily create balanced and fair teams, ensuring everyone gets a chance to participate. Enhance your guild's harmony and efficiency with our user-friendly tool."
11+
/>
12+
<meta
13+
name="keywords"
14+
content="world of warcraft,wow,mythic plus,mythic+,team randomiser,guild,wow guilds,random team generator,wow tools,wow addons,mythic+ teams,wow group creator,wow team builder,mmorpg,online gaming,gaming tools,wow companion,wow team management"
15+
/>
16+
<meta
17+
property="og:title"
18+
content="WoW Mythic+ Team Randomiser - Team Selection for Your Guild"
19+
/>
20+
<meta
21+
property="og:description"
22+
content="Struggling to fairly distribute players when there are too many online for a single Mythic+ group? Our WoW Mythic+ Team Randomiser is the perfect solution for World of Warcraft guilds. Easily create balanced and fair teams, ensuring everyone gets a chance to participate. Enhance your guild's harmony and efficiency with our user-friendly tool."
23+
/>
24+
<meta property="og:locale" content="en_gb" />
25+
<meta
26+
property="og:image"
27+
content="https://mythic-plus-team-randomiser.pages.dev/open-graph.jpg"
28+
/>
29+
<meta property="og:type" content="website" />
30+
<meta property="og:site_name" content="Mythic+ Team Randomiser" />
31+
<meta property="og:locale" content="en_GB" />
32+
<meta property="og:url" content="https://mythic-plus-team-randomiser.pages.dev" />
33+
<meta name="twitter:card" content="summary_large_image" />
34+
<meta name="twitter:domain" content="mythic-plus-team-randomiser.pages.dev" />
35+
<meta name="twitter:url" content="https://mythic-plus-team-randomiser.pages.dev" />
36+
<meta name="twitter:title" content="Mythic+ Team Randomiser" />
37+
<meta
38+
name="twitter:description"
39+
content="Struggling to fairly distribute players when there are too many online for a single Mythic+ group? Our WoW Mythic+ Team Randomiser is the perfect solution for World of Warcraft guilds. Easily create balanced and fair teams, ensuring everyone gets a chance to participate. Enhance your guild's harmony and efficiency with our user-friendly tool."
40+
/>
41+
<meta
42+
name="twitter:image"
43+
content="https://mythic-plus-team-randomiser.pages.dev/open-graph.jpg"
44+
/>
45+
<meta property="robots" content="index,follow" />
46+
<link rel="icon" type="image/png" href="/favicon.png" />
47+
<script
48+
defer
49+
data-domain="mythic-plus-team-randomiser.pages.dev"
50+
src="https://plausible.io/js/script.js"
51+
></script>
52+
</head>
53+
<body>
54+
<div id="app"></div>
55+
<script type="module" src="/src/main.ts"></script>
56+
</body>
57+
</html>

package.json

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,51 @@
22
"name": "mythic-plus-team-randomiser",
33
"version": "1.0.0",
44
"private": true,
5+
"type": "module",
56
"scripts": {
6-
"dev": "vue-cli-service serve --port 3010",
7-
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
7+
"dev": "vite",
8+
"build": "run-p type-check \"build-only {@}\" --",
9+
"preview": "vite preview",
10+
"test:unit": "vitest",
11+
"build-only": "vite build",
12+
"type-check": "vue-tsc --build --force",
13+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
14+
"format": "prettier --write src/"
915
},
1016
"dependencies": {
11-
"@headlessui/vue": "^1.7.13",
12-
"@heroicons/vue": "^2.0.15",
13-
"@types/uuid": "^9.0.1",
14-
"@vueuse/core": "^10.1.2",
15-
"animejs": "^3.2.1",
16-
"core-js": "^3.27.2",
17-
"uuid": "^9.0.0",
18-
"vue": "^3.2.47",
17+
"@headlessui/vue": "^1.7.22",
18+
"@heroicons/vue": "^2.1.5",
19+
"@vueuse/core": "^10.11.0",
20+
"pinia": "^2.1.7",
21+
"uuid": "^10.0.0",
22+
"vue": "^3.4.29",
1923
"vue-confetti-explosion": "^1.0.2"
2024
},
2125
"devDependencies": {
22-
"@types/animejs": "^3.1.7",
23-
"@typescript-eslint/eslint-plugin": "^5.51.0",
24-
"@typescript-eslint/parser": "^5.51.0",
25-
"@vue/cli-plugin-babel": "~5.0.8",
26-
"@vue/cli-plugin-eslint": "~5.0.8",
27-
"@vue/cli-plugin-typescript": "~5.0.8",
28-
"@vue/cli-service": "~5.0.8",
29-
"@vue/eslint-config-typescript": "^11.0.2",
30-
"autoprefixer": "^10.4.13",
31-
"eslint": "^8.33.0",
32-
"eslint-config-prettier": "^8.6.0",
33-
"eslint-plugin-prettier": "^4.2.1",
34-
"eslint-plugin-vue": "^9.9.0",
35-
"postcss": "^8.4.21",
36-
"postcss-import": "^15.1.0",
37-
"prettier": "^2.8.4",
38-
"sass": "^1.58.0",
39-
"sass-loader": "^13.2.0",
40-
"tailwindcss": "^3.2.6",
41-
"typescript": "~4.9.5"
26+
"@rushstack/eslint-patch": "^1.8.0",
27+
"@tsconfig/node20": "^20.1.4",
28+
"@types/jsdom": "^21.1.7",
29+
"@types/node": "^20.14.5",
30+
"@types/uuid": "^10.0.0",
31+
"@vitejs/plugin-vue": "^5.0.5",
32+
"@vue/eslint-config-prettier": "^9.0.0",
33+
"@vue/eslint-config-typescript": "^13.0.0",
34+
"@vue/test-utils": "^2.4.6",
35+
"@vue/tsconfig": "^0.5.1",
36+
"autoprefixer": "^10.4.20",
37+
"eslint": "^8.57.0",
38+
"eslint-plugin-vue": "^9.23.0",
39+
"jsdom": "^24.1.0",
40+
"npm-run-all2": "^6.2.0",
41+
"postcss": "^8.4.40",
42+
"postcss-import": "^16.1.0",
43+
"prettier": "^3.2.5",
44+
"sass": "^1.77.8",
45+
"sass-loader": "^16.0.0",
46+
"tailwindcss": "^3.4.7",
47+
"typescript": "~5.4.0",
48+
"vite": "^5.3.1",
49+
"vitest": "^1.6.0",
50+
"vue-tsc": "^2.0.21"
4251
}
4352
}

0 commit comments

Comments
 (0)