@backstage/cli 0.17.0 → 0.17.1-next.0
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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/{PackageGraph-3e77ee6e.cjs.js → PackageGraph-8d144cb7.cjs.js} +2 -2
- package/dist/cjs/{backend-bc67f880.cjs.js → backend-36ad324b.cjs.js} +2 -2
- package/dist/cjs/{build-df327126.cjs.js → build-08288ec9.cjs.js} +7 -7
- package/dist/cjs/{build-21b554f7.cjs.js → build-39b5242a.cjs.js} +7 -7
- package/dist/cjs/{build-ca08044a.cjs.js → build-6dc8a537.cjs.js} +10 -10
- package/dist/cjs/{build-877d1df6.cjs.js → build-e2903e7c.cjs.js} +17 -15
- package/dist/cjs/{buildBackend-f6232b70.cjs.js → buildBackend-45b459c6.cjs.js} +8 -8
- package/dist/cjs/{buildWorkspace-dd63eb8f.cjs.js → buildWorkspace-3ceb5e9c.cjs.js} +8 -8
- package/dist/cjs/{bump-5b1d0872.cjs.js → bump-cb245531.cjs.js} +13 -12
- package/dist/cjs/{bundle-c31e0e57.cjs.js → bundle-62f7204c.cjs.js} +2 -2
- package/dist/cjs/{bundle-1756d113.cjs.js → bundle-e11294ed.cjs.js} +9 -9
- package/dist/cjs/{clean-177bd68f.cjs.js → clean-c4f8f462.cjs.js} +2 -2
- package/dist/cjs/{config-7f37bd42.cjs.js → config-b809ec94.cjs.js} +3 -3
- package/dist/cjs/{create-f41f4bb5.cjs.js → create-8ab99121.cjs.js} +10 -11
- package/dist/cjs/{createDistWorkspace-9fa09826.cjs.js → createDistWorkspace-0c811a67.cjs.js} +6 -6
- package/dist/cjs/{createPlugin-7d08c1c8.cjs.js → createPlugin-c541a592.cjs.js} +11 -11
- package/dist/cjs/{dev-135bd80e.cjs.js → dev-5daa0ad5.cjs.js} +9 -9
- package/dist/cjs/{diff-dcbdc556.cjs.js → diff-9ab5c93c.cjs.js} +5 -5
- package/dist/cjs/{docs-15bbb0ba.cjs.js → docs-70ff6b41.cjs.js} +6 -6
- package/dist/cjs/{fix-506432ae.cjs.js → fix-9c867cd9.cjs.js} +3 -3
- package/dist/cjs/{index-0872bb40.cjs.js → index-24217979.cjs.js} +16 -16
- package/dist/cjs/{index-34888cb0.cjs.js → index-40f43d08.cjs.js} +23 -2
- package/dist/cjs/{index-383b6870.cjs.js → index-7aa76653.cjs.js} +62 -61
- package/dist/cjs/{index-8ed5752d.cjs.js → index-ac4d04f8.cjs.js} +18 -18
- package/dist/cjs/{info-fba1c411.cjs.js → info-cedccb1f.cjs.js} +3 -3
- package/dist/cjs/{install-db0b287c.cjs.js → install-2792d801.cjs.js} +4 -4
- package/dist/cjs/{lint-6ee83912.cjs.js → lint-8c81dafb.cjs.js} +9 -9
- package/dist/cjs/{lint-4f49679d.cjs.js → lint-aca9ebed.cjs.js} +8 -8
- package/dist/cjs/{lint-ef3857ec.cjs.js → lint-c3e83dde.cjs.js} +3 -3
- package/dist/cjs/{list-deprecations-0c924dc1.cjs.js → list-deprecations-7aebd1de.cjs.js} +5 -5
- package/dist/cjs/{oldBuild-26acc2c8.cjs.js → oldBuild-a5e69c49.cjs.js} +8 -8
- package/dist/cjs/{pack-d58d933e.cjs.js → pack-1982c102.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-2fbc70fd.cjs.js → packageLintConfigs-79659a07.cjs.js} +4 -4
- package/dist/cjs/{packageRole-4fedba85.cjs.js → packageRole-018ad411.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-374d8e8a.cjs.js → packageRoles-4f3055b4.cjs.js} +5 -5
- package/dist/cjs/{packageScripts-20f6d232.cjs.js → packageScripts-d61a3265.cjs.js} +4 -4
- package/dist/cjs/{packager-31d63a18.cjs.js → packager-c764bf55.cjs.js} +3 -3
- package/dist/cjs/{packages-93d09ae7.cjs.js → packages-c6363720.cjs.js} +3 -3
- package/dist/cjs/{paths-330457b7.cjs.js → paths-a745b064.cjs.js} +3 -3
- package/dist/cjs/{print-7057a821.cjs.js → print-6ebeba29.cjs.js} +15 -15
- package/dist/cjs/{run-fc645f92.cjs.js → run-42a6df86.cjs.js} +2 -2
- package/dist/cjs/{schema-30d5277a.cjs.js → schema-d69a3bad.cjs.js} +7 -7
- package/dist/cjs/{serve-fd338b99.cjs.js → serve-2803af0c.cjs.js} +11 -11
- package/dist/cjs/{serve-a4add951.cjs.js → serve-9ef7a13f.cjs.js} +10 -10
- package/dist/cjs/{server-a426dae8.cjs.js → server-fd8bcb7d.cjs.js} +2 -2
- package/dist/cjs/{tasks-02810e03.cjs.js → tasks-fc57f98a.cjs.js} +2 -2
- package/dist/cjs/{testCommand-a355f8df.cjs.js → test-381ace6e.cjs.js} +7 -7
- package/dist/cjs/{validate-c0818020.cjs.js → validate-d6fb5d09.cjs.js} +10 -10
- package/dist/index.cjs.js +1 -1
- package/package.json +10 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var backend = require('./backend-
|
|
4
|
+
var index = require('./index-7aa76653.cjs.js');
|
|
5
|
+
var backend = require('./backend-36ad324b.cjs.js');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('semver');
|
|
9
9
|
require('@backstage/cli-common');
|
|
10
10
|
require('@backstage/errors');
|
|
11
11
|
require('webpack');
|
|
12
|
-
require('./paths-
|
|
12
|
+
require('./paths-a745b064.cjs.js');
|
|
13
13
|
require('path');
|
|
14
14
|
require('fork-ts-checker-webpack-plugin');
|
|
15
15
|
require('html-webpack-plugin');
|
|
@@ -19,7 +19,7 @@ require('webpack-node-externals');
|
|
|
19
19
|
require('@manypkg/get-packages');
|
|
20
20
|
require('mini-css-extract-plugin');
|
|
21
21
|
require('./svgrTemplate-550efce6.cjs.js');
|
|
22
|
-
require('./run-
|
|
22
|
+
require('./run-42a6df86.cjs.js');
|
|
23
23
|
require('child_process');
|
|
24
24
|
require('util');
|
|
25
25
|
require('eslint-webpack-plugin');
|
|
@@ -29,16 +29,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
29
29
|
|
|
30
30
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
31
31
|
|
|
32
|
-
var dev = async (
|
|
32
|
+
var dev = async (opts) => {
|
|
33
33
|
await fs__default["default"].remove(index.paths.resolveTarget("dist"));
|
|
34
34
|
const waitForExit = await backend.serveBackend({
|
|
35
35
|
entry: "src/index",
|
|
36
|
-
checksEnabled:
|
|
37
|
-
inspectEnabled:
|
|
38
|
-
inspectBrkEnabled:
|
|
36
|
+
checksEnabled: opts.check,
|
|
37
|
+
inspectEnabled: opts.inspect,
|
|
38
|
+
inspectBrkEnabled: opts.inspectBrk
|
|
39
39
|
});
|
|
40
40
|
await waitForExit();
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports["default"] = dev;
|
|
44
|
-
//# sourceMappingURL=dev-
|
|
44
|
+
//# sourceMappingURL=dev-5daa0ad5.cjs.js.map
|
|
@@ -7,7 +7,7 @@ var path = require('path');
|
|
|
7
7
|
var inquirer = require('inquirer');
|
|
8
8
|
var handlebars = require('handlebars');
|
|
9
9
|
var recursive = require('recursive-readdir');
|
|
10
|
-
var index = require('./index-
|
|
10
|
+
var index = require('./index-7aa76653.cjs.js');
|
|
11
11
|
require('commander');
|
|
12
12
|
require('semver');
|
|
13
13
|
require('@backstage/cli-common');
|
|
@@ -337,13 +337,13 @@ const fileHandlers = [
|
|
|
337
337
|
handler: handlers.skip
|
|
338
338
|
}
|
|
339
339
|
];
|
|
340
|
-
var diff = async (
|
|
340
|
+
var diff = async (opts) => {
|
|
341
341
|
let promptFunc = inquirerPromptFunc;
|
|
342
342
|
let finalize = () => {
|
|
343
343
|
};
|
|
344
|
-
if (
|
|
344
|
+
if (opts.check) {
|
|
345
345
|
[promptFunc, finalize] = makeCheckPromptFunc();
|
|
346
|
-
} else if (
|
|
346
|
+
} else if (opts.yes) {
|
|
347
347
|
promptFunc = yesPromptFunc;
|
|
348
348
|
}
|
|
349
349
|
const data = await readPluginData();
|
|
@@ -380,4 +380,4 @@ async function readPluginData() {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
exports["default"] = diff;
|
|
383
|
-
//# sourceMappingURL=diff-
|
|
383
|
+
//# sourceMappingURL=diff-9ab5c93c.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var configLoader = require('@backstage/config-loader');
|
|
4
4
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
5
|
-
var config = require('./config-
|
|
5
|
+
var config = require('./config-b809ec94.cjs.js');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-7aa76653.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -12,7 +12,7 @@ require('semver');
|
|
|
12
12
|
require('@backstage/cli-common');
|
|
13
13
|
require('@backstage/errors');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./PackageGraph-
|
|
15
|
+
require('./PackageGraph-8d144cb7.cjs.js');
|
|
16
16
|
require('path');
|
|
17
17
|
require('child_process');
|
|
18
18
|
require('util');
|
|
@@ -22,10 +22,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
|
|
23
23
|
|
|
24
24
|
const DOCS_URL = "https://config.backstage.io";
|
|
25
|
-
var docs = async (
|
|
25
|
+
var docs = async (opts) => {
|
|
26
26
|
const { schema: appSchemas } = await config.loadCliConfig({
|
|
27
27
|
args: [],
|
|
28
|
-
fromPackage:
|
|
28
|
+
fromPackage: opts.package,
|
|
29
29
|
mockEnv: true
|
|
30
30
|
});
|
|
31
31
|
const schema = configLoader.mergeConfigSchemas(appSchemas.serialize().schemas.map((_) => _.value));
|
|
@@ -33,4 +33,4 @@ var docs = async (cmd) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
exports["default"] = docs;
|
|
36
|
-
//# sourceMappingURL=docs-
|
|
36
|
+
//# sourceMappingURL=docs-70ff6b41.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-7aa76653.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var fs = require('fs-extra');
|
|
7
7
|
var cliCommon = require('@backstage/cli-common');
|
|
8
|
-
var PackageGraph = require('./PackageGraph-
|
|
8
|
+
var PackageGraph = require('./PackageGraph-8d144cb7.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -113,4 +113,4 @@ async function command() {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
exports.command = command;
|
|
116
|
-
//# sourceMappingURL=fix-
|
|
116
|
+
//# sourceMappingURL=fix-9c867cd9.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var backend = require('./backend-
|
|
4
|
+
var index = require('./index-7aa76653.cjs.js');
|
|
5
|
+
var backend = require('./backend-36ad324b.cjs.js');
|
|
6
6
|
require('yn');
|
|
7
7
|
require('path');
|
|
8
8
|
require('webpack');
|
|
@@ -15,21 +15,21 @@ require('run-script-webpack-plugin');
|
|
|
15
15
|
require('webpack-node-externals');
|
|
16
16
|
require('@backstage/cli-common');
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
|
-
require('./paths-
|
|
18
|
+
require('./paths-a745b064.cjs.js');
|
|
19
19
|
require('mini-css-extract-plugin');
|
|
20
|
-
require('./run-
|
|
20
|
+
require('./run-42a6df86.cjs.js');
|
|
21
21
|
require('eslint-webpack-plugin');
|
|
22
22
|
require('lodash/pickBy');
|
|
23
23
|
var chalk = require('chalk');
|
|
24
24
|
require('webpack-dev-server');
|
|
25
25
|
require('react-dev-utils/openBrowser');
|
|
26
26
|
var uniq = require('lodash/uniq');
|
|
27
|
-
var server = require('./server-
|
|
28
|
-
var config = require('./config-
|
|
27
|
+
var server = require('./server-fd8bcb7d.cjs.js');
|
|
28
|
+
var config = require('./config-b809ec94.cjs.js');
|
|
29
29
|
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
30
30
|
require('minimatch');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-c3e83dde.cjs.js');
|
|
32
|
+
var packageRoles = require('./packageRoles-4f3055b4.cjs.js');
|
|
33
33
|
require('commander');
|
|
34
34
|
require('semver');
|
|
35
35
|
require('@backstage/errors');
|
|
@@ -38,7 +38,7 @@ require('child_process');
|
|
|
38
38
|
require('util');
|
|
39
39
|
require('@backstage/config-loader');
|
|
40
40
|
require('@backstage/config');
|
|
41
|
-
require('./PackageGraph-
|
|
41
|
+
require('./PackageGraph-8d144cb7.cjs.js');
|
|
42
42
|
require('@yarnpkg/lockfile');
|
|
43
43
|
require('lodash/partition');
|
|
44
44
|
require('zod');
|
|
@@ -91,13 +91,13 @@ async function startFrontend(options) {
|
|
|
91
91
|
await waitForExit();
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
async function command(
|
|
95
|
-
const role = await packageRoles.findRoleFromCommand(
|
|
94
|
+
async function command(opts) {
|
|
95
|
+
const role = await packageRoles.findRoleFromCommand(opts);
|
|
96
96
|
const options = {
|
|
97
|
-
configPaths:
|
|
98
|
-
checksEnabled: Boolean(
|
|
99
|
-
inspectEnabled: Boolean(
|
|
100
|
-
inspectBrkEnabled: Boolean(
|
|
97
|
+
configPaths: opts.config,
|
|
98
|
+
checksEnabled: Boolean(opts.check),
|
|
99
|
+
inspectEnabled: Boolean(opts.inspect),
|
|
100
|
+
inspectBrkEnabled: Boolean(opts.inspectBrk)
|
|
101
101
|
};
|
|
102
102
|
switch (role) {
|
|
103
103
|
case "backend":
|
|
@@ -121,4 +121,4 @@ async function command(cmd) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
exports.command = command;
|
|
124
|
-
//# sourceMappingURL=index-
|
|
124
|
+
//# sourceMappingURL=index-24217979.cjs.js.map
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var yaml = require('yaml');
|
|
6
|
-
var index$1 = require('./index-
|
|
6
|
+
var index$1 = require('./index-7aa76653.cjs.js');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
9
9
|
var request = require('@octokit/request');
|
|
10
10
|
var express = require('express');
|
|
11
|
+
var fetch = require('node-fetch');
|
|
11
12
|
require('commander');
|
|
12
13
|
require('semver');
|
|
13
14
|
require('@backstage/cli-common');
|
|
@@ -20,6 +21,7 @@ var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
|
20
21
|
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
21
22
|
var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
|
|
22
23
|
var express__default = /*#__PURE__*/_interopDefaultLegacy(express);
|
|
24
|
+
var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
|
|
23
25
|
|
|
24
26
|
const MANIFEST_DATA = {
|
|
25
27
|
default_events: ["create", "delete", "push", "repository"],
|
|
@@ -117,6 +119,7 @@ class GithubCreateAppServer {
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
var index = async (org) => {
|
|
122
|
+
await verifyGithubOrg(org);
|
|
120
123
|
const { slug, name, ...config } = await GithubCreateAppServer.run({ org });
|
|
121
124
|
const fileName = `github-app-${slug}-credentials.yaml`;
|
|
122
125
|
const content = `# Name: ${name}
|
|
@@ -124,7 +127,25 @@ ${yaml.stringify(config)}`;
|
|
|
124
127
|
await fs__default["default"].writeFile(index$1.paths.resolveTargetRoot(fileName), content);
|
|
125
128
|
console.log(`GitHub App configuration written to ${chalk__default["default"].cyan(fileName)}`);
|
|
126
129
|
console.log(chalk__default["default"].yellow("This file contains sensitive credentials, it should not be committed to version control and handled with care!"));
|
|
130
|
+
console.log("Here's an example on how to update the integrations section in app-config.yaml");
|
|
131
|
+
console.log(chalk__default["default"].green(`
|
|
132
|
+
integrations:
|
|
133
|
+
github:
|
|
134
|
+
- host: github.com
|
|
135
|
+
apps:
|
|
136
|
+
- $include: ${fileName}`));
|
|
127
137
|
};
|
|
138
|
+
async function verifyGithubOrg(org) {
|
|
139
|
+
let response;
|
|
140
|
+
try {
|
|
141
|
+
response = await fetch__default["default"](`https://api.github.com/orgs/${encodeURIComponent(org)}`);
|
|
142
|
+
} catch (e) {
|
|
143
|
+
console.log(chalk__default["default"].yellow("Warning: Unable to verify existence of GitHub organization. ", e));
|
|
144
|
+
}
|
|
145
|
+
if ((response == null ? void 0 : response.status) === 404) {
|
|
146
|
+
throw new Error(`GitHub organization '${org}' does not exist. Please verify the name and try again.`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
128
149
|
|
|
129
150
|
exports["default"] = index;
|
|
130
|
-
//# sourceMappingURL=index-
|
|
151
|
+
//# sourceMappingURL=index-40f43d08.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var commander = require('commander');
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var fs = require('fs-extra');
|
|
6
6
|
var semver = require('semver');
|
|
@@ -9,7 +9,6 @@ var errors = require('@backstage/errors');
|
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var program__default = /*#__PURE__*/_interopDefaultLegacy(program);
|
|
13
12
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
14
13
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
15
14
|
var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
|
|
@@ -45,13 +44,13 @@ class NotFoundError extends CustomError {
|
|
|
45
44
|
|
|
46
45
|
const paths = cliCommon.findPaths(__dirname);
|
|
47
46
|
|
|
48
|
-
var version$a = "0.13.
|
|
47
|
+
var version$a = "0.13.3-next.0";
|
|
49
48
|
|
|
50
|
-
var version$9 = "0.17.0";
|
|
49
|
+
var version$9 = "0.17.1-next.0";
|
|
51
50
|
var dependencies = {
|
|
52
51
|
"@backstage/cli-common": "^0.1.8",
|
|
53
52
|
"@backstage/config": "^1.0.0",
|
|
54
|
-
"@backstage/config-loader": "^1.1.0",
|
|
53
|
+
"@backstage/config-loader": "^1.1.1-next.0",
|
|
55
54
|
"@backstage/errors": "^1.0.0",
|
|
56
55
|
"@backstage/release-manifests": "^0.0.2",
|
|
57
56
|
"@backstage/types": "^1.0.0",
|
|
@@ -80,7 +79,7 @@ var dependencies = {
|
|
|
80
79
|
buffer: "^6.0.3",
|
|
81
80
|
chalk: "^4.0.0",
|
|
82
81
|
chokidar: "^3.3.1",
|
|
83
|
-
commander: "^
|
|
82
|
+
commander: "^9.1.0",
|
|
84
83
|
"css-loader": "^6.5.1",
|
|
85
84
|
diff: "^5.0.0",
|
|
86
85
|
esbuild: "^0.14.10",
|
|
@@ -98,8 +97,9 @@ var dependencies = {
|
|
|
98
97
|
"eslint-webpack-plugin": "^3.1.1",
|
|
99
98
|
express: "^4.17.1",
|
|
100
99
|
"fork-ts-checker-webpack-plugin": "^7.0.0-alpha.8",
|
|
101
|
-
"fs-extra": "10.0
|
|
100
|
+
"fs-extra": "10.1.0",
|
|
102
101
|
glob: "^7.1.7",
|
|
102
|
+
"global-agent": "^3.0.0",
|
|
103
103
|
handlebars: "^4.7.3",
|
|
104
104
|
"html-webpack-plugin": "^5.3.1",
|
|
105
105
|
inquirer: "^8.2.0",
|
|
@@ -111,6 +111,7 @@ var dependencies = {
|
|
|
111
111
|
lodash: "^4.17.21",
|
|
112
112
|
"mini-css-extract-plugin": "^2.4.2",
|
|
113
113
|
minimatch: "5.0.1",
|
|
114
|
+
"node-fetch": "^2.6.7",
|
|
114
115
|
"node-libs-browser": "^2.2.1",
|
|
115
116
|
"npm-packlist": "^5.0.0",
|
|
116
117
|
ora: "^5.3.0",
|
|
@@ -141,13 +142,13 @@ var dependencies = {
|
|
|
141
142
|
zod: "^3.11.6"
|
|
142
143
|
};
|
|
143
144
|
var devDependencies = {
|
|
144
|
-
"@backstage/backend-common": "^0.13.
|
|
145
|
+
"@backstage/backend-common": "^0.13.3-next.0",
|
|
145
146
|
"@backstage/config": "^1.0.0",
|
|
146
147
|
"@backstage/core-app-api": "^1.0.1",
|
|
147
148
|
"@backstage/core-components": "^0.9.3",
|
|
148
149
|
"@backstage/core-plugin-api": "^1.0.1",
|
|
149
|
-
"@backstage/dev-utils": "^1.0.
|
|
150
|
-
"@backstage/test-utils": "^1.0.
|
|
150
|
+
"@backstage/dev-utils": "^1.0.2-next.0",
|
|
151
|
+
"@backstage/test-utils": "^1.0.2-next.0",
|
|
151
152
|
"@backstage/theme": "^0.2.15",
|
|
152
153
|
"@types/diff": "^5.0.0",
|
|
153
154
|
"@types/express": "^4.17.6",
|
|
@@ -180,13 +181,13 @@ var version$6 = "0.9.3";
|
|
|
180
181
|
|
|
181
182
|
var version$5 = "1.0.1";
|
|
182
183
|
|
|
183
|
-
var version$4 = "1.0.
|
|
184
|
+
var version$4 = "1.0.2-next.0";
|
|
184
185
|
|
|
185
|
-
var version$3 = "1.0.
|
|
186
|
+
var version$3 = "1.0.2-next.0";
|
|
186
187
|
|
|
187
188
|
var version$2 = "0.2.15";
|
|
188
189
|
|
|
189
|
-
var version$1 = "1.
|
|
190
|
+
var version$1 = "1.2.0-next.0";
|
|
190
191
|
|
|
191
192
|
const packageVersions = {
|
|
192
193
|
"@backstage/backend-common": version$a,
|
|
@@ -236,62 +237,62 @@ function createPackageVersionProvider(lockfile) {
|
|
|
236
237
|
const configOption = [
|
|
237
238
|
"--config <path>",
|
|
238
239
|
"Config files to load instead of app-config.yaml",
|
|
239
|
-
(opt, opts) => [...opts, opt],
|
|
240
|
+
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
240
241
|
Array()
|
|
241
242
|
];
|
|
242
243
|
function registerRepoCommand(program) {
|
|
243
244
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
244
|
-
command.command("build").description("Build packages in the project, excluding bundled app and backend packages.").option("--all", "Build all packages, including bundled app and backend packages.").option("--since <ref>", "Only build packages and their dev dependents that changed since the specified ref").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
245
|
-
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
246
|
-
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
245
|
+
command.command("build").description("Build packages in the project, excluding bundled app and backend packages.").option("--all", "Build all packages, including bundled app and backend packages.").option("--since <ref>", "Only build packages and their dev dependents that changed since the specified ref").action(lazy(() => Promise.resolve().then(function () { return require('./build-e2903e7c.cjs.js'); }).then((m) => m.command)));
|
|
246
|
+
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-8c81dafb.cjs.js'); }).then((m) => m.command)));
|
|
247
|
+
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-7aebd1de.cjs.js'); }).then((m) => m.command)));
|
|
247
248
|
}
|
|
248
249
|
function registerScriptCommand(program) {
|
|
249
250
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
250
|
-
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect", "Enable debugger in Node.js environments").option("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
251
|
-
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => [...opts, opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
252
|
-
command.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
253
|
-
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./
|
|
254
|
-
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
255
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
256
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
257
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
251
|
+
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect", "Enable debugger in Node.js environments").option("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-24217979.cjs.js'); }).then((m) => m.command)));
|
|
252
|
+
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => opts ? [...opts, opt] : [opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-ac4d04f8.cjs.js'); }).then((m) => m.command)));
|
|
253
|
+
command.command("lint [directories...]").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-aca9ebed.cjs.js'); }).then((m) => m.default)));
|
|
254
|
+
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-381ace6e.cjs.js'); }).then((m) => m.default)));
|
|
255
|
+
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-9c867cd9.cjs.js'); }).then((m) => m.command)));
|
|
256
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-c4f8f462.cjs.js'); }).then((m) => m.default)));
|
|
257
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1982c102.cjs.js'); }).then((m) => m.pre)));
|
|
258
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1982c102.cjs.js'); }).then((m) => m.post)));
|
|
258
259
|
}
|
|
259
260
|
function registerMigrateCommand(program) {
|
|
260
261
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
261
|
-
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-
|
|
262
|
-
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
263
|
-
command.command("package-lint-configs").description("Migrates all packages to use @backstage/cli/config/eslint-factory").action(lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
262
|
+
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-018ad411.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-d61a3265.cjs.js'); }).then((m) => m.command)));
|
|
264
|
+
command.command("package-lint-configs").description("Migrates all packages to use @backstage/cli/config/eslint-factory").action(lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-79659a07.cjs.js'); }).then((m) => m.command)));
|
|
264
265
|
}
|
|
265
266
|
function registerCommands(program) {
|
|
266
|
-
program.command("app:build").description("Build an app for a production release [DEPRECATED]").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
267
|
-
program.command("app:serve").description("Serve an app for local development [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
268
|
-
program.command("backend:build").description("Build a backend plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
269
|
-
program.command("backend:bundle").description("Bundle the backend into a deployment archive [DEPRECATED]").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-
|
|
270
|
-
program.command("backend:dev").description("Start local development server with HMR for the backend [DEPRECATED]").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-
|
|
271
|
-
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-
|
|
272
|
-
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
273
|
-
program.command("plugin:build").description("Build a plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
274
|
-
program.command("plugin:serve").description("Serves the dev/ folder of a plugin [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
275
|
-
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
276
|
-
program.command("build").description("Build a package for publishing [DEPRECATED]").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-
|
|
277
|
-
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
278
|
-
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./
|
|
279
|
-
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
280
|
-
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
281
|
-
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
282
|
-
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
267
|
+
program.command("app:build").description("Build an app for a production release [DEPRECATED]").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-6dc8a537.cjs.js'); }).then((m) => m.default)));
|
|
268
|
+
program.command("app:serve").description("Serve an app for local development [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-2803af0c.cjs.js'); }).then((m) => m.default)));
|
|
269
|
+
program.command("backend:build").description("Build a backend plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-39b5242a.cjs.js'); }).then((m) => m.default)));
|
|
270
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive [DEPRECATED]").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-e11294ed.cjs.js'); }).then((m) => m.default)));
|
|
271
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend [DEPRECATED]").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-5daa0ad5.cjs.js'); }).then((m) => m.default)));
|
|
272
|
+
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-8ab99121.cjs.js'); }).then((m) => m.default)));
|
|
273
|
+
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-c541a592.cjs.js'); }).then((m) => m.default)));
|
|
274
|
+
program.command("plugin:build").description("Build a plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-08288ec9.cjs.js'); }).then((m) => m.default)));
|
|
275
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-9ef7a13f.cjs.js'); }).then((m) => m.default)));
|
|
276
|
+
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-9ab5c93c.cjs.js'); }).then((m) => m.default)));
|
|
277
|
+
program.command("build").description("Build a package for publishing [DEPRECATED]").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-a5e69c49.cjs.js'); }).then((m) => m.default)));
|
|
278
|
+
program.command("lint [directories...]").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./lint-aca9ebed.cjs.js'); }).then((m) => m.default)));
|
|
279
|
+
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./test-381ace6e.cjs.js'); }).then((m) => m.default)));
|
|
280
|
+
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-70ff6b41.cjs.js'); }).then((m) => m.default)));
|
|
281
|
+
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-6ebeba29.cjs.js'); }).then((m) => m.default)));
|
|
282
|
+
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-d6fb5d09.cjs.js'); }).then((m) => m.default)));
|
|
283
|
+
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-d69a3bad.cjs.js'); }).then((m) => m.default)));
|
|
283
284
|
registerRepoCommand(program);
|
|
284
285
|
registerScriptCommand(program);
|
|
285
286
|
registerMigrateCommand(program);
|
|
286
|
-
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").option("--release <version|next|main>", "Bump to a specific Backstage release line or version", "main").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
287
|
-
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
288
|
-
program.command("prepack").description("Prepares a package for packaging before publishing [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
289
|
-
program.command("postpack").description("Restores the changes made by the prepack command [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
290
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
291
|
-
program.command("build-workspace <workspace-dir>
|
|
292
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
293
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
294
|
-
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
287
|
+
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").option("--release <version|next|main>", "Bump to a specific Backstage release line or version", "main").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-cb245531.cjs.js'); }).then((m) => m.default)));
|
|
288
|
+
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-c3e83dde.cjs.js'); }).then((m) => m.default)));
|
|
289
|
+
program.command("prepack").description("Prepares a package for packaging before publishing [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1982c102.cjs.js'); }).then((m) => m.pre)));
|
|
290
|
+
program.command("postpack").description("Restores the changes made by the prepack command [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1982c102.cjs.js'); }).then((m) => m.post)));
|
|
291
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-c4f8f462.cjs.js'); }).then((m) => m.default)));
|
|
292
|
+
program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-3ceb5e9c.cjs.js'); }).then((m) => m.default)));
|
|
293
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-40f43d08.cjs.js'); }).then((m) => m.default)));
|
|
294
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-cedccb1f.cjs.js'); }).then((m) => m.default)));
|
|
295
|
+
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-2792d801.cjs.js'); }).then((m) => m.default)));
|
|
295
296
|
}
|
|
296
297
|
function lazy(getActionFunc) {
|
|
297
298
|
return async (...args) => {
|
|
@@ -307,16 +308,16 @@ function lazy(getActionFunc) {
|
|
|
307
308
|
}
|
|
308
309
|
|
|
309
310
|
const main = (argv) => {
|
|
310
|
-
|
|
311
|
-
registerCommands(
|
|
312
|
-
|
|
311
|
+
commander.program.name("backstage-cli").version(version);
|
|
312
|
+
registerCommands(commander.program);
|
|
313
|
+
commander.program.on("command:*", () => {
|
|
313
314
|
console.log();
|
|
314
|
-
console.log(chalk__default["default"].red(`Invalid command: ${
|
|
315
|
+
console.log(chalk__default["default"].red(`Invalid command: ${commander.program.args.join(" ")}`));
|
|
315
316
|
console.log();
|
|
316
|
-
|
|
317
|
+
commander.program.outputHelp();
|
|
317
318
|
process.exit(1);
|
|
318
319
|
});
|
|
319
|
-
|
|
320
|
+
commander.program.parse(argv);
|
|
320
321
|
};
|
|
321
322
|
process.on("unhandledRejection", (rejection) => {
|
|
322
323
|
if (rejection instanceof Error) {
|
|
@@ -335,4 +336,4 @@ exports.devDependencies = devDependencies;
|
|
|
335
336
|
exports.paths = paths;
|
|
336
337
|
exports.version = version;
|
|
337
338
|
exports.version$1 = version$9;
|
|
338
|
-
//# sourceMappingURL=index-
|
|
339
|
+
//# sourceMappingURL=index-7aa76653.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packager = require('./packager-
|
|
4
|
-
var packageRoles = require('./packageRoles-
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var buildBackend = require('./buildBackend-
|
|
3
|
+
var packager = require('./packager-c764bf55.cjs.js');
|
|
4
|
+
var packageRoles = require('./packageRoles-4f3055b4.cjs.js');
|
|
5
|
+
var index = require('./index-7aa76653.cjs.js');
|
|
6
|
+
var buildBackend = require('./buildBackend-45b459c6.cjs.js');
|
|
7
7
|
require('fs-extra');
|
|
8
8
|
require('rollup');
|
|
9
9
|
require('chalk');
|
|
@@ -33,41 +33,41 @@ require('react-dev-utils/ModuleScopePlugin');
|
|
|
33
33
|
require('run-script-webpack-plugin');
|
|
34
34
|
require('webpack-node-externals');
|
|
35
35
|
require('@manypkg/get-packages');
|
|
36
|
-
require('./paths-
|
|
36
|
+
require('./paths-a745b064.cjs.js');
|
|
37
37
|
require('mini-css-extract-plugin');
|
|
38
|
-
require('./run-
|
|
38
|
+
require('./run-42a6df86.cjs.js');
|
|
39
39
|
require('child_process');
|
|
40
40
|
require('util');
|
|
41
41
|
require('eslint-webpack-plugin');
|
|
42
42
|
require('lodash/pickBy');
|
|
43
|
-
require('./bundle-
|
|
43
|
+
require('./bundle-62f7204c.cjs.js');
|
|
44
44
|
require('yn');
|
|
45
45
|
require('react-dev-utils/FileSizeReporter');
|
|
46
46
|
require('react-dev-utils/formatWebpackMessages');
|
|
47
47
|
require('webpack-dev-server');
|
|
48
48
|
require('react-dev-utils/openBrowser');
|
|
49
|
-
require('./config-
|
|
49
|
+
require('./config-b809ec94.cjs.js');
|
|
50
50
|
require('@backstage/config-loader');
|
|
51
51
|
require('@backstage/config');
|
|
52
|
-
require('./PackageGraph-
|
|
52
|
+
require('./PackageGraph-8d144cb7.cjs.js');
|
|
53
53
|
require('tar');
|
|
54
|
-
require('./createDistWorkspace-
|
|
54
|
+
require('./createDistWorkspace-0c811a67.cjs.js');
|
|
55
55
|
require('lodash/partition');
|
|
56
56
|
require('npm-packlist');
|
|
57
57
|
|
|
58
|
-
async function command(
|
|
59
|
-
const role = await packageRoles.findRoleFromCommand(
|
|
58
|
+
async function command(opts) {
|
|
59
|
+
const role = await packageRoles.findRoleFromCommand(opts);
|
|
60
60
|
if (role === "frontend") {
|
|
61
61
|
return buildBackend.buildFrontend({
|
|
62
62
|
targetDir: index.paths.targetDir,
|
|
63
|
-
configPaths:
|
|
64
|
-
writeStats: Boolean(
|
|
63
|
+
configPaths: opts.config,
|
|
64
|
+
writeStats: Boolean(opts.stats)
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
if (role === "backend") {
|
|
68
68
|
return buildBackend.buildBackend({
|
|
69
69
|
targetDir: index.paths.targetDir,
|
|
70
|
-
skipBuildDependencies: Boolean(
|
|
70
|
+
skipBuildDependencies: Boolean(opts.skipBuildDependencies)
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
const roleInfo = packageRoles.getRoleInfo(role);
|
|
@@ -83,10 +83,10 @@ async function command(cmd) {
|
|
|
83
83
|
}
|
|
84
84
|
return packager.buildPackage({
|
|
85
85
|
outputs,
|
|
86
|
-
minify: Boolean(
|
|
87
|
-
useApiExtractor: Boolean(
|
|
86
|
+
minify: Boolean(opts.minify),
|
|
87
|
+
useApiExtractor: Boolean(opts.experimentalTypeBuild)
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
exports.command = command;
|
|
92
|
-
//# sourceMappingURL=index-
|
|
92
|
+
//# sourceMappingURL=index-ac4d04f8.cjs.js.map
|