@squiz/component-cli-lib 1.2.11 → 1.2.13-alpha.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.
Files changed (34) hide show
  1. package/.env.example +9 -0
  2. package/.gitlab-ci.yml +2 -3
  3. package/CHANGELOG.md +14 -414
  4. package/jest.config.ts +9 -1
  5. package/jest.integration.config.ts +7 -2
  6. package/lib/component-dev-folder-structures.integration.spec.js +9 -9
  7. package/lib/component-dev-folder-structures.integration.spec.js.map +1 -1
  8. package/lib/component-dev.integration.spec.js +5 -5
  9. package/lib/component-dev.integration.spec.js.map +1 -1
  10. package/lib/component-dev.js +16 -9
  11. package/lib/component-dev.js.map +1 -1
  12. package/lib/integration-tests/__components__/cmp-format-string/manifest.json +40 -0
  13. package/lib/integration-tests/helper.d.ts +1 -0
  14. package/lib/integration-tests/helper.js +47 -1
  15. package/lib/integration-tests/helper.js.map +1 -1
  16. package/lib/integration-tests/upload-and-render-component.integration.spec.js +66 -12
  17. package/lib/integration-tests/upload-and-render-component.integration.spec.js.map +1 -1
  18. package/lib/upload-component-folder.d.ts +2 -1
  19. package/lib/upload-component-folder.js +20 -34
  20. package/lib/upload-component-folder.js.map +1 -1
  21. package/package.json +13 -12
  22. package/src/component-dev-folder-structures.integration.spec.ts +15 -9
  23. package/src/component-dev.integration.spec.ts +5 -5
  24. package/src/component-dev.ts +28 -16
  25. package/src/integration-tests/__components__/cmp-format-string/main.js +7 -0
  26. package/src/integration-tests/__components__/cmp-format-string/manifest.json +41 -0
  27. package/src/integration-tests/__components__/cmp-static-file-test/main.js +1 -5
  28. package/src/integration-tests/__components__/invalid-manifest/main.js +0 -4
  29. package/src/integration-tests/__components__/invalid-upload/main.js +0 -4
  30. package/src/integration-tests/helper.ts +54 -0
  31. package/src/integration-tests/upload-and-render-component.integration.spec.ts +82 -21
  32. package/src/upload-component-folder.ts +31 -39
  33. package/tsconfig.json +3 -2
  34. package/tsconfig.tsbuildinfo +1 -1
package/.env.example ADDED
@@ -0,0 +1,9 @@
1
+ CI_COMMIT_SHORT_SHA=undefined
2
+ CI_COMMIT_REF_NAME=undefined
3
+
4
+ COMPONENT_MANAGEMENT_SERVICE_URL=http://localhost:3010
5
+ CONTENT_API_URL=http://localhost:3020
6
+ COMPONENT_RENDER_SERVICE_URL=http://localhost:3000
7
+
8
+ SQUIZ_REGION=au
9
+ DEPLOYMENT_ENVIRONMENT=dev
package/.gitlab-ci.yml CHANGED
@@ -73,6 +73,8 @@
73
73
  reports:
74
74
  dotenv: dot.env
75
75
 
76
+ # Disabling smoke tests as they will require an authenticated user
77
+ # TODO See DEVX-622
76
78
  .smoke-test:
77
79
  stage: smoke-test
78
80
  tags:
@@ -81,9 +83,6 @@
81
83
  - export
82
84
  - npm ci
83
85
  - npm run bootstrap -- --ci
84
- - npm run clean
85
- - npm run lint
86
- - npm run format-code
87
86
  - npm run compile
88
87
  - cd packages/component-cli-lib
89
88
  - npm run test:integration