@backstage/plugin-scaffolder-backend-module-yeoman 0.4.11-next.1 → 0.4.11

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-yeoman
2
2
 
3
+ ## 0.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - b392a34: Migrate to new actions format
8
+ - Updated dependencies
9
+ - @backstage/plugin-scaffolder-node-test-utils@0.3.0
10
+ - @backstage/plugin-scaffolder-node@0.9.0
11
+ - @backstage/backend-plugin-api@1.4.0
12
+ - @backstage/types@1.2.1
13
+
14
+ ## 0.4.11-next.2
15
+
16
+ ### Patch Changes
17
+
18
+ - b392a34: Migrate to new actions format
19
+ - Updated dependencies
20
+ - @backstage/plugin-scaffolder-node-test-utils@0.3.0-next.2
21
+ - @backstage/plugin-scaffolder-node@0.9.0-next.2
22
+ - @backstage/backend-plugin-api@1.4.0-next.1
23
+ - @backstage/types@1.2.1
24
+
3
25
  ## 0.4.11-next.1
4
26
 
5
27
  ### Patch Changes
@@ -11,28 +11,15 @@ function createRunYeomanAction() {
11
11
  examples: yeoman_examples.examples,
12
12
  schema: {
13
13
  input: {
14
- type: "object",
15
- required: ["namespace"],
16
- properties: {
17
- namespace: {
18
- title: "Generator Namespace",
19
- description: "Yeoman generator namespace, e.g: node:app",
20
- type: "string"
21
- },
22
- args: {
23
- title: "Generator Arguments",
24
- description: "Arguments to pass on to Yeoman for templating",
25
- type: "array",
26
- items: {
27
- type: "string"
28
- }
29
- },
30
- options: {
31
- title: "Generator Options",
32
- description: "Options to pass on to Yeoman for templating",
33
- type: "object"
34
- }
35
- }
14
+ namespace: (z) => z.string({
15
+ description: "Yeoman generator namespace, e.g: node:app"
16
+ }),
17
+ args: (z) => z.array(z.string(), {
18
+ description: "Arguments to pass on to Yeoman for templating"
19
+ }).optional(),
20
+ options: (z) => z.record(z.any(), {
21
+ description: "Options to pass on to Yeoman for templating"
22
+ }).optional()
36
23
  }
37
24
  },
38
25
  supportsDryRun: true,
@@ -1 +1 @@
1
- {"version":3,"file":"yeoman.cjs.js","sources":["../../../src/actions/run/yeoman.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { JsonObject } from '@backstage/types';\nimport { createTemplateAction } from '@backstage/plugin-scaffolder-node';\nimport { yeomanRun } from './yeomanRun';\nimport { examples } from './yeoman.examples';\n\n/**\n * Creates a `run:yeoman` Scaffolder action.\n *\n * @remarks\n *\n * See {@link https://yeoman.io/} and {@link https://backstage.io/docs/features/software-templates/writing-custom-actions}.\n *\n * @public\n */\nexport function createRunYeomanAction() {\n return createTemplateAction<{\n namespace: string;\n args?: string[];\n options?: JsonObject;\n }>({\n id: 'run:yeoman',\n description: 'Runs Yeoman on an installed Yeoman generator',\n examples,\n schema: {\n input: {\n type: 'object',\n required: ['namespace'],\n properties: {\n namespace: {\n title: 'Generator Namespace',\n description: 'Yeoman generator namespace, e.g: node:app',\n type: 'string',\n },\n args: {\n title: 'Generator Arguments',\n description: 'Arguments to pass on to Yeoman for templating',\n type: 'array',\n items: {\n type: 'string',\n },\n },\n options: {\n title: 'Generator Options',\n description: 'Options to pass on to Yeoman for templating',\n type: 'object',\n },\n },\n },\n },\n supportsDryRun: true,\n async handler(ctx) {\n ctx.logger.info(\n `Templating using Yeoman generator: ${ctx.input.namespace}`,\n );\n await yeomanRun(\n ctx.workspacePath,\n ctx.input.namespace,\n ctx.input.args,\n ctx.input.options,\n );\n },\n });\n}\n"],"names":["createTemplateAction","examples","yeomanRun"],"mappings":";;;;;;AA8BO,SAAS,qBAAwB,GAAA;AACtC,EAAA,OAAOA,yCAIJ,CAAA;AAAA,IACD,EAAI,EAAA,YAAA;AAAA,IACJ,WAAa,EAAA,8CAAA;AAAA,cACbC,wBAAA;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,IAAM,EAAA,QAAA;AAAA,QACN,QAAA,EAAU,CAAC,WAAW,CAAA;AAAA,QACtB,UAAY,EAAA;AAAA,UACV,SAAW,EAAA;AAAA,YACT,KAAO,EAAA,qBAAA;AAAA,YACP,WAAa,EAAA,2CAAA;AAAA,YACb,IAAM,EAAA;AAAA,WACR;AAAA,UACA,IAAM,EAAA;AAAA,YACJ,KAAO,EAAA,qBAAA;AAAA,YACP,WAAa,EAAA,+CAAA;AAAA,YACb,IAAM,EAAA,OAAA;AAAA,YACN,KAAO,EAAA;AAAA,cACL,IAAM,EAAA;AAAA;AACR,WACF;AAAA,UACA,OAAS,EAAA;AAAA,YACP,KAAO,EAAA,mBAAA;AAAA,YACP,WAAa,EAAA,6CAAA;AAAA,YACb,IAAM,EAAA;AAAA;AACR;AACF;AACF,KACF;AAAA,IACA,cAAgB,EAAA,IAAA;AAAA,IAChB,MAAM,QAAQ,GAAK,EAAA;AACjB,MAAA,GAAA,CAAI,MAAO,CAAA,IAAA;AAAA,QACT,CAAA,mCAAA,EAAsC,GAAI,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,OAC3D;AACA,MAAM,MAAAC,mBAAA;AAAA,QACJ,GAAI,CAAA,aAAA;AAAA,QACJ,IAAI,KAAM,CAAA,SAAA;AAAA,QACV,IAAI,KAAM,CAAA,IAAA;AAAA,QACV,IAAI,KAAM,CAAA;AAAA,OACZ;AAAA;AACF,GACD,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"yeoman.cjs.js","sources":["../../../src/actions/run/yeoman.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTemplateAction } from '@backstage/plugin-scaffolder-node';\nimport { yeomanRun } from './yeomanRun';\nimport { examples } from './yeoman.examples';\n\n/**\n * Creates a `run:yeoman` Scaffolder action.\n *\n * @remarks\n *\n * See {@link https://yeoman.io/} and {@link https://backstage.io/docs/features/software-templates/writing-custom-actions}.\n *\n * @public\n */\nexport function createRunYeomanAction() {\n return createTemplateAction({\n id: 'run:yeoman',\n description: 'Runs Yeoman on an installed Yeoman generator',\n examples,\n schema: {\n input: {\n namespace: z =>\n z.string({\n description: 'Yeoman generator namespace, e.g: node:app',\n }),\n args: z =>\n z\n .array(z.string(), {\n description: 'Arguments to pass on to Yeoman for templating',\n })\n .optional(),\n options: z =>\n z\n .record(z.any(), {\n description: 'Options to pass on to Yeoman for templating',\n })\n .optional(),\n },\n },\n supportsDryRun: true,\n async handler(ctx) {\n ctx.logger.info(\n `Templating using Yeoman generator: ${ctx.input.namespace}`,\n );\n await yeomanRun(\n ctx.workspacePath,\n ctx.input.namespace,\n ctx.input.args,\n ctx.input.options,\n );\n },\n });\n}\n"],"names":["createTemplateAction","examples","yeomanRun"],"mappings":";;;;;;AA6BO,SAAS,qBAAwB,GAAA;AACtC,EAAA,OAAOA,yCAAqB,CAAA;AAAA,IAC1B,EAAI,EAAA,YAAA;AAAA,IACJ,WAAa,EAAA,8CAAA;AAAA,cACbC,wBAAA;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAA,EAAW,CACT,CAAA,KAAA,CAAA,CAAE,MAAO,CAAA;AAAA,UACP,WAAa,EAAA;AAAA,SACd,CAAA;AAAA,QACH,MAAM,CACJ,CAAA,KAAA,CAAA,CACG,KAAM,CAAA,CAAA,CAAE,QAAU,EAAA;AAAA,UACjB,WAAa,EAAA;AAAA,SACd,EACA,QAAS,EAAA;AAAA,QACd,SAAS,CACP,CAAA,KAAA,CAAA,CACG,MAAO,CAAA,CAAA,CAAE,KAAO,EAAA;AAAA,UACf,WAAa,EAAA;AAAA,SACd,EACA,QAAS;AAAA;AAChB,KACF;AAAA,IACA,cAAgB,EAAA,IAAA;AAAA,IAChB,MAAM,QAAQ,GAAK,EAAA;AACjB,MAAA,GAAA,CAAI,MAAO,CAAA,IAAA;AAAA,QACT,CAAA,mCAAA,EAAsC,GAAI,CAAA,KAAA,CAAM,SAAS,CAAA;AAAA,OAC3D;AACA,MAAM,MAAAC,mBAAA;AAAA,QACJ,GAAI,CAAA,aAAA;AAAA,QACJ,IAAI,KAAM,CAAA,SAAA;AAAA,QACV,IAAI,KAAM,CAAA,IAAA;AAAA,QACV,IAAI,KAAM,CAAA;AAAA,OACZ;AAAA;AACF,GACD,CAAA;AACH;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as _backstage_plugin_scaffolder_node from '@backstage/plugin-scaffolder-node';
2
- import { JsonObject } from '@backstage/types';
3
2
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
4
3
 
5
4
  /**
@@ -13,9 +12,11 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
13
12
  */
14
13
  declare function createRunYeomanAction(): _backstage_plugin_scaffolder_node.TemplateAction<{
15
14
  namespace: string;
16
- args?: string[];
17
- options?: JsonObject;
18
- }, JsonObject, "v1">;
15
+ args?: string[] | undefined;
16
+ options?: Record<string, any> | undefined;
17
+ }, {
18
+ [x: string]: any;
19
+ }, "v2">;
19
20
 
20
21
  /**
21
22
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-yeoman",
3
- "version": "0.4.11-next.1",
3
+ "version": "0.4.11",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module",
6
6
  "pluginId": "scaffolder",
@@ -50,15 +50,15 @@
50
50
  "test": "backstage-cli package test"
51
51
  },
52
52
  "dependencies": {
53
- "@backstage/backend-plugin-api": "1.4.0-next.1",
54
- "@backstage/plugin-scaffolder-node": "0.8.3-next.1",
55
- "@backstage/plugin-scaffolder-node-test-utils": "0.2.3-next.1",
56
- "@backstage/types": "1.2.1",
53
+ "@backstage/backend-plugin-api": "^1.4.0",
54
+ "@backstage/plugin-scaffolder-node": "^0.9.0",
55
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.3.0",
56
+ "@backstage/types": "^1.2.1",
57
57
  "winston": "^3.2.1",
58
58
  "yaml": "^2.0.0",
59
59
  "yeoman-environment": "^3.9.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@backstage/cli": "0.32.2-next.0"
62
+ "@backstage/cli": "^0.33.0"
63
63
  }
64
64
  }