eitri-cli 1.8.0 → 1.9.0-beta.2

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 (53) hide show
  1. package/.vscode/settings.json +2 -1
  2. package/bitbucket-pipelines.yml +35 -1
  3. package/config/dev.js +1 -1
  4. package/config/k8s-eitri.js +1 -1
  5. package/config/loc-eitri.js +1 -1
  6. package/eitri-cli-v2/Cargo.lock +2500 -0
  7. package/eitri-cli-v2/Cargo.toml +21 -0
  8. package/eitri-cli-v2/README.md +119 -0
  9. package/eitri-cli-v2/index.js +2 -0
  10. package/eitri-cli-v2/index.unix.node +0 -0
  11. package/eitri-cli-v2/index.win32.node +0 -0
  12. package/eitri-cli-v2/node_modules/.yarn-integrity +16 -0
  13. package/eitri-cli-v2/node_modules/cargo-cp-artifact/LICENSE +21 -0
  14. package/eitri-cli-v2/node_modules/cargo-cp-artifact/README.md +93 -0
  15. package/eitri-cli-v2/node_modules/cargo-cp-artifact/bin/cargo-cp-artifact.js +6 -0
  16. package/eitri-cli-v2/node_modules/cargo-cp-artifact/package.json +34 -0
  17. package/eitri-cli-v2/node_modules/cargo-cp-artifact/src/args.js +131 -0
  18. package/eitri-cli-v2/node_modules/cargo-cp-artifact/src/index.js +164 -0
  19. package/eitri-cli-v2/package-lock.json +26 -0
  20. package/eitri-cli-v2/package.json +21 -0
  21. package/eitri-cli-v2/src/commands/mod.rs +1 -0
  22. package/eitri-cli-v2/src/commands/publish.rs +67 -0
  23. package/eitri-cli-v2/src/config/mod.rs +1 -0
  24. package/eitri-cli-v2/src/config/user_credentials.rs +38 -0
  25. package/eitri-cli-v2/src/infra/async_runtime.rs +9 -0
  26. package/eitri-cli-v2/src/infra/http_client.rs +484 -0
  27. package/eitri-cli-v2/src/infra/mod.rs +2 -0
  28. package/eitri-cli-v2/src/lib.rs +41 -0
  29. package/eitri-cli-v2/src/model/auth_response.rs +8 -0
  30. package/eitri-cli-v2/src/model/credentials.rs +8 -0
  31. package/eitri-cli-v2/src/model/eitri_conf.rs +43 -0
  32. package/eitri-cli-v2/src/model/mod.rs +4 -0
  33. package/eitri-cli-v2/src/model/revision.rs +14 -0
  34. package/eitri-cli-v2/src/services/blind_guardian.rs +87 -0
  35. package/eitri-cli-v2/src/services/eitri_manager.rs +78 -0
  36. package/eitri-cli-v2/src/services/mod.rs +3 -0
  37. package/eitri-cli-v2/src/services/workspace.rs +46 -0
  38. package/eitri-cli-v2/src/utils/convert_eitri_conf.rs +98 -0
  39. package/eitri-cli-v2/src/utils/mod.rs +1 -0
  40. package/eitri-cli-v2/yarn.lock +8 -0
  41. package/index.js +16 -0
  42. package/install-dev.bat +1 -1
  43. package/install-dev.sh +1 -1
  44. package/package.json +1 -1
  45. package/src/cmd/push-version.js +20 -9
  46. package/src/cmd/start.js +5 -2
  47. package/src/cmd/validate.js +1 -1
  48. package/src/modules/vegvisir/VegvisirService.js +2 -2
  49. package/src/service/MiniLog.js +1 -1
  50. package/src/service/QRCodeFactory.js +1 -1
  51. package/src/service/Workspace.js +9 -8
  52. package/src/util/LogUtil.js +14 -0
  53. package/test/e2e/cli.test.js +54 -0
@@ -6,5 +6,6 @@
6
6
  "miniapp",
7
7
  "Unmocked",
8
8
  "Vegvisir"
9
- ]
9
+ ],
10
+ "rust-analyzer.showUnlinkedFileNotification": false
10
11
  }
@@ -1,4 +1,5 @@
1
1
  image: node:18-alpine
2
+
2
3
  pipelines:
3
4
  custom:
4
5
  test-validation:
@@ -17,23 +18,56 @@ pipelines:
17
18
  caches:
18
19
  - node
19
20
  script:
21
+ - apk add openssl-dev
22
+ - apk add pkgconfig
23
+ - apk add cargo
24
+ - cd eitri-cli-v2
25
+ - yarn install
26
+ - cd ..
20
27
  - apk add git
21
28
  - apk add chromium
22
29
  - export PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
23
30
  - yarn
24
31
  - npm i -g .
25
32
  - yarn test cli.test.js --force-exit
33
+ - step: &runRustTests
34
+ name: Run Rust tests
35
+ caches:
36
+ - node
37
+ script:
38
+ - apk add openssl-dev
39
+ - apk add pkgconfig
40
+ - apk add cargo
41
+ - cd eitri-cli-v2
42
+ - cargo test
26
43
  branches:
27
44
  "**":
28
45
  - step: *runTests
46
+ - step: *runRustTests
29
47
  '{beta,master}':
30
- - step: *runTests
48
+ # - step: *runTests
49
+ # - step: *runRustTests
31
50
  - step:
32
51
  name: "Generation of a new version: beta or stable."
33
52
  caches:
34
53
  - node
35
54
  script:
36
55
  - apk add git
56
+ - apk add openssl-dev
57
+ - apk add pkgconfig
58
+ - apk add cargo
59
+ - apk add mingw-w64-gcc
60
+ - apk add --no-cache build-base curl
61
+ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
62
+ - export PATH="/root/.cargo/bin:${PATH}"
63
+ - rustup --version
64
+ - rustup target add x86_64-pc-windows-gnu
65
+ - rustup target add x86_64-unknown-linux-musl
66
+ - cd eitri-cli-v2
67
+ - RUSTFLAGS="-C target-feature=-crt-static" yarn install
68
+ - yarn install:win32
69
+ - rm -rf target
70
+ - cd ..
37
71
  - echo 'Start release'
38
72
  - echo 'If there is a new version, it will be automatically published on NPM according to the channel/branch (beta or master (stable)).'
39
73
  - yarn
package/config/dev.js CHANGED
@@ -86,7 +86,7 @@ const config = {
86
86
  url: "https://analytics.dev.eitri.calindra.com.br/analytics/event",
87
87
  },
88
88
  managerFront: {
89
- url: `https://console.eitri.tech`,
89
+ url: "https://beta-console.eitri.tech",
90
90
  managerCredential: "/settings/manager-credential",
91
91
  cliGenerateLoginCredential: "/settings/cli-generate-credential",
92
92
  },
@@ -83,7 +83,7 @@ const config = {
83
83
  url: "https://analytics.dev.eitri.calindra.com.br/analytics/event"
84
84
  },
85
85
  managerFront: {
86
- url: `https://admin.k8s.eitri.calindra.com.br`
86
+ url: `https://console.eitri.tech`,
87
87
  },
88
88
  cdn: {
89
89
  library: {
@@ -91,7 +91,7 @@ const config = {
91
91
  url: "https://analytics.dev.eitri.calindra.com.br/analytics/event",
92
92
  },
93
93
  managerFront: {
94
- url: `https://admin.${HOST}`,
94
+ url: "https://beta-console.eitri.tech",
95
95
  managerCredential: "/settings/manager-credential",
96
96
  cliGenerateLoginCredential: "/settings/cli-generate-credential",
97
97
  },