@squiz/component-cli-lib 1.69.1 → 1.70.1

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.
Files changed (68) hide show
  1. package/lib/index.js +63 -63
  2. package/lib/index.js.map +2 -2
  3. package/package.json +10 -7
  4. package/.env.example +0 -11
  5. package/.gitlab-ci.yml +0 -141
  6. package/CHANGELOG.md +0 -664
  7. package/build.js +0 -28
  8. package/jest.config.ts +0 -28
  9. package/jest.integration.config.ts +0 -27
  10. package/job-runner-lib.tgz +0 -0
  11. package/lib/job-runner-lib.tgz +0 -0
  12. package/localStart.ts +0 -11
  13. package/src/component-dev-folder-structures.integration.spec.ts +0 -91
  14. package/src/component-dev.integration.spec.ts +0 -71
  15. package/src/component-dev.ts +0 -102
  16. package/src/component-edge-dev.ts +0 -75
  17. package/src/component-init.spec.ts +0 -258
  18. package/src/component-init.ts +0 -81
  19. package/src/index.ts +0 -5
  20. package/src/integration-tests/__components__/big-package/manifest.json +0 -36
  21. package/src/integration-tests/__components__/big-package/render-json.js +0 -5
  22. package/src/integration-tests/__components__/cmp-format-string/main.js +0 -7
  23. package/src/integration-tests/__components__/cmp-format-string/manifest.json +0 -41
  24. package/src/integration-tests/__components__/cmp-no-api-key/main.js +0 -25
  25. package/src/integration-tests/__components__/cmp-no-api-key/manifest.json +0 -41
  26. package/src/integration-tests/__components__/cmp-property-order/main.js +0 -6
  27. package/src/integration-tests/__components__/cmp-property-order/manifest.json +0 -60
  28. package/src/integration-tests/__components__/cmp-static-file-test/main.js +0 -6
  29. package/src/integration-tests/__components__/cmp-static-file-test/manifest.json +0 -42
  30. package/src/integration-tests/__components__/cmp-static-file-test/public/static-library-file.js +0 -1
  31. package/src/integration-tests/__components__/invalid-manifest/main.js +0 -3
  32. package/src/integration-tests/__components__/invalid-manifest/manifest.json +0 -29
  33. package/src/integration-tests/__components__/invalid-upload/main.js +0 -3
  34. package/src/integration-tests/__components__/matrix-asset-uri/main.js +0 -7
  35. package/src/integration-tests/__components__/matrix-asset-uri/manifest.json +0 -42
  36. package/src/integration-tests/__components__/test-page-render/main.js +0 -3
  37. package/src/integration-tests/__components__/test-page-render/manifest.json +0 -46
  38. package/src/integration-tests/__components__/test-page-render/public/static-library-script.js +0 -1
  39. package/src/integration-tests/__components__/test-page-render/public/static-library-styles.css +0 -3
  40. package/src/integration-tests/__jobs__/invalid-manifest/main.js +0 -3
  41. package/src/integration-tests/__jobs__/invalid-manifest/manifest.json +0 -28
  42. package/src/integration-tests/__jobs__/invalid-upload/main.js +0 -3
  43. package/src/integration-tests/__jobs__/simple-job/main.js +0 -3
  44. package/src/integration-tests/__jobs__/simple-job/manifest.json +0 -25
  45. package/src/integration-tests/helper.ts +0 -227
  46. package/src/integration-tests/service-deployment.integration.spec.ts +0 -74
  47. package/src/integration-tests/test-setup.ts +0 -1
  48. package/src/upload-component-folder.ts +0 -130
  49. package/src/upload-job.ts +0 -101
  50. package/src/utils.spec.ts +0 -370
  51. package/src/utils.ts +0 -149
  52. package/templates/advanced/build.js +0 -43
  53. package/templates/advanced/main.js +0 -3
  54. package/templates/advanced/manifest.json +0 -60
  55. package/templates/advanced/package-lock.json +0 -916
  56. package/templates/advanced/package.json +0 -11
  57. package/templates/advanced/previews/example.data.json +0 -1
  58. package/templates/advanced/previews/preview.html +0 -9
  59. package/templates/advanced/static/default.js +0 -1
  60. package/templates/advanced/static/default.scss +0 -1
  61. package/templates/basic/main.js +0 -3
  62. package/templates/basic/manifest.json +0 -62
  63. package/templates/basic/previews/example.data.json +0 -1
  64. package/templates/basic/previews/preview.html +0 -9
  65. package/templates/basic/static/default.css +0 -1
  66. package/templates/basic/static/default.js +0 -1
  67. package/tsconfig.json +0 -26
  68. package/tsconfig.tsbuildinfo +0 -1
@@ -1,11 +0,0 @@
1
- {
2
- "scripts": {
3
- "build": "node build.js"
4
- },
5
- "devDependencies": {
6
- "autoprefixer": "^10.4.13",
7
- "esbuild": "^0.18.10",
8
- "esbuild-sass-plugin": "^2.10.0",
9
- "postcss": "^8.4.31"
10
- }
11
- }
@@ -1,9 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
- <head>
4
- [component://static-header]
5
- </head>
6
- <body>
7
- [component://output] [component://static-footer]
8
- </body>
9
- </html>
@@ -1 +0,0 @@
1
- // Client Side JS goes here
@@ -1 +0,0 @@
1
- // Client Side CSS goes here
@@ -1,3 +0,0 @@
1
- module.exports = async function (input, info) {
2
- return `<div>hello world</div>`;
3
- };
@@ -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,9 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
- <head>
4
- [component://static-header]
5
- </head>
6
- <body>
7
- [component://output] [component://static-footer]
8
- </body>
9
- </html>
@@ -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
- }