Skip to content

Commit 4765be9

Browse files
committed
chore(web): initial project setup and configuration
1 parent 31378f5 commit 4765be9

68 files changed

Lines changed: 5060 additions & 5939 deletions

Some content is hidden

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

web/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

web/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

web/.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 80,
6+
"plugins": [
7+
"prettier-plugin-tailwindcss"
8+
],
9+
"tailwindConfig": "./tailwind.config.js"
10+
}

web/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ FROM node:18-alpine AS builder
22
ARG VITE_API_CLIENT_BASE_URL
33
ENV VITE_API_CLIENT_BASE_URL=${VITE_API_CLIENT_BASE_URL}
44
WORKDIR /app
5-
RUN npm install -g pnpm
6-
COPY package.json pnpm-lock.yaml ./
7-
RUN pnpm install
5+
COPY package.json package-lock.yaml ./
6+
RUN npm install
87
COPY . .
9-
RUN pnpm run build
8+
RUN npm run build
109

1110
FROM nginx:stable-alpine AS production
1211
WORKDIR /usr/share/nginx/html

web/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

web/eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import globals from 'globals'
33
import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
55
import tseslint from 'typescript-eslint'
6+
import eslintPluginPrettier from 'eslint-plugin-prettier'
7+
import eslintConfigPrettier from "eslint-config-prettier"
68

79
export default tseslint.config(
8-
{ ignores: ['dist'] },
10+
{ ignores: ['dist', 'node_modules'] },
911
{
1012
extends: [js.configs.recommended, ...tseslint.configs.recommended],
1113
files: ['**/*.{ts,tsx}'],
@@ -16,6 +18,7 @@ export default tseslint.config(
1618
plugins: {
1719
'react-hooks': reactHooks,
1820
'react-refresh': reactRefresh,
21+
'prettier': eslintPluginPrettier
1922
},
2023
rules: {
2124
...reactHooks.configs.recommended.rules,
@@ -24,5 +27,6 @@ export default tseslint.config(
2427
{ allowConstantExport: true },
2528
],
2629
},
30+
eslintConfigPrettier
2731
},
2832
)

web/index.html

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link
6-
rel="icon"
7-
type="image/svg+xml"
8-
href="/logo-svg.svg"
9-
style="height: 36px; width: 36px"
10-
/>
11-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
12-
<title>Devops-GPT</title>
13-
</head>
14-
<body class="bg-gradient-to-br pb-5 from-black to-neutral-600 p-0 m-0">
15-
<div id="root"></div>
16-
<script type="module" src="/src/main.tsx"></script>
17-
</body>
18-
</html>
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>DevopsGpt</title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/main.tsx"></script>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)