@squiz/component-cli-lib 1.32.1-alpha.21 → 1.32.1-alpha.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/component-cli-lib",
|
|
3
|
-
"version": "1.32.1-alpha.
|
|
3
|
+
"version": "1.32.1-alpha.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@squiz/component-lib": "1.32.1-alpha.
|
|
17
|
-
"@squiz/component-web-api-lib": "1.32.1-alpha.
|
|
18
|
-
"@squiz/dx-common-lib": "1.32.1-alpha.
|
|
19
|
-
"@squiz/dx-json-schema-lib": "1.32.1-alpha.
|
|
20
|
-
"@squiz/dx-logger-lib": "1.32.1-alpha.
|
|
21
|
-
"@squiz/virus-scanner-lib": "1.32.1-alpha.
|
|
16
|
+
"@squiz/component-lib": "1.32.1-alpha.25",
|
|
17
|
+
"@squiz/component-web-api-lib": "1.32.1-alpha.25",
|
|
18
|
+
"@squiz/dx-common-lib": "1.32.1-alpha.25",
|
|
19
|
+
"@squiz/dx-json-schema-lib": "1.32.1-alpha.25",
|
|
20
|
+
"@squiz/dx-logger-lib": "1.32.1-alpha.25",
|
|
21
|
+
"@squiz/virus-scanner-lib": "1.32.1-alpha.25",
|
|
22
22
|
"@types/cli-color": "2.0.2",
|
|
23
23
|
"@types/express": "4.17.17",
|
|
24
24
|
"@types/jest": "28.1.8",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"typescript": "4.9.4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@squiz/render-runtime-lib": "1.32.1-alpha.
|
|
35
|
+
"@squiz/render-runtime-lib": "1.32.1-alpha.25",
|
|
36
36
|
"archiver": "5.3.1",
|
|
37
37
|
"axios": "1.3.2",
|
|
38
38
|
"cli-color": "^2.0.2",
|
|
39
39
|
"open": "^8.4.0",
|
|
40
40
|
"supertest": "^6.2.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cd1dce796887c2f5dd7ca3f9f6c3166787e395b3"
|
|
43
43
|
}
|
package/src/component-dev.ts
CHANGED
|
@@ -9,6 +9,7 @@ import path from 'path';
|
|
|
9
9
|
import { ComponentFunctionService, ComponentSetServiceForLocalDev, ManifestServiceForDev } from '@squiz/component-lib';
|
|
10
10
|
import open from 'open';
|
|
11
11
|
import { DevelopmentApiKeyService } from '@squiz/dx-common-lib';
|
|
12
|
+
import { ComponentLogger } from '@squiz/component-logger-lib';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* startDevelopmentRender starts a dev-mode render stack for any
|
|
@@ -27,6 +28,15 @@ export function startDevelopmentRender(
|
|
|
27
28
|
format: options.loggingFormat || 'human',
|
|
28
29
|
silent: process.env.NODE_ENV === 'test',
|
|
29
30
|
});
|
|
31
|
+
|
|
32
|
+
const devComponentLogger = new ComponentLogger({
|
|
33
|
+
enabled: false,
|
|
34
|
+
tenantId: 'dev-tenant-id',
|
|
35
|
+
logUrl: '',
|
|
36
|
+
key: '',
|
|
37
|
+
tags: 'tag-foo tag-foo2',
|
|
38
|
+
});
|
|
39
|
+
|
|
30
40
|
const dataMountPoint = path.resolve(process.cwd(), componentPath);
|
|
31
41
|
|
|
32
42
|
const rootUrl = `http://localhost:${options.port}`;
|
|
@@ -40,6 +50,7 @@ export function startDevelopmentRender(
|
|
|
40
50
|
maxWorkers: 2,
|
|
41
51
|
},
|
|
42
52
|
logger,
|
|
53
|
+
devComponentLogger,
|
|
43
54
|
);
|
|
44
55
|
const componentFunctionService = new ComponentFunctionService(rootUrl);
|
|
45
56
|
const componentSetService = new ComponentSetServiceForLocalDev(logger);
|