5.0 KiB
@backstage/cli
0.4.0
Minor Changes
00670a96e: sort product panels and navigation menu by greatest cost update tsconfig.json to use ES2020 api
Patch Changes
b4488ddb0: Added a type alias for PositionError = GeolocationPositionError4a655c89d: Bump versions ofesbuildandrollup-plugin-esbuild8a16e8af8: Support.npmrcwhen building with private NPM registries- Updated dependencies [
4e7091759] - Updated dependencies [
b4488ddb0]- @backstage/config-loader@0.4.0
0.3.2
Patch Changes
294295453: Only load config that applies to the target package for frontend build and serve tasks. Also added--package <name>flag to scope the config schema used by theconfig:printandconfig:checkcommands.f538e2c56: Make versions:bump install new versions of dependencies that were within the specified range as well as install new versions of transitive @backstage dependencies.8697dea5b: Bump Rollupb623cc275: Narrow down the version range of rollup-plugin-esbuild to avoid breaking change in newer version
0.3.1
Patch Changes
29a0ccab2: The CLI now detects and transforms linked packages. You can link in external packages by adding them to both thelerna.jsonandpackage.jsonworkspace paths.faf311c26: New lint rule to disallow assertions and promoteasassertions. - @typescript-eslint/consistent-type-assertions31d8b6979: Add experimental backend:bundle command991345969: Add newversions:checkandversions:bumpcommands to simplify version management and avoid conflicts
0.3.0
Minor Changes
-
1722cb53c: Added support for loading and validating configuration schemas, as well as declaring config visibility through schemas.The new
loadConfigSchemafunction exported by@backstage/config-loaderallows for the collection and merging of configuration schemas from all nearby dependencies of the project.A configuration schema is declared using the
https://backstage.io/schema/config-v1JSON Schema meta schema, which is based on draft07. The only difference to the draft07 schema is the customvisibilitykeyword, which is used to indicate whether the given config value should be visible in the frontend or not. The possible values arefrontend,backend, andsecret, wherebackendis the default. A visibility ofsecrethas the same scope at runtime, but it will be treated with more care in certain contexts, and defining bothfrontendandsecretfor the same value in two different schemas will result in an error during schema merging.Packages that wish to contribute configuration schema should declare it in a root
"configSchema"field inpackage.json. The field can either contain an inlined JSON schema, or a relative path to a schema file. Schema files can be in either.jsonor.d.tsformat.TypeScript configuration schema files should export a single
Configtype, for example:export interface Config { app: { /** * Frontend root URL * @visibility frontend */ baseUrl: string; }; }
Patch Changes
1722cb53c: Added configuration schema902340451: Support specifying listen host/port for frontend- Updated dependencies [
1722cb53c]- @backstage/config-loader@0.3.0
0.2.0
Minor Changes
-
28edd7d29: Create backend plugin through CLI -
1d0aec70f: Upgrade dependencyesbuild@0.7.7 -
72f6cda35: Adds a newBACKSTAGE_CLI_BUILD_PARELLELenvironment variable to control parallelism for some build steps.This is useful in CI to help avoid out of memory issues when using
terser. TheBACKSTAGE_CLI_BUILD_PARELLELenvironment variable can be set totrue | false | [integer]to override the default behaviour. See terser-webpack-plugin for more details. -
8c2b76e45: BREAKING CHANGEThe existing loading of additional config files like
app-config.development.yamlusing APP_ENV or NODE_ENV has been removed. Instead, the CLI and backend process now accept one or more--configflags to load config files.Without passing any flags,
app-config.yamland, if it exists,app-config.local.yamlwill be loaded. If passing any--config <path>flags, only those files will be loaded, NOT the defaultapp-config.yamlone.The old behaviour of for example
APP_ENV=developmentcan be replicated using the following flags:--config ../../app-config.yaml --config ../../app-config.development.yaml -
8afce088a: Use APP_ENV before NODE_ENV for determining what config to load
Patch Changes
-
3472c8be7: Add codeowners processor- Include ESNext.Promise in TypeScript compilation
-
a3840bed2: Upgrade dependency rollup-plugin-typescript2 to ^0.27.3 -
cba4e4d97: Including source maps with all packages -
9a3b3dbf1: Fixed duplicate help output, and print help on invalid command -
7bbeb049f: Change loadBackendConfig to return the config directly -
Updated dependencies [
8c2b76e45] -
Updated dependencies [
ce5512bc0]- @backstage/config-loader@0.2.0