From 1d7c1f77ca1edff1955a95154b77d4a4ce1812a2 Mon Sep 17 00:00:00 2001 From: Alexander Niebuhr Date: Thu, 8 Feb 2024 08:33:39 +0100 Subject: [PATCH] use remote schema urls --- packages/vscode-extension/package.json | 2 +- packages/vscode-extension/schema/project.json | 1102 ----------------- 2 files changed, 1 insertion(+), 1103 deletions(-) delete mode 100644 packages/vscode-extension/schema/project.json diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index e7151dd..710ca99 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -49,7 +49,7 @@ "yamlValidation": [ { "fileMatch": "moon.yml", - "url": "./schema/project.json" + "url": "https://moonrepo.dev/schemas/project.json" }, { "fileMatch": "template.yml", diff --git a/packages/vscode-extension/schema/project.json b/packages/vscode-extension/schema/project.json deleted file mode 100644 index 8a29d18..0000000 --- a/packages/vscode-extension/schema/project.json +++ /dev/null @@ -1,1102 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "PartialProjectConfig", - "description": "Docs: https://moonrepo.dev/docs/config/project", - "type": "object", - "properties": { - "$schema": { - "default": "https://moonrepo.dev/schemas/project.json", - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "dependsOn": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PartialProjectDependsOn" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "fileGroups": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "language": { - "default": "unknown", - "anyOf": [ - { - "$ref": "#/definitions/LanguageType" - }, - { - "type": "null" - } - ] - }, - "owners": { - "description": "Defines ownership of source code within the current project, by mapping file system paths to owners. An owner is either a user, team, or group.\nCurrently supports GitHub, GitLab, and Bitbucket (via app).", - "title": "owners", - "anyOf": [ - { - "$ref": "#/definitions/PartialOwnersConfig" - }, - { - "type": "null" - } - ] - }, - "platform": { - "default": "unknown", - "anyOf": [ - { - "$ref": "#/definitions/PlatformType" - }, - { - "type": "null" - } - ] - }, - "project": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectMetadataConfig" - }, - { - "type": "null" - } - ] - }, - "tags": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "tasks": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/PartialTaskConfig" - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "toolchain": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectToolchainConfig" - }, - { - "type": "null" - } - ] - }, - "type": { - "default": "unknown", - "anyOf": [ - { - "$ref": "#/definitions/ProjectType" - }, - { - "type": "null" - } - ] - }, - "workspace": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectWorkspaceConfig" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "definitions": { - "DependencyScope": { - "title": "DependencyScope", - "type": "string", - "enum": [ - "build", - "development", - "peer", - "production", - "root" - ] - }, - "DependencySource": { - "title": "DependencySource", - "type": "string", - "enum": [ - "explicit", - "implicit" - ] - }, - "LanguageType": { - "title": "LanguageType", - "type": "string", - "enum": [ - "bash", - "batch", - "go", - "javascript", - "php", - "python", - "ruby", - "rust", - "typescript", - "unknown" - ] - }, - "PartialDependencyConfig": { - "title": "PartialDependencyConfig", - "type": "object", - "properties": { - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "scope": { - "default": "production", - "anyOf": [ - { - "$ref": "#/definitions/DependencyScope" - }, - { - "type": "null" - } - ] - }, - "source": { - "default": "explicit", - "anyOf": [ - { - "$ref": "#/definitions/DependencySource" - }, - { - "type": "null" - } - ] - }, - "via": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialOwnersConfig": { - "title": "PartialOwnersConfig", - "type": "object", - "properties": { - "customGroups": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "defaultOwner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "optional": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "paths": { - "anyOf": [ - { - "$ref": "#/definitions/PartialOwnersPaths" - }, - { - "type": "null" - } - ] - }, - "requiredApprovals": { - "default": 1, - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialOwnersPaths": { - "title": "PartialOwnersPaths", - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - }, - "propertyNames": { - "type": "string" - } - } - ] - }, - "PartialProjectDependsOn": { - "title": "PartialProjectDependsOn", - "anyOf": [ - { - "type": "string" - }, - { - "$ref": "#/definitions/PartialDependencyConfig" - } - ] - }, - "PartialProjectMetadataConfig": { - "title": "PartialProjectMetadataConfig", - "type": "object", - "properties": { - "channel": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "description": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "maintainers": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "owner": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialProjectToolchainCommonToolConfig": { - "title": "PartialProjectToolchainCommonToolConfig", - "type": "object", - "properties": { - "version": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialProjectToolchainConfig": { - "title": "PartialProjectToolchainConfig", - "type": "object", - "properties": { - "bun": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectToolchainCommonToolConfig" - }, - { - "type": "null" - } - ] - }, - "node": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectToolchainCommonToolConfig" - }, - { - "type": "null" - } - ] - }, - "rust": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectToolchainCommonToolConfig" - }, - { - "type": "null" - } - ] - }, - "typescript": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectToolchainTypeScriptConfig" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialProjectToolchainTypeScriptConfig": { - "title": "PartialProjectToolchainTypeScriptConfig", - "type": "object", - "properties": { - "disabled": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "includeProjectReferenceSources": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "includeSharedTypes": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "routeOutDirToCache": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "syncProjectReferences": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "syncProjectReferencesToPaths": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialProjectWorkspaceConfig": { - "title": "PartialProjectWorkspaceConfig", - "type": "object", - "properties": { - "inheritedTasks": { - "anyOf": [ - { - "$ref": "#/definitions/PartialProjectWorkspaceInheritedTasksConfig" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialProjectWorkspaceInheritedTasksConfig": { - "title": "PartialProjectWorkspaceInheritedTasksConfig", - "type": "object", - "properties": { - "exclude": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "include": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "rename": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialTaskArgs": { - "title": "PartialTaskArgs", - "anyOf": [ - { - "type": "null" - }, - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "PartialTaskConfig": { - "title": "PartialTaskConfig", - "type": "object", - "properties": { - "args": { - "anyOf": [ - { - "$ref": "#/definitions/PartialTaskArgs" - }, - { - "type": "null" - } - ] - }, - "command": { - "anyOf": [ - { - "$ref": "#/definitions/PartialTaskArgs" - }, - { - "type": "null" - } - ] - }, - "deps": { - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PartialTaskDependency" - } - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "extends": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "inputs": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "local": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "options": { - "anyOf": [ - { - "$ref": "#/definitions/PartialTaskOptionsConfig" - }, - { - "type": "null" - } - ] - }, - "outputs": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "platform": { - "default": "unknown", - "anyOf": [ - { - "$ref": "#/definitions/PlatformType" - }, - { - "type": "null" - } - ] - }, - "type": { - "default": "test", - "anyOf": [ - { - "$ref": "#/definitions/TaskType" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialTaskDependency": { - "title": "PartialTaskDependency", - "anyOf": [ - { - "type": "string" - }, - { - "$ref": "#/definitions/PartialTaskDependencyConfig" - } - ] - }, - "PartialTaskDependencyConfig": { - "title": "PartialTaskDependencyConfig", - "type": "object", - "properties": { - "args": { - "anyOf": [ - { - "$ref": "#/definitions/PartialTaskArgs" - }, - { - "type": "null" - } - ] - }, - "env": { - "anyOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "propertyNames": { - "type": "string" - } - }, - { - "type": "null" - } - ] - }, - "optional": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "target": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PartialTaskOptionsConfig": { - "title": "PartialTaskOptionsConfig", - "type": "object", - "properties": { - "affectedFiles": { - "anyOf": [ - { - "$ref": "#/definitions/TaskOptionAffectedFiles" - }, - { - "type": "null" - } - ] - }, - "allowFailure": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "cache": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "envFile": { - "anyOf": [ - { - "$ref": "#/definitions/TaskOptionEnvFile" - }, - { - "type": "null" - } - ] - }, - "interactive": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "mergeArgs": { - "default": "append", - "anyOf": [ - { - "$ref": "#/definitions/TaskMergeStrategy" - }, - { - "type": "null" - } - ] - }, - "mergeDeps": { - "default": "append", - "anyOf": [ - { - "$ref": "#/definitions/TaskMergeStrategy" - }, - { - "type": "null" - } - ] - }, - "mergeEnv": { - "default": "append", - "anyOf": [ - { - "$ref": "#/definitions/TaskMergeStrategy" - }, - { - "type": "null" - } - ] - }, - "mergeInputs": { - "default": "append", - "anyOf": [ - { - "$ref": "#/definitions/TaskMergeStrategy" - }, - { - "type": "null" - } - ] - }, - "mergeOutputs": { - "default": "append", - "anyOf": [ - { - "$ref": "#/definitions/TaskMergeStrategy" - }, - { - "type": "null" - } - ] - }, - "outputStyle": { - "default": "buffer", - "anyOf": [ - { - "$ref": "#/definitions/TaskOutputStyle" - }, - { - "type": "null" - } - ] - }, - "persistent": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "retryCount": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "runDepsInParallel": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "runFromWorkspaceRoot": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "runInCI": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "shell": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false - }, - "PlatformType": { - "title": "PlatformType", - "type": "string", - "enum": [ - "bun", - "deno", - "node", - "rust", - "system", - "unknown" - ] - }, - "ProjectType": { - "title": "ProjectType", - "type": "string", - "enum": [ - "application", - "automation", - "library", - "tool", - "unknown" - ] - }, - "TaskMergeStrategy": { - "title": "TaskMergeStrategy", - "type": "string", - "enum": [ - "append", - "prepend", - "replace" - ] - }, - "TaskOptionAffectedFiles": { - "title": "TaskOptionAffectedFiles", - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "string", - "enum": [ - "args", - "env" - ] - } - ] - }, - "TaskOptionEnvFile": { - "title": "TaskOptionEnvFile", - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "string" - } - ] - }, - "TaskOutputStyle": { - "title": "TaskOutputStyle", - "type": "string", - "enum": [ - "buffer", - "buffer-only-failure", - "hash", - "none", - "stream" - ] - }, - "TaskType": { - "title": "TaskType", - "type": "string", - "enum": [ - "build", - "run", - "test" - ] - } - } -}