@equinor/fusion-framework-cli 11.0.0-next.8 → 11.0.1
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 +71 -94
- package/README.md +98 -104
- package/bin/build/bin.mjs +1 -0
- package/bin/build/cli.mjs +7 -0
- package/bin/cli.mjs +1 -1
- package/dist/esm/lib/app/app-config.js.map +1 -1
- package/dist/esm/lib/app/app-manifest.js.map +1 -1
- package/dist/esm/lib/app/app-package.js +1 -1
- package/dist/esm/lib/app/app-package.js.map +1 -1
- package/dist/esm/lib/app/merge-app-config.js +11 -5
- package/dist/esm/lib/app/merge-app-config.js.map +1 -1
- package/dist/esm/lib/app/merge-app-manifest.js +2 -2
- package/dist/esm/lib/app/merge-app-manifest.js.map +1 -1
- package/dist/esm/lib/index.js +3 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/load-dev-server-config.js +7 -3
- package/dist/esm/lib/load-dev-server-config.js.map +1 -1
- package/dist/esm/lib/merge-dev-server-config.js +24 -16
- package/dist/esm/lib/merge-dev-server-config.js.map +1 -1
- package/dist/esm/lib/portal/create-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-config.js +1 -1
- package/dist/esm/lib/portal/load-portal-config.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-manifest.js +8 -4
- package/dist/esm/lib/portal/load-portal-manifest.js.map +1 -1
- package/dist/esm/lib/portal/load-portal-schema.js.map +1 -1
- package/dist/esm/lib/portal/portal-config.js.map +1 -1
- package/dist/esm/lib/utils/index.js +1 -0
- package/dist/esm/lib/utils/index.js.map +1 -1
- package/dist/esm/lib/utils/resolve-annotations.js +48 -5
- package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
- package/dist/esm/lib/utils/resolve-devops-annotations.js +7 -3
- package/dist/esm/lib/utils/resolve-devops-annotations.js.map +1 -1
- package/dist/esm/lib/utils/resolve-git-commit-sha.js +1 -0
- package/dist/esm/lib/utils/resolve-git-commit-sha.js.map +1 -1
- package/dist/esm/lib/utils/resolve-github-annotations.js +16 -72
- package/dist/esm/lib/utils/resolve-github-annotations.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/app-build.d.ts +2 -2
- package/dist/types/bin/app-check.d.ts +2 -2
- package/dist/types/bin/app-config-publish.d.ts +2 -2
- package/dist/types/bin/app-config.d.ts +3 -3
- package/dist/types/bin/app-dev.d.ts +1 -1
- package/dist/types/bin/app-manifest.d.ts +3 -3
- package/dist/types/bin/app-pack.d.ts +1 -1
- package/dist/types/bin/app-tag.d.ts +3 -3
- package/dist/types/bin/app-upload.d.ts +2 -2
- package/dist/types/bin/helpers/load-vite-config.d.ts +1 -2
- package/dist/types/bin/helpers/resolve-app-config.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-app-manifest.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-portal-config.d.ts +3 -3
- package/dist/types/bin/helpers/resolve-portal-manifest.d.ts +3 -4
- package/dist/types/bin/helpers/resolve-project-package.d.ts +2 -2
- package/dist/types/bin/index.d.ts +9 -0
- package/dist/types/bin/pack.d.ts +1 -1
- package/dist/types/bin/portal-build.d.ts +5 -5
- package/dist/types/bin/portal-config-publish.d.ts +2 -2
- package/dist/types/bin/portal-config.d.ts +4 -4
- package/dist/types/bin/portal-dev.d.ts +2 -2
- package/dist/types/bin/portal-manifest.d.ts +4 -4
- package/dist/types/bin/portal-pack.d.ts +3 -3
- package/dist/types/bin/portal-tag.d.ts +2 -2
- package/dist/types/bin/portal-upload.d.ts +2 -2
- package/dist/types/bin/utils/create-dev-server.d.ts +2 -2
- package/dist/types/cli/commands/disco/resolve.d.ts +1 -1
- package/dist/types/cli/main.d.ts +0 -20
- package/dist/types/cli/options/env.d.ts +1 -2
- package/dist/types/lib/app/app-config.d.ts +2 -2
- package/dist/types/lib/app/app-manifest.d.ts +1 -1
- package/dist/types/lib/app/merge-app-config.d.ts +1 -1
- package/dist/types/lib/app/merge-app-manifest.d.ts +1 -1
- package/dist/types/lib/index.d.ts +3 -2
- package/dist/types/lib/legacy.d.ts +1 -1
- package/dist/types/lib/load-dev-server-config.d.ts +2 -2
- package/dist/types/lib/merge-dev-server-config.d.ts +1 -1
- package/dist/types/lib/portal/create-portal-manifest.d.ts +1 -1
- package/dist/types/lib/portal/load-portal-manifest.d.ts +2 -2
- package/dist/types/lib/portal/load-portal-schema.d.ts +1 -1
- package/dist/types/lib/portal/portal-config.d.ts +2 -2
- package/dist/types/lib/portal/portal-manifest.schema.d.ts +6 -6
- package/dist/types/lib/types.d.ts +29 -0
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/dist/types/lib/utils/resolve-annotations.d.ts +35 -1
- package/dist/types/lib/utils/resolve-devops-annotations.d.ts +28 -3
- package/dist/types/lib/utils/resolve-git-commit-sha.d.ts +1 -0
- package/dist/types/lib/utils/resolve-github-annotations.d.ts +85 -13
- package/dist/types/lib/utils/types.d.ts +57 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/application.md +73 -79
- package/docs/auth.md +18 -45
- package/docs/libsecret.md +0 -31
- package/docs/migration-v10-to-v11.md +43 -47
- package/docs/portal.md +4 -38
- package/package.json +69 -33
- package/bin/build/bin.js +0 -28
- package/bin/build/cli.js +0 -10099
- package/bin/build/create-auth-client-B_j4Y_Dr.js +0 -1415
- package/bin/build/portal-config-publish-ezU_DFki.js +0 -29578
- package/dist/esm/bin/app-build.js +0 -34
- package/dist/esm/bin/app-build.js.map +0 -1
- package/dist/esm/bin/app-check.js +0 -63
- package/dist/esm/bin/app-check.js.map +0 -1
- package/dist/esm/bin/app-config-publish.js +0 -89
- package/dist/esm/bin/app-config-publish.js.map +0 -1
- package/dist/esm/bin/app-config.js +0 -48
- package/dist/esm/bin/app-config.js.map +0 -1
- package/dist/esm/bin/app-dev.js +0 -102
- package/dist/esm/bin/app-dev.js.map +0 -1
- package/dist/esm/bin/app-manifest.js +0 -38
- package/dist/esm/bin/app-manifest.js.map +0 -1
- package/dist/esm/bin/app-pack.js +0 -51
- package/dist/esm/bin/app-pack.js.map +0 -1
- package/dist/esm/bin/app-tag.js +0 -89
- package/dist/esm/bin/app-tag.js.map +0 -1
- package/dist/esm/bin/app-upload.js +0 -109
- package/dist/esm/bin/app-upload.js.map +0 -1
- package/dist/esm/bin/helpers/load-bundle-metadata.js +0 -32
- package/dist/esm/bin/helpers/load-bundle-metadata.js.map +0 -1
- package/dist/esm/bin/helpers/load-vite-config.js +0 -55
- package/dist/esm/bin/helpers/load-vite-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-app-config.js +0 -46
- package/dist/esm/bin/helpers/resolve-app-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-app-manifest.js +0 -55
- package/dist/esm/bin/helpers/resolve-app-manifest.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-portal-config.js +0 -46
- package/dist/esm/bin/helpers/resolve-portal-config.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-portal-manifest.js +0 -55
- package/dist/esm/bin/helpers/resolve-portal-manifest.js.map +0 -1
- package/dist/esm/bin/helpers/resolve-project-package.js +0 -32
- package/dist/esm/bin/helpers/resolve-project-package.js.map +0 -1
- package/dist/esm/bin/index.js +0 -12
- package/dist/esm/bin/index.js.map +0 -1
- package/dist/esm/bin/pack.js +0 -70
- package/dist/esm/bin/pack.js.map +0 -1
- package/dist/esm/bin/portal-build.js +0 -40
- package/dist/esm/bin/portal-build.js.map +0 -1
- package/dist/esm/bin/portal-config-publish.js +0 -74
- package/dist/esm/bin/portal-config-publish.js.map +0 -1
- package/dist/esm/bin/portal-config.js +0 -48
- package/dist/esm/bin/portal-config.js.map +0 -1
- package/dist/esm/bin/portal-dev.js +0 -61
- package/dist/esm/bin/portal-dev.js.map +0 -1
- package/dist/esm/bin/portal-manifest.js +0 -38
- package/dist/esm/bin/portal-manifest.js.map +0 -1
- package/dist/esm/bin/portal-pack.js +0 -60
- package/dist/esm/bin/portal-pack.js.map +0 -1
- package/dist/esm/bin/portal-tag.js +0 -96
- package/dist/esm/bin/portal-tag.js.map +0 -1
- package/dist/esm/bin/portal-upload.js +0 -99
- package/dist/esm/bin/portal-upload.js.map +0 -1
- package/dist/esm/bin/utils/ConsoleLogger.js +0 -112
- package/dist/esm/bin/utils/ConsoleLogger.js.map +0 -1
- package/dist/esm/bin/utils/create-dev-server.js +0 -167
- package/dist/esm/bin/utils/create-dev-server.js.map +0 -1
- package/dist/esm/bin/utils/format.js +0 -47
- package/dist/esm/bin/utils/format.js.map +0 -1
- package/dist/esm/bin/utils/index.js +0 -5
- package/dist/esm/bin/utils/index.js.map +0 -1
- package/dist/esm/bin/utils/spinner.js +0 -142
- package/dist/esm/bin/utils/spinner.js.map +0 -1
- package/dist/esm/cli/commands/app/alias.js +0 -42
- package/dist/esm/cli/commands/app/alias.js.map +0 -1
- package/dist/esm/cli/commands/app/build.js +0 -53
- package/dist/esm/cli/commands/app/build.js.map +0 -1
- package/dist/esm/cli/commands/app/check.js +0 -57
- package/dist/esm/cli/commands/app/check.js.map +0 -1
- package/dist/esm/cli/commands/app/config.js +0 -103
- package/dist/esm/cli/commands/app/config.js.map +0 -1
- package/dist/esm/cli/commands/app/dev.js +0 -67
- package/dist/esm/cli/commands/app/dev.js.map +0 -1
- package/dist/esm/cli/commands/app/index.js +0 -42
- package/dist/esm/cli/commands/app/index.js.map +0 -1
- package/dist/esm/cli/commands/app/manifest.js +0 -82
- package/dist/esm/cli/commands/app/manifest.js.map +0 -1
- package/dist/esm/cli/commands/app/pack.js +0 -71
- package/dist/esm/cli/commands/app/pack.js.map +0 -1
- package/dist/esm/cli/commands/app/publish.js +0 -130
- package/dist/esm/cli/commands/app/publish.js.map +0 -1
- package/dist/esm/cli/commands/app/tag.js +0 -113
- package/dist/esm/cli/commands/app/tag.js.map +0 -1
- package/dist/esm/cli/commands/app/upload.js +0 -85
- package/dist/esm/cli/commands/app/upload.js.map +0 -1
- package/dist/esm/cli/commands/auth/index.js +0 -22
- package/dist/esm/cli/commands/auth/index.js.map +0 -1
- package/dist/esm/cli/commands/auth/login.js +0 -72
- package/dist/esm/cli/commands/auth/login.js.map +0 -1
- package/dist/esm/cli/commands/auth/logout.js +0 -58
- package/dist/esm/cli/commands/auth/logout.js.map +0 -1
- package/dist/esm/cli/commands/auth/token.js +0 -78
- package/dist/esm/cli/commands/auth/token.js.map +0 -1
- package/dist/esm/cli/commands/disco/index.js +0 -6
- package/dist/esm/cli/commands/disco/index.js.map +0 -1
- package/dist/esm/cli/commands/disco/resolve.js +0 -58
- package/dist/esm/cli/commands/disco/resolve.js.map +0 -1
- package/dist/esm/cli/commands/index.js +0 -11
- package/dist/esm/cli/commands/index.js.map +0 -1
- package/dist/esm/cli/commands/portal/build.js +0 -27
- package/dist/esm/cli/commands/portal/build.js.map +0 -1
- package/dist/esm/cli/commands/portal/config.js +0 -101
- package/dist/esm/cli/commands/portal/config.js.map +0 -1
- package/dist/esm/cli/commands/portal/dev.js +0 -27
- package/dist/esm/cli/commands/portal/dev.js.map +0 -1
- package/dist/esm/cli/commands/portal/index.js +0 -23
- package/dist/esm/cli/commands/portal/index.js.map +0 -1
- package/dist/esm/cli/commands/portal/manifest.js +0 -48
- package/dist/esm/cli/commands/portal/manifest.js.map +0 -1
- package/dist/esm/cli/commands/portal/pack.js +0 -40
- package/dist/esm/cli/commands/portal/pack.js.map +0 -1
- package/dist/esm/cli/commands/portal/publish.js +0 -76
- package/dist/esm/cli/commands/portal/publish.js.map +0 -1
- package/dist/esm/cli/commands/portal/schema.js +0 -70
- package/dist/esm/cli/commands/portal/schema.js.map +0 -1
- package/dist/esm/cli/commands/portal/tag.js +0 -73
- package/dist/esm/cli/commands/portal/tag.js.map +0 -1
- package/dist/esm/cli/commands/portal/upload.js +0 -41
- package/dist/esm/cli/commands/portal/upload.js.map +0 -1
- package/dist/esm/cli/main.js +0 -52
- package/dist/esm/cli/main.js.map +0 -1
- package/dist/esm/cli/options/auth.js +0 -96
- package/dist/esm/cli/options/auth.js.map +0 -1
- package/dist/esm/cli/options/env.js +0 -30
- package/dist/esm/cli/options/env.js.map +0 -1
- package/dist/esm/lib/framework.node.js +0 -104
- package/dist/esm/lib/framework.node.js.map +0 -1
- package/dist/esm/version.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/types/{lib → bin}/framework.node.d.ts +0 -0
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Migration Guide: v10 to v11 CLI Command Changes
|
|
3
|
-
description: >
|
|
4
|
-
Comprehensive guide to migrating CLI commands from v10 to v11 of the Fusion Framework, including deprecated commands, new command names, authentication changes, and best practices for updating scripts and pipelines.
|
|
5
|
-
category: cli
|
|
6
|
-
related:
|
|
7
|
-
- ./auth.md
|
|
8
|
-
- ./application.md
|
|
9
|
-
tags:
|
|
10
|
-
- cli
|
|
11
|
-
- fusion-framework
|
|
12
|
-
- migration
|
|
13
|
-
- breaking-changes
|
|
14
|
-
- upgrade
|
|
15
|
-
keywords:
|
|
16
|
-
- fusion framework
|
|
17
|
-
- cli commands
|
|
18
|
-
- v10 to v11 migration
|
|
19
|
-
- deprecated commands
|
|
20
|
-
- authentication changes
|
|
21
|
-
- service discovery
|
|
22
|
-
- environment configuration
|
|
23
|
-
- upgrade guide
|
|
24
|
-
- best practices
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
# Migration Guide: v10 to v11 CLI Command Changes
|
|
28
|
-
|
|
29
1
|
With v11, we switched to using the Fusion Framework itself for CLI operations. This change was made to reduce maintenance and improve consistency by reusing the same framework modules (such as service-discovery, authentication, and HTTP) in both Node.js and browser environments. By leveraging the Fusion Framework directly, CLI features and integrations stay up-to-date and benefit from shared improvements across the ecosystem.
|
|
30
2
|
|
|
31
3
|
## Why This Matters
|
|
@@ -33,11 +5,23 @@ With v11, we switched to using the Fusion Framework itself for CLI operations. T
|
|
|
33
5
|
- **Reduced duplication:** By reusing core modules, bug fixes and new features are shared between CLI and Framework code.
|
|
34
6
|
- **Performance:** The framework is now initialized only when needed (e.g., for HTTP calls or authentication), improving startup time and resource usage.
|
|
35
7
|
|
|
36
|
-
##
|
|
8
|
+
## Package Changes
|
|
9
|
+
|
|
10
|
+
- The CLI will now resolve source entrypoint by default from `src/(index.tsx|ts)|(main.tsx|ts)` (unless configured otherwise).
|
|
11
|
+
- The CLI will resolve the output entrypoint by `main`|`module` in `package.json`.
|
|
12
|
+
- This is to enable serving the application in preview mode (`import.meta.resolve('PACKAGE_NAME')`).
|
|
13
|
+
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> Ensure your application is compatible with these changes before upgrading.
|
|
16
|
+
> ```json
|
|
17
|
+
> {
|
|
18
|
+
> "main": "dist/index.js",
|
|
19
|
+
> }
|
|
20
|
+
> ```
|
|
37
21
|
|
|
38
|
-
|
|
22
|
+
### Deprecated App Command Aliases
|
|
39
23
|
|
|
40
|
-
The following
|
|
24
|
+
The following `fusion-framework-cli app` commands have been renamed:
|
|
41
25
|
|
|
42
26
|
| Old Command | New Command |
|
|
43
27
|
| -------------- | ----------- |
|
|
@@ -46,29 +30,41 @@ The following table lists the old commands and their new equivalents:
|
|
|
46
30
|
| build-manifest | manifest |
|
|
47
31
|
| build-publish | publish |
|
|
48
32
|
|
|
49
|
-
When using a deprecated command, the CLI will display a warning message and guide you to use the new command. Deprecated options such as `--service` are no longer supported; use `--env` instead.
|
|
50
|
-
|
|
51
33
|
> [!WARNING]
|
|
52
|
-
>
|
|
34
|
+
> **Deprecated commands will be removed in the next major release.** While they continue to work with warning messages, please migrate to the new commands immediately.
|
|
53
35
|
|
|
54
|
-
###
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
- The deprecated commands are maintained for backward compatibility during the transition to v11, but will be removed in the next major release. Please migrate to the new commands as soon as possible.
|
|
36
|
+
### Option Changes
|
|
37
|
+
- **Removed:** `--service` option
|
|
38
|
+
- **Use instead:** `--env` for environment selection
|
|
58
39
|
|
|
59
40
|
## Authentication Changes
|
|
60
|
-
|
|
61
|
-
|
|
41
|
+
|
|
42
|
+
Authentication behavior has been updated to improve security and consistency:
|
|
43
|
+
|
|
44
|
+
- **For CI/CD and automation:** Continue using the `FUSION_TOKEN` environment variable
|
|
45
|
+
- **For local development:** Use interactive authentication:
|
|
62
46
|
```sh
|
|
63
47
|
fusion-framework-cli auth login
|
|
64
48
|
```
|
|
65
|
-
before executing any commands.
|
|
66
49
|
|
|
67
|
-
##
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
50
|
+
## Migration Checklist
|
|
51
|
+
|
|
52
|
+
When upgrading from v10 to v11, ensure you:
|
|
53
|
+
|
|
54
|
+
- **Update command names** in all scripts and CI/CD pipelines:
|
|
55
|
+
- `build-pack` → `pack`
|
|
56
|
+
- `build-upload` → `upload`
|
|
57
|
+
- `build-manifest` → `manifest`
|
|
58
|
+
- `build-publish` → `publish`
|
|
59
|
+
- **Replace `--service` with `--env`** for environment selection
|
|
60
|
+
- **Update local development workflow** to use `fusion-framework-cli auth login`
|
|
61
|
+
- **Review custom integrations** that may depend on CLI startup behavior (now on-demand)
|
|
62
|
+
- **Update documentation** and team guidelines with new command syntax
|
|
63
|
+
|
|
64
|
+
## Getting Help
|
|
72
65
|
|
|
73
|
-
For
|
|
66
|
+
For additional information:
|
|
67
|
+
- Run `pnpm fusion-framework-cli app --help` to see current command options
|
|
68
|
+
- Check the CLI release notes for detailed changes
|
|
69
|
+
- Review related documentation: [Authentication](./auth.md) and [Application Commands](./application.md)
|
|
74
70
|
|
package/docs/portal.md
CHANGED
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Developing Portals with Fusion Framework CLI
|
|
3
|
-
description: >
|
|
4
|
-
Guide to building, configuring, and deploying portal templates using the Fusion Framework CLI. Includes setup, essential commands, configuration, troubleshooting, and best practices for portal development.
|
|
5
|
-
category: cli
|
|
6
|
-
related:
|
|
7
|
-
- ./auth.md
|
|
8
|
-
tags:
|
|
9
|
-
- portal-development
|
|
10
|
-
- configuration
|
|
11
|
-
- deployment
|
|
12
|
-
- commands
|
|
13
|
-
- troubleshooting
|
|
14
|
-
- best-practices
|
|
15
|
-
keywords:
|
|
16
|
-
- fusion-framework-cli portal
|
|
17
|
-
- fusion portal dev
|
|
18
|
-
- fusion portal build
|
|
19
|
-
- fusion portal pack
|
|
20
|
-
- fusion portal upload
|
|
21
|
-
- fusion portal tag
|
|
22
|
-
- fusion portal manifest
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
# Fusion Framework CLI: Portal Template Development Guide
|
|
26
|
-
|
|
27
|
-
> **Table of Contents**
|
|
28
|
-
> - [Getting Started](#getting-started)
|
|
29
|
-
> - [Portal Manifest](#portal-manifest)
|
|
30
|
-
> - [Commands](#commands)
|
|
31
|
-
> - [Troubleshooting & FAQ](#troubleshooting--faq)
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
1
|
The Fusion Framework CLI enables you to build, configure, and deploy **portal templates** for the Fusion ecosystem. These commands are specifically for creating, building, and managing portal templates—not for managing actual portals.
|
|
36
2
|
|
|
37
3
|
> **What is a Portal Template?**
|
|
@@ -44,7 +10,7 @@ This guide covers the essential commands and best practices for developing and m
|
|
|
44
10
|
|
|
45
11
|
## Getting Started
|
|
46
12
|
|
|
47
|
-
###
|
|
13
|
+
### Install the CLI
|
|
48
14
|
|
|
49
15
|
```sh
|
|
50
16
|
pnpm add -D @equinor/fusion-framework-cli
|
|
@@ -52,7 +18,7 @@ pnpm add -D @equinor/fusion-framework-cli
|
|
|
52
18
|
npm install --save-dev @equinor/fusion-framework-cli
|
|
53
19
|
```
|
|
54
20
|
|
|
55
|
-
###
|
|
21
|
+
### Scaffold a New Portal
|
|
56
22
|
|
|
57
23
|
Create a new directory for your portal and initialize your project:
|
|
58
24
|
|
|
@@ -61,7 +27,7 @@ mkdir my-fusion-portal && cd my-fusion-portal
|
|
|
61
27
|
pnpm init
|
|
62
28
|
```
|
|
63
29
|
|
|
64
|
-
###
|
|
30
|
+
### Create Required Files
|
|
65
31
|
|
|
66
32
|
- `portal.manifest.ts`: Defines your portal's metadata and configuration.
|
|
67
33
|
- `portal.schema.ts` (optional): Defines the schema for portal configuration.
|
|
@@ -275,4 +241,4 @@ pnpm fusion-framework-cli portal schema portal.schema.prod.ts --debug
|
|
|
275
241
|
|
|
276
242
|
---
|
|
277
243
|
|
|
278
|
-
For advanced configuration and authentication, see [Authentication](
|
|
244
|
+
For advanced configuration and authentication, see [Authentication](auth.md).
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "11.0.
|
|
4
|
-
"homepage": "https://github.com/equinor/fusion-framework",
|
|
3
|
+
"version": "11.0.1",
|
|
5
4
|
"keywords": [
|
|
6
5
|
"Fusion",
|
|
7
6
|
"Fusion Framework",
|
|
@@ -12,12 +11,17 @@
|
|
|
12
11
|
"publishConfig": {
|
|
13
12
|
"access": "public"
|
|
14
13
|
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20.0.0"
|
|
16
|
+
},
|
|
15
17
|
"files": [
|
|
16
|
-
"bin",
|
|
17
|
-
"dist",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"./bin",
|
|
19
|
+
"./dist/esm/lib",
|
|
20
|
+
"./dist/esm/version.js",
|
|
21
|
+
"./dist/types",
|
|
22
|
+
"./docs",
|
|
23
|
+
"./CHANGELOG.md",
|
|
24
|
+
"./README.md"
|
|
21
25
|
],
|
|
22
26
|
"type": "module",
|
|
23
27
|
"bin": {
|
|
@@ -45,7 +49,43 @@
|
|
|
45
49
|
},
|
|
46
50
|
"./bin": {
|
|
47
51
|
"types": "./dist/types/bin/index.d.ts",
|
|
48
|
-
"import": "./bin/build/bin.
|
|
52
|
+
"import": "./bin/build/bin.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./lib": {
|
|
55
|
+
"types": "./dist/types/lib/index.d.ts",
|
|
56
|
+
"import": "./dist/esm/lib/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./utils": {
|
|
59
|
+
"types": "./dist/types/lib/utils/index.d.ts",
|
|
60
|
+
"import": "./dist/esm/lib/utils/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./package.json": "./package.json",
|
|
63
|
+
"./README.md": "./README.md",
|
|
64
|
+
"./CHANGELOG.md": "./CHANGELOG.md"
|
|
65
|
+
},
|
|
66
|
+
"typesVersions": {
|
|
67
|
+
"*": {
|
|
68
|
+
".": [
|
|
69
|
+
"dist/types/lib/index.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"app": [
|
|
72
|
+
"dist/types/lib/app/index.d.ts"
|
|
73
|
+
],
|
|
74
|
+
"portal": [
|
|
75
|
+
"dist/types/lib/portal/index.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"dev-server": [
|
|
78
|
+
"dist/types/lib/dev-server.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"bin": [
|
|
81
|
+
"dist/types/bin/index.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"lib": [
|
|
84
|
+
"dist/types/lib/index.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"utils": [
|
|
87
|
+
"dist/types/lib/utils/index.d.ts"
|
|
88
|
+
]
|
|
49
89
|
}
|
|
50
90
|
},
|
|
51
91
|
"repository": {
|
|
@@ -54,46 +94,42 @@
|
|
|
54
94
|
"directory": "packages/cli"
|
|
55
95
|
},
|
|
56
96
|
"dependencies": {
|
|
57
|
-
"adm-zip": "^0.5.10",
|
|
58
97
|
"commander": "^13.0.0",
|
|
59
|
-
"
|
|
98
|
+
"deepmerge": "^4.3.1",
|
|
60
99
|
"ora": "^8.0.1",
|
|
61
|
-
"vite": "^6.3.5",
|
|
62
|
-
"chalk": "^5.3.0",
|
|
63
100
|
"read-package-up": "^11.0.0",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"@equinor/fusion-framework-dev-
|
|
67
|
-
"@equinor/fusion-
|
|
101
|
+
"vite": "^6.3.5",
|
|
102
|
+
"zod": "^3.25.76",
|
|
103
|
+
"@equinor/fusion-framework-dev-portal": "^1.0.1",
|
|
104
|
+
"@equinor/fusion-framework-dev-server": "^1.0.0",
|
|
105
|
+
"@equinor/fusion-imports": "^1.1.1",
|
|
106
|
+
"@equinor/fusion-framework-module-msal-node": "^1.0.1"
|
|
68
107
|
},
|
|
69
108
|
"devDependencies": {
|
|
70
|
-
"ajv": "^8.17.1",
|
|
71
|
-
"pretty-bytes": "^7.0.0",
|
|
72
|
-
"is-ci": "^4.1.0",
|
|
73
|
-
"open": "^10.1.1",
|
|
74
|
-
"lodash.mergewith": "^4.6.2",
|
|
75
|
-
"type-fest": "^4.40.0",
|
|
76
|
-
"rollup": "^4.39.0",
|
|
77
109
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
78
110
|
"@rollup/plugin-json": "^6.1.0",
|
|
79
111
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
112
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
80
113
|
"@types/adm-zip": "^0.5.0",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
114
|
+
"adm-zip": "^0.5.10",
|
|
115
|
+
"ajv": "^8.17.1",
|
|
116
|
+
"chalk": "^5.6.0",
|
|
117
|
+
"is-ci": "^4.1.0",
|
|
118
|
+
"open": "^10.1.1",
|
|
119
|
+
"pretty-bytes": "^7.0.0",
|
|
120
|
+
"rollup": "^4.46.3",
|
|
121
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
83
122
|
"rxjs": "^7.8.1",
|
|
123
|
+
"type-fest": "^4.40.0",
|
|
84
124
|
"typescript": "^5.8.2",
|
|
85
|
-
"@equinor/fusion-framework-module
|
|
86
|
-
"@equinor/fusion-framework-module-
|
|
87
|
-
"@equinor/fusion-framework-module": "^
|
|
88
|
-
"@equinor/fusion-framework-module-
|
|
89
|
-
"@equinor/fusion-framework-module-service-discovery": "^8.0.15-next.2"
|
|
125
|
+
"@equinor/fusion-framework-module": "^5.0.0",
|
|
126
|
+
"@equinor/fusion-framework-module-app": "^6.1.17",
|
|
127
|
+
"@equinor/fusion-framework-module-http": "^6.3.4",
|
|
128
|
+
"@equinor/fusion-framework-module-service-discovery": "^8.0.18"
|
|
90
129
|
},
|
|
91
130
|
"peerDependenciesMeta": {
|
|
92
131
|
"typescript": {
|
|
93
132
|
"optional": true
|
|
94
|
-
},
|
|
95
|
-
"keytar": {
|
|
96
|
-
"optional": true
|
|
97
133
|
}
|
|
98
134
|
},
|
|
99
135
|
"scripts": {
|
package/bin/build/bin.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { b as buildApplication, c as buildPortal, a as bundleApp, d as bundlePortal, g as generateApplicationConfig, e as generatePortalConfig, l as loadPortalManifest, h as pack, p as publishAppConfig, f as publishPortalConfig, s as startAppDevServer } from './portal-config-publish-ezU_DFki.js';
|
|
2
|
-
import 'vite';
|
|
3
|
-
import 'chalk';
|
|
4
|
-
import '@equinor/fusion-imports';
|
|
5
|
-
import '@equinor/fusion-framework-dev-server';
|
|
6
|
-
import 'node:fs';
|
|
7
|
-
import 'node:fs/promises';
|
|
8
|
-
import 'node:path';
|
|
9
|
-
import 'read-package-up';
|
|
10
|
-
import 'node:url';
|
|
11
|
-
import 'node:assert';
|
|
12
|
-
import 'node:child_process';
|
|
13
|
-
import 'zod';
|
|
14
|
-
import 'adm-zip';
|
|
15
|
-
import 'http';
|
|
16
|
-
import 'https';
|
|
17
|
-
import 'crypto';
|
|
18
|
-
import 'buffer';
|
|
19
|
-
import 'stream';
|
|
20
|
-
import 'util';
|
|
21
|
-
import 'fs';
|
|
22
|
-
import 'path';
|
|
23
|
-
import 'node:http';
|
|
24
|
-
import 'node:process';
|
|
25
|
-
import 'node:buffer';
|
|
26
|
-
import 'node:util';
|
|
27
|
-
import 'node:os';
|
|
28
|
-
import 'ora';
|