@squiz/component-cli-lib 1.69.1 → 1.70.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/lib/index.js +63 -63
- package/lib/index.js.map +2 -2
- package/package.json +10 -7
- package/.env.example +0 -11
- package/.gitlab-ci.yml +0 -141
- package/CHANGELOG.md +0 -664
- package/build.js +0 -28
- package/jest.config.ts +0 -28
- package/jest.integration.config.ts +0 -27
- package/job-runner-lib.tgz +0 -0
- package/lib/job-runner-lib.tgz +0 -0
- package/localStart.ts +0 -11
- package/src/component-dev-folder-structures.integration.spec.ts +0 -91
- package/src/component-dev.integration.spec.ts +0 -71
- package/src/component-dev.ts +0 -102
- package/src/component-edge-dev.ts +0 -75
- package/src/component-init.spec.ts +0 -258
- package/src/component-init.ts +0 -81
- package/src/index.ts +0 -5
- package/src/integration-tests/__components__/big-package/manifest.json +0 -36
- package/src/integration-tests/__components__/big-package/render-json.js +0 -5
- package/src/integration-tests/__components__/cmp-format-string/main.js +0 -7
- package/src/integration-tests/__components__/cmp-format-string/manifest.json +0 -41
- package/src/integration-tests/__components__/cmp-no-api-key/main.js +0 -25
- package/src/integration-tests/__components__/cmp-no-api-key/manifest.json +0 -41
- package/src/integration-tests/__components__/cmp-property-order/main.js +0 -6
- package/src/integration-tests/__components__/cmp-property-order/manifest.json +0 -60
- package/src/integration-tests/__components__/cmp-static-file-test/main.js +0 -6
- package/src/integration-tests/__components__/cmp-static-file-test/manifest.json +0 -42
- package/src/integration-tests/__components__/cmp-static-file-test/public/static-library-file.js +0 -1
- package/src/integration-tests/__components__/invalid-manifest/main.js +0 -3
- package/src/integration-tests/__components__/invalid-manifest/manifest.json +0 -29
- package/src/integration-tests/__components__/invalid-upload/main.js +0 -3
- package/src/integration-tests/__components__/matrix-asset-uri/main.js +0 -7
- package/src/integration-tests/__components__/matrix-asset-uri/manifest.json +0 -42
- package/src/integration-tests/__components__/test-page-render/main.js +0 -3
- package/src/integration-tests/__components__/test-page-render/manifest.json +0 -46
- package/src/integration-tests/__components__/test-page-render/public/static-library-script.js +0 -1
- package/src/integration-tests/__components__/test-page-render/public/static-library-styles.css +0 -3
- package/src/integration-tests/__jobs__/invalid-manifest/main.js +0 -3
- package/src/integration-tests/__jobs__/invalid-manifest/manifest.json +0 -28
- package/src/integration-tests/__jobs__/invalid-upload/main.js +0 -3
- package/src/integration-tests/__jobs__/simple-job/main.js +0 -3
- package/src/integration-tests/__jobs__/simple-job/manifest.json +0 -25
- package/src/integration-tests/helper.ts +0 -227
- package/src/integration-tests/service-deployment.integration.spec.ts +0 -74
- package/src/integration-tests/test-setup.ts +0 -1
- package/src/upload-component-folder.ts +0 -130
- package/src/upload-job.ts +0 -101
- package/src/utils.spec.ts +0 -370
- package/src/utils.ts +0 -149
- package/templates/advanced/build.js +0 -43
- package/templates/advanced/main.js +0 -3
- package/templates/advanced/manifest.json +0 -60
- package/templates/advanced/package-lock.json +0 -916
- package/templates/advanced/package.json +0 -11
- package/templates/advanced/previews/example.data.json +0 -1
- package/templates/advanced/previews/preview.html +0 -9
- package/templates/advanced/static/default.js +0 -1
- package/templates/advanced/static/default.scss +0 -1
- package/templates/basic/main.js +0 -3
- package/templates/basic/manifest.json +0 -62
- package/templates/basic/previews/example.data.json +0 -1
- package/templates/basic/previews/preview.html +0 -9
- package/templates/basic/static/default.css +0 -1
- package/templates/basic/static/default.js +0 -1
- package/tsconfig.json +0 -26
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Client Side JS goes here
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Client Side CSS goes here
|
package/templates/basic/main.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://localhost:3000/schemas/v1.json",
|
|
3
|
-
"name": "default",
|
|
4
|
-
"namespace": "default-namespace",
|
|
5
|
-
"displayName": "Default Component",
|
|
6
|
-
"description": "Default example component",
|
|
7
|
-
"version": "0.0.1",
|
|
8
|
-
"mainFunction": "main",
|
|
9
|
-
|
|
10
|
-
"icon": {
|
|
11
|
-
"id": "fiber_new",
|
|
12
|
-
"color": {
|
|
13
|
-
"type": "enum",
|
|
14
|
-
"value": "blue"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
"functions": [
|
|
19
|
-
{
|
|
20
|
-
"name": "main",
|
|
21
|
-
"entry": "main.js",
|
|
22
|
-
"input": {},
|
|
23
|
-
"output": {
|
|
24
|
-
"responseType": "html",
|
|
25
|
-
"staticFiles": [
|
|
26
|
-
{
|
|
27
|
-
"location": "header",
|
|
28
|
-
"file": {
|
|
29
|
-
"type": "css",
|
|
30
|
-
"filepath": "default.css"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"location": "footer",
|
|
35
|
-
"file": {
|
|
36
|
-
"type": "js",
|
|
37
|
-
"filepath": "default.js"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"previews": {
|
|
45
|
-
"default": {
|
|
46
|
-
"functionData": {
|
|
47
|
-
"main": {
|
|
48
|
-
"inputData": {
|
|
49
|
-
"type": "file",
|
|
50
|
-
"path": "previews/example.data.json"
|
|
51
|
-
},
|
|
52
|
-
"wrapper": {
|
|
53
|
-
"path": "previews/preview.html"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"staticFiles": {
|
|
60
|
-
"locationRoot": "static"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* Client Side CSS goes here */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Client Side JS goes here
|
package/tsconfig.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
|
-
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "lib",
|
|
6
|
-
"moduleResolution": "node16",
|
|
7
|
-
"module": "Node16",
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"composite": true,
|
|
10
|
-
"rootDir": "./src",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"emitDeclarationOnly": true
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
"references": [
|
|
17
|
-
{ "path": "../virus-scanner-lib" },
|
|
18
|
-
{ "path": "../render-runtime-lib" },
|
|
19
|
-
{ "path": "../component-lib" },
|
|
20
|
-
{ "path": "../dx-logger-lib" },
|
|
21
|
-
{ "path": "../dx-json-schema-lib" }
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
"include": ["src/**/*.ts", "src/**/*.json"],
|
|
25
|
-
"exclude": ["jest.config.ts"]
|
|
26
|
-
}
|