@backstage/plugin-scaffolder-backend 0.15.14 → 0.15.18
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 +43 -0
- package/config.d.ts +12 -12
- package/dist/index.cjs.js +273 -155
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +17 -4
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Config } from '@backstage/config';
|
|
|
11
11
|
import { createPullRequest } from 'octokit-plugin-create-pull-request';
|
|
12
12
|
import { Octokit } from '@octokit/rest';
|
|
13
13
|
export { createFetchCookiecutterAction } from '@backstage/plugin-scaffolder-backend-module-cookiecutter';
|
|
14
|
+
import { SpawnOptionsWithoutStdio } from 'child_process';
|
|
14
15
|
import { Knex } from 'knex';
|
|
15
16
|
import express from 'express';
|
|
16
17
|
import { TemplateEntityV1beta2, Entity, LocationSpec } from '@backstage/catalog-model';
|
|
@@ -27,7 +28,7 @@ declare const createBuiltinActions: (options: {
|
|
|
27
28
|
reader: UrlReader;
|
|
28
29
|
integrations: ScmIntegrations;
|
|
29
30
|
catalogClient: CatalogApi;
|
|
30
|
-
containerRunner
|
|
31
|
+
containerRunner?: ContainerRunner;
|
|
31
32
|
config: Config;
|
|
32
33
|
}) => TemplateAction<any>[];
|
|
33
34
|
|
|
@@ -108,6 +109,10 @@ declare function createPublishGitlabAction(options: {
|
|
|
108
109
|
config: Config;
|
|
109
110
|
}): TemplateAction<any>;
|
|
110
111
|
|
|
112
|
+
declare const createPublishGitlabMergeRequestAction: (options: {
|
|
113
|
+
integrations: ScmIntegrationRegistry;
|
|
114
|
+
}) => TemplateAction<any>;
|
|
115
|
+
|
|
111
116
|
declare function createGithubActionsDispatchAction(options: {
|
|
112
117
|
integrations: ScmIntegrationRegistry;
|
|
113
118
|
}): TemplateAction<any>;
|
|
@@ -140,11 +145,19 @@ declare class OctokitProvider {
|
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
declare type RunCommandOptions = {
|
|
148
|
+
/** command to run */
|
|
143
149
|
command: string;
|
|
150
|
+
/** arguments to pass the command */
|
|
144
151
|
args: string[];
|
|
152
|
+
/** options to pass to spawn */
|
|
153
|
+
options?: SpawnOptionsWithoutStdio;
|
|
154
|
+
/** stream to capture stdout and stderr output */
|
|
145
155
|
logStream?: Writable;
|
|
146
156
|
};
|
|
147
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Run a command in a sub-process, normally a shell command.
|
|
159
|
+
*/
|
|
160
|
+
declare const runCommand: ({ command, args, logStream, options, }: RunCommandOptions) => Promise<void>;
|
|
148
161
|
|
|
149
162
|
/**
|
|
150
163
|
* Status
|
|
@@ -501,7 +514,7 @@ interface RouterOptions {
|
|
|
501
514
|
catalogClient: CatalogApi;
|
|
502
515
|
actions?: TemplateAction<any>[];
|
|
503
516
|
taskWorkers?: number;
|
|
504
|
-
containerRunner
|
|
517
|
+
containerRunner?: ContainerRunner;
|
|
505
518
|
taskBroker?: TaskBroker;
|
|
506
519
|
}
|
|
507
520
|
declare function createRouter(options: RouterOptions): Promise<express.Router>;
|
|
@@ -529,4 +542,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
|
|
529
542
|
postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
|
|
530
543
|
}
|
|
531
544
|
|
|
532
|
-
export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateMetadata, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createRouter, createTemplateAction, fetchContents, runCommand };
|
|
545
|
+
export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateMetadata, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, fetchContents, runCommand };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend",
|
|
3
3
|
"description": "The Backstage backend plugin that helps you create new things",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.18",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@backstage/backend-common": "^0.
|
|
35
|
-
"@backstage/catalog-client": "^0.5.
|
|
36
|
-
"@backstage/catalog-model": "^0.9.
|
|
34
|
+
"@backstage/backend-common": "^0.10.0",
|
|
35
|
+
"@backstage/catalog-client": "^0.5.3",
|
|
36
|
+
"@backstage/catalog-model": "^0.9.8",
|
|
37
37
|
"@backstage/config": "^0.1.11",
|
|
38
38
|
"@backstage/errors": "^0.1.5",
|
|
39
|
-
"@backstage/integration": "^0.6.
|
|
40
|
-
"@backstage/plugin-catalog-backend": "^0.
|
|
41
|
-
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.
|
|
39
|
+
"@backstage/integration": "^0.6.10",
|
|
40
|
+
"@backstage/plugin-catalog-backend": "^0.19.3",
|
|
41
|
+
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.6",
|
|
42
42
|
"@backstage/plugin-scaffolder-common": "^0.1.1",
|
|
43
43
|
"@backstage/types": "^0.1.1",
|
|
44
44
|
"@gitbeaker/core": "^34.6.0",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"command-exists": "^1.2.9",
|
|
51
51
|
"compression": "^1.7.4",
|
|
52
52
|
"cors": "^2.8.5",
|
|
53
|
-
"cross-fetch": "^3.0.6",
|
|
54
53
|
"express": "^4.17.1",
|
|
55
54
|
"express-promise-router": "^4.1.0",
|
|
56
55
|
"fs-extra": "10.0.0",
|
|
@@ -65,6 +64,7 @@
|
|
|
65
64
|
"lodash": "^4.17.21",
|
|
66
65
|
"luxon": "^2.0.2",
|
|
67
66
|
"morgan": "^1.10.0",
|
|
67
|
+
"node-fetch": "^2.6.1",
|
|
68
68
|
"nunjucks": "^3.2.3",
|
|
69
69
|
"octokit-plugin-create-pull-request": "^3.10.0",
|
|
70
70
|
"uuid": "^8.2.0",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"yaml": "^1.10.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@backstage/cli": "^0.
|
|
77
|
-
"@backstage/test-utils": "^0.
|
|
76
|
+
"@backstage/cli": "^0.10.3",
|
|
77
|
+
"@backstage/test-utils": "^0.2.0",
|
|
78
78
|
"@types/command-exists": "^1.2.0",
|
|
79
79
|
"@types/fs-extra": "^9.0.1",
|
|
80
80
|
"@types/git-url-parse": "^9.0.0",
|
|
81
81
|
"@types/mock-fs": "^4.13.0",
|
|
82
82
|
"@types/nunjucks": "^3.1.4",
|
|
83
83
|
"@types/supertest": "^2.0.8",
|
|
84
|
-
"esbuild": "^0.
|
|
84
|
+
"esbuild": "^0.14.1",
|
|
85
85
|
"jest-when": "^3.1.0",
|
|
86
86
|
"mock-fs": "^5.1.0",
|
|
87
87
|
"msw": "^0.35.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"assets"
|
|
96
96
|
],
|
|
97
97
|
"configSchema": "config.d.ts",
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "b315430f9dfcfa19ab0dd90f5b4ac6904938fba7"
|
|
99
99
|
}
|