@techdocs/cli 1.10.3-next.0 → 1.10.3-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/commands/serve/mkdocs.cjs.js +4 -5
  3. package/dist/commands/serve/mkdocs.cjs.js.map +1 -1
  4. package/dist/commands/serve/serve.cjs.js +4 -5
  5. package/dist/commands/serve/serve.cjs.js.map +1 -1
  6. package/dist/commands/serve/utils.cjs.js +7 -10
  7. package/dist/commands/serve/utils.cjs.js.map +1 -1
  8. package/dist/embedded-app/.config-schema.json +180 -183
  9. package/dist/embedded-app/index.html +1 -1
  10. package/dist/embedded-app/index.html.tmpl +1 -1
  11. package/dist/embedded-app/static/4591.8c1cd36f.chunk.js +2 -0
  12. package/dist/embedded-app/static/4591.8c1cd36f.chunk.js.map +1 -0
  13. package/dist/embedded-app/static/main.1e025874.js +550 -0
  14. package/dist/embedded-app/static/main.1e025874.js.map +1 -0
  15. package/dist/embedded-app/static/{runtime.89b37e56.js → runtime.a358dfe6.js} +2 -2
  16. package/dist/embedded-app/static/runtime.a358dfe6.js.map +1 -0
  17. package/dist/embedded-app/static/vendor.4b7983a7.js +2 -0
  18. package/dist/embedded-app/static/vendor.4b7983a7.js.map +1 -0
  19. package/dist/lib/mkdocsServer.cjs.js +10 -10
  20. package/dist/lib/mkdocsServer.cjs.js.map +1 -1
  21. package/dist/package.json.cjs.js +1 -1
  22. package/package.json +3 -3
  23. package/dist/embedded-app/static/4591.5aa5d796.chunk.js +0 -2
  24. package/dist/embedded-app/static/4591.5aa5d796.chunk.js.map +0 -1
  25. package/dist/embedded-app/static/main.9f641a04.js +0 -550
  26. package/dist/embedded-app/static/main.9f641a04.js.map +0 -1
  27. package/dist/embedded-app/static/runtime.89b37e56.js.map +0 -1
  28. package/dist/embedded-app/static/vendor.5686e88b.js +0 -2
  29. package/dist/embedded-app/static/vendor.5686e88b.js.map +0 -1
  30. package/dist/lib/run.cjs.js +0 -58
  31. package/dist/lib/run.cjs.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @techdocs/cli
2
2
 
3
+ ## 1.10.3-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 43629b1: Updated to use new utilities from `@backstage/cli-common`.
8
+ - Updated dependencies
9
+ - @backstage/cli-common@0.1.16-next.1
10
+
3
11
  ## 1.10.3-next.0
4
12
 
5
13
  ### Patch Changes
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var openBrowser = require('react-dev-utils/openBrowser');
6
6
  var utility = require('../../lib/utility.cjs.js');
7
7
  var mkdocsServer = require('../../lib/mkdocsServer.cjs.js');
8
- var run = require('../../lib/run.cjs.js');
9
8
  var pluginTechdocsNode = require('@backstage/plugin-techdocs-node');
10
9
  var fs = require('fs-extra');
11
10
  var utils = require('./utils.cjs.js');
@@ -48,16 +47,16 @@ Starting mkdocs server on ${localAddr}
48
47
  }
49
48
  });
50
49
  };
51
- const childProcess = await mkdocsServer.runMkdocsServer({
50
+ const childProcess = mkdocsServer.runMkdocsServer({
52
51
  port: opts.port,
53
52
  dockerImage: opts.dockerImage,
54
53
  dockerEntrypoint: opts.dockerEntrypoint,
55
54
  dockerOptions: opts.dockerOption,
56
55
  useDocker: opts.docker,
57
- stdoutLogFunc: logFunc,
58
- stderrLogFunc: logFunc
56
+ onStdout: logFunc,
57
+ onStderr: logFunc
59
58
  });
60
- await run.waitForSignal([childProcess]);
59
+ await childProcess.waitForExit();
61
60
  if (configIsTemporary) {
62
61
  process.on("exit", async () => {
63
62
  fs__default.default.rmSync(mkdocsYmlPath, {});
@@ -1 +1 @@
1
- {"version":3,"file":"mkdocs.cjs.js","sources":["../../../src/commands/serve/mkdocs.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OptionValues } from 'commander';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { createLogger } from '../../lib/utility';\nimport { runMkdocsServer } from '../../lib/mkdocsServer';\nimport { LogFunc, waitForSignal } from '../../lib/run';\nimport { getMkdocsYml } from '@backstage/plugin-techdocs-node';\nimport fs from 'fs-extra';\nimport { checkIfDockerIsOperational } from './utils';\n\nexport default async function serveMkdocs(opts: OptionValues) {\n const logger = createLogger({ verbose: opts.verbose });\n\n const dockerAddr = `http://0.0.0.0:${opts.port}`;\n const localAddr = `http://127.0.0.1:${opts.port}`;\n const expectedDevAddr = opts.docker ? dockerAddr : localAddr;\n\n if (opts.docker) {\n const isDockerOperational = await checkIfDockerIsOperational(logger);\n if (!isDockerOperational) {\n return;\n }\n }\n\n const { path: mkdocsYmlPath, configIsTemporary } = await getMkdocsYml(\n './',\n opts.siteName,\n );\n\n // We want to open browser only once based on a log.\n let boolOpenBrowserTriggered = false;\n\n const logFunc: LogFunc = data => {\n // Sometimes the lines contain an unnecessary extra new line in between\n const logLines = data.toString().split('\\n');\n const logPrefix = opts.docker ? '[docker/mkdocs]' : '[mkdocs]';\n logLines.forEach(line => {\n if (line === '') {\n return;\n }\n\n // Logs from container is verbose.\n logger.verbose(`${logPrefix} ${line}`);\n\n // When the server has started, open a new browser tab for the user.\n if (\n !boolOpenBrowserTriggered &&\n line.includes(`Serving on ${expectedDevAddr}`)\n ) {\n // Always open the local address, since 0.0.0.0 belongs to docker\n logger.info(`\\nStarting mkdocs server on ${localAddr}\\n`);\n openBrowser(localAddr);\n boolOpenBrowserTriggered = true;\n }\n });\n };\n // mkdocs writes all of its logs to stderr by default, and not stdout.\n // https://github.com/mkdocs/mkdocs/issues/879#issuecomment-203536006\n // Had me questioning this whole implementation for half an hour.\n\n // Commander stores --no-docker in cmd.docker variable\n const childProcess = await runMkdocsServer({\n port: opts.port,\n dockerImage: opts.dockerImage,\n dockerEntrypoint: opts.dockerEntrypoint,\n dockerOptions: opts.dockerOption,\n useDocker: opts.docker,\n stdoutLogFunc: logFunc,\n stderrLogFunc: logFunc,\n });\n\n // Keep waiting for user to cancel the process\n await waitForSignal([childProcess]);\n\n if (configIsTemporary) {\n process.on('exit', async () => {\n fs.rmSync(mkdocsYmlPath, {});\n });\n }\n}\n"],"names":["createLogger","checkIfDockerIsOperational","getMkdocsYml","openBrowser","runMkdocsServer","waitForSignal","fs"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,eAA8B,YAAY,IAAA,EAAoB;AAC5D,EAAA,MAAM,SAASA,oBAAA,CAAa,EAAE,OAAA,EAAS,IAAA,CAAK,SAAS,CAAA;AAErD,EAAA,MAAM,UAAA,GAAa,CAAA,eAAA,EAAkB,IAAA,CAAK,IAAI,CAAA,CAAA;AAC9C,EAAA,MAAM,SAAA,GAAY,CAAA,iBAAA,EAAoB,IAAA,CAAK,IAAI,CAAA,CAAA;AAC/C,EAAA,MAAM,eAAA,GAAkB,IAAA,CAAK,MAAA,GAAS,UAAA,GAAa,SAAA;AAEnD,EAAA,IAAI,KAAK,MAAA,EAAQ;AACf,IAAA,MAAM,mBAAA,GAAsB,MAAMC,gCAAA,CAA2B,MAAM,CAAA;AACnE,IAAA,IAAI,CAAC,mBAAA,EAAqB;AACxB,MAAA;AAAA,IACF;AAAA,EACF;AAEA,EAAA,MAAM,EAAE,IAAA,EAAM,aAAA,EAAe,iBAAA,KAAsB,MAAMC,+BAAA;AAAA,IACvD,IAAA;AAAA,IACA,IAAA,CAAK;AAAA,GACP;AAGA,EAAA,IAAI,wBAAA,GAA2B,KAAA;AAE/B,EAAA,MAAM,UAAmB,CAAA,IAAA,KAAQ;AAE/B,IAAA,MAAM,QAAA,GAAW,IAAA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/mkdocs.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OptionValues } from 'commander';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { createLogger } from '../../lib/utility';\nimport { runMkdocsServer } from '../../lib/mkdocsServer';\nimport { RunOnOutput } from '@backstage/cli-common';\nimport { getMkdocsYml } from '@backstage/plugin-techdocs-node';\nimport fs from 'fs-extra';\nimport { checkIfDockerIsOperational } from './utils';\n\nexport default async function serveMkdocs(opts: OptionValues) {\n const logger = createLogger({ verbose: opts.verbose });\n\n const dockerAddr = `http://0.0.0.0:${opts.port}`;\n const localAddr = `http://127.0.0.1:${opts.port}`;\n const expectedDevAddr = opts.docker ? dockerAddr : localAddr;\n\n if (opts.docker) {\n const isDockerOperational = await checkIfDockerIsOperational(logger);\n if (!isDockerOperational) {\n return;\n }\n }\n\n const { path: mkdocsYmlPath, configIsTemporary } = await getMkdocsYml(\n './',\n opts.siteName,\n );\n\n // We want to open browser only once based on a log.\n let boolOpenBrowserTriggered = false;\n\n const logFunc: RunOnOutput = data => {\n // Sometimes the lines contain an unnecessary extra new line in between\n const logLines = data.toString().split('\\n');\n const logPrefix = opts.docker ? '[docker/mkdocs]' : '[mkdocs]';\n logLines.forEach(line => {\n if (line === '') {\n return;\n }\n\n // Logs from container is verbose.\n logger.verbose(`${logPrefix} ${line}`);\n\n // When the server has started, open a new browser tab for the user.\n if (\n !boolOpenBrowserTriggered &&\n line.includes(`Serving on ${expectedDevAddr}`)\n ) {\n // Always open the local address, since 0.0.0.0 belongs to docker\n logger.info(`\\nStarting mkdocs server on ${localAddr}\\n`);\n openBrowser(localAddr);\n boolOpenBrowserTriggered = true;\n }\n });\n };\n // mkdocs writes all of its logs to stderr by default, and not stdout.\n // https://github.com/mkdocs/mkdocs/issues/879#issuecomment-203536006\n // Had me questioning this whole implementation for half an hour.\n\n // Commander stores --no-docker in cmd.docker variable\n const childProcess = runMkdocsServer({\n port: opts.port,\n dockerImage: opts.dockerImage,\n dockerEntrypoint: opts.dockerEntrypoint,\n dockerOptions: opts.dockerOption,\n useDocker: opts.docker,\n onStdout: logFunc,\n onStderr: logFunc,\n });\n\n // Keep waiting for user to cancel the process\n await childProcess.waitForExit();\n\n if (configIsTemporary) {\n process.on('exit', async () => {\n fs.rmSync(mkdocsYmlPath, {});\n });\n }\n}\n"],"names":["createLogger","checkIfDockerIsOperational","getMkdocsYml","openBrowser","runMkdocsServer","fs"],"mappings":";;;;;;;;;;;;;;;;AAyBA,eAA8B,YAAY,IAAA,EAAoB;AAC5D,EAAA,MAAM,SAASA,oBAAA,CAAa,EAAE,OAAA,EAAS,IAAA,CAAK,SAAS,CAAA;AAErD,EAAA,MAAM,UAAA,GAAa,CAAA,eAAA,EAAkB,IAAA,CAAK,IAAI,CAAA,CAAA;AAC9C,EAAA,MAAM,SAAA,GAAY,CAAA,iBAAA,EAAoB,IAAA,CAAK,IAAI,CAAA,CAAA;AAC/C,EAAA,MAAM,eAAA,GAAkB,IAAA,CAAK,MAAA,GAAS,UAAA,GAAa,SAAA;AAEnD,EAAA,IAAI,KAAK,MAAA,EAAQ;AACf,IAAA,MAAM,mBAAA,GAAsB,MAAMC,gCAAA,CAA2B,MAAM,CAAA;AACnE,IAAA,IAAI,CAAC,mBAAA,EAAqB;AACxB,MAAA;AAAA,IACF;AAAA,EACF;AAEA,EAAA,MAAM,EAAE,IAAA,EAAM,aAAA,EAAe,iBAAA,KAAsB,MAAMC,+BAAA;AAAA,IACvD,IAAA;AAAA,IACA,IAAA,CAAK;AAAA,GACP;AAGA,EAAA,IAAI,wBAAA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ACH;AACF;;;;"}
@@ -7,7 +7,6 @@ var openBrowser = require('react-dev-utils/openBrowser');
7
7
  var cliCommon = require('@backstage/cli-common');
8
8
  var httpServer = require('../../lib/httpServer.cjs.js');
9
9
  var mkdocsServer = require('../../lib/mkdocsServer.cjs.js');
10
- var run = require('../../lib/run.cjs.js');
11
10
  var utility = require('../../lib/utility.cjs.js');
12
11
  var pluginTechdocsNode = require('@backstage/plugin-techdocs-node');
13
12
  var fs = require('fs-extra');
@@ -66,14 +65,14 @@ async function serve(opts) {
66
65
  });
67
66
  };
68
67
  logger.info("Starting mkdocs server.");
69
- const mkdocsChildProcess = await mkdocsServer.runMkdocsServer({
68
+ const mkdocsChildProcess = mkdocsServer.runMkdocsServer({
70
69
  port: opts.mkdocsPort,
71
70
  dockerImage: opts.dockerImage,
72
71
  dockerEntrypoint: opts.dockerEntrypoint,
73
72
  dockerOptions: opts.dockerOption,
74
73
  useDocker: opts.docker,
75
- stdoutLogFunc: mkdocsLogFunc,
76
- stderrLogFunc: mkdocsLogFunc,
74
+ onStdout: mkdocsLogFunc,
75
+ onStderr: mkdocsLogFunc,
77
76
  mkdocsConfigFileName: mkdocsYmlPath,
78
77
  mkdocsParameterClean: opts.mkdocsParameterClean,
79
78
  mkdocsParameterDirtyReload: opts.mkdocsParameterDirtyreload,
@@ -110,7 +109,7 @@ async function serve(opts) {
110
109
  Opening browser.`
111
110
  );
112
111
  });
113
- await run.waitForSignal([mkdocsChildProcess]);
112
+ await mkdocsChildProcess.waitForExit();
114
113
  if (configIsTemporary) {
115
114
  process.on("exit", async () => {
116
115
  fs__default.default.rmSync(mkdocsYmlPath, {});
@@ -1 +1 @@
1
- {"version":3,"file":"serve.cjs.js","sources":["../../../src/commands/serve/serve.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OptionValues } from 'commander';\nimport path from 'path';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { findPaths } from '@backstage/cli-common';\nimport HTTPServer from '../../lib/httpServer';\nimport { runMkdocsServer } from '../../lib/mkdocsServer';\nimport { LogFunc, waitForSignal } from '../../lib/run';\nimport { createLogger } from '../../lib/utility';\nimport { getMkdocsYml } from '@backstage/plugin-techdocs-node';\nimport fs from 'fs-extra';\nimport { checkIfDockerIsOperational } from './utils';\n\nfunction findPreviewBundlePath(): string {\n try {\n return path.join(\n path.dirname(require.resolve('techdocs-cli-embedded-app/package.json')),\n 'dist',\n );\n } catch {\n // If the techdocs-cli-embedded-app package is not available it means we're\n // running a published package. For published packages the preview bundle is\n // copied to dist/embedded-app be the prepack script.\n //\n // This can be tested by running `yarn pack` and extracting the resulting tarball into a directory.\n // Within the extracted directory, run `npm install --only=prod`.\n // Once that's done you can test the CLI in any directory using `node <tmp-dir>/package <command>`.\n // eslint-disable-next-line no-restricted-syntax\n return findPaths(__dirname).resolveOwn('dist/embedded-app');\n }\n}\n\nfunction getPreviewAppPath(opts: OptionValues): string {\n return opts.previewAppBundlePath ?? findPreviewBundlePath();\n}\n\nexport default async function serve(opts: OptionValues) {\n const logger = createLogger({ verbose: opts.verbose });\n\n // Determine if we want to run in local dev mode or not\n // This will run the backstage http server on a different port and only used\n // for proxying mkdocs to the backstage app running locally (e.g. with webpack-dev-server)\n const isDevMode = Object.keys(process.env).includes('TECHDOCS_CLI_DEV_MODE')\n ? true\n : false;\n\n const backstageBackendPort = 7007;\n\n const mkdocsDockerAddr = `http://0.0.0.0:${opts.mkdocsPort}`;\n const mkdocsLocalAddr = `http://127.0.0.1:${opts.mkdocsPort}`;\n const mkdocsExpectedDevAddr = opts.docker\n ? mkdocsDockerAddr\n : mkdocsLocalAddr;\n const mkdocsConfigFileName = opts.mkdocsConfigFileName;\n const siteName = opts.siteName;\n\n const { path: mkdocsYmlPath, configIsTemporary } = await getMkdocsYml('./', {\n name: siteName,\n mkdocsConfigFileName,\n });\n\n // Validate that Docker is up and running\n if (opts.docker) {\n const isDockerOperational = await checkIfDockerIsOperational(logger);\n if (!isDockerOperational) {\n return;\n }\n }\n\n let mkdocsServerHasStarted = false;\n const mkdocsLogFunc: LogFunc = data => {\n // Sometimes the lines contain an unnecessary extra new line\n const logLines = data.toString().split('\\n');\n const logPrefix = opts.docker ? '[docker/mkdocs]' : '[mkdocs]';\n logLines.forEach(line => {\n if (line === '') {\n return;\n }\n\n logger.verbose(`${logPrefix} ${line}`);\n\n // When the server has started, open a new browser tab for the user.\n if (\n !mkdocsServerHasStarted &&\n line.includes(`Serving on ${mkdocsExpectedDevAddr}`)\n ) {\n mkdocsServerHasStarted = true;\n }\n });\n };\n // mkdocs writes all of its logs to stderr by default, and not stdout.\n // https://github.com/mkdocs/mkdocs/issues/879#issuecomment-203536006\n // Had me questioning this whole implementation for half an hour.\n logger.info('Starting mkdocs server.');\n const mkdocsChildProcess = await runMkdocsServer({\n port: opts.mkdocsPort,\n dockerImage: opts.dockerImage,\n dockerEntrypoint: opts.dockerEntrypoint,\n dockerOptions: opts.dockerOption,\n useDocker: opts.docker,\n stdoutLogFunc: mkdocsLogFunc,\n stderrLogFunc: mkdocsLogFunc,\n mkdocsConfigFileName: mkdocsYmlPath,\n mkdocsParameterClean: opts.mkdocsParameterClean,\n mkdocsParameterDirtyReload: opts.mkdocsParameterDirtyreload,\n mkdocsParameterStrict: opts.mkdocsParameterStrict,\n });\n\n // Wait until mkdocs server has started so that Backstage starts with docs loaded\n // Takes 1-5 seconds\n for (let attempt = 0; attempt < 30; attempt++) {\n await new Promise(r => setTimeout(r, 3000));\n if (mkdocsServerHasStarted) {\n break;\n }\n logger.info('Waiting for mkdocs server to start...');\n }\n\n if (!mkdocsServerHasStarted) {\n logger.error(\n 'mkdocs server did not start. Exiting. Try re-running command with -v option for more details.',\n );\n }\n\n const port = isDevMode ? backstageBackendPort : opts.previewAppPort;\n const previewAppPath = getPreviewAppPath(opts);\n const httpServer = new HTTPServer(\n previewAppPath,\n port,\n mkdocsExpectedDevAddr,\n opts.verbose,\n );\n\n httpServer\n .serve()\n .catch(err => {\n logger.error('Failed to start HTTP server', err);\n mkdocsChildProcess.kill();\n process.exit(1);\n })\n .then(() => {\n // The last three things default/component/local/ don't matter. They can be anything.\n openBrowser(`http://localhost:${port}/docs/default/component/local/`);\n logger.info(\n `Serving docs in Backstage at http://localhost:${port}/docs/default/component/local/\\nOpening browser.`,\n );\n });\n\n await waitForSignal([mkdocsChildProcess]);\n\n if (configIsTemporary) {\n process.on('exit', async () => {\n fs.rmSync(mkdocsYmlPath, {});\n });\n }\n}\n"],"names":["path","findPaths","createLogger","getMkdocsYml","checkIfDockerIsOperational","runMkdocsServer","httpServer","HTTPServer","openBrowser","waitForSignal","fs"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,SAAS,qBAAA,GAAgC;AACvC,EAAA,IAAI;AACF,IAAA,OAAOA,qBAAA,CAAK,IAAA;AAAA,MACVA,qBAAA,CAAK,OAAA,CAAQ,OAAA,CAAQ,OAAA,CAAQ,wCAAwC,CAAC,CAAA;AAAA,MACtE;AAAA,KACF;AAAA,EACF,CAAA,CAAA,MAAQ;AASN,IAAA,OAAOC,mBAAA,CAAU,SAAS,CAAA,CAAE,UAAA,CAAW,mBAAmB,CAAA;AAAA,EAC5D;AACF;AAEA,SAAS,kBAAkB,IAAA,EAA4B;AACrD,EAAA,OAAO,IAAA,CAAK,wBAAwB,qBAAA,EAAsB;AAC5D;AAEA,eAA8B,MAAM,IAAA,EAAoB;AACtD,EAAA,MAAM,SAASC,oBAAA,CAAa,EAAE,OAAA,EAAS,IAAA,CAAK,SAAS,CAAA;AAKrD,EAAA,MAAM,SAAA,GAAY,OAAO,IAAA,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eAAa,IAAIC,kBAAA;AAAA,IACrB,cAAA;AAAA,IACA,IAAA;AAAA,IACA,qBAAA;AAAA,IACA,IAAA,CAAK;AAAA,GACP;AAEA,EAAAD,YAAA,CACG,KAAA,EAAM,CACN,KAAA,CAAM,CAAA,GAAA,KAAO;AACZ,IAAA,MAAA,CAAO,KAAA,CAAM,+BAA+B,GAAG,CAAA;AAC/C,IAAA,kBAAA,CAAmB,IAAA,EAAK;AACxB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB,CAAC,CAAA,CACA,IAAA,CAAK,MAAM;AAEV,IAAAE,4BAAA,CAAY,CAAA,iBAAA,EAAoB,IAAI,CAAA,8BAAA,CAAgC,CAAA;AACpE,IAAA,MAAA,CAAO,IAAA;AAAA,MACL,iDAAiD,IAAI,CAAA;AAAA,gBAAA;AAAA,KACvD;AAAA,EACF,CAAC,CAAA;AAEH,EAAA,MAAMC,iBAAA,CAAc,CAAC,kBAAkB,CAAC,CAAA;AAExC,EAAA,IAAI,iBAAA,EAAmB;AACrB,IAAA,OAAA,CAAQ,EAAA,CAAG,QAAQ,YAAY;AAC7B,MAAAC,mBAAA,CAAG,MAAA,CAAO,aAAA,EAAe,EAAE,CAAA;AAAA,IAC7B,CAAC,CAAA;AAAA,EACH;AACF;;;;"}
1
+ {"version":3,"file":"serve.cjs.js","sources":["../../../src/commands/serve/serve.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OptionValues } from 'commander';\nimport path from 'path';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { findPaths, RunOnOutput } from '@backstage/cli-common';\nimport HTTPServer from '../../lib/httpServer';\nimport { runMkdocsServer } from '../../lib/mkdocsServer';\nimport { createLogger } from '../../lib/utility';\nimport { getMkdocsYml } from '@backstage/plugin-techdocs-node';\nimport fs from 'fs-extra';\nimport { checkIfDockerIsOperational } from './utils';\n\nfunction findPreviewBundlePath(): string {\n try {\n return path.join(\n path.dirname(require.resolve('techdocs-cli-embedded-app/package.json')),\n 'dist',\n );\n } catch {\n // If the techdocs-cli-embedded-app package is not available it means we're\n // running a published package. For published packages the preview bundle is\n // copied to dist/embedded-app be the prepack script.\n //\n // This can be tested by running `yarn pack` and extracting the resulting tarball into a directory.\n // Within the extracted directory, run `npm install --only=prod`.\n // Once that's done you can test the CLI in any directory using `node <tmp-dir>/package <command>`.\n // eslint-disable-next-line no-restricted-syntax\n return findPaths(__dirname).resolveOwn('dist/embedded-app');\n }\n}\n\nfunction getPreviewAppPath(opts: OptionValues): string {\n return opts.previewAppBundlePath ?? findPreviewBundlePath();\n}\n\nexport default async function serve(opts: OptionValues) {\n const logger = createLogger({ verbose: opts.verbose });\n\n // Determine if we want to run in local dev mode or not\n // This will run the backstage http server on a different port and only used\n // for proxying mkdocs to the backstage app running locally (e.g. with webpack-dev-server)\n const isDevMode = Object.keys(process.env).includes('TECHDOCS_CLI_DEV_MODE')\n ? true\n : false;\n\n const backstageBackendPort = 7007;\n\n const mkdocsDockerAddr = `http://0.0.0.0:${opts.mkdocsPort}`;\n const mkdocsLocalAddr = `http://127.0.0.1:${opts.mkdocsPort}`;\n const mkdocsExpectedDevAddr = opts.docker\n ? mkdocsDockerAddr\n : mkdocsLocalAddr;\n const mkdocsConfigFileName = opts.mkdocsConfigFileName;\n const siteName = opts.siteName;\n\n const { path: mkdocsYmlPath, configIsTemporary } = await getMkdocsYml('./', {\n name: siteName,\n mkdocsConfigFileName,\n });\n\n // Validate that Docker is up and running\n if (opts.docker) {\n const isDockerOperational = await checkIfDockerIsOperational(logger);\n if (!isDockerOperational) {\n return;\n }\n }\n\n let mkdocsServerHasStarted = false;\n const mkdocsLogFunc: RunOnOutput = data => {\n // Sometimes the lines contain an unnecessary extra new line\n const logLines = data.toString().split('\\n');\n const logPrefix = opts.docker ? '[docker/mkdocs]' : '[mkdocs]';\n logLines.forEach(line => {\n if (line === '') {\n return;\n }\n\n logger.verbose(`${logPrefix} ${line}`);\n\n // When the server has started, open a new browser tab for the user.\n if (\n !mkdocsServerHasStarted &&\n line.includes(`Serving on ${mkdocsExpectedDevAddr}`)\n ) {\n mkdocsServerHasStarted = true;\n }\n });\n };\n // mkdocs writes all of its logs to stderr by default, and not stdout.\n // https://github.com/mkdocs/mkdocs/issues/879#issuecomment-203536006\n // Had me questioning this whole implementation for half an hour.\n logger.info('Starting mkdocs server.');\n const mkdocsChildProcess = runMkdocsServer({\n port: opts.mkdocsPort,\n dockerImage: opts.dockerImage,\n dockerEntrypoint: opts.dockerEntrypoint,\n dockerOptions: opts.dockerOption,\n useDocker: opts.docker,\n onStdout: mkdocsLogFunc,\n onStderr: mkdocsLogFunc,\n mkdocsConfigFileName: mkdocsYmlPath,\n mkdocsParameterClean: opts.mkdocsParameterClean,\n mkdocsParameterDirtyReload: opts.mkdocsParameterDirtyreload,\n mkdocsParameterStrict: opts.mkdocsParameterStrict,\n });\n\n // Wait until mkdocs server has started so that Backstage starts with docs loaded\n // Takes 1-5 seconds\n for (let attempt = 0; attempt < 30; attempt++) {\n await new Promise(r => setTimeout(r, 3000));\n if (mkdocsServerHasStarted) {\n break;\n }\n logger.info('Waiting for mkdocs server to start...');\n }\n\n if (!mkdocsServerHasStarted) {\n logger.error(\n 'mkdocs server did not start. Exiting. Try re-running command with -v option for more details.',\n );\n }\n\n const port = isDevMode ? backstageBackendPort : opts.previewAppPort;\n const previewAppPath = getPreviewAppPath(opts);\n const httpServer = new HTTPServer(\n previewAppPath,\n port,\n mkdocsExpectedDevAddr,\n opts.verbose,\n );\n\n httpServer\n .serve()\n .catch(err => {\n logger.error('Failed to start HTTP server', err);\n mkdocsChildProcess.kill();\n process.exit(1);\n })\n .then(() => {\n // The last three things default/component/local/ don't matter. They can be anything.\n openBrowser(`http://localhost:${port}/docs/default/component/local/`);\n logger.info(\n `Serving docs in Backstage at http://localhost:${port}/docs/default/component/local/\\nOpening browser.`,\n );\n });\n\n await mkdocsChildProcess.waitForExit();\n\n if (configIsTemporary) {\n process.on('exit', async () => {\n fs.rmSync(mkdocsYmlPath, {});\n });\n }\n}\n"],"names":["path","findPaths","createLogger","getMkdocsYml","checkIfDockerIsOperational","runMkdocsServer","httpServer","HTTPServer","openBrowser","fs"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2BA,SAAS,qBAAA,GAAgC;AACvC,EAAA,IAAI;AACF,IAAA,OAAOA,qBAAA,CAAK,IAAA;AAAA,MACVA,qBAAA,CAAK,OAAA,CAAQ,OAAA,CAAQ,OAAA,CAAQ,wCAAwC,CAAC,CAAA;AAAA,MACtE;AAAA,KACF;AAAA,EACF,CAAA,CAAA,MAAQ;AASN,IAAA,OAAOC,mBAAA,CAAU,SAAS,CAAA,CAAE,UAAA,CAAW,mBAAmB,CAAA;AAAA,EAC5D;AACF;AAEA,SAAS,kBAAkB,IAAA,EAA4B;AACrD,EAAA,OAAO,IAAA,CAAK,wBAAwB,qBAAA,EAAsB;AAC5D;AAEA,eAA8B,MAAM,IAAA,EAAoB;AACtD,EAAA,MAAM,SAASC,oBAAA,CAAa,EAAE,OAAA,EAAS,IAAA,CAAK,SAAS,CAAA;AAKrD,EAAA,MAAM,SAAA,GAAY,OAAO,IAAA,CAAK,OAAA,CAAQ,GAAG,CAAA,CAAE,QAAA,CAAS,uBAAuB,CAAA,GACvE,IAAA,GACA,KAAA;AAEJ,EAAA,MAAM,oBAAA,GAAuB,IAAA;AAE7B,EAAA,MAAM,gBAAA,GAAmB,CAAA,eAAA,EAAkB,IAAA,CAAK,UAAU,CAAA,CAAA;AAC1D,EAAA,MAAM,eAAA,GAAkB,CAAA,iBAAA,EAAoB,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AACxB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB,CAAC,CAAA,CACA,IAAA,CAAK,MAAM;AAEV,IAAAE,4BAAA,CAAY,CAAA,iBAAA,EAAoB,IAAI,CAAA,8BAAA,CAAgC,CAAA;AACpE,IAAA,MAAA,CAAO,IAAA;AAAA,MACL,iDAAiD,IAAI,CAAA;AAAA,gBAAA;AAAA,KACvD;AAAA,EACF,CAAC,CAAA;AAEH,EAAA,MAAM,mBAAmB,WAAA,EAAY;AAErC,EAAA,IAAI,iBAAA,EAAmB;AACrB,IAAA,OAAA,CAAQ,EAAA,CAAG,QAAQ,YAAY;AAC7B,MAAAC,mBAAA,CAAG,MAAA,CAAO,aAAA,EAAe,EAAE,CAAA;AAAA,IAC7B,CAAC,CAAA;AAAA,EACH;AACF;;;;"}
@@ -1,23 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var util = require('util');
4
- var child_process = require('child_process');
3
+ var cliCommon = require('@backstage/cli-common');
5
4
 
6
5
  async function checkIfDockerIsOperational(logger) {
7
6
  logger.info("Checking Docker status...");
8
- try {
9
- const runCheck = util.promisify(child_process.execFile);
10
- await runCheck("docker", ["info"], { shell: true });
7
+ const isOperational = await cliCommon.runCheck(["docker", "info"]);
8
+ if (isOperational) {
11
9
  logger.info(
12
10
  "Docker is up and running. Proceed to starting up mkdocs server"
13
11
  );
14
12
  return true;
15
- } catch {
16
- logger.error(
17
- "Docker is not running. Exiting. Please check status of Docker daemon with `docker info` before re-running"
18
- );
19
- return false;
20
13
  }
14
+ logger.error(
15
+ "Docker is not running. Exiting. Please check status of Docker daemon with `docker info` before re-running"
16
+ );
17
+ return false;
21
18
  }
22
19
 
23
20
  exports.checkIfDockerIsOperational = checkIfDockerIsOperational;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.cjs.js","sources":["../../../src/commands/serve/utils.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { promisify } from 'util';\nimport * as winston from 'winston';\nimport { execFile } from 'child_process';\n\nexport async function checkIfDockerIsOperational(\n logger: winston.Logger,\n): Promise<boolean> {\n logger.info('Checking Docker status...');\n try {\n const runCheck = promisify(execFile);\n await runCheck('docker', ['info'], { shell: true });\n logger.info(\n 'Docker is up and running. Proceed to starting up mkdocs server',\n );\n return true;\n } catch {\n logger.error(\n 'Docker is not running. Exiting. Please check status of Docker daemon with `docker info` before re-running',\n );\n return false;\n }\n}\n"],"names":["promisify","execFile"],"mappings":";;;;;AAoBA,eAAsB,2BACpB,MAAA,EACkB;AAClB,EAAA,MAAA,CAAO,KAAK,2BAA2B,CAAA;AACvC,EAAA,IAAI;AACF,IAAA,MAAM,QAAA,GAAWA,eAAUC,sBAAQ,CAAA;AACnC,IAAA,MAAM,QAAA,CAAS,UAAU,CAAC,MAAM,GAAG,EAAE,KAAA,EAAO,MAAM,CAAA;AAClD,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AACA,IAAA,OAAO,IAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,MAAA,CAAO,KAAA;AAAA,MACL;AAAA,KACF;AACA,IAAA,OAAO,KAAA;AAAA,EACT;AACF;;;;"}
1
+ {"version":3,"file":"utils.cjs.js","sources":["../../../src/commands/serve/utils.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as winston from 'winston';\nimport { runCheck } from '@backstage/cli-common';\n\nexport async function checkIfDockerIsOperational(\n logger: winston.Logger,\n): Promise<boolean> {\n logger.info('Checking Docker status...');\n const isOperational = await runCheck(['docker', 'info']);\n if (isOperational) {\n logger.info(\n 'Docker is up and running. Proceed to starting up mkdocs server',\n );\n return true;\n }\n logger.error(\n 'Docker is not running. Exiting. Please check status of Docker daemon with `docker info` before re-running',\n );\n return false;\n}\n"],"names":["runCheck"],"mappings":";;;;AAmBA,eAAsB,2BACpB,MAAA,EACkB;AAClB,EAAA,MAAA,CAAO,KAAK,2BAA2B,CAAA;AACvC,EAAA,MAAM,gBAAgB,MAAMA,kBAAA,CAAS,CAAC,QAAA,EAAU,MAAM,CAAC,CAAA;AACvD,EAAA,IAAI,aAAA,EAAe;AACjB,IAAA,MAAA,CAAO,IAAA;AAAA,MACL;AAAA,KACF;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACA,EAAA,MAAA,CAAO,KAAA;AAAA,IACL;AAAA,GACF;AACA,EAAA,OAAO,KAAA;AACT;;;;"}
@@ -404,67 +404,6 @@
404
404
  },
405
405
  "packageName": "@backstage/core-app-api"
406
406
  },
407
- {
408
- "path": "../../plugins/techdocs/config.d.ts",
409
- "value": {
410
- "type": "object",
411
- "properties": {
412
- "techdocs": {
413
- "description": "Configuration options for the techdocs plugin",
414
- "type": "object",
415
- "properties": {
416
- "builder": {
417
- "description": "Documentation building process depends on the builder attr",
418
- "visibility": "frontend",
419
- "enum": [
420
- "external",
421
- "local"
422
- ],
423
- "type": "string"
424
- },
425
- "legacyUseCaseSensitiveTripletPaths": {
426
- "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
427
- "visibility": "frontend",
428
- "type": "boolean"
429
- },
430
- "sanitizer": {
431
- "type": "object",
432
- "properties": {
433
- "allowedIframeHosts": {
434
- "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
435
- "visibility": "frontend",
436
- "type": "array",
437
- "items": {
438
- "type": "string"
439
- }
440
- },
441
- "allowedCustomElementTagNameRegExp": {
442
- "description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
443
- "visibility": "frontend",
444
- "type": "string"
445
- },
446
- "allowedCustomElementAttributeNameRegExp": {
447
- "description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
448
- "visibility": "frontend",
449
- "type": "string"
450
- },
451
- "additionalAllowedURIProtocols": {
452
- "description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
453
- "visibility": "frontend",
454
- "type": "string"
455
- }
456
- }
457
- }
458
- }
459
- }
460
- },
461
- "required": [
462
- "techdocs"
463
- ],
464
- "$schema": "http://json-schema.org/draft-07/schema#"
465
- },
466
- "packageName": "@backstage/plugin-techdocs"
467
- },
468
407
  {
469
408
  "path": "../integration/config.d.ts",
470
409
  "value": {
@@ -1230,6 +1169,64 @@
1230
1169
  },
1231
1170
  "packageName": "@backstage/frontend-app-api"
1232
1171
  },
1172
+ {
1173
+ "path": "../../plugins/techdocs/config.d.ts",
1174
+ "value": {
1175
+ "type": "object",
1176
+ "properties": {
1177
+ "techdocs": {
1178
+ "description": "Configuration options for the techdocs plugin",
1179
+ "type": "object",
1180
+ "properties": {
1181
+ "builder": {
1182
+ "description": "Documentation building process depends on the builder attr",
1183
+ "visibility": "frontend",
1184
+ "enum": [
1185
+ "external",
1186
+ "local"
1187
+ ],
1188
+ "type": "string"
1189
+ },
1190
+ "legacyUseCaseSensitiveTripletPaths": {
1191
+ "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
1192
+ "visibility": "frontend",
1193
+ "type": "boolean"
1194
+ },
1195
+ "sanitizer": {
1196
+ "type": "object",
1197
+ "properties": {
1198
+ "allowedIframeHosts": {
1199
+ "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
1200
+ "visibility": "frontend",
1201
+ "type": "array",
1202
+ "items": {
1203
+ "type": "string"
1204
+ }
1205
+ },
1206
+ "allowedCustomElementTagNameRegExp": {
1207
+ "description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
1208
+ "visibility": "frontend",
1209
+ "type": "string"
1210
+ },
1211
+ "allowedCustomElementAttributeNameRegExp": {
1212
+ "description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
1213
+ "visibility": "frontend",
1214
+ "type": "string"
1215
+ },
1216
+ "additionalAllowedURIProtocols": {
1217
+ "description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
1218
+ "visibility": "frontend",
1219
+ "type": "string"
1220
+ }
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ },
1226
+ "$schema": "http://json-schema.org/draft-07/schema#"
1227
+ },
1228
+ "packageName": "@backstage/plugin-techdocs"
1229
+ },
1233
1230
  {
1234
1231
  "path": "../../plugins/catalog/config.d.ts",
1235
1232
  "value": {
@@ -3054,28 +3051,128 @@
3054
3051
  "packageName": "@backstage/backend-defaults"
3055
3052
  },
3056
3053
  {
3057
- "path": "../../plugins/events-node/config.d.ts",
3054
+ "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3058
3055
  "value": {
3059
3056
  "type": "object",
3060
3057
  "properties": {
3061
- "events": {
3058
+ "auth": {
3059
+ "description": "Configuration options for the auth plugin",
3062
3060
  "type": "object",
3063
3061
  "properties": {
3064
- "useEventBus": {
3065
- "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
3066
- "enum": [
3067
- "always",
3068
- "auto",
3069
- "never"
3070
- ],
3071
- "type": "string"
3062
+ "providers": {
3063
+ "type": "object",
3064
+ "properties": {
3065
+ "google": {
3066
+ "visibility": "frontend",
3067
+ "type": "object",
3068
+ "additionalProperties": {
3069
+ "type": "object",
3070
+ "properties": {
3071
+ "clientId": {
3072
+ "type": "string"
3073
+ },
3074
+ "clientSecret": {
3075
+ "visibility": "secret",
3076
+ "type": "string"
3077
+ },
3078
+ "callbackUrl": {
3079
+ "type": "string"
3080
+ },
3081
+ "additionalScopes": {
3082
+ "anyOf": [
3083
+ {
3084
+ "type": "array",
3085
+ "items": {
3086
+ "type": "string"
3087
+ }
3088
+ },
3089
+ {
3090
+ "type": "string"
3091
+ }
3092
+ ]
3093
+ },
3094
+ "signIn": {
3095
+ "type": "object",
3096
+ "properties": {
3097
+ "resolvers": {
3098
+ "type": "array",
3099
+ "items": {
3100
+ "anyOf": [
3101
+ {
3102
+ "type": "object",
3103
+ "properties": {
3104
+ "resolver": {
3105
+ "type": "string",
3106
+ "const": "emailMatchingUserEntityAnnotation"
3107
+ },
3108
+ "dangerouslyAllowSignInWithoutUserInCatalog": {
3109
+ "type": "boolean"
3110
+ }
3111
+ },
3112
+ "required": [
3113
+ "resolver"
3114
+ ]
3115
+ },
3116
+ {
3117
+ "type": "object",
3118
+ "properties": {
3119
+ "resolver": {
3120
+ "type": "string",
3121
+ "const": "emailLocalPartMatchingUserEntityName"
3122
+ },
3123
+ "allowedDomains": {
3124
+ "type": "array",
3125
+ "items": {
3126
+ "type": "string"
3127
+ }
3128
+ },
3129
+ "dangerouslyAllowSignInWithoutUserInCatalog": {
3130
+ "type": "boolean"
3131
+ }
3132
+ },
3133
+ "required": [
3134
+ "resolver"
3135
+ ]
3136
+ },
3137
+ {
3138
+ "type": "object",
3139
+ "properties": {
3140
+ "resolver": {
3141
+ "type": "string",
3142
+ "const": "emailMatchingUserEntityProfileEmail"
3143
+ },
3144
+ "dangerouslyAllowSignInWithoutUserInCatalog": {
3145
+ "type": "boolean"
3146
+ }
3147
+ },
3148
+ "required": [
3149
+ "resolver"
3150
+ ]
3151
+ }
3152
+ ]
3153
+ }
3154
+ }
3155
+ },
3156
+ "required": [
3157
+ "resolvers"
3158
+ ]
3159
+ },
3160
+ "sessionDuration": {}
3161
+ },
3162
+ "required": [
3163
+ "clientId",
3164
+ "clientSecret"
3165
+ ]
3166
+ }
3167
+ }
3168
+ }
3072
3169
  }
3073
3170
  }
3074
3171
  }
3075
3172
  },
3076
3173
  "$schema": "http://json-schema.org/draft-07/schema#"
3077
3174
  },
3078
- "packageName": "@backstage/plugin-events-node"
3175
+ "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3079
3176
  },
3080
3177
  {
3081
3178
  "path": "../backend-app-api/config.d.ts",
@@ -3177,128 +3274,28 @@
3177
3274
  "packageName": "@backstage/backend-app-api"
3178
3275
  },
3179
3276
  {
3180
- "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3277
+ "path": "../../plugins/events-node/config.d.ts",
3181
3278
  "value": {
3182
3279
  "type": "object",
3183
3280
  "properties": {
3184
- "auth": {
3185
- "description": "Configuration options for the auth plugin",
3281
+ "events": {
3186
3282
  "type": "object",
3187
3283
  "properties": {
3188
- "providers": {
3189
- "type": "object",
3190
- "properties": {
3191
- "google": {
3192
- "visibility": "frontend",
3193
- "type": "object",
3194
- "additionalProperties": {
3195
- "type": "object",
3196
- "properties": {
3197
- "clientId": {
3198
- "type": "string"
3199
- },
3200
- "clientSecret": {
3201
- "visibility": "secret",
3202
- "type": "string"
3203
- },
3204
- "callbackUrl": {
3205
- "type": "string"
3206
- },
3207
- "additionalScopes": {
3208
- "anyOf": [
3209
- {
3210
- "type": "array",
3211
- "items": {
3212
- "type": "string"
3213
- }
3214
- },
3215
- {
3216
- "type": "string"
3217
- }
3218
- ]
3219
- },
3220
- "signIn": {
3221
- "type": "object",
3222
- "properties": {
3223
- "resolvers": {
3224
- "type": "array",
3225
- "items": {
3226
- "anyOf": [
3227
- {
3228
- "type": "object",
3229
- "properties": {
3230
- "resolver": {
3231
- "type": "string",
3232
- "const": "emailMatchingUserEntityAnnotation"
3233
- },
3234
- "dangerouslyAllowSignInWithoutUserInCatalog": {
3235
- "type": "boolean"
3236
- }
3237
- },
3238
- "required": [
3239
- "resolver"
3240
- ]
3241
- },
3242
- {
3243
- "type": "object",
3244
- "properties": {
3245
- "resolver": {
3246
- "type": "string",
3247
- "const": "emailLocalPartMatchingUserEntityName"
3248
- },
3249
- "allowedDomains": {
3250
- "type": "array",
3251
- "items": {
3252
- "type": "string"
3253
- }
3254
- },
3255
- "dangerouslyAllowSignInWithoutUserInCatalog": {
3256
- "type": "boolean"
3257
- }
3258
- },
3259
- "required": [
3260
- "resolver"
3261
- ]
3262
- },
3263
- {
3264
- "type": "object",
3265
- "properties": {
3266
- "resolver": {
3267
- "type": "string",
3268
- "const": "emailMatchingUserEntityProfileEmail"
3269
- },
3270
- "dangerouslyAllowSignInWithoutUserInCatalog": {
3271
- "type": "boolean"
3272
- }
3273
- },
3274
- "required": [
3275
- "resolver"
3276
- ]
3277
- }
3278
- ]
3279
- }
3280
- }
3281
- },
3282
- "required": [
3283
- "resolvers"
3284
- ]
3285
- },
3286
- "sessionDuration": {}
3287
- },
3288
- "required": [
3289
- "clientId",
3290
- "clientSecret"
3291
- ]
3292
- }
3293
- }
3294
- }
3284
+ "useEventBus": {
3285
+ "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
3286
+ "enum": [
3287
+ "always",
3288
+ "auto",
3289
+ "never"
3290
+ ],
3291
+ "type": "string"
3295
3292
  }
3296
3293
  }
3297
3294
  }
3298
3295
  },
3299
3296
  "$schema": "http://json-schema.org/draft-07/schema#"
3300
3297
  },
3301
- "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3298
+ "packageName": "@backstage/plugin-events-node"
3302
3299
  },
3303
3300
  {
3304
3301
  "path": "../integration-aws-node/config.d.ts",
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.89b37e56.js"></script><script defer="defer" src="/static/module-material-ui.d7e935bd.js"></script><script defer="defer" src="/static/module-lodash.4c0b97a0.js"></script><script defer="defer" src="/static/module-date-fns.ea38f57b.js"></script><script defer="defer" src="/static/module-mui.5d4d7042.js"></script><script defer="defer" src="/static/module-material-table.3ca211ef.js"></script><script defer="defer" src="/static/module-zod.ebbb06c8.js"></script><script defer="defer" src="/static/module-react-dom.e29ff3c5.js"></script><script defer="defer" src="/static/module-i18next.2dc1c3e2.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ba954a31.js"></script><script defer="defer" src="/static/module-remix-run.a4991870.js"></script><script defer="defer" src="/static/vendor.5686e88b.js"></script><script defer="defer" src="/static/main.9f641a04.js"></script><link href="/static/main.5f8bd308.css" rel="stylesheet"><script type="backstage.io/config">[
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.a358dfe6.js"></script><script defer="defer" src="/static/module-material-ui.d7e935bd.js"></script><script defer="defer" src="/static/module-lodash.4c0b97a0.js"></script><script defer="defer" src="/static/module-date-fns.ea38f57b.js"></script><script defer="defer" src="/static/module-mui.5d4d7042.js"></script><script defer="defer" src="/static/module-material-table.3ca211ef.js"></script><script defer="defer" src="/static/module-zod.ebbb06c8.js"></script><script defer="defer" src="/static/module-react-dom.e29ff3c5.js"></script><script defer="defer" src="/static/module-i18next.2dc1c3e2.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ba954a31.js"></script><script defer="defer" src="/static/module-remix-run.a4991870.js"></script><script defer="defer" src="/static/vendor.4b7983a7.js"></script><script defer="defer" src="/static/main.1e025874.js"></script><link href="/static/main.5f8bd308.css" rel="stylesheet"><script type="backstage.io/config">[
2
2
  {
3
3
  "context": "app-config.yaml",
4
4
  "data": {