@backstage/create-app 0.4.34-next.2 → 0.4.35-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,121 @@
1
1
  # @backstage/create-app
2
2
 
3
+ ## 0.4.35-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Bumped create-app version.
8
+ - Updated dependencies
9
+ - @backstage/cli-common@0.1.10
10
+
11
+ ## 0.4.34
12
+
13
+ ### Patch Changes
14
+
15
+ - f1c3cdfb2d: Bumped create-app version.
16
+ - df21bbd4ad: The [Analytics API](https://backstage.io/docs/plugins/analytics) is the recommended way to track usage in Backstage; an optionally installable [Google Analytics module](https://github.com/backstage/backstage/tree/master/plugins/analytics-module-ga#installation) has superseded the old app.googleAnalyticsTrackingId config and its corresponding script tags in packages/app/public/index.html.
17
+
18
+ For an existing installation where you want to remove the redundant app.googleAnalyticsTrackingId, you should make the following adjustment to `packages/app/public/index.html`:
19
+
20
+ ```diff
21
+ <title><%= config.getString('app.title') %></title>
22
+ - <% if (config.has('app.googleAnalyticsTrackingId')) { %>
23
+ - <script
24
+ - async
25
+ - src="https://www.googletagmanager.com/gtag/js?id=<%= config.getString('app.googleAnalyticsTrackingId') %>"
26
+ - ></script>
27
+ - <script>
28
+ - window.dataLayer = window.dataLayer || [];
29
+ - function gtag() {
30
+ - dataLayer.push(arguments);
31
+ - }
32
+ - gtag('js', new Date());
33
+ - gtag(
34
+ - 'config',
35
+ - '<%= config.getString("app.googleAnalyticsTrackingId") %>',
36
+ - );
37
+ - </script>
38
+ - <% } %>
39
+ </head>
40
+ ```
41
+
42
+ Additionally, you should make the following adjustment to `app-config.yaml`:
43
+
44
+ ```diff
45
+ app:
46
+ title: Backstage Example App
47
+ baseUrl: http://localhost:3000
48
+ - googleAnalyticsTrackingId: # UA-000000-0
49
+ ```
50
+
51
+ - 4091c73e68: Updated `@swc/core` to `v1.3.9` which fixes a `.tsx` parser bug. You may want to run `yarn backstage-cli versions:bump` to get on latest version including the CLI itself.
52
+ - 80bfac5266: Updated the create-app command to no longer require Git to be installed and configured. A git repository will only be initialized if possible and if not already in an git repository.
53
+ - 286d474675: The `build` script in the root `package.json` has been split into two separate scripts, `build:backend` and `build:all`. This is to more accurately reflect what is being built, to avoid confusion.
54
+
55
+ If you want to build the project for a production deployment, you will want to use `build:backend`, as this builds both the frontend and backend package. If you are not using the `app-backend` plugin you will want to add your own `build:frontend` script, to which you can pass additional configuration parameters if needed.
56
+
57
+ The `build:all` script is useful if you simply want to check that it is possible to build all packages in the project. This might be useful as a CI check, but is generally unnecessary.
58
+
59
+ If you want to publish the packages in your repository you can add a `build:packages` script that calls `backstage-cli repo build`. This will skip the frontend and backend packages builds, as those are quite time consuming.
60
+
61
+ To apply these changes to an existing project, make the following change to the root `package.json` file:
62
+
63
+ ```diff
64
+ - "build": "backstage-cli repo build --all",
65
+ + "build:backend": "yarn workspace backend build",
66
+ + "build:all": "backstage-cli repo build --all",
67
+ ```
68
+
69
+ There are also a couple of places where documentation has been updated, see the [upgrade helper](https://backstage.github.io/upgrade-helper/?to=1.8.0) for a full list of changes.
70
+
71
+ - 384eaa2307: Switched Node.js version to support version 16 & 18, rather than 14 & 16. To switch the Node.js version in your own project, apply the following change to the root `package.json`:
72
+
73
+ ```diff
74
+ "engines": {
75
+ - "node": "14 || 16"
76
+ + "node": "16 || 18"
77
+ },
78
+ ```
79
+
80
+ As well as the following change to `packages/app/package.json`:
81
+
82
+ ```diff
83
+ - "@types/node": "^14.14.32",
84
+ + "@types/node": "^16.11.26",
85
+ ```
86
+
87
+ - f905853ad6: Prefer using `Link` from `@backstage/core-components` rather than material-UI.
88
+ - 864c876e57: Fixed incorrect comments in the templated `app-config.yaml` and `app-config.production.yaml`. The `backend.listen` directive is not in fact needed to override the `backend.baseUrl`, the backend listens to all interfaces by default. The configuration has also been updated to listen to all interfaces, rather than just IPv4 ones, as this is required for Node.js v18. The production configuration now also shows the option to specify `backend.listen` as a single string.
89
+
90
+ To apply this changes to an existing app, make the following change to `app-config.yaml`:
91
+
92
+ ```diff
93
+ - # Uncomment the following host directive to bind to all IPv4 interfaces and
94
+ - # not just the baseUrl hostname.
95
+ - # host: 0.0.0.0
96
+ + # Uncomment the following host directive to bind to specific interfaces
97
+ + # host: 127.0.0.1
98
+ ```
99
+
100
+ And the following change to `app-config.production.yaml`:
101
+
102
+ ```diff
103
+ - listen:
104
+ - port: 7007
105
+ - # The following host directive binds to all IPv4 interfaces when its value
106
+ - # is "0.0.0.0". This is the most permissive setting. The right value depends
107
+ - # on your specific deployment. If you remove the host line entirely, the
108
+ - # backend will bind on the interface that corresponds to the backend.baseUrl
109
+ - # hostname.
110
+ - host: 0.0.0.0
111
+ + # The listener can also be expressed as a single <host>:<port> string. In this case we bind to
112
+ + # all interfaces, the most permissive setting. The right value depends on your specific deployment.
113
+ + listen: ':7007'
114
+ ```
115
+
116
+ - Updated dependencies
117
+ - @backstage/cli-common@0.1.10
118
+
3
119
  ## 0.4.34-next.2
4
120
 
5
121
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -57,101 +57,101 @@ ${chalk__default["default"].red(`${error}`)}
57
57
  }
58
58
  }
59
59
 
60
- var version$L = "1.8.0-next.2";
60
+ var version$L = "1.9.0-next.0";
61
61
 
62
- var version$K = "1.0.8-next.1";
62
+ var version$K = "1.0.9-next.0";
63
63
 
64
- var version$J = "0.16.0-next.1";
64
+ var version$J = "0.16.1-next.0";
65
65
 
66
- var version$I = "0.3.7-next.1";
66
+ var version$I = "0.3.8-next.0";
67
67
 
68
- var version$H = "1.1.2-next.0";
68
+ var version$H = "1.2.0-next.0";
69
69
 
70
- var version$G = "1.1.3-next.0";
70
+ var version$G = "1.1.4-next.0";
71
71
 
72
- var version$F = "0.21.0-next.1";
72
+ var version$F = "0.21.2-next.0";
73
73
 
74
- var version$E = "1.0.4-next.0";
74
+ var version$E = "1.0.5-next.0";
75
75
 
76
- var version$D = "1.2.0-next.0";
76
+ var version$D = "1.2.1-next.0";
77
77
 
78
- var version$C = "0.12.0-next.1";
78
+ var version$C = "0.12.1-next.0";
79
79
 
80
- var version$B = "1.1.0-next.0";
80
+ var version$B = "1.1.1-next.0";
81
81
 
82
- var version$A = "1.1.3-next.0";
82
+ var version$A = "1.1.4-next.0";
83
83
 
84
- var version$z = "1.1.6-next.1";
84
+ var version$z = "1.1.7-next.0";
85
85
 
86
- var version$y = "1.2.2-next.0";
86
+ var version$y = "1.2.3-next.0";
87
87
 
88
88
  var version$x = "0.2.16";
89
89
 
90
- var version$w = "0.8.11-next.1";
90
+ var version$w = "0.8.12-next.0";
91
91
 
92
- var version$v = "0.3.38-next.1";
92
+ var version$v = "0.3.39-next.0";
93
93
 
94
- var version$u = "0.17.1-next.1";
94
+ var version$u = "0.17.2-next.0";
95
95
 
96
- var version$t = "0.2.7-next.1";
96
+ var version$t = "0.2.8-next.0";
97
97
 
98
- var version$s = "1.6.1-next.1";
98
+ var version$s = "1.6.2-next.0";
99
99
 
100
- var version$r = "1.0.8-next.0";
100
+ var version$r = "1.0.9-next.0";
101
101
 
102
- var version$q = "1.2.1-next.1";
102
+ var version$q = "1.2.2-next.0";
103
103
 
104
- var version$p = "1.5.1-next.1";
104
+ var version$p = "1.6.0-next.0";
105
105
 
106
- var version$o = "0.2.23-next.1";
106
+ var version$o = "0.2.24-next.0";
107
107
 
108
- var version$n = "0.9.1-next.1";
108
+ var version$n = "0.9.2-next.0";
109
109
 
110
- var version$m = "0.3.11-next.1";
110
+ var version$m = "0.3.12-next.0";
111
111
 
112
- var version$l = "0.3.42-next.1";
112
+ var version$l = "0.3.43-next.0";
113
113
 
114
- var version$k = "0.5.11-next.1";
114
+ var version$k = "0.5.12-next.0";
115
115
 
116
- var version$j = "0.3.11-next.1";
116
+ var version$j = "0.3.12-next.0";
117
117
 
118
- var version$i = "0.6.0-next.1";
118
+ var version$i = "0.6.1-next.0";
119
119
 
120
- var version$h = "0.7.1-next.0";
120
+ var version$h = "0.7.2-next.0";
121
121
 
122
- var version$g = "0.4.7-next.0";
122
+ var version$g = "0.4.8-next.0";
123
123
 
124
- var version$f = "0.7.1-next.1";
124
+ var version$f = "0.7.2-next.0";
125
125
 
126
- var version$e = "0.2.32-next.1";
126
+ var version$e = "0.2.33-next.0";
127
127
 
128
- var version$d = "0.1.35-next.1";
128
+ var version$d = "0.1.36-next.0";
129
129
 
130
- var version$c = "1.8.0-next.1";
130
+ var version$c = "1.9.0-next.0";
131
131
 
132
- var version$b = "1.8.0-next.2";
132
+ var version$b = "1.8.1-next.0";
133
133
 
134
- var version$a = "1.0.4-next.1";
134
+ var version$a = "1.0.5-next.0";
135
135
 
136
- var version$9 = "1.2.1-next.1";
136
+ var version$9 = "1.2.2-next.0";
137
137
 
138
- var version$8 = "1.1.1-next.1";
138
+ var version$8 = "1.1.2-next.0";
139
139
 
140
- var version$7 = "0.4.2-next.1";
140
+ var version$7 = "0.4.3-next.0";
141
141
 
142
- var version$6 = "1.0.4-next.1";
142
+ var version$6 = "1.0.5-next.0";
143
143
 
144
- var version$5 = "0.5.18-next.1";
144
+ var version$5 = "0.5.19-next.0";
145
145
 
146
- var version$4 = "1.4.0-next.2";
146
+ var version$4 = "1.4.1-next.0";
147
147
 
148
- var version$3 = "1.0.6-next.1";
148
+ var version$3 = "1.0.7-next.0";
149
149
 
150
- var version$2 = "1.0.6-next.1";
150
+ var version$2 = "1.0.7-next.0";
151
151
 
152
- var version$1 = "1.4.1-next.1";
152
+ var version$1 = "1.4.2-next.0";
153
153
 
154
- var version = "0.5.1-next.1";
154
+ var version = "0.6.0-next.0";
155
155
 
156
156
  const packageVersions = {
157
157
  root: version$L,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/create-app",
3
3
  "description": "A CLI that helps you create your own Backstage app",
4
- "version": "0.4.34-next.2",
4
+ "version": "0.4.35-next.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -42,7 +42,7 @@
42
42
  "recursive-readdir": "^2.2.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@backstage/cli": "^0.21.0-next.1",
45
+ "@backstage/cli": "^0.21.2-next.0",
46
46
  "@types/command-exists": "^1.2.0",
47
47
  "@types/fs-extra": "^9.0.1",
48
48
  "@types/inquirer": "^8.1.3",
@@ -9,7 +9,8 @@
9
9
  "dev": "concurrently \"yarn start\" \"yarn start-backend\"",
10
10
  "start": "yarn workspace app start",
11
11
  "start-backend": "yarn workspace backend start",
12
- "build": "backstage-cli repo build --all",
12
+ "build:backend": "yarn workspace backend build",
13
+ "build:all": "backstage-cli repo build --all",
13
14
  "build-image": "yarn workspace backend build-image",
14
15
  "tsc": "tsc",
15
16
  "tsc:full": "tsc --skipLibCheck false --incremental false",
@@ -43,24 +43,6 @@
43
43
  color="#5bbad5"
44
44
  />
45
45
  <title><%= config.getString('app.title') %></title>
46
- <% if (config.has('app.googleAnalyticsTrackingId')) { %>
47
- <script
48
- async
49
- src="https://www.googletagmanager.com/gtag/js?id=<%= config.getString('app.googleAnalyticsTrackingId') %>"
50
- ></script>
51
- <script>
52
- window.dataLayer = window.dataLayer || [];
53
- function gtag() {
54
- dataLayer.push(arguments);
55
- }
56
- gtag('js', new Date());
57
-
58
- gtag(
59
- 'config',
60
- '<%= config.getString("app.googleAnalyticsTrackingId") %>',
61
- );
62
- </script>
63
- <% } %>
64
46
  </head>
65
47
  <body>
66
48
  <noscript>You need to enable JavaScript to run this app.</noscript>
@@ -72,8 +54,8 @@
72
54
  You can add webfonts, meta tags, or analytics to this file.
73
55
  The build step will place the bundled scripts into the <body> tag.
74
56
 
75
- To begin the development, run `npm start` or `yarn start`.
76
- To create a production bundle, use `npm run build` or `yarn build`.
57
+ To begin the development, run `yarn start`.
58
+ To create a production bundle, use `yarn build`.
77
59
  -->
78
60
  </body>
79
61
  </html>
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # yarn install
7
7
  # yarn tsc
8
- # yarn build
8
+ # yarn build:backend
9
9
  #
10
10
  # Once the commands have been run, you can build the image using `yarn build-image`
11
11
 
@@ -16,8 +16,6 @@ To run the example backend, first go to the project root and run
16
16
 
17
17
  ```bash
18
18
  yarn install
19
- yarn tsc
20
- yarn build
21
19
  ```
22
20
 
23
21
  You should only need to do this once.
@@ -25,16 +23,11 @@ You should only need to do this once.
25
23
  After that, go to the `packages/backend` directory and run
26
24
 
27
25
  ```bash
28
- AUTH_GOOGLE_CLIENT_ID=x AUTH_GOOGLE_CLIENT_SECRET=x \
29
- AUTH_GITHUB_CLIENT_ID=x AUTH_GITHUB_CLIENT_SECRET=x \
30
- AUTH_OAUTH2_CLIENT_ID=x AUTH_OAUTH2_CLIENT_SECRET=x \
31
- AUTH_OAUTH2_AUTH_URL=x AUTH_OAUTH2_TOKEN_URL=x \
32
- LOG_LEVEL=debug \
33
26
  yarn start
34
27
  ```
35
28
 
36
- Substitute `x` for actual values, or leave them as dummy values just to try out
37
- the backend without using the auth or sentry features.
29
+ If you want to override any configuration locally, for example adding any secrets,
30
+ you can do so in `app-config.local.yaml`.
38
31
 
39
32
  The backend starts up on port 7007 per default.
40
33