Commit Graph

65 Commits

Author SHA1 Message Date
Patrik Oldsberg ce676fea2f Merge pull request #32904 from backstage/rugvip/translation-export-import
cli: add translations export and import commands
2026-02-23 13:18:03 +01:00
Patrik Oldsberg 1dfc3436d9 cli: address review feedback from freben
Fix whitespace alignment in CLI command summary, improve export command
description to clarify it operates from an app context, and update the
corresponding docs section.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 01:05:15 +01:00
Patrik Oldsberg dd5f052017 cli: make messages/ part of the configurable --pattern flag
Moves the messages/ path segment from being hardcoded into the export
and import commands to being part of the pattern itself. The default
pattern is now messages/{id}.{lang}.json, giving full control over the
directory structure under the translations output directory.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-18 12:32:51 +01:00
Patrik Oldsberg a808c9ef3f cli: use PackageRoles for role detection and remove redundant import --pattern
Uses PackageRoles.getRoleInfo from cli-node to determine frontend packages
by platform instead of a hardcoded role list. Removes the --pattern option
from the import command since the pattern is always read from the manifest.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-18 12:22:26 +01:00
Patrik Oldsberg fd50cb3401 docs: add changeset and documentation for translations CLI commands
Adds a changeset for the new translations export/import CLI commands.
Updates the internationalization docs with the CLI-based workflow as
the recommended approach for managing translations, and adds the
commands to the CLI reference. Also adds the internationalization
page to the mkdocs navigation.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-18 00:47:14 +01:00
Patrik Oldsberg 903a854ebc Merge branch 'master' into runtime-module-federation-enablement
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-12 23:46:00 +01:00
Patrik Oldsberg a21f50fc57 docs: apply minor fixes from feedback
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-30 11:36:09 +01:00
David Festal 86bb4321a9 Add and update documentation
Signed-off-by: David Festal <dfestal@redhat.com>
Assisted-by: Cursor
2026-01-27 14:54:19 +01:00
Fredrik Adelöw 05fb5f23aa Merge pull request #32275 from meganide/feat/cli-pattern
feat: add --include and --output-file to backstage-cli-info
2026-01-20 15:34:30 +01:00
Renas 4399328c37 feat: replace --output-file with --format
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Renas cc8e5f52b5 docs: update cli info docs
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Andre Wanlin f1fe6fe90d Updated to use Node 24 and Debian Trixie
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-01-05 12:25:52 -06:00
Fredrik Adelöw 7076f21475 Merge pull request #31559 from TobZip/patch-1
Revise VS Code Jest setup and update paths
2025-12-13 19:46:07 +01:00
aramissennyeydd 0def824b4d remove --no-node-snapshots flag
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2025-12-08 17:28:19 -05:00
Tobias Zipfel c49c5a3201 Revise VS Code Jest setup and update paths
Updated VS Code Jest configuration instructions and corrected the path for the backstage-cli program.

Signed-off-by: Tobias Zipfel <tobiz@axis.com>
2025-11-01 18:50:36 +01:00
Patrik Oldsberg fc7cbfced9 cli: add template for catalog provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-10-20 19:58:19 +02:00
Patrik Oldsberg d14ef24882 cli: add Backstage Yarn plugin support for templating
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-10-01 15:11:46 +02:00
Camila Belo 8a16781eba refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2025-09-26 12:16:32 +02:00
Camila Belo ab96bb770f feat: add package start entry dir option
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2025-09-26 12:16:32 +02:00
Patrik Oldsberg fbb84fbc8c cli: add support for passing package paths to repo start
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 13:14:46 +02:00
Patrik Oldsberg fd4fddad77 cli: enable forwarding of backend flags for repo start
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 13:14:46 +02:00
Patrik Oldsberg b8a675df4b docs/tooling: add docs for new repo start command
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 13:14:45 +02:00
Paul Schultz 5b7067966c feat: set lint --max-warnings to -1
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-03-04 09:50:10 -06:00
Andre Wanlin 3cf3634162 Small Corrections to the CLI Template Globals
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2025-02-13 08:24:38 -06:00
Patrik Oldsberg 712f96a86f Merge pull request #27934 from minkimcello/mk/cli-templates
Declarative CLI Templates
2025-02-11 14:47:55 +01:00
Patrik Oldsberg 40208a4bd6 docs/tooling/cli: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 14:05:31 +01:00
Patrik Oldsberg 9b82dabd50 docs/tooling/cli: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 13:23:22 +01:00
Patrik Oldsberg 9fd9004d0f cli/new: rename template.yaml -> portable-template.yaml
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 11:47:33 +01:00
Patrik Oldsberg 8ff50542cd cli/new: hardcode template file name and always point to dir
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 11:44:09 +01:00
Patrik Oldsberg 10c419cc0c cli/new: merge parameters and templateValues
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 11:26:32 +01:00
Patrik Oldsberg 82107cd9a5 cli/new: remove ability to load template contents from a separate dir
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 11:15:25 +01:00
Patrik Oldsberg 9385cdf77c docs/tooling: mention parameters field in templating docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-11 10:29:28 +01:00
Patrik Oldsberg b5f489aa79 docs/tooling: update cli templating docs to reflect new design
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-02-10 17:25:40 +01:00
Fredrik Adelöw 713c3b0d8a Merge pull request #28586 from gusega/patch-2
Update 02-build-system.md
2025-01-29 14:51:13 +01:00
Gasan 182120afd5 Update docs/tooling/cli/02-build-system.md
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-28 16:16:05 +01:00
Gasan 7e61019465 Update docs/tooling/cli/02-build-system.md
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-28 16:15:46 +01:00
Gasan Guseinov 87f2f3862c update doc
Signed-off-by: Gasan Guseinov <gasan.guseinov@ing.com>
2025-01-28 13:35:50 +01:00
Gasan f6c927fa7c Update docs/tooling/cli/02-build-system.md
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-28 13:09:52 +01:00
Gasan 75defba1e8 Update 02-build-system.md
Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-24 14:27:11 +01:00
Min Kim 9b06500d3f Apply feedback to documentation
Signed-off-by: Min Kim <minkimcello@gmail.com>
2025-01-23 22:35:21 -05:00
Min Kim 9e8618db3a Write documentation for the new CLI templates
Signed-off-by: Min Kim <minkimcello@gmail.com>
2025-01-23 22:35:20 -05:00
Min Kim 051995aba5 Update new command documentation
Signed-off-by: Min Kim <minkimcello@gmail.com>
2025-01-23 22:35:20 -05:00
Patrik Oldsberg fc3581065f docs/tooling: add ESM module test coverage limitation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-01-23 13:17:09 +01:00
Gasan f929fb1f1a Update 02-build-system.md
1. replace intellij with Intellij
2. update config file location

Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-22 12:43:37 +01:00
Gasan b8d72515b6 Update 02-build-system.md
documentation how to run jest tests in intellij

Signed-off-by: Gasan <465806+gusega@users.noreply.github.com>
2025-01-22 12:02:55 +01:00
Patrik Oldsberg c09845bb4e Apply suggestions from code review
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-01-15 17:38:56 +01:00
Patrik Oldsberg c1775a1b3c document need to run ESM tests with --experimental-vm-modules
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-12-26 21:35:40 +01:00
Patrik Oldsberg deee6d584d docs/tooling/cli: initial ESM docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-12-26 21:29:05 +01:00
Tommi Pääkkö 6c48ebdf59 feat(lint): Add --max-warnings -1 option to package lint
Signed-off-by: Tommi Pääkkö <tommi.paakko@op.fi>
2024-11-05 14:25:33 +02:00
Patrik Oldsberg 6819f8cef2 cli: optimize repo test to filter out ununsed projects
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-10-26 11:59:38 +02:00