@equinor/fusion-framework-cli 12.3.9 → 12.4.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 +72 -0
- package/bin/build/bin.mjs +1 -1
- package/bin/build/cli.mjs +3 -3
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/index.d.ts +1 -1
- package/dist/types/bin/portal-tag.d.ts +3 -17
- package/dist/types/cli/commands/portal/publish.d.ts +1 -1
- package/dist/types/cli/commands/portal/tag.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/portal.md +7 -5
- package/package.json +5 -5
package/dist/esm/version.js
CHANGED
|
@@ -14,7 +14,7 @@ export { loadPortalManifest } from './portal-manifest.js';
|
|
|
14
14
|
export { generatePortalConfig } from './portal-config.js';
|
|
15
15
|
export { publishPortalConfig } from './portal-config-publish.js';
|
|
16
16
|
export { uploadPortalBundle, type UploadPortalOptions } from './portal-upload.js';
|
|
17
|
-
export { tagPortal
|
|
17
|
+
export { tagPortal } from './portal-tag.js';
|
|
18
18
|
export { pack } from './pack.js';
|
|
19
19
|
export { ConsoleLogger } from './utils/ConsoleLogger.js';
|
|
20
20
|
export { initializeFramework, resolveDefaultEnv, type FusionFramework, type FusionFrameworkSettings, FusionEnv, } from './framework.node.js';
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import type { FusionFramework } from './framework.node.js';
|
|
2
2
|
import { type ConsoleLogger } from './utils/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Allowed tags for portal versions in the portal service.
|
|
5
|
-
*
|
|
6
|
-
* - `latest`: Marks the most recent stable version of the portal template.
|
|
7
|
-
* - `preview`: Marks a pre-release or preview version for testing or review.
|
|
8
|
-
*
|
|
9
|
-
* Used by {@link tagPortal} to validate and apply version tags.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare enum AllowedTags {
|
|
14
|
-
Latest = "latest",
|
|
15
|
-
Preview = "preview"
|
|
16
|
-
}
|
|
17
3
|
/**
|
|
18
4
|
* Options for tagging a portal template version in the portal service.
|
|
19
5
|
*
|
|
@@ -21,7 +7,7 @@ export declare enum AllowedTags {
|
|
|
21
7
|
* {@link tagPortal} function, including the tag type, portal name,
|
|
22
8
|
* version, framework instance, and logger.
|
|
23
9
|
*
|
|
24
|
-
* @property tag - The tag to apply to the portal version (
|
|
10
|
+
* @property tag - The tag to apply to the portal version (any string value).
|
|
25
11
|
* @property name - The unique name identifying the portal template.
|
|
26
12
|
* @property version - The version of the portal template to tag.
|
|
27
13
|
* @property framework - The FusionFramework instance used for service discovery and requests.
|
|
@@ -30,14 +16,14 @@ export declare enum AllowedTags {
|
|
|
30
16
|
* @public
|
|
31
17
|
*/
|
|
32
18
|
export type TagPortalOptions = {
|
|
33
|
-
tag:
|
|
19
|
+
tag: string;
|
|
34
20
|
name: string;
|
|
35
21
|
version: string;
|
|
36
22
|
framework: FusionFramework;
|
|
37
23
|
log?: ConsoleLogger | null;
|
|
38
24
|
};
|
|
39
25
|
/**
|
|
40
|
-
* Tags a portal template version in the portal service with a specified tag
|
|
26
|
+
* Tags a portal template version in the portal service with a specified tag.
|
|
41
27
|
*
|
|
42
28
|
* This function validates input, creates a client for the portal service, and sends a tag request.
|
|
43
29
|
* It provides detailed logging and error handling for common failure scenarios.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* -d, --debug Enable debug mode for verbose logging
|
|
16
16
|
* -e, --env <env> Target environment
|
|
17
17
|
* -m, --manifest Manifest file to use for bundling
|
|
18
|
-
* -t, --tag Tag to apply to the published portal
|
|
18
|
+
* -t, --tag Tag to apply to the published portal (any string value)
|
|
19
19
|
*
|
|
20
20
|
* Example:
|
|
21
21
|
* $ ffc portal publish
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* $ ffc portal tag <tag> [options]
|
|
13
13
|
*
|
|
14
14
|
* Arguments:
|
|
15
|
-
* <tag> Tag to apply (e.g., latest, preview)
|
|
15
|
+
* <tag> Tag to apply (e.g., latest, preview, next, or any string value)
|
|
16
16
|
*
|
|
17
17
|
* Options:
|
|
18
18
|
* -m, --manifest <file> Manifest file to use (optional, defaults to portal.manifest.ts)
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "12.
|
|
1
|
+
export declare const version = "12.4.0";
|
package/docs/portal.md
CHANGED
|
@@ -137,7 +137,7 @@ This command builds your portal template, uploads it to the Fusion portal regist
|
|
|
137
137
|
| `-e`, `--env` | Target environment for deployment (e.g., `ci`, `fqa`, `fprd`). | |
|
|
138
138
|
| `-m`, `--manifest` | Manifest file to use for bundling (e.g., `portal.manifest.ts`) (optional). | `portal.manifest.ts` |
|
|
139
139
|
| `-s`, `--schema` | Schema file to use for bundling (e.g., `portal.schema.ts`) (optional). | `portal.schema.ts` |
|
|
140
|
-
| `-t`, `--tag` | Tag to apply to the published portal (`latest
|
|
140
|
+
| `-t`, `--tag` | Tag to apply to the published portal (e.g., `latest`, `preview`, `next`, or any string value). | `latest` |
|
|
141
141
|
| `-d`, `--debug` | Enable debug mode for verbose logging. | `false` |
|
|
142
142
|
| `--token` | Authentication token for Fusion. | |
|
|
143
143
|
| `--tenantId` | Azure tenant ID for authentication. | |
|
|
@@ -194,10 +194,10 @@ pnpm fusion-framework-cli portal upload my-portal.zip --name my-portal
|
|
|
194
194
|
|
|
195
195
|
Tag a published portal template version in the Fusion portal registry.
|
|
196
196
|
|
|
197
|
-
| Option/Argument | Description
|
|
198
|
-
| ----------------- |
|
|
199
|
-
| `<tag>` | Tag to apply (`latest
|
|
200
|
-
| `-p, --package` | Package to tag in format name@version.
|
|
197
|
+
| Option/Argument | Description | Default / Example |
|
|
198
|
+
| ----------------- | ----------------------------------------------- | ----------------- |
|
|
199
|
+
| `<tag>` | Tag to apply (e.g., `latest`, `preview`, `next`, or any string value). | |
|
|
200
|
+
| `-p, --package` | Package to tag in format name@version. | |
|
|
201
201
|
| `-m, --manifest` | Manifest file to use. | `portal.manifest.ts` |
|
|
202
202
|
| `--token` | Authentication token for Fusion. | |
|
|
203
203
|
| `--tenantId` | Azure tenant ID for authentication. | |
|
|
@@ -212,6 +212,8 @@ pnpm fusion-framework-cli portal tag <tag> [options]
|
|
|
212
212
|
```sh
|
|
213
213
|
pnpm fusion-framework-cli portal tag latest --package my-portal@1.0.0
|
|
214
214
|
pnpm fusion-framework-cli portal tag preview --package my-portal@1.1.0-beta
|
|
215
|
+
pnpm fusion-framework-cli portal tag next --package my-portal@2.0.0-alpha
|
|
216
|
+
pnpm fusion-framework-cli portal tag stable --package my-portal@1.2.0
|
|
215
217
|
```
|
|
216
218
|
|
|
217
219
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
"vite": "^7.1.12",
|
|
108
108
|
"vite-tsconfig-paths": "^5.1.4",
|
|
109
109
|
"zod": "^4.1.8",
|
|
110
|
-
"@equinor/fusion-framework-dev-
|
|
111
|
-
"@equinor/fusion-framework-module-msal-node": "1.0.8",
|
|
110
|
+
"@equinor/fusion-framework-dev-server": "1.1.12",
|
|
112
111
|
"@equinor/fusion-imports": "1.1.6",
|
|
113
|
-
"@equinor/fusion-framework-
|
|
112
|
+
"@equinor/fusion-framework-module-msal-node": "2.0.0",
|
|
113
|
+
"@equinor/fusion-framework-dev-portal": "1.2.5"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"vitest": "^3.2.4",
|
|
136
136
|
"@equinor/fusion-framework-module": "5.0.5",
|
|
137
137
|
"@equinor/fusion-framework-module-app": "7.1.0",
|
|
138
|
-
"@equinor/fusion-framework-module-http": "7.0.
|
|
138
|
+
"@equinor/fusion-framework-module-http": "7.0.5",
|
|
139
139
|
"@equinor/fusion-framework-module-service-discovery": "9.0.4"
|
|
140
140
|
},
|
|
141
141
|
"peerDependenciesMeta": {
|