diff --git a/README.md b/README.md index ec46a087..5f72c2fa 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ The base image used is [Nginx 1.27](https://hub.docker.com/_/nginx) ```bash # With Docker -docker run -d -p 8080:80 --restart always --name Meshtastic-Web ghcr.io/meshtastic/web +docker run -d -p 8080:8080 --restart always --name Meshtastic-Web ghcr.io/meshtastic/web #With Podman -podman run -d -p 8080:80 --restart always --name Meshtastic-Web ghcr.io/meshtastic/web +podman run -d -p 8080:8080 --restart always --name Meshtastic-Web ghcr.io/meshtastic/web ``` ## Development & Building diff --git a/package.json b/package.json index ffa864da..6dc5cce3 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,16 @@ "license": "GPL-3.0-only", "scripts": { "build": "pnpm check && rsbuild build", - "check": "biome check .", - "check:fix": "pnpm check --write", + "check": "biome check src/", + "check:fix": "pnpm check --write src/", + "format": "biome format --write src/", "dev": "rsbuild dev --open", - "format": "biome format --write", "preview": "rsbuild preview", - "package": "gzipper c -i html,js,css,png,ico,svg,webmanifest,txt dist dist/output && tar -cvf dist/build.tar -C ./dist/output/ $(ls ./dist/output/)" + "package": "gzipper c -i html,js,css,png,ico,svg,webmanifest,txt dist dist/output && tar -cvf dist/build.tar -C ./dist/output/ $(ls ./dist/output/)", + "postinstall": "npx simple-git-hooks" + }, + "simple-git-hooks": { + "pre-commit": "npm run check:fix && npm run format" }, "repository": { "type": "git", @@ -76,8 +80,9 @@ "autoprefixer": "^10.4.19", "gzipper": "^7.2.0", "postcss": "^8.4.38", - "tailwindcss": "^3.4.4", + "simple-git-hooks": "^2.11.1", "tailwind-merge": "^2.3.0", + "tailwindcss": "^3.4.4", "tailwindcss-animate": "^1.0.7", "tar": "^6.2.1", "typescript": "^5.5.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7046dba9..fd65e849 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -165,6 +165,9 @@ importers: postcss: specifier: ^8.4.38 version: 8.4.38 + simple-git-hooks: + specifier: ^2.11.1 + version: 2.11.1 tailwind-merge: specifier: ^2.3.0 version: 2.3.0 @@ -2951,6 +2954,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + simple-git-hooks@2.11.1: + resolution: {integrity: sha512-tgqwPUMDcNDhuf1Xf6KTUsyeqGdgKMhzaH4PAZZuzguOgTl5uuyeYe/8mWgAr6IBxB5V06uqEf6Dy37gIWDtDg==} + hasBin: true + simple-zstd@1.4.2: resolution: {integrity: sha512-kGYEvT33M5XfyQvvW4wxl3eKcWbdbCc1V7OZzuElnaXft0qbVzoIIXHXiCm3JCUki+MZKKmvjl8p2VGLJc5Y/A==} @@ -6642,6 +6649,8 @@ snapshots: signal-exit@4.1.0: {} + simple-git-hooks@2.11.1: {} + simple-zstd@1.4.2: dependencies: is-zst: 1.0.0