mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-24 10:39:09 +02:00
chore: add vite-plus as node toolchain (#1806)
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
# Package Managers
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
|
||||
.output/
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"useTabs": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"printWidth": 100
|
||||
}
|
||||
+8
-8
@@ -4,16 +4,16 @@
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"test": "playwright test",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.60.0",
|
||||
"@types/node": "^25.9.0",
|
||||
"dotenv": "^17.4.2",
|
||||
"jose": "^6.2.3",
|
||||
"prettier": "^3.8.3"
|
||||
"format": "vp fmt",
|
||||
"format:check": "vp fmt --check"
|
||||
},
|
||||
"dependencies": {
|
||||
"adm-zip": "^0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.60.0",
|
||||
"@types/node": "^25.9.0",
|
||||
"dotenv": "^17.4.2",
|
||||
"jose": "^6.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
# The image ships its own HEALTHCHECK, which probes the runtime over the loopback
|
||||
# It's repeated here so Pocket ID can wait on it, and so a runtime that never comes up fails fast instead of after the default retries
|
||||
healthcheck:
|
||||
test: ["CMD", "/bin/francis", "healthcheck"]
|
||||
test: ['CMD', '/bin/francis', 'healthcheck']
|
||||
interval: 2s
|
||||
timeout: 5s
|
||||
retries: 15
|
||||
|
||||
@@ -15,7 +15,7 @@ services:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=pocket-id
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
@@ -19,8 +19,8 @@ services:
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
'curl -fs http://localstack-s3:4566/_localstack/init/ready | grep -q ''"completed": true''',
|
||||
'CMD-SHELL',
|
||||
'curl -fs http://localstack-s3:4566/_localstack/init/ready | grep -q ''"completed": true'''
|
||||
]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
|
||||
@@ -12,13 +12,13 @@ services:
|
||||
scim-test-server:
|
||||
image: ghcr.io/pocket-id/scim-test-server:latest
|
||||
ports:
|
||||
- "18123:8080"
|
||||
- '18123:8080'
|
||||
pocket-id:
|
||||
image: pocket-id:test
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- 'host.docker.internal:host-gateway'
|
||||
ports:
|
||||
- "1411:1411"
|
||||
- '1411:1411'
|
||||
environment:
|
||||
APP_ENV: test
|
||||
ENCRYPTION_KEY: test-encryption-key
|
||||
|
||||
@@ -3,22 +3,22 @@
|
||||
# These secrets are fixed test values and must match the FRANCIS_HOST_PSK passed to Pocket ID in docker-compose-francis.yml.
|
||||
|
||||
# The WebTransport server runs over HTTP/3, so this port is UDP
|
||||
bind: "0.0.0.0:7400"
|
||||
bind: '0.0.0.0:7400'
|
||||
|
||||
# The runtime PSKs derive the cluster CA that signs every workload certificate
|
||||
runtimePSKs:
|
||||
- "e2e-runtime-psk-0123456789abcdef"
|
||||
- 'e2e-runtime-psk-0123456789abcdef'
|
||||
|
||||
# Hosts prove they may join by presenting this pre-shared key
|
||||
bootstrap:
|
||||
method: psk
|
||||
hostPSK: "e2e-host-bootstrap-psk-0123456789"
|
||||
hostPSK: 'e2e-host-bootstrap-psk-0123456789'
|
||||
|
||||
# The runtime owns its own SQLite store, which is separate from Pocket ID's database
|
||||
# It lives in /tmp because the image runs as a non-root user (uid 65532) and that is the only world-writable directory in it
|
||||
# The store only has to survive as long as the containers do, so there is nothing to persist beyond the test run
|
||||
provider:
|
||||
connectionString: "/tmp/francis.db"
|
||||
connectionString: '/tmp/francis.db'
|
||||
|
||||
# A single Pocket ID replica joins the cluster, matching the cap the embedded runtime applies when HA is off
|
||||
maxHosts: 1
|
||||
|
||||
@@ -211,8 +211,8 @@ function archiveExampleExport(outputPath: string, keepActorsBackup = false): Buf
|
||||
const files = fs.readdirSync(exampleExportPath);
|
||||
for (const file of files) {
|
||||
if (skipActorsBackup && file === 'francis.bin') {
|
||||
continue
|
||||
};
|
||||
continue;
|
||||
}
|
||||
|
||||
const filePath = path.join(exampleExportPath, file);
|
||||
if (fs.statSync(filePath).isFile()) {
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": { "*": ["./*"] },
|
||||
"lib": ["ES2022"],
|
||||
"esModuleInterop": true,
|
||||
"module": "es2022",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"target": "es2022"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user