From 0a849d728bf5bfade4dd8725c91cfed54bf6185e Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 24 Jan 2025 14:17:23 +0000 Subject: [PATCH] Prettier install & format --- README.md | 2 +- devenv.yaml | 4 +-- docker-compose.yaml | 71 ++++++++++++++++++++++----------------------- prettier.config.js | 8 +++++ 4 files changed, 46 insertions(+), 39 deletions(-) create mode 100644 prettier.config.js diff --git a/README.md b/README.md index c015e9f..1639f21 100644 --- a/README.md +++ b/README.md @@ -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. - diff --git a/devenv.yaml b/devenv.yaml index 68616a4..c535723 100644 --- a/devenv.yaml +++ b/devenv.yaml @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 9fde117..453e21f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000..e18157b --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,8 @@ +const config = { + singleQuote: false, + tabWidth: 4, + trailingComma: "all", + printWidth: 100, +}; + +export default config;