Prettier install & format

This commit is contained in:
2025-01-24 14:17:23 +00:00
parent ff6582d821
commit 0a849d728b
4 changed files with 46 additions and 39 deletions

View File

@@ -11,6 +11,7 @@ This project uses `devenv.nix` to manage the development environment, which will
### Installation
1. Clone the repository:
```bash
git clone https://github.com/Cian-H/am-d-model.eu.git
cd am-d-model.eu
@@ -54,4 +55,3 @@ implemented in future but for now, simplicity is a virtue.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

View File

@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling

View File

@@ -1,44 +1,43 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
services:
site:
build: .
networks:
- am-d-model-network
expose:
- "3000"
restart: unless-stopped
labels:
- "io.containers.autoupdate=local"
site:
build: .
networks:
- am-d-model-network
expose:
- "3000"
restart: unless-stopped
labels:
- "io.containers.autoupdate=local"
caddy:
image: docker.io/library/caddy:latest
depends_on:
- site
networks:
- am-d-model-network
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- ./caddy:/etc/caddy
restart: unless-stopped
labels:
- "io.containers.autoupdate=registry"
caddy:
image: docker.io/library/caddy:latest
depends_on:
- site
networks:
- am-d-model-network
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- ./caddy:/etc/caddy
restart: unless-stopped
labels:
- "io.containers.autoupdate=registry"
repo-placeholder:
image: docker.io/nginx:alpine
networks:
- am-d-model-network
expose:
- "80"
volumes:
- ./repo:/usr/share/nginx/html
repo-placeholder:
image: docker.io/nginx:alpine
networks:
- am-d-model-network
expose:
- "80"
volumes:
- ./repo:/usr/share/nginx/html
networks:
am-d-model-network:
name: am-d-model-network
am-d-model-network:
name: am-d-model-network
volumes:
caddy_data:
caddy_data:

8
prettier.config.js Normal file
View File

@@ -0,0 +1,8 @@
const config = {
singleQuote: false,
tabWidth: 4,
trailingComma: "all",
printWidth: 100,
};
export default config;