@equinor/roma-nx-plugin 0.0.5 → 0.0.6
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/executors.json +5 -0
- package/generators.json +6 -0
- package/migrations.json +5 -0
- package/package.json +5 -2
- package/src/executors/build/executor.js +31 -30
- package/src/executors/build/executor.js.map +1 -1
- package/src/executors/executor-context.d.ts +2 -0
- package/src/executors/executor-context.js +99 -0
- package/src/executors/executor-context.js.map +1 -0
- package/src/executors/portal/executor.js +8 -11
- package/src/executors/portal/executor.js.map +1 -1
- package/src/executors/publish/environment.d.ts +7 -0
- package/src/executors/publish/executor.d.ts +5 -0
- package/src/executors/publish/executor.js +24 -0
- package/src/executors/publish/executor.js.map +1 -0
- package/src/executors/publish/publish-script.d.ts +1 -0
- package/src/executors/publish/publish-script.js +63 -0
- package/src/executors/publish/publish-script.js.map +1 -0
- package/src/executors/publish/schema.d.ts +1 -0
- package/src/executors/publish/schema.json +9 -0
- package/src/executors/serve/executor.js +38 -27
- package/src/executors/serve/executor.js.map +1 -1
- package/src/executors/serve/schema.d.ts +1 -0
- package/src/executors/serve/schema.json +5 -0
- package/src/generators/app/files/fusion-manifest.json.template +1 -7
- package/src/generators/app/generator.js +64 -64
- package/src/generators/app/generator.js.map +1 -1
- package/src/generators/app/schema.d.ts +3 -1
- package/src/generators/preset/generator.d.ts +4 -0
- package/src/generators/preset/generator.js +35 -0
- package/src/generators/preset/generator.js.map +1 -0
- package/src/generators/preset/schema.d.ts +8 -0
- package/src/generators/preset/schema.json +18 -0
- package/src/migrations/add-portal-proxy-target/add-portal-proxy-target.js +14 -17
- package/src/migrations/add-portal-proxy-target/add-portal-proxy-target.js.map +1 -1
- package/src/migrations/add-publish-target/add-publish-target.d.ts +2 -0
- package/src/migrations/add-publish-target/add-publish-target.js +21 -0
- package/src/migrations/add-publish-target/add-publish-target.js.map +1 -0
package/executors.json
CHANGED
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"implementation": "./src/executors/portal/executor",
|
|
15
15
|
"schema": "./src/executors/portal/schema.json",
|
|
16
16
|
"description": "portal executor"
|
|
17
|
+
},
|
|
18
|
+
"publish": {
|
|
19
|
+
"implementation": "./src/executors/publish/executor",
|
|
20
|
+
"schema": "./src/executors/publish/schema.json",
|
|
21
|
+
"description": "Executor that allows publishing applications to the roma workbench"
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
}
|
package/generators.json
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
"factory": "./src/generators/app/generator",
|
|
5
5
|
"schema": "./src/generators/app/schema.json",
|
|
6
6
|
"description": "Generate a roma workbench compatible application"
|
|
7
|
+
},
|
|
8
|
+
"preset": {
|
|
9
|
+
"factory": "./src/generators/preset/generator",
|
|
10
|
+
"schema": "./src/generators/preset/schema.json",
|
|
11
|
+
"description": "Initialize a roma nx workspace",
|
|
12
|
+
"x-use-standalone-layout": true
|
|
7
13
|
}
|
|
8
14
|
}
|
|
9
15
|
}
|
package/migrations.json
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"version": "0.0.4",
|
|
5
5
|
"description": "Add a new target to all apps called portal",
|
|
6
6
|
"implementation": "./src/migrations/add-portal-proxy-target/add-portal-proxy-target"
|
|
7
|
+
},
|
|
8
|
+
"add-publish-target": {
|
|
9
|
+
"version": "0.0.6",
|
|
10
|
+
"description": "add-publish-target",
|
|
11
|
+
"implementation": "./src/migrations/add-publish-target/add-publish-target"
|
|
7
12
|
}
|
|
8
13
|
}
|
|
9
14
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/roma-nx-plugin",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"repository": "https://github.com/equinor/tops-roma",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@nx/devkit": "16.8.1",
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
"@nx/linter": "16.8.1",
|
|
10
10
|
"@equinor/fusion-framework-cli": "~9.2.0",
|
|
11
11
|
"nx": "16.8.1",
|
|
12
|
-
"tslib": "^2.3.0"
|
|
12
|
+
"tslib": "^2.3.0",
|
|
13
|
+
"@azure/identity": "^3.3.0",
|
|
14
|
+
"@azure/storage-blob": "^12.16.0",
|
|
15
|
+
"http-proxy": "^1.18.1"
|
|
13
16
|
},
|
|
14
17
|
"type": "commonjs",
|
|
15
18
|
"main": "./src/index.js",
|
|
@@ -36,36 +36,37 @@ function validateManifest(manifestPath) {
|
|
|
36
36
|
assertValueExists(manifest.shortName, 'shortName');
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function runExecutor(options, context) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
39
|
+
async function runExecutor(options, context) {
|
|
40
|
+
var _a;
|
|
41
|
+
(0, devkit_1.writeJsonFile)('ctx', context);
|
|
42
|
+
const projectName = context.projectName;
|
|
43
|
+
const project = context.workspace.projects[projectName];
|
|
44
|
+
const projectPath = path.resolve(context.root, project.root);
|
|
45
|
+
const buildConfig = project.targets.build;
|
|
46
|
+
const outputPath = (_a = buildConfig.outputPath) !== null && _a !== void 0 ? _a : `dist/apps/${projectName}`;
|
|
47
|
+
const build = () => {
|
|
48
|
+
validateManifest(`${projectPath}/fusion-manifest.json`);
|
|
49
|
+
return (0, run_commands_impl_1.default)({
|
|
50
|
+
commands: [
|
|
51
|
+
`fusion-framework-cli app build -o ${context.root}/${outputPath}`,
|
|
52
|
+
`fusion-framework-cli app manifest -c ${projectPath}/fusion-manifest.json -o ${context.root}/${outputPath}/manifest.json`,
|
|
53
|
+
],
|
|
54
|
+
cwd: projectPath,
|
|
55
|
+
__unparsed__: [],
|
|
56
|
+
}, context);
|
|
57
|
+
};
|
|
58
|
+
if ('watch' in options && options.watch !== false) {
|
|
59
|
+
const fusionBuild = `fusion-framework-cli app build -o ${context.root}/dist/apps/${projectName}`;
|
|
60
|
+
const watch = `nx watch --projects=${context.projectName} -- ${fusionBuild}`;
|
|
61
|
+
return build().then(() => (0, run_commands_impl_1.default)({
|
|
62
|
+
command: watch,
|
|
63
|
+
cwd: projectPath,
|
|
64
|
+
__unparsed__: [],
|
|
65
|
+
}, context));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
return build();
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
71
|
exports.default = runExecutor;
|
|
71
72
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/build/executor.ts"],"names":[],"mappings":";;;AAEA,uCAAyD;AAEzD,gHAA0E;AAC1E,mDAA6B;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/build/executor.ts"],"names":[],"mappings":";;;AAEA,uCAAyD;AAEzD,gHAA0E;AAC1E,mDAA6B;AAG7B;;;;;;GAMG;AACH,SAAS,iBAAiB,CAAI,KAAQ,EAAE,KAAa;IACnD,MAAM,SAAS,GAAG,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,CAAC,CAAC;IAChE,MAAM,UAAU,GAAW,KAAK,KAAK,EAAE,CAAC;IACxC,IAAI,SAAS,KAAK,IAAI,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,sBAAs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,IAAA,2BAAW,EAChB;YACE,QAAQ,EAAE;gBACR,qCAAqC,OAAO,CAAC,IAAI,IAAI,UAAU,EAAE;gBACjE,wCAAwC,WAAW,4BAA4B,OAAO,CAAC,IAAI,IAAI,UAAU,gBAAgB;aAC1H;YACD,GAAG,EAAE,WAAW;YAChB,YAAY,EAAE,EAAE;SACjB,EACD,OAAO,CACR,CAAC;IACJ,CAAC,CAAC;IACF,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,EAAE;QACjD,MAAM,WAAW,GAAG,qCAAqC,OAAO,CAAC,IAAI,cAAc,WAAW,EAAE,CAAC;QACjG,MAAM,KAAK,GAAG,uBAAuB,OAAO,CAAC,WAAW,OAAO,WAAW,EAAE,CAAC;QAC7E,OAAO,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CACvB,IAAA,2BAAW,EACT;YACE,OAAO,EAAE,KAAK;YACd,GAAG,EAAE,WAAW;YAChB,YAAY,EAAE,EAAE;SACjB,EACD,OAAO,CACR,CACF,CAAC;KACH;SAAM;QACL,OAAO,KAAK,EAAE,CAAC;KAChB;AACH,CAAC;AAxCD,8BAwCC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executorContext = void 0;
|
|
4
|
+
const projects = {
|
|
5
|
+
recap: {
|
|
6
|
+
name: 'recap',
|
|
7
|
+
root: 'apps/applications/recap',
|
|
8
|
+
$schema: '../../../node_modules/nx/schemas/project-schema.json',
|
|
9
|
+
sourceRoot: 'apps/applications/recap/src',
|
|
10
|
+
projectType: 'application',
|
|
11
|
+
targets: {
|
|
12
|
+
build: {
|
|
13
|
+
dependsOn: ['^build'],
|
|
14
|
+
inputs: ['production', '^production'],
|
|
15
|
+
executor: '@equinor/roma-nx-plugin:build',
|
|
16
|
+
options: {},
|
|
17
|
+
configurations: {},
|
|
18
|
+
},
|
|
19
|
+
serve: {
|
|
20
|
+
executor: '@equinor/roma-nx-plugin:serve',
|
|
21
|
+
options: {
|
|
22
|
+
port: 3001,
|
|
23
|
+
portal: 'http://localhost:3000',
|
|
24
|
+
devPortal: 'dist/libs/roma-framework/dev-portal',
|
|
25
|
+
},
|
|
26
|
+
configurations: {},
|
|
27
|
+
},
|
|
28
|
+
portal: {
|
|
29
|
+
executor: '@equinor/roma-nx-plugin:portal',
|
|
30
|
+
options: {
|
|
31
|
+
additionalProxyTargets: {
|
|
32
|
+
'/traderecap': {
|
|
33
|
+
target: 'https://api-dev.gateway.equinor.com/traderecap/v1',
|
|
34
|
+
headers: {
|
|
35
|
+
'Ocp-Apim-Subscription-Key': 'RATSCORE_SUB_KEY',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
configurations: {},
|
|
41
|
+
},
|
|
42
|
+
test: {
|
|
43
|
+
inputs: [
|
|
44
|
+
'default',
|
|
45
|
+
'^production',
|
|
46
|
+
'{workspaceRoot}/jest.preset.js',
|
|
47
|
+
'{workspaceRoot}/jest.preset.js',
|
|
48
|
+
],
|
|
49
|
+
executor: '@nx/vite:test',
|
|
50
|
+
outputs: ['{options.reportsDirectory}'],
|
|
51
|
+
options: {
|
|
52
|
+
passWithNoTests: true,
|
|
53
|
+
reportsDirectory: '../../../coverage/apps/applications/recap',
|
|
54
|
+
},
|
|
55
|
+
configurations: {},
|
|
56
|
+
},
|
|
57
|
+
lint: {
|
|
58
|
+
inputs: [
|
|
59
|
+
'default',
|
|
60
|
+
'{workspaceRoot}/.eslintrc.json',
|
|
61
|
+
'{workspaceRoot}/.eslintignore',
|
|
62
|
+
'{workspaceRoot}/eslint.config.js',
|
|
63
|
+
],
|
|
64
|
+
executor: '@nx/linter:eslint',
|
|
65
|
+
outputs: ['{options.outputFile}'],
|
|
66
|
+
options: {
|
|
67
|
+
lintFilePatterns: ['apps/applications/recap/**/*.{ts,tsx,js,jsx}'],
|
|
68
|
+
},
|
|
69
|
+
configurations: {},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
tags: ['roma-application'],
|
|
73
|
+
implicitDependencies: [],
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
exports.executorContext = {
|
|
77
|
+
root: '/Users/RHENRI/dev/tops-roma/roma-workbench',
|
|
78
|
+
target: {
|
|
79
|
+
dependsOn: ['^build'],
|
|
80
|
+
inputs: ['production', '^production'],
|
|
81
|
+
executor: '@equinor/roma-nx-plugin:build',
|
|
82
|
+
options: {},
|
|
83
|
+
configurations: {},
|
|
84
|
+
},
|
|
85
|
+
projectsConfigurations: {
|
|
86
|
+
projects,
|
|
87
|
+
version: 2,
|
|
88
|
+
},
|
|
89
|
+
workspace: {
|
|
90
|
+
projects,
|
|
91
|
+
version: 2,
|
|
92
|
+
$schema: './node_modules/nx/schemas/nx-schema.json',
|
|
93
|
+
},
|
|
94
|
+
projectName: 'recap',
|
|
95
|
+
targetName: 'build',
|
|
96
|
+
cwd: '/Users/RHENRI/dev/tops-roma/roma-workbench',
|
|
97
|
+
isVerbose: false,
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=executor-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor-context.js","sourceRoot":"","sources":["../../../../../plugins/roma/src/executors/executor-context.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG;IACf,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,sDAAsD;QAC/D,UAAU,EAAE,6BAA6B;QACzC,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,MAAM,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;gBACrC,QAAQ,EAAE,+BAA+B;gBACzC,OAAO,EAAE,EAAE;gBACX,cAAc,EAAE,EAAE;aACnB;YAC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AAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE;KACnB;IACD,sBAAsB,EAAE;QACtB,QAAQ;QACR,OAAO,EAAE,CAAC;KACX;IACD,SAAS,EAAE;QACT,QAAQ;QACR,OAAO,EAAE,CAAC;QACV,OAAO,EAAE,0CAA0C;KACpD;IACD,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,OAAO;IACnB,GAAG,EAAE,4CAA4C;IACjD,SAAS,EAAE,KAAK;CACE,CAAC"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
3
|
const proxy_1 = require("./proxy");
|
|
5
|
-
function runExecutor(options, context) {
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
resolve({ success: true });
|
|
12
|
-
});
|
|
13
|
-
server.listen(options.port);
|
|
14
|
-
console.log(`Proxying all requests to portal ${options.portal}`);
|
|
4
|
+
async function runExecutor(options, context) {
|
|
5
|
+
return new Promise((resolve, reject) => {
|
|
6
|
+
const { server, proxy } = (0, proxy_1.proxyServer)(options.port, options.portal, options.additionalProxyTargets);
|
|
7
|
+
proxy.on('close', () => {
|
|
8
|
+
console.log('Proxy connection closed');
|
|
9
|
+
resolve({ success: true });
|
|
15
10
|
});
|
|
11
|
+
server.listen(options.port);
|
|
12
|
+
console.log(`Proxying all requests to portal ${options.portal}`);
|
|
16
13
|
});
|
|
17
14
|
}
|
|
18
15
|
exports.default = runExecutor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/portal/executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/portal/executor.ts"],"names":[],"mappings":";;AAEA,mCAAsC;AAEvB,KAAK,UAAU,WAAW,CACvC,OAA6B,EAC7B,OAAwB;IAExB,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3D,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,mBAAW,EACnC,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,sBAAsB,CAC/B,CAAC;QACF,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACrB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;YACvC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,mCAAmC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,8BAiBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const publish_script_1 = require("./publish-script");
|
|
4
|
+
async function runExecutor(options, context) {
|
|
5
|
+
var _a;
|
|
6
|
+
const projectName = context.projectName;
|
|
7
|
+
const project = context.workspace.projects[projectName];
|
|
8
|
+
const buildConfig = project.targets.build;
|
|
9
|
+
const outputPath = (_a = buildConfig.outputPath) !== null && _a !== void 0 ? _a : `dist/apps/${projectName}`;
|
|
10
|
+
let success = true;
|
|
11
|
+
try {
|
|
12
|
+
await (0, publish_script_1.publishApplication)(projectName, outputPath);
|
|
13
|
+
}
|
|
14
|
+
catch (ex) {
|
|
15
|
+
console.error(`Error when publishing ${projectName}`);
|
|
16
|
+
console.error(ex);
|
|
17
|
+
success = false;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
success,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
exports.default = runExecutor;
|
|
24
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/publish/executor.ts"],"names":[],"mappings":";;AAEA,qDAAsD;AAOvC,KAAK,UAAU,WAAW,CACvC,OAA8B,EAC9B,OAAwB;;IAExB,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACxC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAuB,CAAC;IAC9E,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,KAA2B,CAAC;IAChE,MAAM,UAAU,GAAG,MAAA,WAAW,CAAC,UAAU,mCAAI,aAAa,WAAW,EAAE,CAAC;IACxE,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI;QACF,MAAM,IAAA,mCAAkB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;KACnD;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,CAAC,KAAK,CAAC,yBAAyB,WAAW,EAAE,CAAC,CAAC;QACtD,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAClB,OAAO,GAAG,KAAK,CAAC;KACjB;IACD,OAAO;QACL,OAAO;KACR,CAAC;AACJ,CAAC;AAnBD,8BAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const publishApplication: (appName: string, pathToOutput: string) => Promise<void>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.publishApplication = void 0;
|
|
5
|
+
const promises_1 = require("node:fs/promises");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const identity_1 = require("@azure/identity");
|
|
8
|
+
const storage_blob_1 = require("@azure/storage-blob");
|
|
9
|
+
var Status;
|
|
10
|
+
(function (Status) {
|
|
11
|
+
Status[Status["SUCCESS"] = 0] = "SUCCESS";
|
|
12
|
+
Status[Status["ERROR"] = 1] = "ERROR";
|
|
13
|
+
})(Status || (Status = {}));
|
|
14
|
+
const url = (_a = process.env.API_URL) !== null && _a !== void 0 ? _a : 'https://workbench-enhgbqb2h2c9ana8.z01.azurefd.net/api/apps';
|
|
15
|
+
const publishApplication = async (appName, pathToOutput) => {
|
|
16
|
+
console.log(`Reading & uploading bundle for ${appName}`);
|
|
17
|
+
const bundle = await (0, promises_1.readFile)((0, node_path_1.join)(pathToOutput, 'app-bundle.js'));
|
|
18
|
+
await uploadBundle(appName, bundle);
|
|
19
|
+
console.log(`Reading & uploading application manifest to ${url}`);
|
|
20
|
+
const manifest = await (0, promises_1.readFile)((0, node_path_1.join)(pathToOutput, 'manifest.json'));
|
|
21
|
+
const status = await publishManifest(manifest);
|
|
22
|
+
if (status === Status.ERROR) {
|
|
23
|
+
throw new Error(`Failed to publish application ${appName}`);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
console.log(`Successfully published application ${appName}`);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.publishApplication = publishApplication;
|
|
30
|
+
async function publishManifest(manifest) {
|
|
31
|
+
const manifestJsonString = manifest.toString('utf-8');
|
|
32
|
+
const auth = new identity_1.DefaultAzureCredential();
|
|
33
|
+
const token = await auth.getToken('83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/.default');
|
|
34
|
+
const req = await fetch(url, {
|
|
35
|
+
method: 'POST',
|
|
36
|
+
headers: {
|
|
37
|
+
Authorization: `Bearer ${token.token}`,
|
|
38
|
+
'Content-Type': 'application/json',
|
|
39
|
+
},
|
|
40
|
+
body: manifestJsonString,
|
|
41
|
+
});
|
|
42
|
+
if (req.status < 400) {
|
|
43
|
+
return Status.SUCCESS;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
console.error(`Encountered a problem when publishing application: Received statuscode ${req.status}`);
|
|
47
|
+
return Status.ERROR;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
async function uploadBundle(appName, bundle) {
|
|
51
|
+
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://topsroma.blob.core.windows.net`, new identity_1.DefaultAzureCredential());
|
|
52
|
+
const client = blobServiceClient.getContainerClient('$web');
|
|
53
|
+
const blobName = `${appName}/app-bundle.js`;
|
|
54
|
+
const cl = client.getBlockBlobClient(blobName);
|
|
55
|
+
const res = await cl.upload(bundle.toString('utf-8'), bundle.toString().length);
|
|
56
|
+
if (res.errorCode) {
|
|
57
|
+
console.error('Failed to upload file to storage account', res.errorCode);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
console.log(`Successfully uploaded bundle to ${appName}/app-bundle.js`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=publish-script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-script.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/publish/publish-script.ts"],"names":[],"mappings":";;;;AAAA,+CAA4C;AAC5C,yCAAiC;AACjC,8CAAyD;AACzD,sDAAwD;AAExD,IAAK,MAGJ;AAHD,WAAK,MAAM;IACT,yCAAO,CAAA;IACP,qCAAK,CAAA;AACP,CAAC,EAHI,MAAM,KAAN,MAAM,QAGV;AAED,MAAM,GAAG,GACP,MAAA,OAAO,CAAC,GAAG,CAAC,OAAO,mCACnB,6DAA6D,CAAC;AAEzD,MAAM,kBAAkB,GAAG,KAAK,EACrC,OAAe,EACf,YAAoB,EACpB,EAAE;IACF,OAAO,CAAC,GAAG,CAAC,kCAAkC,OAAO,EAAE,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,MAAM,IAAA,mBAAQ,EAAC,IAAA,gBAAI,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;IACnE,MAAM,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,CA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AwC,EACxC,IAAI,iCAAsB,EAAE,CAC7B,CAAC;IACF,MAAM,MAAM,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,GAAG,OAAO,gBAAgB,CAAC;IAC5C,MAAM,EAAE,GAAG,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC,MAAM,CACzB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EACxB,MAAM,CAAC,QAAQ,EAAE,CAAC,MAAM,CACzB,CAAC;IACF,IAAI,GAAG,CAAC,SAAS,EAAE;QACjB,OAAO,CAAC,KAAK,CAAC,0CAA0C,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;KAC1E;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,mCAAmC,OAAO,gBAAgB,CAAC,CAAC;KACzE;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface PublishExecutorSchema {} // eslint-disable-line
|
|
@@ -5,37 +5,48 @@ const run_commands_impl_1 = tslib_1.__importDefault(require("nx/src/executors/ru
|
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
// This method will be used to resolve the path of our custom dev-portal
|
|
7
7
|
// const depPath = require.resolve('@equinor-roma/framework');
|
|
8
|
-
function runExecutor(options, context) {
|
|
8
|
+
async function runExecutor(options, context) {
|
|
9
9
|
var _a;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
const projectName = context.projectName;
|
|
11
|
+
const project = context.workspace.projects[projectName];
|
|
12
|
+
const cwd = path.resolve(context.root, project.root);
|
|
13
|
+
const extraFusionArgs = [];
|
|
14
|
+
if (options.portal) {
|
|
15
|
+
extraFusionArgs.push(`--portal=${options.portal}`);
|
|
16
|
+
}
|
|
17
|
+
if (options.devPortal) {
|
|
18
|
+
const portalPath = path.join(context.root, options.devPortal);
|
|
19
|
+
const relativePath = path.relative(cwd, portalPath);
|
|
20
|
+
extraFusionArgs.push(`--dev-portal ${relativePath}`);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
// This is a relative path to the dev-portal (see comment on l#5)
|
|
24
|
+
// const relative = path.relative(projectPath, depPath);
|
|
25
|
+
// Change this to the dependency dev portal location.
|
|
26
|
+
const relative = path.relative(cwd, path.resolve(context.root, 'node_modules/@equinor/roma-framework/dev-portal'));
|
|
27
|
+
extraFusionArgs.push(`--dev-portal ${relative}`);
|
|
28
|
+
}
|
|
29
|
+
const commands = [
|
|
30
|
+
`fusion-framework-cli app dev ${extraFusionArgs.join(' ')} -p ${(_a = options.port) !== null && _a !== void 0 ? _a : 3000}`,
|
|
31
|
+
];
|
|
32
|
+
if (options.proxy) {
|
|
33
|
+
if (!project.targets.portal) {
|
|
34
|
+
// console.log('\x1b[33m Welcome to the app! \x1b[0m');
|
|
35
|
+
console.error(`\x1b[31m Proxy Error: Target "portal" not defined for project, portal-proxy will not run. \x1b[0m`);
|
|
22
36
|
}
|
|
23
37
|
else {
|
|
24
|
-
|
|
25
|
-
// const relative = path.relative(projectPath, depPath);
|
|
26
|
-
// Change this to the dependency dev portal location.
|
|
27
|
-
const relative = path.relative(cwd, path.resolve(context.root, 'node_modules/@equinor/roma-framework/dev-portal'));
|
|
28
|
-
extraFusionArgs.push(`--dev-portal ${relative}`);
|
|
38
|
+
commands.push(`nx run ${project.name}:portal`);
|
|
29
39
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
}
|
|
41
|
+
const manifestPath = path.relative(cwd, path.resolve(project.root, 'fusion-manifest.json'));
|
|
42
|
+
extraFusionArgs.push(`--manifest ${manifestPath}`);
|
|
43
|
+
const { projectsConfigurations, nxJsonConfiguration, workspace } = context, rest = tslib_1.__rest(context, ["projectsConfigurations", "nxJsonConfiguration", "workspace"]);
|
|
44
|
+
return (0, run_commands_impl_1.default)({
|
|
45
|
+
commands,
|
|
46
|
+
parallel: true,
|
|
47
|
+
cwd: cwd,
|
|
48
|
+
__unparsed__: [],
|
|
49
|
+
}, context);
|
|
39
50
|
}
|
|
40
51
|
exports.default = runExecutor;
|
|
41
52
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/serve/executor.ts"],"names":[],"mappings":";;;AAEA,gHAA0E;AAC1E,mDAA6B;AAC7B,wEAAwE;AACxE,8DAA8D;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/executors/serve/executor.ts"],"names":[],"mappings":";;;AAEA,gHAA0E;AAC1E,mDAA6B;AAC7B,wEAAwE;AACxE,8DAA8D;AAE/C,KAAK,UAAU,WAAW,CACvC,OAA4B,EAC5B,OAAwB;;IAExB,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACxC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACxD,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD,MAAM,eAAe,GAAkB,EAAE,CAAC;IAC1C,IAAI,OAAO,CAAC,MAAM,EAAE;QAClB,eAAe,CAAC,IAAI,CAAC,YAAY,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;KACpD;IACD,IAAI,OAAO,CAAC,SAAS,EAAE;QACrB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CA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AC;AACJ,CAAC;AA5DD,8BA4DC"}
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"devPortal": {
|
|
18
18
|
"type": "string",
|
|
19
19
|
"description": "Path to custom dev-portal (from workspace root) (default: use ROMA dev-portal)"
|
|
20
|
+
},
|
|
21
|
+
"proxy": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Whether or not to start custom dev portal-proxy. Default true",
|
|
24
|
+
"default": true
|
|
20
25
|
}
|
|
21
26
|
},
|
|
22
27
|
"required": []
|
|
@@ -12,11 +12,5 @@
|
|
|
12
12
|
"type": "standalone",
|
|
13
13
|
"accentColor": null,
|
|
14
14
|
"icon": null,
|
|
15
|
-
"categoryId": "f07e5ff3-05d6-4d8b-a056-68c3c1968279"
|
|
16
|
-
"category": {
|
|
17
|
-
"id": "f07e5ff3-05d6-4d8b-a056-68c3c1968279",
|
|
18
|
-
"name": "",
|
|
19
|
-
"color": "none",
|
|
20
|
-
"defaultIcon": "none"
|
|
21
|
-
}
|
|
15
|
+
"categoryId": "f07e5ff3-05d6-4d8b-a056-68c3c1968279"
|
|
22
16
|
}
|
|
@@ -7,36 +7,34 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
7
7
|
const react_1 = require("@nx/react");
|
|
8
8
|
const modules_1 = require("./data/modules");
|
|
9
9
|
const eslint_file_1 = require("@nx/linter/src/generators/utils/eslint-file");
|
|
10
|
-
function addDependencies(tree, options) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
dependencies[`@equinor/${module}`] = modules_1.modules[module];
|
|
27
|
-
});
|
|
28
|
-
if (options.routing) {
|
|
29
|
-
dependencies = Object.assign(Object.assign({}, dependencies), { '@equinor/fusion-framework-module-navigation': '^3.0.3' });
|
|
30
|
-
}
|
|
31
|
-
const devDependencies = {
|
|
32
|
-
'@equinor/fusion-framework-cli': '^9.1.1',
|
|
33
|
-
'vite-tsconfig-paths': '^4.2.0',
|
|
34
|
-
};
|
|
35
|
-
return (0, devkit_1.runTasksInSerial)(...[
|
|
36
|
-
(0, devkit_1.removeDependenciesFromPackageJson)(tree, Object.keys(dependencies), Object.keys(devDependencies)),
|
|
37
|
-
(0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDependencies),
|
|
38
|
-
]);
|
|
10
|
+
async function addDependencies(tree, options) {
|
|
11
|
+
let dependencies = {
|
|
12
|
+
'@equinor/fusion-framework': '^7.0.19',
|
|
13
|
+
'@equinor/fusion-framework-module-app': '^5.2.4',
|
|
14
|
+
'@equinor/eds-core-react': '^0.32.4',
|
|
15
|
+
'@equinor/eds-icons': '^0.19.3',
|
|
16
|
+
'@equinor/eds-tokens': '^0.9.2',
|
|
17
|
+
'@equinor/fusion-framework-react': '^5.2.3',
|
|
18
|
+
'@equinor/fusion-framework-react-app': '^4.1.2',
|
|
19
|
+
'@equinor/fusion-framework-react-module': '^3.0.5',
|
|
20
|
+
'styled-components': '^5.3.0',
|
|
21
|
+
};
|
|
22
|
+
options.fusionModules
|
|
23
|
+
.flatMap((module) => module.split(','))
|
|
24
|
+
.forEach((module) => {
|
|
25
|
+
dependencies[`@equinor/${module}`] = modules_1.modules[module];
|
|
39
26
|
});
|
|
27
|
+
if (options.routing) {
|
|
28
|
+
dependencies = Object.assign(Object.assign({}, dependencies), { '@equinor/fusion-framework-module-navigation': '^3.0.3' });
|
|
29
|
+
}
|
|
30
|
+
const devDependencies = {
|
|
31
|
+
'@equinor/fusion-framework-cli': '^9.1.1',
|
|
32
|
+
'vite-tsconfig-paths': '^4.2.0',
|
|
33
|
+
};
|
|
34
|
+
return (0, devkit_1.runTasksInSerial)(...[
|
|
35
|
+
(0, devkit_1.removeDependenciesFromPackageJson)(tree, Object.keys(dependencies), Object.keys(devDependencies)),
|
|
36
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDependencies),
|
|
37
|
+
]);
|
|
40
38
|
}
|
|
41
39
|
function updateTargets(tree, projectRoot, options) {
|
|
42
40
|
(0, devkit_1.updateJson)(tree, `${projectRoot.replace('\\', '/')}/project.json`, (json) => {
|
|
@@ -55,46 +53,48 @@ function updateTargets(tree, projectRoot, options) {
|
|
|
55
53
|
executor: '@equinor/roma-nx-plugin:portal',
|
|
56
54
|
options: {},
|
|
57
55
|
};
|
|
56
|
+
json.targets.publish = {
|
|
57
|
+
executor: '@equinor/roma-nx-plugin:publish',
|
|
58
|
+
options: {},
|
|
59
|
+
};
|
|
58
60
|
delete json.targets.preview;
|
|
59
61
|
return json;
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
|
-
function appGenerator(tree, options) {
|
|
64
|
+
async function appGenerator(tree, options) {
|
|
63
65
|
var _a;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
});
|
|
66
|
+
const config = (0, devkit_1.getWorkspaceLayout)(tree);
|
|
67
|
+
let appPath = '/';
|
|
68
|
+
if (config.appsDir) {
|
|
69
|
+
appPath = config.appsDir;
|
|
70
|
+
}
|
|
71
|
+
if (options.directory) {
|
|
72
|
+
appPath = path.join(appPath, options.directory);
|
|
73
|
+
}
|
|
74
|
+
const projectRoot = path.join(appPath, options.name);
|
|
75
|
+
// Windows has some issues with resolving paths in the tree-structure, so adding a fallback for it.
|
|
76
|
+
const directory = process.platform === 'win32' ? `${appPath}/${options.name}` : appPath;
|
|
77
|
+
await (0, react_1.applicationGenerator)(tree, Object.assign(Object.assign({}, options), { directory, tags: [(_a = options.tags) !== null && _a !== void 0 ? _a : '', 'roma-application'].join(','), rootProject: false, bundler: 'vite' }));
|
|
78
|
+
updateTargets(tree, projectRoot, options);
|
|
79
|
+
(0, devkit_1.generateFiles)(tree, path.join(__dirname, 'files'), projectRoot, options);
|
|
80
|
+
await addDependencies(tree, options);
|
|
81
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
82
|
+
tree.delete(`${projectRoot}/src/app`);
|
|
83
|
+
tree.delete(`${projectRoot}/src/assets`);
|
|
84
|
+
tree.delete(`${projectRoot}/src/main.tsx`);
|
|
85
|
+
tree.delete(`${projectRoot}/src/styles.css`);
|
|
86
|
+
tree.delete(`${projectRoot}/index.html`);
|
|
87
|
+
tree.delete(`${projectRoot}/public`);
|
|
88
|
+
tree.delete(`${projectRoot}/vite.config.ts`);
|
|
89
|
+
if (options.linter && (0, eslint_file_1.isEslintConfigSupported)(tree)) {
|
|
90
|
+
// Create eslint config project and extend as below:
|
|
91
|
+
// Package must be published as @equinor/eslint-config-roma
|
|
92
|
+
// See: https://eslint.org/docs/latest/extend/shareable-configs
|
|
93
|
+
// addExtendsToLintConfig(tree, options.appProjectRoot, '@equinor/roma');
|
|
94
|
+
}
|
|
95
|
+
return () => {
|
|
96
|
+
(0, devkit_1.installPackagesTask)(tree);
|
|
97
|
+
};
|
|
98
98
|
}
|
|
99
99
|
exports.appGenerator = appGenerator;
|
|
100
100
|
exports.default = appGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/generators/app/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAWoB;AACpB,mDAA6B;AAE7B,qCAAiD;AAEjD,4CAAyC;AACzC,6EAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/generators/app/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAWoB;AACpB,mDAA6B;AAE7B,qCAAiD;AAEjD,4CAAyC;AACzC,6EAAsF;AAEtF,KAAK,UAAU,eAAe,CAC5B,IAAU,EACV,OAA2E;IAE3E,IAAI,YAAY,GAA2B;QACzC,2BAA2B,EAAE,SAAS;QACtC,sCAAsC,EAAE,QAAQ;QAChD,yBAAyB,EAAE,SAAS;QACpC,oBAAoB,EAAE,SAAS;QAC/B,qBAAqB,EAAE,QAAQ;QAC/B,iCAAiC,EAAE,QAAQ;QAC3C,qCAAqC,EAAE,QAAQ;QAC/C,wCAAwC,EAAE,QAAQ;QAClD,mBAAmB,EAAE,QAAQ;KAC9B,CAAC;IACF,OAAO,CAAC,aAAa;SAClB,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACtC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAClB,YAAY,CAAC,YAAY,MAAM,EAAE,CAAC,GAAG,iBAAO,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IACL,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,YAAY,mCACP,YAAY,KACf,6CAA6C,EAAE,QAAQ,GACxD,CAAC;KACH;IACD,MAAM,eAAe,GAAG;QACtB,+BAA+B,EAAE,QAAQ;QACzC,qBAAqB,EAAE,QAAQ;KAChC,CAAC;IACF,OAAO,IAAA,yBAAgB,EACrB,GAAG;QACD,IAAA,0CAAiC,EAC/B,IAAI,EACJ,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EACzB,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAC7B;QACD,IAAA,qCAA4B,EAAC,IAAI,EAAE,YAAY,EAAE,eAAe,CAAC;KAClE,CACF,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CACp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AE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC;AA/CD,oCA+CC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.presetGenerator = void 0;
|
|
27
|
+
async function presetGenerator(tree, options) {
|
|
28
|
+
var _a;
|
|
29
|
+
options.directory = 'apps';
|
|
30
|
+
options.name = (_a = options.appName) !== null && _a !== void 0 ? _a : options.name;
|
|
31
|
+
return await Promise.resolve().then(() => __importStar(require('../app/generator'))).then(({ appGenerator }) => appGenerator(tree, Object.assign({}, options)));
|
|
32
|
+
}
|
|
33
|
+
exports.presetGenerator = presetGenerator;
|
|
34
|
+
exports.default = presetGenerator;
|
|
35
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/generators/preset/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,KAAK,UAAU,eAAe,CACnC,IAAU,EACV,OAA8B;;IAE9B,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,IAAI,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,OAAO,CAAC,IAAI,CAAC;IAC/C,OAAO,MAAM,kDAAO,kBAAkB,IAAE,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAChE,YAAY,CAAC,IAAI,oBAAO,OAAO,EAAG,CACnC,CAAC;AACJ,CAAC;AATD,0CASC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "Preset",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
},
|
|
14
|
+
"x-prompt": "What name would you like to use?"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": ["name"]
|
|
18
|
+
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
function update(tree) {
|
|
5
|
+
async function update(tree) {
|
|
7
6
|
var _a;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(0, devkit_1.updateProjectConfiguration)(tree, name, project);
|
|
21
|
-
}
|
|
7
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
8
|
+
for (const [name, project] of projects) {
|
|
9
|
+
if (project.projectType !== 'application')
|
|
10
|
+
continue;
|
|
11
|
+
if (!((_a = project.targets) === null || _a === void 0 ? void 0 : _a.portal)) {
|
|
12
|
+
project.targets.portal = {
|
|
13
|
+
executor: '@equinor/roma-nx-plugin:portal',
|
|
14
|
+
options: {
|
|
15
|
+
additionalProxyTargets: {},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
(0, devkit_1.updateProjectConfiguration)(tree, name, project);
|
|
22
19
|
}
|
|
23
|
-
}
|
|
20
|
+
}
|
|
24
21
|
}
|
|
25
22
|
exports.default = update;
|
|
26
23
|
//# sourceMappingURL=add-portal-proxy-target.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-portal-proxy-target.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/add-portal-proxy-target/add-portal-proxy-target.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-portal-proxy-target.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/add-portal-proxy-target/add-portal-proxy-target.ts"],"names":[],"mappings":";;AAAA,sDAAsD;AACtD,uCAA2E;AAE5D,KAAK,UAAU,MAAM,CAAC,IAAU;;IAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE;QACtC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QACpD,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC5B,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG;gBACvB,QAAQ,EAAE,gCAAgC;gBAC1C,OAAO,EAAE;oBACP,sBAAsB,EAAE,EAAE;iBAC3B;aACF,CAAC;YACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;SACjD;KACF;AACH,CAAC;AAfD,yBAeC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
function update(tree) {
|
|
6
|
+
var _a;
|
|
7
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
8
|
+
for (const [name, project] of projects) {
|
|
9
|
+
if (project.projectType !== 'application')
|
|
10
|
+
continue;
|
|
11
|
+
if (!((_a = project.targets) === null || _a === void 0 ? void 0 : _a.portal)) {
|
|
12
|
+
project.targets.publish = {
|
|
13
|
+
executor: '@equinor/roma-nx-plugin:publish',
|
|
14
|
+
options: {},
|
|
15
|
+
};
|
|
16
|
+
(0, devkit_1.updateProjectConfiguration)(tree, name, project);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = update;
|
|
21
|
+
//# sourceMappingURL=add-publish-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-publish-target.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/add-publish-target/add-publish-target.ts"],"names":[],"mappings":";;AAAA,sDAAsD;AACtD,uCAA2E;AAE3E,SAAwB,MAAM,CAAC,IAAU;;IACvC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE;QACtC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QACpD,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC5B,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG;gBACxB,QAAQ,EAAE,iCAAiC;gBAC3C,OAAO,EAAE,EAAE;aACZ,CAAC;YACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;SACjD;KACF;AACH,CAAC;AAbD,yBAaC"}
|