Skip to content

Commit 99ec927

Browse files
michael-88944ilyar
authored andcommitted
feat: new site
1 parent 8a2ecec commit 99ec927

77 files changed

Lines changed: 3311 additions & 7040 deletions

Some content is hidden

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

module/site/.eslintrc.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
overrides: [
13+
{
14+
files: [
15+
'e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'
16+
],
17+
'extends': [
18+
'plugin:playwright/recommended'
19+
]
20+
}
21+
],
22+
parserOptions: {
23+
ecmaVersion: 'latest'
24+
}
25+
}

module/site/.eslintrc.json

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

module/site/.gitignore

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# vuepress build output
95+
.vuepress/dist
96+
97+
# vuepress v2.x temp and cache directory
98+
.temp
99+
.cache
100+
101+
# Docusaurus cache and generated files
102+
.docusaurus
103+
104+
# Serverless directories
105+
.serverless/
106+
107+
# FuseBox cache
108+
.fusebox/
109+
110+
# DynamoDB Local files
111+
.dynamodb/
112+
113+
# TernJS port file
114+
.tern-port
115+
116+
# Stores VSCode versions used for testing VSCode extensions
117+
.vscode-test
118+
119+
# yarn v2
120+
.yarn/cache
121+
.yarn/unplugged
122+
.yarn/build-state.yml
123+
.yarn/install-state.gz
124+
.pnp.*
125+
126+
# local env files
127+
.env*.local
128+
129+
# vercel
130+
.vercel
131+
132+
# typescript
133+
next-env.d.ts
134+
135+
# Editor directories and files
136+
.vscode/*
137+
!.vscode/extensions.json
138+
.idea
139+
*.suo
140+
*.ntvs*
141+
*.njsproj
142+
*.sln
143+
*.sw?
144+
145+
test-results/
146+
playwright-report/
147+
148+
# Logs
149+
node_modules
150+
.DS_Store
151+
dist-ssr
152+
*.local
153+
154+
/cypress/videos/
155+
/cypress/screenshots/

module/site/.prettierrc.json

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

module/site/README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# elemgame
2+
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8+
9+
## Type Support for `.vue` Imports in TS
10+
11+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
12+
13+
## Customize configuration
14+
15+
See [Vite Configuration Reference](https://vitejs.dev/config/).
16+
17+
## Project Setup
18+
19+
```sh
20+
npm install
21+
```
22+
23+
### Compile and Hot-Reload for Development
24+
25+
```sh
26+
npm run dev
27+
```
28+
29+
### Type-Check, Compile and Minify for Production
30+
31+
```sh
32+
npm run build
33+
```
34+
35+
### The vite preview command will boot up a local static web server that serves the files from dist at http://localhost:4173
36+
37+
```sh
38+
npm run preview
39+
```
40+
41+
### Run Unit Tests with [Vitest](https://vitest.dev/)
42+
43+
```sh
44+
npm run test:unit
45+
```
46+
47+
### Run End-to-End Tests with [Playwright](https://playwright.dev)
48+
49+
```sh
50+
# Install browsers for the first run
51+
npx playwright install
52+
53+
# When testing on CI, must build the project first
54+
npm run build
55+
56+
# Runs the end-to-end tests
57+
npm run test:e2e
58+
# Runs the tests only on Chromium
59+
npm run test:e2e -- --project=chromium
60+
# Runs the tests of a specific file
61+
npm run test:e2e -- tests/example.spec.ts
62+
# Runs the tests in debug mode
63+
npm run test:e2e -- --debug
64+
```
65+
66+
### Lint with [ESLint](https://eslint.org/)
67+
68+
```sh
69+
npm run lint
70+
```

module/site/e2e/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@tsconfig/node20/tsconfig.json",
3+
"include": ["./**/*"]
4+
}

module/site/e2e/vue.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
// See here how to get started:
4+
// https://playwright.dev/docs/intro
5+
test('visits the app root url', async ({ page }) => {
6+
await page.goto('/');
7+
await expect(page.locator('div.greetings > h1')).toHaveText('You did it!');
8+
})

module/site/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" />

module/site/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<!-- <title>Fight on the field of battle</title>-->
8+
<title>ELEM GAME</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

module/site/mdx-components.tsx

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

0 commit comments

Comments
 (0)