Commit Graph

2549 Commits

Author SHA1 Message Date
github-actions[bot] 003494838b Version Packages (next) 2024-08-13 13:59:06 +00:00
Ben Lambert 1a45091949 Merge pull request #25780 from backstage/bump-module-federation
build(deps): bump @module-federation/enhanced to ^0.3.5
2024-08-13 15:47:46 +02:00
Patrik Oldsberg e910e572e0 Revert "added the frontend-extensions package role"
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-08-13 14:47:00 +02:00
Fredrik Adelöw 705794def5 rename the role to frontend-extensions
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-08-12 11:10:54 +02:00
Fredrik Adelöw 0f7452c030 add example package
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-08-12 11:10:54 +02:00
Fredrik Adelöw 8669210f3b added the frontend-extension-bundle role
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-08-12 11:10:54 +02:00
Tim Hansen 6d898d8475 Switch process polyfill to require.resolve
Signed-off-by: Tim Hansen <timbonicush@spotify.com>
2024-08-09 12:07:10 -06:00
MT Lewis 2ced236e07 build(deps): bump @module-federation/enhanced to ^0.3.5
Avoids dependency on vulnerable version of ws: https://github.com/advisories/GHSA-3h5v-q93c-6h6q

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-08-08 15:53:32 +01:00
github-actions[bot] 120319d2b5 Version Packages (next) 2024-08-06 13:15:32 +00:00
Patrik Oldsberg 26da8b7a00 Merge pull request #25889 from drodil/node_fetch
chore(deps): bump node-fetch to ^2.7.0
2024-08-02 11:58:33 +02:00
Heikki Hellgren 93095eecea chore(deps): bump node-fetch to ^2.7.0
Relates to #24590

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-08-02 12:19:38 +03:00
github-actions[bot] d7a0aa326b Version Packages (next) 2024-07-31 08:16:49 +00:00
Ben Lambert 60dfc2928a Merge pull request #25855 from drodil/cli_license
feat(cli): allow setting license for new command
2024-07-31 09:04:36 +02:00
Heikki Hellgren adabb40edb feat(cli): allow setting license for new command
This allows using custom licenses for new plugins when using the
backstage-cli new command

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-07-31 09:29:56 +03:00
blam 1a1132c9bb chore: fixing config loading for additional config paths
Signed-off-by: blam <ben@blam.sh>
2024-07-30 19:15:01 +02:00
github-actions[bot] 58bbb3edca Version Packages (next) 2024-07-30 12:26:11 +00:00
Patrik Oldsberg e6e7d862fe cli: use lowercase es2022
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-24 15:04:59 +02:00
github-actions[bot] 4a8774820c Version Packages (next) 2024-07-23 14:02:37 +00:00
Patrik Oldsberg 2431eb22fe Merge pull request #25745 from backstage/rugvip/fetch
cli: fix forwarding of target dir when resolving optional bundling paths
2024-07-23 15:36:53 +02:00
Patrik Oldsberg dc4fb4f6ac cli: fix forwarding of target dir when resolving optional bundling paths
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-23 15:08:07 +02:00
Patrik Oldsberg 32a38e1f37 cli: remove most lockfile analysis features
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-23 11:15:06 +02:00
Heikki Hellgren fbc7819133 fix: use es2022 in cli bundler and in storybook
fixes #25737

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-07-23 10:17:41 +03:00
Ben Lambert e7dba9ff5d Merge pull request #25712 from stephenglass/fix/cli-01
fix: Update default backend plugin to use `RootConfigService`
2024-07-23 09:03:50 +02:00
MT Lewis 239dffc970 cli: remove usage of deprecated functionality from @backstage/config-loader
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-22 15:18:23 +01:00
MT Lewis 9d661bb380 cli: only consider PORT environment variable for module federation remotes
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-22 15:18:23 +01:00
MT Lewis 493feaca4d cli: allow running with no configuration files
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-22 15:18:15 +01:00
Stephen Glass e53074fb0e Update default backend plugin to use RootConfigService
Signed-off-by: Stephen Glass <stephen@stephen.glass>
2024-07-21 01:44:13 -04:00
MT Lewis f93ae496ce cli: add CORS headers for webpack-dev-server content
This allows loading static assets from dev-servers
for dynamic plugin containers.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 19:24:08 +01:00
MT Lewis be1ee471cf cli: disable historyApiFallback for module federation remotes
Module federation remotes only serve static
assets, and aren't intended to be loaded directly
in a browser. As such, the historyApiFallback
isn't useful and should be disabled in this
context.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 19:24:08 +01:00
MT Lewis b7709255e8 cli: pass websocket host and port explicitly in configuration
When configuring the ReactRefreshPlugin and the
WebpackDevServer, we previously inferred the host
and port from the browser location. This is no
longer sufficient, since dynamic plugin containers
may be served from separate dev servers.

https://webpack.js.org/configuration/dev-server/#websocketurl
https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/API.md#sockhost

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 19:24:08 +01:00
MT Lewis 94ab20ebfa cli: skip opening browser when serving bundle for packages with frontend-dynamic-container role
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 19:24:07 +01:00
MT Lewis 7082940121 cli: add support for frontend-dynamic-container role in yarn start
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 19:24:06 +01:00
MT Lewis 70c0ac43cd Merge pull request #25675 from backstage/mtlewis/force-react-development
cli: add support for forcing use of react development when building
2024-07-19 19:23:28 +01:00
MT Lewis 6c94522688 cli: remove explicit boolean coercions when forcing react mode
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 14:08:54 +01:00
MT Lewis 232b134606 cli: skip forcing react to development mode if mode is development anyway
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 14:07:43 +01:00
MT Lewis 0983429447 cli: expand comment
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 14:05:28 +01:00
MT Lewis 2e1a7f10e5 cli: only check for truthiness of environment variables when forcing react mode
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-19 13:48:54 +01:00
MT Lewis 644d4696c2 cli: only allow forcing react development mode when module federation is enabled
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-18 10:35:40 +01:00
MT Lewis 7eb08a69dd cli: allow linting packages with role dynamic-frontend-container
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-17 20:54:47 +01:00
MT Lewis ee2b0e5433 cli: add support for forcing use of react development when building
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2024-07-17 17:42:02 +01:00
github-actions[bot] 8d2fe707cb Version Packages 2024-07-16 12:06:55 +00:00
Patrik Oldsberg c5ce79a14c Merge pull request #25569 from backstage/nbs10/rename-setup-request-handlers
[NBS 1.0]Rename `setupRequestMockHandlers` to `registerMswTestHooks`
2024-07-16 11:01:29 +02:00
Patrik Oldsberg 59375fc411 cli: refactor module federation check to support all paths to calling buildFrontend
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-16 09:49:12 +02:00
Patrik Oldsberg 8e2aba9bd0 cli: add a warning when app is build with module federation enabled
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-15 17:25:11 +02:00
Patrik Oldsberg 5e7f0491fa cli: update ModuleFederationPlugin import to avoid type error
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-15 14:12:00 +02:00
Patrik Oldsberg b56723adf0 cli: only eagely load shared dependencies in the host
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-15 14:12:00 +02:00
Patrik Oldsberg 133464cfe0 cli: add initial experimental support for dynamic plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-07-15 14:11:59 +02:00
Camila Belo b82aff92aa refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 17:06:00 +02:00
Camila Belo 95a3a0b91c refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 15:45:49 +02:00
github-actions[bot] 08c63d46ac Version Packages (next) 2024-07-02 09:03:14 +00:00