@backstage/cli 0.8.2 → 0.9.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 +23 -0
- package/dist/cjs/{build-70dd213a.cjs.js → build-5907bd33.cjs.js} +3 -3
- package/dist/cjs/{build-bae5a019.cjs.js → build-73b8edfc.cjs.js} +3 -3
- package/dist/cjs/{build-b25b29ed.cjs.js → build-7571e64b.cjs.js} +3 -3
- package/dist/cjs/{build-1cbb9e7d.cjs.js → build-9e812f65.cjs.js} +5 -5
- package/dist/cjs/{buildImage-6b35526c.cjs.js → buildImage-7b597eb4.cjs.js} +4 -4
- package/dist/cjs/{buildWorkspace-424d4929.cjs.js → buildWorkspace-779679cc.cjs.js} +4 -4
- package/dist/cjs/{bump-bce7f9c2.cjs.js → bump-67695db2.cjs.js} +28 -6
- package/dist/cjs/{bundle-cc6870fb.cjs.js → bundle-561463d9.cjs.js} +5 -5
- package/dist/cjs/{clean-7a981ea7.cjs.js → clean-1156a89f.cjs.js} +2 -2
- package/dist/cjs/{config-24fce3c1.cjs.js → config-10d49423.cjs.js} +3 -3
- package/dist/cjs/create-b0f456f9.cjs.js +483 -0
- package/dist/cjs/{createPlugin-2c2b30fc.cjs.js → createPlugin-2c95815c.cjs.js} +8 -9
- package/dist/cjs/{dev-efe399b8.cjs.js → dev-a04f9251.cjs.js} +4 -4
- package/dist/cjs/{diff-e3661054.cjs.js → diff-d009aa81.cjs.js} +2 -2
- package/dist/cjs/{docs-ceb404a3.cjs.js → docs-d4bb9d0c.cjs.js} +3 -3
- package/dist/cjs/{index-6fee1c9a.cjs.js → index-25ca4442.cjs.js} +59 -55
- package/dist/cjs/{index-fbff7b78.cjs.js → index-351d0371.cjs.js} +2 -2
- package/dist/cjs/{index-26bec8ac.cjs.js → index-af2b13e0.cjs.js} +11 -8
- package/dist/cjs/{info-5e7c2679.cjs.js → info-05aaf204.cjs.js} +3 -3
- package/dist/cjs/{install-5920b5df.cjs.js → install-5d8e8fe5.cjs.js} +4 -4
- package/dist/cjs/{lint-306bb8fe.cjs.js → lint-85c90960.cjs.js} +3 -3
- package/dist/cjs/{lint-6175d471.cjs.js → lint-d1316de9.cjs.js} +3 -3
- package/dist/cjs/{pack-32228ad6.cjs.js → pack-58a2ab5d.cjs.js} +2 -2
- package/dist/cjs/{packager-1ad7272f.cjs.js → packager-b251454c.cjs.js} +2 -2
- package/dist/cjs/{packages-a5b6a3df.cjs.js → packages-4a2d7110.cjs.js} +3 -3
- package/dist/cjs/{paths-09202a46.cjs.js → paths-034708b3.cjs.js} +20 -5
- package/dist/cjs/{print-806676fe.cjs.js → print-5d03aebd.cjs.js} +3 -3
- package/dist/cjs/{removePlugin-f82ac16a.cjs.js → removePlugin-c64823bb.cjs.js} +5 -3
- package/dist/cjs/{run-59c4395e.cjs.js → run-924136d8.cjs.js} +2 -2
- package/dist/cjs/{schema-398d8593.cjs.js → schema-d59459da.cjs.js} +3 -3
- package/dist/cjs/{serve-f4bb3cb0.cjs.js → serve-0f30d0fc.cjs.js} +6 -6
- package/dist/cjs/{serve-708fbf98.cjs.js → serve-28c83157.cjs.js} +7 -7
- package/dist/cjs/{server-107d9cc0.cjs.js → server-652ec9a3.cjs.js} +2 -2
- package/dist/cjs/{tasks-9bd3e946.cjs.js → tasks-802f087f.cjs.js} +78 -12
- package/dist/cjs/{testCommand-e32fbd45.cjs.js → testCommand-11d07d1b.cjs.js} +3 -3
- package/dist/cjs/{validate-9523a11e.cjs.js → validate-3cc188fa.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +12 -12
- package/templates/default-backend-plugin/package.json.hbs +39 -37
- package/templates/default-common-plugin-package/.eslintrc.js +3 -0
- package/templates/default-common-plugin-package/README.md.hbs +5 -0
- package/templates/default-common-plugin-package/package.json.hbs +34 -0
- package/templates/default-common-plugin-package/src/index.ts.hbs +19 -0
- package/templates/default-common-plugin-package/src/setupTests.ts +1 -0
- package/templates/default-common-plugin-package/tsconfig.json +9 -0
- package/templates/default-plugin/package.json.hbs +4 -2
- package/templates/scaffolder-module/.eslintrc.js +3 -0
- package/templates/scaffolder-module/README.md.hbs +5 -0
- package/templates/scaffolder-module/package.json.hbs +37 -0
- package/templates/scaffolder-module/src/actions/example/example.test.ts +50 -0
- package/templates/scaffolder-module/src/actions/example/example.ts +57 -0
- package/templates/scaffolder-module/src/actions/example/index.ts +1 -0
- package/templates/scaffolder-module/src/actions/index.ts +1 -0
- package/templates/scaffolder-module/src/index.ts.hbs +8 -0
- package/templates/scaffolder-module/tsconfig.json +9 -0
|
@@ -46,20 +46,20 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$
|
|
49
|
+
var version$9 = "0.9.10";
|
|
50
50
|
|
|
51
|
-
var version$
|
|
51
|
+
var version$8 = "0.9.0";
|
|
52
52
|
var dependencies = {
|
|
53
|
-
"@backstage/cli-common": "^0.1.
|
|
53
|
+
"@backstage/cli-common": "^0.1.6",
|
|
54
54
|
"@backstage/config": "^0.1.11",
|
|
55
|
-
"@backstage/config-loader": "^0.
|
|
55
|
+
"@backstage/config-loader": "^0.8.0",
|
|
56
56
|
"@backstage/errors": "^0.1.4",
|
|
57
57
|
"@backstage/types": "^0.1.1",
|
|
58
58
|
"@hot-loader/react-dom": "^16.13.0",
|
|
59
59
|
"@lerna/package-graph": "^4.0.0",
|
|
60
60
|
"@lerna/project": "^4.0.0",
|
|
61
61
|
"@octokit/request": "^5.4.12",
|
|
62
|
-
"@rollup/plugin-commonjs": "^
|
|
62
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
63
63
|
"@rollup/plugin-json": "^4.0.2",
|
|
64
64
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
65
65
|
"@rollup/plugin-yaml": "^3.0.0",
|
|
@@ -103,7 +103,7 @@ var dependencies = {
|
|
|
103
103
|
inquirer: "^7.0.4",
|
|
104
104
|
jest: "^26.0.1",
|
|
105
105
|
"jest-css-modules": "^2.1.0",
|
|
106
|
-
"json-schema": "^0.
|
|
106
|
+
"json-schema": "^0.4.0",
|
|
107
107
|
"jest-transform-yaml": "^0.1.1",
|
|
108
108
|
lodash: "^4.17.21",
|
|
109
109
|
"mini-css-extract-plugin": "^2.4.2",
|
|
@@ -139,13 +139,13 @@ var dependencies = {
|
|
|
139
139
|
yn: "^4.0.0"
|
|
140
140
|
};
|
|
141
141
|
var devDependencies = {
|
|
142
|
-
"@backstage/backend-common": "^0.9.
|
|
142
|
+
"@backstage/backend-common": "^0.9.10",
|
|
143
143
|
"@backstage/config": "^0.1.11",
|
|
144
|
-
"@backstage/core-components": "^0.7.
|
|
145
|
-
"@backstage/core-plugin-api": "^0.
|
|
146
|
-
"@backstage/core-app-api": "^0.1.
|
|
147
|
-
"@backstage/dev-utils": "^0.2.
|
|
148
|
-
"@backstage/test-utils": "^0.1.
|
|
144
|
+
"@backstage/core-components": "^0.7.4",
|
|
145
|
+
"@backstage/core-plugin-api": "^0.2.0",
|
|
146
|
+
"@backstage/core-app-api": "^0.1.21",
|
|
147
|
+
"@backstage/dev-utils": "^0.2.13",
|
|
148
|
+
"@backstage/test-utils": "^0.1.22",
|
|
149
149
|
"@backstage/theme": "^0.2.13",
|
|
150
150
|
"@types/diff": "^5.0.0",
|
|
151
151
|
"@types/express": "^4.17.6",
|
|
@@ -168,28 +168,31 @@ var devDependencies = {
|
|
|
168
168
|
"ts-node": "^10.0.0"
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
var version$
|
|
171
|
+
var version$7 = "0.1.21";
|
|
172
172
|
|
|
173
|
-
var version$
|
|
173
|
+
var version$6 = "0.7.4";
|
|
174
174
|
|
|
175
|
-
var version$
|
|
175
|
+
var version$5 = "0.2.0";
|
|
176
176
|
|
|
177
|
-
var version$
|
|
177
|
+
var version$4 = "0.2.13";
|
|
178
178
|
|
|
179
|
-
var version$
|
|
179
|
+
var version$3 = "0.1.22";
|
|
180
180
|
|
|
181
|
-
var version$
|
|
181
|
+
var version$2 = "0.2.13";
|
|
182
|
+
|
|
183
|
+
var version$1 = "0.15.13";
|
|
182
184
|
|
|
183
185
|
const packageVersions = {
|
|
184
|
-
"@backstage/backend-common": version$
|
|
185
|
-
"@backstage/cli": version$
|
|
186
|
+
"@backstage/backend-common": version$9,
|
|
187
|
+
"@backstage/cli": version$8,
|
|
186
188
|
"@backstage/config": package_json.version,
|
|
187
|
-
"@backstage/core-app-api": version$
|
|
188
|
-
"@backstage/core-components": version$
|
|
189
|
-
"@backstage/core-plugin-api": version$
|
|
190
|
-
"@backstage/dev-utils": version$
|
|
191
|
-
"@backstage/test-utils": version$
|
|
192
|
-
"@backstage/theme": version$
|
|
189
|
+
"@backstage/core-app-api": version$7,
|
|
190
|
+
"@backstage/core-components": version$6,
|
|
191
|
+
"@backstage/core-plugin-api": version$5,
|
|
192
|
+
"@backstage/dev-utils": version$4,
|
|
193
|
+
"@backstage/test-utils": version$3,
|
|
194
|
+
"@backstage/theme": version$2,
|
|
195
|
+
"@backstage/plugin-scaffolder-backend": version$1
|
|
193
196
|
};
|
|
194
197
|
function findVersion() {
|
|
195
198
|
const pkgContent = fs__default['default'].readFileSync(paths.resolveOwn("package.json"), "utf8");
|
|
@@ -231,33 +234,34 @@ function registerCommands(program) {
|
|
|
231
234
|
(opt, opts) => [...opts, opt],
|
|
232
235
|
Array()
|
|
233
236
|
];
|
|
234
|
-
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option("--lax", "Do not require environment variables to be set").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
235
|
-
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
236
|
-
program.command("backend:build").description("Build a backend plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
237
|
-
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-
|
|
238
|
-
program.command("backend:build-image").allowUnknownOption(true).helpOption(", --backstage-cli-help").option("--build", "Build packages before packing them into the image").description("Bundles the package into a docker image. This command is deprecated and will be removed.").action(lazy(() => Promise.resolve().then(function () { return require('./buildImage-
|
|
239
|
-
program.command("backend:dev").description("Start local development server with HMR for the backend").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-
|
|
240
|
-
program.command("create
|
|
241
|
-
program.command("
|
|
242
|
-
program.command("plugin
|
|
243
|
-
program.command("plugin:
|
|
244
|
-
program.command("plugin:
|
|
245
|
-
program.command("
|
|
246
|
-
program.command("
|
|
247
|
-
program.command("
|
|
248
|
-
program.command("
|
|
249
|
-
program.command("config:
|
|
250
|
-
program.command("config:
|
|
251
|
-
program.command("config:
|
|
252
|
-
program.command("
|
|
253
|
-
program.command("versions:
|
|
254
|
-
program.command("
|
|
255
|
-
program.command("
|
|
256
|
-
program.command("
|
|
257
|
-
program.command("
|
|
258
|
-
program.command("
|
|
259
|
-
program.command("
|
|
260
|
-
program.command("
|
|
237
|
+
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option("--lax", "Do not require environment variables to be set").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-9e812f65.cjs.js'); }).then((m) => m.default)));
|
|
238
|
+
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-28c83157.cjs.js'); }).then((m) => m.default)));
|
|
239
|
+
program.command("backend:build").description("Build a backend plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-7571e64b.cjs.js'); }).then((m) => m.default)));
|
|
240
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-561463d9.cjs.js'); }).then((m) => m.default)));
|
|
241
|
+
program.command("backend:build-image").allowUnknownOption(true).helpOption(", --backstage-cli-help").option("--build", "Build packages before packing them into the image").description("Bundles the package into a docker image. This command is deprecated and will be removed.").action(lazy(() => Promise.resolve().then(function () { return require('./buildImage-7b597eb4.cjs.js'); }).then((m) => m.default)));
|
|
242
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend").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-a04f9251.cjs.js'); }).then((m) => m.default)));
|
|
243
|
+
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-b0f456f9.cjs.js'); }).then((m) => m.default)));
|
|
244
|
+
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-2c95815c.cjs.js'); }).then((m) => m.default)));
|
|
245
|
+
program.command("remove-plugin").description("Removes plugin in the current repository").action(lazy(() => Promise.resolve().then(function () { return require('./removePlugin-c64823bb.cjs.js'); }).then((m) => m.default)));
|
|
246
|
+
program.command("plugin:build").description("Build a plugin").action(lazy(() => Promise.resolve().then(function () { return require('./build-5907bd33.cjs.js'); }).then((m) => m.default)));
|
|
247
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-0f30d0fc.cjs.js'); }).then((m) => m.default)));
|
|
248
|
+
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-d009aa81.cjs.js'); }).then((m) => m.default)));
|
|
249
|
+
program.command("build").description("Build a package for publishing").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").action(lazy(() => Promise.resolve().then(function () { return require('./build-73b8edfc.cjs.js'); }).then((m) => m.default)));
|
|
250
|
+
program.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-85c90960.cjs.js'); }).then((m) => m.default)));
|
|
251
|
+
program.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('./testCommand-11d07d1b.cjs.js'); }).then((m) => m.default)));
|
|
252
|
+
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-d4bb9d0c.cjs.js'); }).then((m) => m.default)));
|
|
253
|
+
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-5d03aebd.cjs.js'); }).then((m) => m.default)));
|
|
254
|
+
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(...configOption).description("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-3cc188fa.cjs.js'); }).then((m) => m.default)));
|
|
255
|
+
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-d59459da.cjs.js'); }).then((m) => m.default)));
|
|
256
|
+
program.command("versions:bump").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-67695db2.cjs.js'); }).then((m) => m.default)));
|
|
257
|
+
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-d1316de9.cjs.js'); }).then((m) => m.default)));
|
|
258
|
+
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-58a2ab5d.cjs.js'); }).then((m) => m.pre)));
|
|
259
|
+
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-58a2ab5d.cjs.js'); }).then((m) => m.post)));
|
|
260
|
+
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-1156a89f.cjs.js'); }).then((m) => m.default)));
|
|
261
|
+
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-779679cc.cjs.js'); }).then((m) => m.default)));
|
|
262
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-351d0371.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-05aaf204.cjs.js'); }).then((m) => m.default)));
|
|
264
|
+
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-5d8e8fe5.cjs.js'); }).then((m) => m.default)));
|
|
261
265
|
}
|
|
262
266
|
function lazy(getActionFunc) {
|
|
263
267
|
return async (...args) => {
|
|
@@ -300,5 +304,5 @@ exports.dependencies = dependencies;
|
|
|
300
304
|
exports.devDependencies = devDependencies;
|
|
301
305
|
exports.paths = paths;
|
|
302
306
|
exports.version = version;
|
|
303
|
-
exports.version$1 = version$
|
|
304
|
-
//# sourceMappingURL=index-
|
|
307
|
+
exports.version$1 = version$8;
|
|
308
|
+
//# sourceMappingURL=index-25ca4442.cjs.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
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-25ca4442.cjs.js');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
9
9
|
var request = require('@octokit/request');
|
|
@@ -128,4 +128,4 @@ ${yaml.stringify(config)}`;
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
exports.default = index;
|
|
131
|
-
//# sourceMappingURL=index-
|
|
131
|
+
//# sourceMappingURL=index-351d0371.cjs.js.map
|
|
@@ -4,8 +4,8 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var os = require('os');
|
|
6
6
|
var tar = require('tar');
|
|
7
|
-
var index = require('./index-
|
|
8
|
-
var run = require('./run-
|
|
7
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
8
|
+
var run = require('./run-924136d8.cjs.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -22,11 +22,14 @@ async function createDistWorkspace(packageNames, options = {}) {
|
|
|
22
22
|
const targets = await findTargetPackages(packageNames);
|
|
23
23
|
if (options.buildDependencies) {
|
|
24
24
|
const exclude = (_b = options.buildExcludes) != null ? _b : [];
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const toBuild = targets.filter((target) => !exclude.includes(target.name));
|
|
26
|
+
if (toBuild.length > 0) {
|
|
27
|
+
const scopeArgs = toBuild.flatMap((target) => ["--scope", target.name]);
|
|
28
|
+
const lernaArgs = options.parallel && Number.isInteger(options.parallel) ? ["--concurrency", options.parallel.toString()] : [];
|
|
29
|
+
await run.run("yarn", ["lerna", ...lernaArgs, "run", ...scopeArgs, "build"], {
|
|
30
|
+
cwd: index.paths.targetRoot
|
|
31
|
+
});
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
await moveToDistWorkspace(targetDir, targets);
|
|
32
35
|
const files = (_c = options.files) != null ? _c : ["yarn.lock", "package.json"];
|
|
@@ -117,4 +120,4 @@ async function findTargetPackages(pkgNames) {
|
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
exports.createDistWorkspace = createDistWorkspace;
|
|
120
|
-
//# sourceMappingURL=index-
|
|
123
|
+
//# sourceMappingURL=index-af2b13e0.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-924136d8.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('commander');
|
|
@@ -41,4 +41,4 @@ var info = async () => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports.default = info;
|
|
44
|
-
//# sourceMappingURL=info-
|
|
44
|
+
//# sourceMappingURL=info-05aaf204.cjs.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
require('semver');
|
|
5
5
|
require('@yarnpkg/lockfile');
|
|
6
|
-
var packages = require('./packages-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var packages = require('./packages-4a2d7110.cjs.js');
|
|
7
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
8
8
|
var chalk = require('chalk');
|
|
9
9
|
var sortBy = require('lodash/sortBy');
|
|
10
10
|
var groupBy = require('lodash/groupBy');
|
|
11
|
-
var run = require('./run-
|
|
11
|
+
var run = require('./run-924136d8.cjs.js');
|
|
12
12
|
require('commander');
|
|
13
13
|
require('@backstage/cli-common');
|
|
14
14
|
require('@backstage/config/package.json');
|
|
@@ -211,4 +211,4 @@ var install = async (pluginId, cmd) => {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
exports.default = install;
|
|
214
|
-
//# sourceMappingURL=install-
|
|
214
|
+
//# sourceMappingURL=install-5d8e8fe5.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var run = require('./run-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var run = require('./run-924136d8.cjs.js');
|
|
4
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
5
5
|
require('child_process');
|
|
6
6
|
require('util');
|
|
7
7
|
require('@backstage/errors');
|
|
@@ -26,4 +26,4 @@ var lint = async (cmd, cmdArgs) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
exports.default = lint;
|
|
29
|
-
//# sourceMappingURL=lint-
|
|
29
|
+
//# sourceMappingURL=lint-85c90960.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
|
|
4
|
-
require('./run-
|
|
4
|
+
require('./run-924136d8.cjs.js');
|
|
5
5
|
require('chalk');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
7
7
|
var partition = require('lodash/partition');
|
|
8
8
|
require('fs-extra');
|
|
9
9
|
require('semver');
|
|
@@ -74,4 +74,4 @@ function logArray(arr, header, each) {
|
|
|
74
74
|
exports.default = lint;
|
|
75
75
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
76
76
|
exports.includedFilter = includedFilter;
|
|
77
|
-
//# sourceMappingURL=lint-
|
|
77
|
+
//# sourceMappingURL=lint-d1316de9.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
5
5
|
require('commander');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('semver');
|
|
@@ -39,4 +39,4 @@ const post = async () => {
|
|
|
39
39
|
|
|
40
40
|
exports.post = post;
|
|
41
41
|
exports.pre = pre;
|
|
42
|
-
//# sourceMappingURL=pack-
|
|
42
|
+
//# sourceMappingURL=pack-58a2ab5d.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var rollup = require('rollup');
|
|
5
5
|
var chalk = require('chalk');
|
|
6
6
|
var path = require('path');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
8
8
|
var peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
9
9
|
var commonjs = require('@rollup/plugin-commonjs');
|
|
10
10
|
var resolve = require('@rollup/plugin-node-resolve');
|
|
@@ -254,4 +254,4 @@ const buildPackage = async (options) => {
|
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
exports.buildPackage = buildPackage;
|
|
257
|
-
//# sourceMappingURL=packager-
|
|
257
|
+
//# sourceMappingURL=packager-b251454c.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var run = require('./run-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var run = require('./run-924136d8.cjs.js');
|
|
4
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
5
5
|
|
|
6
6
|
const PREFIX = "@backstage";
|
|
7
7
|
const DEP_TYPES = [
|
|
@@ -47,4 +47,4 @@ async function mapDependencies(targetDir) {
|
|
|
47
47
|
|
|
48
48
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
49
49
|
exports.mapDependencies = mapDependencies;
|
|
50
|
-
//# sourceMappingURL=packages-
|
|
50
|
+
//# sourceMappingURL=packages-4a2d7110.cjs.js.map
|
|
@@ -13,8 +13,8 @@ var TerserPlugin = require('terser-webpack-plugin');
|
|
|
13
13
|
var parallel = require('./parallel-a4714c72.cjs.js');
|
|
14
14
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
15
15
|
var svgrTemplate = require('./svgrTemplate-2d0d15cf.cjs.js');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
var run = require('./run-
|
|
16
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
17
|
+
var run = require('./run-924136d8.cjs.js');
|
|
18
18
|
var pickBy = require('lodash/pickBy');
|
|
19
19
|
|
|
20
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -77,6 +77,15 @@ const optimization = (options) => {
|
|
|
77
77
|
const transforms = (options) => {
|
|
78
78
|
const {isDev} = options;
|
|
79
79
|
const extraTransforms = isDev ? ["react-hot-loader"] : [];
|
|
80
|
+
function insertBeforeJssStyles(element) {
|
|
81
|
+
const head = document.head;
|
|
82
|
+
const firstJssNode = head.querySelector("style[data-jss]");
|
|
83
|
+
if (!firstJssNode) {
|
|
84
|
+
head.appendChild(element);
|
|
85
|
+
} else {
|
|
86
|
+
head.insertBefore(element, firstJssNode);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
80
89
|
const loaders = [
|
|
81
90
|
{
|
|
82
91
|
test: /\.(tsx?)$/,
|
|
@@ -157,7 +166,12 @@ const transforms = (options) => {
|
|
|
157
166
|
{
|
|
158
167
|
test: /\.css$/i,
|
|
159
168
|
use: [
|
|
160
|
-
isDev ?
|
|
169
|
+
isDev ? {
|
|
170
|
+
loader: require.resolve("style-loader"),
|
|
171
|
+
options: {
|
|
172
|
+
insert: insertBeforeJssStyles
|
|
173
|
+
}
|
|
174
|
+
} : MiniCssExtractPlugin__default['default'].loader,
|
|
161
175
|
{
|
|
162
176
|
loader: require.resolve("css-loader"),
|
|
163
177
|
options: {
|
|
@@ -173,7 +187,8 @@ const transforms = (options) => {
|
|
|
173
187
|
} else {
|
|
174
188
|
plugins.push(new MiniCssExtractPlugin__default['default']({
|
|
175
189
|
filename: "static/[name].[contenthash:8].css",
|
|
176
|
-
chunkFilename: "static/[name].[id].[contenthash:8].css"
|
|
190
|
+
chunkFilename: "static/[name].[id].[contenthash:8].css",
|
|
191
|
+
insert: insertBeforeJssStyles
|
|
177
192
|
}));
|
|
178
193
|
}
|
|
179
194
|
return {loaders, plugins};
|
|
@@ -498,4 +513,4 @@ exports.createBackendConfig = createBackendConfig;
|
|
|
498
513
|
exports.createConfig = createConfig;
|
|
499
514
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
500
515
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
501
|
-
//# sourceMappingURL=paths-
|
|
516
|
+
//# sourceMappingURL=paths-034708b3.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
4
|
var config$1 = require('@backstage/config');
|
|
5
|
-
var config = require('./config-
|
|
5
|
+
var config = require('./config-10d49423.cjs.js');
|
|
6
6
|
require('@backstage/config-loader');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-25ca4442.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -57,4 +57,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
exports.default = print;
|
|
60
|
-
//# sourceMappingURL=print-
|
|
60
|
+
//# sourceMappingURL=print-5d03aebd.cjs.js.map
|
|
@@ -4,12 +4,14 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var chalk = require('chalk');
|
|
6
6
|
var inquirer = require('inquirer');
|
|
7
|
-
var tasks = require('./tasks-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var tasks = require('./tasks-802f087f.cjs.js');
|
|
8
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
9
9
|
var errors = require('@backstage/errors');
|
|
10
10
|
require('handlebars');
|
|
11
11
|
require('ora');
|
|
12
|
+
require('util');
|
|
12
13
|
require('recursive-readdir');
|
|
14
|
+
require('child_process');
|
|
13
15
|
require('commander');
|
|
14
16
|
require('semver');
|
|
15
17
|
require('@backstage/cli-common');
|
|
@@ -169,4 +171,4 @@ exports.removePluginFromCodeOwners = removePluginFromCodeOwners;
|
|
|
169
171
|
exports.removeReferencesFromAppPackage = removeReferencesFromAppPackage;
|
|
170
172
|
exports.removeReferencesFromPluginsFile = removeReferencesFromPluginsFile;
|
|
171
173
|
exports.removeSymLink = removeSymLink;
|
|
172
|
-
//# sourceMappingURL=removePlugin-
|
|
174
|
+
//# sourceMappingURL=removePlugin-c64823bb.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var child_process = require('child_process');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
5
5
|
var util = require('util');
|
|
6
6
|
var errors = require('@backstage/errors');
|
|
7
7
|
|
|
@@ -78,4 +78,4 @@ async function waitForExit(child, name) {
|
|
|
78
78
|
exports.run = run;
|
|
79
79
|
exports.runCheck = runCheck;
|
|
80
80
|
exports.runPlain = runPlain;
|
|
81
|
-
//# sourceMappingURL=run-
|
|
81
|
+
//# sourceMappingURL=run-924136d8.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
|
-
var config = require('./config-
|
|
4
|
+
var config = require('./config-10d49423.cjs.js');
|
|
5
5
|
var configLoader = require('@backstage/config-loader');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-25ca4442.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -32,4 +32,4 @@ var schema = async (cmd) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
exports.default = schema;
|
|
35
|
-
//# sourceMappingURL=schema-
|
|
35
|
+
//# sourceMappingURL=schema-d59459da.cjs.js.map
|
|
@@ -11,15 +11,15 @@ require('webpack-node-externals');
|
|
|
11
11
|
require('@backstage/cli-common');
|
|
12
12
|
require('terser-webpack-plugin');
|
|
13
13
|
require('mini-css-extract-plugin');
|
|
14
|
-
var index = require('./index-
|
|
15
|
-
require('./run-
|
|
14
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
15
|
+
require('./run-924136d8.cjs.js');
|
|
16
16
|
require('lodash/pickBy');
|
|
17
17
|
require('yn');
|
|
18
18
|
require('react-dev-utils/FileSizeReporter');
|
|
19
19
|
require('react-dev-utils/formatWebpackMessages');
|
|
20
20
|
require('chalk');
|
|
21
|
-
var server = require('./server-
|
|
22
|
-
var config = require('./config-
|
|
21
|
+
var server = require('./server-652ec9a3.cjs.js');
|
|
22
|
+
var config = require('./config-10d49423.cjs.js');
|
|
23
23
|
require('commander');
|
|
24
24
|
require('semver');
|
|
25
25
|
require('@backstage/config/package.json');
|
|
@@ -28,7 +28,7 @@ require('child_process');
|
|
|
28
28
|
require('util');
|
|
29
29
|
require('webpack-dev-server');
|
|
30
30
|
require('react-dev-utils/openBrowser');
|
|
31
|
-
require('./paths-
|
|
31
|
+
require('./paths-034708b3.cjs.js');
|
|
32
32
|
require('./parallel-a4714c72.cjs.js');
|
|
33
33
|
require('./svgrTemplate-2d0d15cf.cjs.js');
|
|
34
34
|
require('@backstage/config-loader');
|
|
@@ -53,4 +53,4 @@ var serve = async (cmd) => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
exports.default = serve;
|
|
56
|
-
//# sourceMappingURL=serve-
|
|
56
|
+
//# sourceMappingURL=serve-0f30d0fc.cjs.js.map
|
|
@@ -13,16 +13,16 @@ require('webpack-node-externals');
|
|
|
13
13
|
require('@backstage/cli-common');
|
|
14
14
|
require('terser-webpack-plugin');
|
|
15
15
|
require('mini-css-extract-plugin');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
require('./run-
|
|
16
|
+
var index = require('./index-25ca4442.cjs.js');
|
|
17
|
+
require('./run-924136d8.cjs.js');
|
|
18
18
|
require('lodash/pickBy');
|
|
19
19
|
require('yn');
|
|
20
20
|
require('react-dev-utils/FileSizeReporter');
|
|
21
21
|
require('react-dev-utils/formatWebpackMessages');
|
|
22
|
-
var server = require('./server-
|
|
23
|
-
var config = require('./config-
|
|
22
|
+
var server = require('./server-652ec9a3.cjs.js');
|
|
23
|
+
var config = require('./config-10d49423.cjs.js');
|
|
24
24
|
var Lockfile = require('./Lockfile-80f0eec4.cjs.js');
|
|
25
|
-
var lint = require('./lint-
|
|
25
|
+
var lint = require('./lint-d1316de9.cjs.js');
|
|
26
26
|
require('commander');
|
|
27
27
|
require('semver');
|
|
28
28
|
require('@backstage/config/package.json');
|
|
@@ -31,7 +31,7 @@ require('child_process');
|
|
|
31
31
|
require('util');
|
|
32
32
|
require('webpack-dev-server');
|
|
33
33
|
require('react-dev-utils/openBrowser');
|
|
34
|
-
require('./paths-
|
|
34
|
+
require('./paths-034708b3.cjs.js');
|
|
35
35
|
require('./parallel-a4714c72.cjs.js');
|
|
36
36
|
require('./svgrTemplate-2d0d15cf.cjs.js');
|
|
37
37
|
require('@backstage/config-loader');
|
|
@@ -75,4 +75,4 @@ var serve = async (cmd) => {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
exports.default = serve;
|
|
78
|
-
//# sourceMappingURL=serve-
|
|
78
|
+
//# sourceMappingURL=serve-28c83157.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var webpack = require('webpack');
|
|
5
5
|
var WebpackDevServer = require('webpack-dev-server');
|
|
6
6
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
7
|
-
var paths = require('./paths-
|
|
7
|
+
var paths = require('./paths-034708b3.cjs.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -70,4 +70,4 @@ async function serveBundle(options) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
exports.serveBundle = serveBundle;
|
|
73
|
-
//# sourceMappingURL=server-
|
|
73
|
+
//# sourceMappingURL=server-652ec9a3.cjs.js.map
|