Skip to content
Snippets Groups Projects
devcontainer.json 2.41 KiB
Newer Older
  • Learn to ignore specific revisions
  • // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
    // https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/docker-existing-dockerfile
    {
    
      "name": "castopod.local",
      "dockerComposeFile": ["./docker-compose.yml"],
    
      "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
    
      "postCreateCommand": "composer install && pnpm install && pnpm run build:static && php spark migrate --all && php spark db:seed DevSeeder",
    
      "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && crontab .devcontainer/crontab && cron && php spark serve --host 0.0.0.0",
      "postAttachCommand": "crontab .devcontainer/crontab && service cron reload",
    
      "features": {
        "ghcr.io/devcontainers/features/git:1": {},
        "ghcr.io/guiyomh/features/vim:0": {},
        "ghcr.io/NicoVIII/devcontainer-features/pnpm:2": {}
    
      },
      "customizations": {
        "vscode": {
          "settings": {
            "editor.formatOnSave": true,
            "editor.defaultFormatter": "esbenp.prettier-vscode",
            "[php]": {
              "editor.defaultFormatter": "bmewburn.vscode-intelephense-client",
              "editor.formatOnSave": false
            },
            "css.validate": false,
            "color-highlight.markerType": "dot-before",
            "files.associations": {
              "*.xml.dist": "xml",
              "spark": "php",
              "env": "dotenv",
              ".rsync-filter": "diff"
    
            },
            "json.schemas": [
              {
                "fileMatch": ["plugins/**/manifest.json"],
    
                "url": "/workspaces/castopod/modules/Plugins/Manifest/manifest.schema.json"
    
            "astro-build.astro-vscode",
    
            "bmewburn.vscode-intelephense-client",
            "bradlc.vscode-tailwindcss",
            "breezelin.phpstan",
            "DavidAnson.vscode-markdownlint",
            "dbaeumer.vscode-eslint",
            "eamodio.gitlens",
            "esbenp.prettier-vscode",
            "heybourn.headwind",
            "jamesbirtles.svelte-vscode",
            "kasik96.latte",
            "mikestead.dotenv",
            "naumovs.color-highlight",
            "pflannery.vscode-versionlens",
            "runem.lit-plugin",
            "streetsidesoftware.code-spell-checker",
            "stylelint.vscode-stylelint",
    
            "unifiedjs.vscode-mdx",
    
            "wayou.vscode-todo-highlight",
            "yzhang.markdown-all-in-one"
          ]
        }