Skip to content

Commit 6da5ead

Browse files
fix: stuff
1 parent 6c7b356 commit 6da5ead

Some content is hidden

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

66 files changed

+6852
-10097
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
.env
88
.env.*
99
!.env.example
10+
/playwright-report

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
FROM node:20-alpine as build
22

3+
ENV PNPM_HOME="/pnpm"
4+
ENV PATH="$PNPM_HOME:$PATH"
5+
RUN corepack enable
36
WORKDIR /app
47

58
ADD ./build.js /app/build.js
69
ADD ./tsconfig.json /app/tsconfig.json
710
ADD ./svelte.config.js /app/svelte.config.js
811
ADD ./vite.config.ts /app/vite.config.ts
912
ADD ./package.json /app/package.json
10-
ADD ./package-lock.json /app/package-lock.json
13+
ADD ./pnpm-lock.yaml /app/pnpm-lock.yaml
1114
ADD ./src /app/src
1215
ADD ./static /app/static
1316

@@ -21,8 +24,8 @@ ENV VITE_APPWRITE_GROWTH_ENDPOINT=$VITE_APPWRITE_GROWTH_ENDPOINT
2124
ENV VITE_CONSOLE_MODE=$VITE_CONSOLE_MODE
2225
ENV VITE_STRIPE_PUBLIC_KEY=$VITE_STRIPE_PUBLIC_KEY
2326

24-
RUN npm ci
25-
RUN npm run build
27+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
28+
RUN pnpm run build
2629

2730
FROM nginx:1.25-alpine
2831

compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ services:
77
VITE_APPWRITE_ENDPOINT: ${VITE_APPWRITE_ENDPOINT}
88
VITE_APPWRITE_GROWTH_ENDPOINT: ${VITE_APPWRITE_GROWTH_ENDPOINT}
99
VITE_STRIPE_PUBLIC_KEY: ${VITE_STRIPE_PUBLIC_KEY}
10+
develop:
11+
watch:
12+
- action: rebuild
13+
path: ./
14+
ignore:
15+
- .github
16+
- tests/
17+
- node_modules/
18+
- build/
1019
environment:
1120
- VITE_CONSOLE_MODE
1221
- VITE_APPWRITE_ENDPOINT

package-lock.json

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@appwrite/console",
33
"engines": {
4-
"node": ">=16"
4+
"node": ">=20"
55
},
66
"scripts": {
77
"dev": "vite dev",
@@ -74,5 +74,6 @@
7474
"vite": "^5.0.11",
7575
"vitest": "^1.2.1"
7676
},
77-
"type": "module"
77+
"type": "module",
78+
"packageManager": "[email protected]+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
7879
}

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config: PlaywrightTestConfig = {
55
reportSlowTests: null,
66
reporter: [['html', { open: 'never' }]],
77
use: {
8-
baseURL: 'http://localhost:4173/console'
8+
baseURL: 'http://localhost:4173/console/'
99
},
1010
webServer: {
1111
timeout: 120000,

0 commit comments

Comments
 (0)