{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Remix CLI configuration", "description": "Configuration for the Remix command-line interface.", "type": "object", "additionalProperties": false, "properties": { "$schema": { "type": "string", "description": "JSON Schema used by editors to validate this file." }, "assets": { "$ref": "#/$defs/assets" }, "db": { "$ref": "#/$defs/db" }, "doctor": { "$ref": "#/$defs/doctor" }, "test": { "$ref": "#/$defs/test" } }, "$defs": { "assets": { "type": "object", "additionalProperties": false, "required": ["allowFiles", "basePath"], "properties": { "allowFiles": { "$ref": "#/$defs/stringArray", "description": "File paths and glob patterns that may be served." }, "allowPackages": { "$ref": "#/$defs/stringArray", "description": "Package names whose files and dependencies may be served." }, "basePath": { "type": "string", "description": "Public URL prefix for served assets." }, "denyFiles": { "$ref": "#/$defs/stringArray", "description": "File paths and glob patterns that must not be served." }, "mounts": { "type": "object", "description": "Directories keyed by public URL paths relative to basePath.", "additionalProperties": { "type": "string" } }, "files": { "$ref": "#/$defs/assetsFiles" }, "rootDir": { "type": "string", "description": "Root directory for asset file paths, relative to this config file." } } }, "assetsFiles": { "type": "object", "additionalProperties": false, "required": ["extensions"], "properties": { "extensions": { "$ref": "#/$defs/stringArray", "description": "Additional file extensions served without script or style compilation." } } }, "db": { "type": "object", "additionalProperties": false, "required": ["adapter"], "properties": { "adapter": { "oneOf": [ { "$ref": "#/$defs/dbSqliteAdapter" }, { "$ref": "#/$defs/dbPostgresAdapter" }, { "$ref": "#/$defs/dbMysqlAdapter" } ] }, "migrations": { "$ref": "#/$defs/dbMigrations" }, "seed": { "type": "string", "description": "Path to a SQL seed file." } } }, "dbString": { "oneOf": [ { "type": "string" }, { "type": "object", "additionalProperties": false, "required": ["env"], "properties": { "env": { "type": "string" }, "default": { "type": "string" } } } ] }, "dbSqliteAdapter": { "type": "object", "additionalProperties": false, "required": ["type", "filename"], "properties": { "type": { "const": "sqlite" }, "filename": { "$ref": "#/$defs/dbString" }, "foreignKeys": { "type": "boolean" }, "busyTimeout": { "type": "number", "minimum": 0 } } }, "dbPostgresAdapter": { "type": "object", "additionalProperties": false, "required": ["type", "connectionString"], "properties": { "type": { "const": "postgres" }, "connectionString": { "$ref": "#/$defs/dbString" }, "maintenanceDatabase": { "type": "string" }, "template": { "type": "string" } } }, "dbMysqlAdapter": { "type": "object", "additionalProperties": false, "required": ["type", "uri"], "properties": { "type": { "const": "mysql" }, "uri": { "$ref": "#/$defs/dbString" }, "characterSet": { "type": "string" }, "collation": { "type": "string" } } }, "dbMigrations": { "type": "object", "additionalProperties": false, "required": ["directory"], "properties": { "directory": { "type": "string" }, "journalTable": { "type": "string" } } }, "doctor": { "type": "object", "additionalProperties": false, "properties": { "strict": { "type": "boolean", "description": "Whether doctor exits with status 1 when warning-level findings are present." } } }, "stringArray": { "type": "array", "items": { "type": "string" } }, "test": { "type": "object", "additionalProperties": false, "properties": { "browserFiles": { "$ref": "#/$defs/stringArray", "description": "Glob patterns for browser test files." }, "concurrency": { "type": "integer", "minimum": 1, "description": "Maximum number of concurrent test workers." }, "coverage": { "$ref": "#/$defs/coverage" }, "e2eFiles": { "$ref": "#/$defs/stringArray", "description": "Glob patterns for end-to-end test files." }, "exclude": { "$ref": "#/$defs/stringArray", "description": "Glob patterns excluded from test discovery." }, "files": { "$ref": "#/$defs/stringArray", "description": "Glob patterns for all test files." }, "only": { "$ref": "#/$defs/stringArray", "description": "Regular expression patterns used to focus tests by full name." }, "playwright": { "$ref": "#/$defs/playwright" }, "pool": { "enum": ["forks", "threads"], "description": "Worker pool used for server and end-to-end tests." }, "quiet": { "type": "boolean", "description": "Whether skipped tests are omitted from reporter output." }, "reporter": { "enum": ["spec", "files", "tap", "dot"], "description": "Reporter used for test output." }, "setup": { "type": "string", "description": "Path to a module exporting globalSetup and/or globalTeardown." }, "type": { "type": "array", "items": { "enum": ["server", "browser", "e2e"] }, "description": "Test types to run." }, "watch": { "type": "boolean", "description": "Whether tests rerun when files change." } } }, "coverage": { "type": "object", "additionalProperties": false, "properties": { "branches": { "type": "number", "description": "Minimum branch coverage percentage." }, "dir": { "type": "string", "description": "Directory where coverage reports are written." }, "enabled": { "type": "boolean", "description": "Whether coverage is collected." }, "exclude": { "$ref": "#/$defs/stringArray", "description": "Glob patterns excluded from coverage." }, "functions": { "type": "number", "description": "Minimum function coverage percentage." }, "include": { "$ref": "#/$defs/stringArray", "description": "Glob patterns included in coverage." }, "lines": { "type": "number", "description": "Minimum line coverage percentage." }, "statements": { "type": "number", "description": "Minimum statement coverage percentage." } } }, "playwright": { "type": "object", "additionalProperties": false, "properties": { "configFile": { "type": "string", "description": "Path to a Playwright configuration file." }, "echo": { "type": "boolean", "description": "Whether browser console output is echoed to stdout." }, "open": { "type": "boolean", "description": "Whether the browser remains open after tests finish." }, "projects": { "$ref": "#/$defs/stringArray", "description": "Playwright project names to run." } } } } }