@equinor/fusion-framework-cli 12.3.0 → 12.3.2
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 +52 -0
- package/bin/build/bin.mjs +1 -1
- package/bin/build/cli.mjs +1 -1
- package/dist/esm/lib/utils/resolve-annotations.js +11 -2
- package/dist/esm/lib/utils/resolve-annotations.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bin/app-check.d.ts +1 -1
- package/dist/types/bin/app-dev.d.ts +4 -0
- package/dist/types/bin/app-upload.d.ts +1 -1
- package/dist/types/bin/utils/defaultHeaders.d.ts +13 -0
- package/dist/types/bin/utils/index.d.ts +1 -0
- package/dist/types/cli/commands/app/dev.d.ts +2 -0
- package/dist/types/lib/utils/resolve-annotations.d.ts +3 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolveGithubAnnotations } from './resolve-github-annotations.js';
|
|
2
2
|
import { resolveDevopsAnnotations } from './resolve-devops-annotations.js';
|
|
3
|
+
import { version } from '../../version.js';
|
|
3
4
|
/**
|
|
4
5
|
* Resolves CI/CD environment-specific annotation variables.
|
|
5
6
|
*
|
|
@@ -11,11 +12,18 @@ import { resolveDevopsAnnotations } from './resolve-devops-annotations.js';
|
|
|
11
12
|
* If no known environment is detected, returns an empty object.
|
|
12
13
|
*/
|
|
13
14
|
export const resolveAnnotations = () => {
|
|
15
|
+
// Required annotations for manifest
|
|
16
|
+
const requiredAnnotations = {
|
|
17
|
+
cliVersion: version,
|
|
18
|
+
source: 'local',
|
|
19
|
+
reason: 'manual',
|
|
20
|
+
};
|
|
14
21
|
// Check if running in GitHub Actions environment
|
|
15
22
|
// If so, delegate to the GitHub-specific annotation resolver
|
|
16
23
|
if (process.env.GITHUB_ACTIONS) {
|
|
17
24
|
const annotation = resolveGithubAnnotations();
|
|
18
25
|
const baseAnnotations = {
|
|
26
|
+
...requiredAnnotations,
|
|
19
27
|
source: 'github',
|
|
20
28
|
reason: annotation.eventName,
|
|
21
29
|
workflow: annotation.workflow,
|
|
@@ -53,6 +61,7 @@ export const resolveAnnotations = () => {
|
|
|
53
61
|
if (process.env.SYSTEM_TEAMPROJECT) {
|
|
54
62
|
const annotations = resolveDevopsAnnotations();
|
|
55
63
|
return {
|
|
64
|
+
...requiredAnnotations,
|
|
56
65
|
source: 'azure_devops',
|
|
57
66
|
reason: annotations.reason,
|
|
58
67
|
repository: annotations.repository,
|
|
@@ -65,7 +74,7 @@ export const resolveAnnotations = () => {
|
|
|
65
74
|
};
|
|
66
75
|
}
|
|
67
76
|
// Fallback: No known CI/CD environment detected
|
|
68
|
-
// Return
|
|
69
|
-
return
|
|
77
|
+
// Return required annotations indicating local build
|
|
78
|
+
return requiredAnnotations;
|
|
70
79
|
};
|
|
71
80
|
//# sourceMappingURL=resolve-annotations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-annotations.js","sourceRoot":"","sources":["../../../../src/lib/utils/resolve-annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve-annotations.js","sourceRoot":"","sources":["../../../../src/lib/utils/resolve-annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAuC3C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAuB,EAAE;IACzD,oCAAoC;IACpC,MAAM,mBAAmB,GAAG;QAC1B,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,QAAQ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C,QAAQ;gBAChC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ;aACR,CAAC;QACjC,CAAC;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,+CAA+C;IAC/C,mEAAmE;IACnE,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,wBAAwB,EAAE,CAAC;QAC/C,OAAO;YACL,GAAG,mBAAmB;YACtB,MAAM,EAAE,cAAc;YACtB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,UAAU,EAAE,WAAW,CAAC,UAAU;YAClC,KAAK,EAAE,WAAW,CAAC,KAAK;YACxB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,KAAK,EAAE,WAAW,CAAC,KAAK;YACxB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,QAAQ,EAAE,WAAW,CAAC,QAAQ;YAC9B,QAAQ,EAAE,WAAW,CAAC,YAAY;SACN,CAAC;IACjC,CAAC;IAED,gDAAgD;IAChD,qDAAqD;IACrD,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC"}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FusionEnv, type FusionFrameworkSettings } from './framework.node.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type ConsoleLogger } from './utils/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Options for checking application registration in the app store.
|
|
5
5
|
* @public
|
|
@@ -30,6 +30,10 @@ export interface StartAppDevServerOptions {
|
|
|
30
30
|
* Port for the development server (optional, defaults to 3000).
|
|
31
31
|
*/
|
|
32
32
|
port?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Host for the development server (optional, defaults to 'localhost').
|
|
35
|
+
*/
|
|
36
|
+
host?: string;
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
35
39
|
* Starts the application development server for local development.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdmZip from 'adm-zip';
|
|
2
2
|
import type { FusionFramework } from './framework.node.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type ConsoleLogger } from './utils/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Options for uploading an application bundle to the app service.
|
|
6
6
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default headers for Fusion Framework CLI requests.
|
|
3
|
+
* @type {Object}
|
|
4
|
+
* @property {string} 'X-Fusion-CLI-Name' - The name of the Fusion Framework CLI.
|
|
5
|
+
* @property {string} 'X-Fusion-CLI-Version' - The version of the Fusion Framework CLI.
|
|
6
|
+
* @property {string} 'User-Agent' - The user agent for the Fusion Framework CLI and its current version.
|
|
7
|
+
*/
|
|
8
|
+
export declare const defaultHeaders: {
|
|
9
|
+
'X-Fusion-CLI-Name': string;
|
|
10
|
+
'X-Fusion-CLI-Version': string;
|
|
11
|
+
'User-Agent': string;
|
|
12
|
+
};
|
|
13
|
+
export default defaultHeaders;
|
|
@@ -2,3 +2,4 @@ export { formatPath, formatByteSize, chalk } from './format.js';
|
|
|
2
2
|
export { Spinner } from './spinner.js';
|
|
3
3
|
export { ConsoleLogger } from './ConsoleLogger.js';
|
|
4
4
|
export { createDevServerConfig, createDevServer, type CreateDevServerOptions, } from './create-dev-server.js';
|
|
5
|
+
export { defaultHeaders } from './defaultHeaders.js';
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* --config <path> Path to the app config file (app.config[.env]?.[ts,js,json])
|
|
19
19
|
* --env <environment> Runtime environment for the dev server (default: local)
|
|
20
20
|
* --port <port> Port for the development server (default: 3000)
|
|
21
|
+
* --host <host> Host for the development server (default: localhost)
|
|
21
22
|
*
|
|
22
23
|
* Configuration:
|
|
23
24
|
* dev-server.config.ts Optional configuration file for API mocking, service discovery,
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
* $ ffc app dev
|
|
28
29
|
* $ ffc app dev --port 4000
|
|
29
30
|
* $ ffc app dev --manifest ./app.manifest.local.ts --config ./app.config.ts
|
|
31
|
+
* $ ffc app dev --host 0.0.0.0
|
|
30
32
|
*
|
|
31
33
|
* @see startAppDevServer for implementation details
|
|
32
34
|
* @see dev-server-config.md for configuration options
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Represents metadata annotations related to a release process.
|
|
3
3
|
*
|
|
4
|
+
* @property cliVersion - The version of the CLI that triggered the release.
|
|
4
5
|
* @property source - The origin or system that triggered the release.
|
|
5
6
|
* @property reason - The reason or context for the release.
|
|
6
7
|
* @property [repository] - The repository associated with the release, if applicable.
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
* @property [tag] - The tag name associated with the release.
|
|
15
16
|
*/
|
|
16
17
|
export type ReleaseAnnotations = {
|
|
18
|
+
cliVersion: string;
|
|
17
19
|
source: string;
|
|
18
20
|
reason: string;
|
|
19
21
|
actor?: string;
|
|
@@ -42,4 +44,4 @@ export type ReleaseAnnotations = {
|
|
|
42
44
|
* @returns {Record<string, string>} An object containing annotation variables for the detected environment.
|
|
43
45
|
* If no known environment is detected, returns an empty object.
|
|
44
46
|
*/
|
|
45
|
-
export declare const resolveAnnotations: () => ReleaseAnnotations
|
|
47
|
+
export declare const resolveAnnotations: () => ReleaseAnnotations;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "12.3.
|
|
1
|
+
export declare const version = "12.3.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"@types/inquirer": "^9.0.9",
|
|
98
98
|
"commander": "^14.0.1",
|
|
99
99
|
"deepmerge": "^4.3.1",
|
|
100
|
+
"is-mergeable-object": "^1.1.1",
|
|
100
101
|
"execa": "^9.6.0",
|
|
101
102
|
"inquirer": "^12.9.6",
|
|
102
103
|
"is-path-inside": "^4.0.0",
|
|
@@ -106,10 +107,10 @@
|
|
|
106
107
|
"vite": "^7.1.9",
|
|
107
108
|
"vite-tsconfig-paths": "^5.1.4",
|
|
108
109
|
"zod": "^4.1.8",
|
|
109
|
-
"@equinor/fusion-framework-dev-portal": "1.2.
|
|
110
|
+
"@equinor/fusion-framework-dev-portal": "1.2.2",
|
|
111
|
+
"@equinor/fusion-framework-dev-server": "1.1.5",
|
|
110
112
|
"@equinor/fusion-framework-module-msal-node": "1.0.7",
|
|
111
|
-
"@equinor/fusion-imports": "1.1.4"
|
|
112
|
-
"@equinor/fusion-framework-dev-server": "1.1.5"
|
|
113
|
+
"@equinor/fusion-imports": "1.1.4"
|
|
113
114
|
},
|
|
114
115
|
"devDependencies": {
|
|
115
116
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
@@ -132,10 +133,10 @@
|
|
|
132
133
|
"type-fest": "^5.0.0",
|
|
133
134
|
"typescript": "^5.8.2",
|
|
134
135
|
"vitest": "^3.2.4",
|
|
136
|
+
"@equinor/fusion-framework-module": "5.0.3",
|
|
135
137
|
"@equinor/fusion-framework-module-app": "7.0.2",
|
|
136
138
|
"@equinor/fusion-framework-module-http": "7.0.2",
|
|
137
|
-
"@equinor/fusion-framework-module-service-discovery": "9.0.2"
|
|
138
|
-
"@equinor/fusion-framework-module": "5.0.3"
|
|
139
|
+
"@equinor/fusion-framework-module-service-discovery": "9.0.2"
|
|
139
140
|
},
|
|
140
141
|
"peerDependenciesMeta": {
|
|
141
142
|
"typescript": {
|