fix(expo): ensure schema files pass the linter rule (#13433)

This commit is contained in:
Miroslav Jonaš 2022-11-28 11:33:34 +01:00 committed by GitHub
parent 9f505353f8
commit 649e954ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 47 additions and 47 deletions

View File

@ -14,7 +14,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoInit", "$id": "NxExpoInit",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Add Nx Expo Schematics", "description": "Add Nx Expo Schematics.",
"type": "object", "type": "object",
"properties": { "properties": {
"unitTestRunner": { "unitTestRunner": {
@ -51,7 +51,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoApplication", "$id": "NxExpoApplication",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create an Expo Application for Nx", "description": "Create an Expo Application for Nx.",
"examples": [ "examples": [
{ {
"command": "g app myapp --directory=nested", "command": "g app myapp --directory=nested",
@ -138,7 +138,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoLibrary", "$id": "NxExpoLibrary",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create a Expo Library for Nx", "description": "Create a Expo Library for Nx.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
@ -242,7 +242,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoComponent", "$id": "NxExpoComponent",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create a Expo Component for Nx", "description": "Create a Expo Component for Nx.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {
@ -333,7 +333,7 @@
"$id": "NxExpoEasUpdate", "$id": "NxExpoEasUpdate",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Update executor", "title": "Expo EAS Update executor",
"description": "Start an EAS update for your expo project", "description": "Start an EAS update for your expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"branch": { "branch": {
@ -406,7 +406,7 @@
"$id": "NxExpoEasBuild", "$id": "NxExpoEasBuild",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Build executor", "title": "Expo EAS Build executor",
"description": "Start an EAS build for your expo project", "description": "Start an EAS build for your expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {
@ -473,7 +473,7 @@
"$id": "NxExpoEasBuildList", "$id": "NxExpoEasBuildList",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Build List executor", "title": "Expo EAS Build List executor",
"description": "List all EAS builds for your Expo project", "description": "List all EAS builds for your Expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {
@ -559,7 +559,7 @@
"$id": "NxExpoDownloadEasBuild", "$id": "NxExpoDownloadEasBuild",
"cli": "nx", "cli": "nx",
"title": "Download EAS Build executor", "title": "Download EAS Build executor",
"description": "Download an EAS build", "description": "Download an EAS build.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {
@ -626,7 +626,7 @@
"$id": "NxExpoBuildIOS", "$id": "NxExpoBuildIOS",
"cli": "nx", "cli": "nx",
"title": "Expo iOS Build executor", "title": "Expo iOS Build executor",
"description": "Build and sign a standalone IPA for the Apple App Store", "description": "Build and sign a standalone IPA for the Apple App Store.",
"type": "object", "type": "object",
"properties": { "properties": {
"clearCredentials": { "clearCredentials": {
@ -725,7 +725,7 @@
"$id": "NxExpoBuildAndroid", "$id": "NxExpoBuildAndroid",
"cli": "nx", "cli": "nx",
"title": "Expo Android Build executor", "title": "Expo Android Build executor",
"description": "Build and sign a standalone APK or App Bundle for the Google Play Store", "description": "Build and sign a standalone APK or App Bundle for the Google Play Store.",
"type": "object", "type": "object",
"properties": { "properties": {
"clearCredentials": { "clearCredentials": {
@ -790,7 +790,7 @@
"$id": "NxExpoBuildWeb", "$id": "NxExpoBuildWeb",
"cli": "nx", "cli": "nx",
"title": "Expo web Build executor", "title": "Expo web Build executor",
"description": "Build the web app for production", "description": "Build the web app for production.",
"type": "object", "type": "object",
"properties": { "properties": {
"clear": { "clear": {
@ -825,7 +825,7 @@
"$id": "NxExpoBuildStatus", "$id": "NxExpoBuildStatus",
"cli": "nx", "cli": "nx",
"title": "Expo web Build executor", "title": "Expo web Build executor",
"description": "Get the status of the latest build for the project", "description": "Get the status of the latest build for the project.",
"type": "object", "type": "object",
"properties": { "properties": {
"publicUrl": { "publicUrl": {
@ -851,7 +851,7 @@
"$id": "NxExpoPublish", "$id": "NxExpoPublish",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Publish for Expo", "title": "Publish for Expo",
"description": "Deploy a project to Expo hosting", "description": "Deploy a project to Expo hosting.",
"type": "object", "type": "object",
"properties": { "properties": {
"quiet": { "quiet": {
@ -904,7 +904,7 @@
"$id": "NxExpoPublishSet", "$id": "NxExpoPublishSet",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Set Publish Channel for Expo", "title": "Set Publish Channel for Expo",
"description": "Specify the channel to serve a published release", "description": "Specify the channel to serve a published release.",
"type": "object", "type": "object",
"properties": { "properties": {
"releaseChannel": { "releaseChannel": {
@ -934,7 +934,7 @@
"$id": "NxExpoRollback", "$id": "NxExpoRollback",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Rollback Publish Command for Expo", "title": "Rollback Publish Command for Expo",
"description": "Undo an update to a channel", "description": "Undo an update to a channel.",
"type": "object", "type": "object",
"properties": { "properties": {
"releaseChannel": { "releaseChannel": {
@ -968,7 +968,7 @@
"$id": "NxExpoRun", "$id": "NxExpoRun",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Run iOS or Android application", "title": "Run iOS or Android application",
"description": "Run Expo target options", "description": "Run Expo target options.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {
@ -1038,7 +1038,7 @@
"$id": "NxExpoStart", "$id": "NxExpoStart",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Packager Server for Expo", "title": "Packager Server for Expo",
"description": "Packager Server target options", "description": "Packager Server target options.",
"type": "object", "type": "object",
"properties": { "properties": {
"forceManifestType": { "forceManifestType": {
@ -1147,7 +1147,7 @@
"$id": "NxExpoSyncDeps", "$id": "NxExpoSyncDeps",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Sync Deps for Expo", "title": "Sync Deps for Expo",
"description": "Updates package.json with project dependencies", "description": "Updates package.json with project dependencies.",
"type": "object", "type": "object",
"properties": { "properties": {
"include": { "include": {
@ -1200,7 +1200,7 @@
"$id": "NxExpoPrebuild", "$id": "NxExpoPrebuild",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Prebuild", "title": "Expo Prebuild",
"description": "Create native iOS and Android project files for building natively", "description": "Create native iOS and Android project files for building natively.",
"type": "object", "type": "object",
"properties": { "properties": {
"install": { "install": {
@ -1236,7 +1236,7 @@
"$id": "NxExpoInstall", "$id": "NxExpoInstall",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Install", "title": "Expo Install",
"description": "Install a module or other package to a project", "description": "Install a module or other package to a project.",
"type": "object", "type": "object",
"properties": { "properties": {
"packages": { "packages": {
@ -1274,7 +1274,7 @@
"$id": "NxExpoExport", "$id": "NxExpoExport",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Export", "title": "Expo Export",
"description": "Export the JavaScript and assets for your app using Metro/webpack bundler", "description": "Export the JavaScript and assets for your app using Metro/webpack bundler.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -164,7 +164,7 @@
"schema": { "schema": {
"version": 2, "version": 2,
"title": "Noop", "title": "Noop",
"description": "An executor that does nothing", "description": "An executor that does nothing.",
"type": "object", "type": "object",
"cli": "nx", "cli": "nx",
"outputCapture": "pipe", "outputCapture": "pipe",

View File

@ -138,12 +138,12 @@
"description": "Deploy a project to Expo hosting" "description": "Deploy a project to Expo hosting"
}, },
"publish-set": { "publish-set": {
"implementation": "./src/executors/publish-set/compact", "implementation": "./src/executors/publish-set/compat",
"schema": "./src/executors/publish-set/schema.json", "schema": "./src/executors/publish-set/schema.json",
"description": "Specify the channel to serve a published release" "description": "Specify the channel to serve a published release"
}, },
"rollback": { "rollback": {
"implementation": "./src/executors/rollback/compact", "implementation": "./src/executors/rollback/compat",
"schema": "./src/executors/rollback/schema.json", "schema": "./src/executors/rollback/schema.json",
"description": "Undo an update to a channel" "description": "Undo an update to a channel"
}, },

View File

@ -5,7 +5,7 @@
"$id": "NxExpoBuildAndroid", "$id": "NxExpoBuildAndroid",
"cli": "nx", "cli": "nx",
"title": "Expo Android Build executor", "title": "Expo Android Build executor",
"description": "Build and sign a standalone APK or App Bundle for the Google Play Store", "description": "Build and sign a standalone APK or App Bundle for the Google Play Store.",
"type": "object", "type": "object",
"properties": { "properties": {
"clearCredentials": { "clearCredentials": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoBuildIOS", "$id": "NxExpoBuildIOS",
"cli": "nx", "cli": "nx",
"title": "Expo iOS Build executor", "title": "Expo iOS Build executor",
"description": "Build and sign a standalone IPA for the Apple App Store", "description": "Build and sign a standalone IPA for the Apple App Store.",
"type": "object", "type": "object",
"properties": { "properties": {
"clearCredentials": { "clearCredentials": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoEasBuildList", "$id": "NxExpoEasBuildList",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Build List executor", "title": "Expo EAS Build List executor",
"description": "List all EAS builds for your Expo project", "description": "List all EAS builds for your Expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoBuildStatus", "$id": "NxExpoBuildStatus",
"cli": "nx", "cli": "nx",
"title": "Expo web Build executor", "title": "Expo web Build executor",
"description": "Get the status of the latest build for the project", "description": "Get the status of the latest build for the project.",
"type": "object", "type": "object",
"properties": { "properties": {
"publicUrl": { "publicUrl": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoBuildWeb", "$id": "NxExpoBuildWeb",
"cli": "nx", "cli": "nx",
"title": "Expo web Build executor", "title": "Expo web Build executor",
"description": "Build the web app for production", "description": "Build the web app for production.",
"type": "object", "type": "object",
"properties": { "properties": {
"clear": { "clear": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoEasBuild", "$id": "NxExpoEasBuild",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Build executor", "title": "Expo EAS Build executor",
"description": "Start an EAS build for your expo project", "description": "Start an EAS build for your expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoDownloadEasBuild", "$id": "NxExpoDownloadEasBuild",
"cli": "nx", "cli": "nx",
"title": "Download EAS Build executor", "title": "Download EAS Build executor",
"description": "Download an EAS build", "description": "Download an EAS build.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoExport", "$id": "NxExpoExport",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Export", "title": "Expo Export",
"description": "Export the JavaScript and assets for your app using Metro/webpack bundler", "description": "Export the JavaScript and assets for your app using Metro/webpack bundler.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoInstall", "$id": "NxExpoInstall",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Install", "title": "Expo Install",
"description": "Install a module or other package to a project", "description": "Install a module or other package to a project.",
"type": "object", "type": "object",
"properties": { "properties": {
"packages": { "packages": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoPrebuild", "$id": "NxExpoPrebuild",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Expo Prebuild", "title": "Expo Prebuild",
"description": "Create native iOS and Android project files for building natively", "description": "Create native iOS and Android project files for building natively.",
"type": "object", "type": "object",
"properties": { "properties": {
"install": { "install": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoPublishSet", "$id": "NxExpoPublishSet",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Set Publish Channel for Expo", "title": "Set Publish Channel for Expo",
"description": "Specify the channel to serve a published release", "description": "Specify the channel to serve a published release.",
"type": "object", "type": "object",
"properties": { "properties": {
"releaseChannel": { "releaseChannel": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoPublish", "$id": "NxExpoPublish",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Publish for Expo", "title": "Publish for Expo",
"description": "Deploy a project to Expo hosting", "description": "Deploy a project to Expo hosting.",
"type": "object", "type": "object",
"properties": { "properties": {
"quiet": { "quiet": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoRollback", "$id": "NxExpoRollback",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Rollback Publish Command for Expo", "title": "Rollback Publish Command for Expo",
"description": "Undo an update to a channel", "description": "Undo an update to a channel.",
"type": "object", "type": "object",
"properties": { "properties": {
"releaseChannel": { "releaseChannel": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoRun", "$id": "NxExpoRun",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Run iOS or Android application", "title": "Run iOS or Android application",
"description": "Run Expo target options", "description": "Run Expo target options.",
"type": "object", "type": "object",
"properties": { "properties": {
"platform": { "platform": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoStart", "$id": "NxExpoStart",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Packager Server for Expo", "title": "Packager Server for Expo",
"description": "Packager Server target options", "description": "Packager Server target options.",
"type": "object", "type": "object",
"properties": { "properties": {
"forceManifestType": { "forceManifestType": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoSyncDeps", "$id": "NxExpoSyncDeps",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Sync Deps for Expo", "title": "Sync Deps for Expo",
"description": "Updates package.json with project dependencies", "description": "Updates package.json with project dependencies.",
"type": "object", "type": "object",
"properties": { "properties": {
"include": { "include": {

View File

@ -5,7 +5,7 @@
"$id": "NxExpoEasUpdate", "$id": "NxExpoEasUpdate",
"cli": "nx", "cli": "nx",
"title": "Expo EAS Update executor", "title": "Expo EAS Update executor",
"description": "Start an EAS update for your expo project", "description": "Start an EAS update for your expo project.",
"type": "object", "type": "object",
"properties": { "properties": {
"branch": { "branch": {

View File

@ -2,7 +2,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoApplication", "$id": "NxExpoApplication",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create an Expo Application for Nx", "description": "Create an Expo Application for Nx.",
"examples": [ "examples": [
{ {
"command": "g app myapp --directory=nested", "command": "g app myapp --directory=nested",

View File

@ -2,7 +2,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoComponent", "$id": "NxExpoComponent",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create a Expo Component for Nx", "description": "Create a Expo Component for Nx.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {

View File

@ -100,4 +100,4 @@ function moveDependency(host: Tree) {
} }
export default expoInitGenerator; export default expoInitGenerator;
export const reactNativeInitSchematic = convertNxGenerator(expoInitGenerator); export const expoInitSchematic = convertNxGenerator(expoInitGenerator);

View File

@ -2,7 +2,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoInit", "$id": "NxExpoInit",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Add Nx Expo Schematics", "description": "Add Nx Expo Schematics.",
"type": "object", "type": "object",
"properties": { "properties": {
"unitTestRunner": { "unitTestRunner": {

View File

@ -2,7 +2,7 @@
"cli": "nx", "cli": "nx",
"$id": "NxExpoLibrary", "$id": "NxExpoLibrary",
"$schema": "http://json-schema.org/schema", "$schema": "http://json-schema.org/schema",
"title": "Create a Expo Library for Nx", "description": "Create a Expo Library for Nx.",
"type": "object", "type": "object",
"examples": [ "examples": [
{ {

View File

@ -1,7 +1,7 @@
{ {
"version": 2, "version": 2,
"title": "Noop", "title": "Noop",
"description": "An executor that does nothing", "description": "An executor that does nothing.",
"type": "object", "type": "object",
"cli": "nx", "cli": "nx",
"outputCapture": "pipe", "outputCapture": "pipe",