@backstage/plugin-scaffolder-backend-module-yeoman 0.1.5 → 0.2.2-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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-yeoman
2
2
 
3
+ ## 0.2.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 8122e27717: Updating documentation for supporting `apiVersion: scaffolder.backstage.io/v1beta3`
8
+ - Updated dependencies
9
+ - @backstage/plugin-scaffolder-backend@0.18.0-next.0
10
+
11
+ ## 0.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @backstage/plugin-scaffolder-backend@0.17.0
17
+
18
+ ## 0.2.0
19
+
20
+ ### Minor Changes
21
+
22
+ - 661594bf43: Updated to the latest version of `@backstage/plugin-scaffolder-backend`, meaning the `TemplateAction` now exposes the precise input type rather than `any`.
23
+
24
+ ### Patch Changes
25
+
26
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
27
+ - c82cd1b137: Bump `yeoman-environment` dependency from `^3.6.0` to `^3.9.1`.
28
+ - Updated dependencies
29
+ - @backstage/plugin-scaffolder-backend@0.16.0
30
+ - @backstage/config@0.1.14
31
+ - @backstage/types@0.1.2
32
+
3
33
  ## 0.1.5
4
34
 
5
35
  ### Patch Changes
package/README.md CHANGED
@@ -44,7 +44,7 @@ return await createRouter({
44
44
  After that you can use the action in your template:
45
45
 
46
46
  ```yaml
47
- apiVersion: backstage.io/v1beta2
47
+ apiVersion: scaffolder.backstage.io/v1beta3
48
48
  kind: Template
49
49
  metadata:
50
50
  name: yeoman-demo
@@ -107,29 +107,30 @@ spec:
107
107
  name: Yeoman
108
108
  action: run:yeoman
109
109
  input:
110
- namespace: 'org:codeowners'
110
+ namespace: org:codeowners
111
111
  options:
112
- codeowners: '@{{ parameters.owner }}'
112
+ codeowners: '@${{ parameters.owner }}'
113
113
 
114
114
  - id: publish
115
- if: '{{ not parameters.dryRun }}'
115
+ if: ${{ parameters.dryRun !== true }}
116
116
  name: Publish
117
117
  action: publish:github
118
118
  input:
119
- allowedHosts: ['github.com']
120
- description: 'This is {{ parameters.name }}'
121
- repoUrl: '{{ parameters.repoUrl }}'
119
+ allowedHosts:
120
+ - github.com
121
+ description: This is ${{ parameters.name }}
122
+ repoUrl: ${{ parameters.repoUrl }}
122
123
 
123
124
  - id: register
124
- if: '{{ not parameters.dryRun }}'
125
+ if: ${{ parameters.dryRun !== true }}
125
126
  name: Register
126
127
  action: catalog:register
127
128
  input:
128
- repoContentsUrl: '{{ steps.publish.output.repoContentsUrl }}'
129
+ repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }}
129
130
  catalogInfoPath: '/catalog-info.yaml'
130
131
 
131
132
  - name: Results
132
- if: '{{ parameters.dryRun }}'
133
+ if: ${{ parameters.dryRun }}
133
134
  action: debug:log
134
135
  input:
135
136
  listWorkspace: true
@@ -137,10 +138,10 @@ spec:
137
138
  output:
138
139
  links:
139
140
  - title: Repository
140
- url: '{{ steps.publish.output.remoteUrl }}'
141
+ url: ${{ steps.publish.output.remoteUrl }}
141
142
  - title: Open in catalog
142
- icon: 'catalog'
143
- entityRef: '{{ steps.register.output.entityRef }}'
143
+ icon: catalog
144
+ entityRef: ${{ steps.register.output.entityRef }}
144
145
  ```
145
146
 
146
147
  You can also visit the `/create/actions` route in your Backstage application to find out more about the parameters this action accepts when it's installed to configure how you like.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _backstage_plugin_scaffolder_backend from '@backstage/plugin-scaffolder-backend';
2
+ import { JsonObject } from '@backstage/types';
2
3
 
3
4
  /**
4
5
  * Creates a `run:yeoman` Scaffolder action.
@@ -9,6 +10,10 @@ import * as _backstage_plugin_scaffolder_backend from '@backstage/plugin-scaffol
9
10
  *
10
11
  * @public
11
12
  */
12
- declare function createRunYeomanAction(): _backstage_plugin_scaffolder_backend.TemplateAction<any>;
13
+ declare function createRunYeomanAction(): _backstage_plugin_scaffolder_backend.TemplateAction<{
14
+ namespace: string;
15
+ args?: string[] | undefined;
16
+ options?: JsonObject | undefined;
17
+ }>;
13
18
 
14
19
  export { createRunYeomanAction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-yeoman",
3
- "version": "0.1.5",
3
+ "version": "0.2.2-next.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -10,28 +10,31 @@
10
10
  "main": "dist/index.cjs.js",
11
11
  "types": "dist/index.d.ts"
12
12
  },
13
+ "backstage": {
14
+ "role": "backend-plugin-module"
15
+ },
13
16
  "scripts": {
14
- "start": "backstage-cli backend:dev",
15
- "build": "backstage-cli backend:build",
16
- "lint": "backstage-cli lint",
17
- "test": "backstage-cli test",
18
- "prepack": "backstage-cli prepack",
19
- "postpack": "backstage-cli postpack",
20
- "clean": "backstage-cli clean"
17
+ "start": "backstage-cli package start",
18
+ "build": "backstage-cli package build",
19
+ "lint": "backstage-cli package lint",
20
+ "test": "backstage-cli package test",
21
+ "prepack": "backstage-cli package prepack",
22
+ "postpack": "backstage-cli package postpack",
23
+ "clean": "backstage-cli package clean"
21
24
  },
22
25
  "dependencies": {
23
- "@backstage/config": "^0.1.13",
24
- "@backstage/plugin-scaffolder-backend": "^0.15.24",
25
- "@backstage/types": "^0.1.1",
26
+ "@backstage/config": "^0.1.15",
27
+ "@backstage/plugin-scaffolder-backend": "^0.18.0-next.0",
28
+ "@backstage/types": "^0.1.3",
26
29
  "winston": "^3.2.1",
27
- "yeoman-environment": "^3.6.0"
30
+ "yeoman-environment": "^3.9.1"
28
31
  },
29
32
  "devDependencies": {
30
- "@backstage/backend-common": "^0.10.7",
33
+ "@backstage/backend-common": "^0.13.0-next.0",
31
34
  "@types/jest": "^26.0.7"
32
35
  },
33
36
  "files": [
34
37
  "dist"
35
38
  ],
36
- "gitHead": "4f4bc77a4152d372b10a4e8d97d92f00e23f3b56"
39
+ "gitHead": "e90d3ed129ebfce978f1adfa40c1dc2cef3f7e65"
37
40
  }