eitri-cli 1.11.0 → 1.12.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.
@@ -1,4 +1,8 @@
1
- image: node:18-buster
1
+ image:
2
+ name: 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:latest
3
+ aws:
4
+ access-key: $EITRI_PROD_AWS_ACCESS_KEY_ID
5
+ secret-key: $EITRI_PROD_AWS_SECRET_ACCESS_KEY
2
6
  pipelines:
3
7
  custom:
4
8
  test-validation:
@@ -7,18 +11,6 @@ pipelines:
7
11
  caches:
8
12
  - node
9
13
  script:
10
- - apt-get update
11
- - apt-get install -y wget
12
- - wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
13
- - apt-get install -y ./google-chrome-stable_current_amd64.deb
14
- - export PUPPETEER_EXECUTABLE_PATH='/usr/bin/google-chrome-stable'
15
- - apt-get install -y libssl-dev
16
- - apt-get install -y pkg-config
17
- - apt-get install -y git
18
- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
19
- - export PATH="/root/.cargo/bin:${PATH}"
20
- - rustup --version
21
- - rustup target add x86_64-unknown-linux-gnu
22
14
  - cd eitri-cli-v2
23
15
  - npm i
24
16
  - npm run build:debug
@@ -33,19 +25,6 @@ pipelines:
33
25
  caches:
34
26
  - node
35
27
  script:
36
- - apt-get update
37
- - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
38
- - apt-get install -y wget
39
- - wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
40
- - apt-get install -y ./google-chrome-stable_current_amd64.deb
41
- - export PUPPETEER_EXECUTABLE_PATH='/usr/bin/google-chrome-stable'
42
- - apt-get install -y libssl-dev
43
- - apt-get install -y pkg-config
44
- - apt-get install -y git
45
- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
46
- - export PATH="/root/.cargo/bin:${PATH}"
47
- - rustup --version
48
- - rustup target add x86_64-unknown-linux-gnu
49
28
  - cd eitri-cli-v2
50
29
  - npm i
51
30
  - npm run build:debug
@@ -59,35 +38,18 @@ pipelines:
59
38
  caches:
60
39
  - node
61
40
  script:
62
- - apt-get update
63
- - apt-get install -y libssl-dev
64
- - apt-get install -y pkg-config
65
- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
66
- - export PATH="/root/.cargo/bin:${PATH}"
67
- - rustup --version
68
- - rustup target add x86_64-unknown-linux-gnu
69
41
  - cd eitri-cli-v2
70
- - cargo test
42
+ - cargo test -- --test-threads=1
71
43
  - step: &macOSCrossCompile
72
- image: joseluisq/rust-linux-darwin-builder:1.76.0
44
+ image:
45
+ name: 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:macos
46
+ aws:
47
+ access-key: $EITRI_PROD_AWS_ACCESS_KEY_ID
48
+ secret-key: $EITRI_PROD_AWS_SECRET_ACCESS_KEY
73
49
  name: "macOS cross compile"
74
50
  caches:
75
51
  - node
76
52
  script:
77
- - apt-get update
78
- - apt-get install -y git
79
- - apt-get install -y libssl-dev
80
- - apt-get install -y libudev-dev
81
- - apt-get install -y pkg-config
82
- - apt-get install -y cargo
83
- - apt-get install -y gcc-mingw-w64
84
- - apt-get install -y curl
85
- - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
86
- - rustup update
87
- - export PATH="/root/.cargo/bin:${PATH}"
88
- - rustup --version
89
- - export CC=o64-clang
90
- - export CXX=o64-clang++
91
53
  - cd eitri-cli-v2
92
54
  - cargo add openssl --features vendored
93
55
  - npm install
@@ -108,18 +70,6 @@ pipelines:
108
70
  - node
109
71
  name: 'Linux compile'
110
72
  script:
111
- - apt-get update
112
- - apt-get install -y git
113
- - apt-get install -y libssl-dev
114
- - apt-get install -y libudev-dev
115
- - apt-get install -y pkg-config
116
- - apt-get install -y cargo
117
- - apt-get install -y gcc-mingw-w64
118
- - apt-get install -y curl
119
- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
120
- - export PATH="/root/.cargo/bin:${PATH}"
121
- - rustup --version
122
- - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
123
73
  - rustup target add x86_64-unknown-linux-gnu
124
74
  - cd eitri-cli-v2
125
75
  - cargo add openssl --features vendored
@@ -133,18 +83,6 @@ pipelines:
133
83
  - node
134
84
  name: 'Windows cross compile'
135
85
  script:
136
- - apt-get update
137
- - apt-get install -y git
138
- - apt-get install -y libssl-dev
139
- - apt-get install -y libudev-dev
140
- - apt-get install -y pkg-config
141
- - apt-get install -y cargo
142
- - apt-get install -y gcc-mingw-w64
143
- - apt-get install -y curl
144
- - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
145
- - export PATH="/root/.cargo/bin:${PATH}"
146
- - rustup --version
147
- - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
148
86
  - rustup target add x86_64-pc-windows-msvc
149
87
  - cargo install cargo-xwin
150
88
  - cd eitri-cli-v2
@@ -162,13 +100,10 @@ pipelines:
162
100
  - step: *runRustTests
163
101
  '{beta,master}':
164
102
  - parallel:
165
- fail-fast: false
103
+ fail-fast: true
166
104
  steps:
167
105
  - step: *runTests
168
106
  - step: *runRustTests
169
- - parallel:
170
- fail-fast: true
171
- steps:
172
107
  - step: *windowsCrossCompile
173
108
  - step: *linuxCrossCompile
174
109
  - step: *macOSCrossCompile
@@ -183,8 +118,6 @@ pipelines:
183
118
  - mv ./eitri-cli-v2.win32-x64-msvc.node ./eitri-cli-v2/eitri-cli-v2.win32-x64-msvc.node
184
119
  - mv ./index.d.ts ./eitri-cli-v2/index.d.ts
185
120
  - mv ./rust-index.js ./eitri-cli-v2/index.js
186
- - apt-get update
187
- - apt-get install -y git
188
121
  - echo 'Start release'
189
122
  - echo 'If there is a new version, it will be automatically published on NPM according to the channel/branch (beta or master (stable)).'
190
123
  - npm i
@@ -1,6 +1,23 @@
1
1
  module.exports = {
2
2
  extends: ['@commitlint/config-conventional'],
3
3
  rules: {
4
- "body-max-line-length": [0, "always", 10000]
4
+ "body-max-line-length": [0, "always", 10000],
5
+ 'type-enum': [
6
+ 2,
7
+ 'always',
8
+ [
9
+ 'build',
10
+ 'chore',
11
+ 'ci',
12
+ 'docs',
13
+ 'feat',
14
+ 'fix',
15
+ 'perf',
16
+ 'refactor',
17
+ 'revert',
18
+ 'style',
19
+ 'test'
20
+ ]
21
+ ],
5
22
  }
6
23
  };
@@ -0,0 +1,15 @@
1
+ FROM node:18-buster
2
+
3
+ RUN apt-get update \
4
+ && apt-get install -y wget \
5
+ && wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
6
+ && apt-get install -y ./google-chrome-stable_current_amd64.deb \
7
+ && export PUPPETEER_EXECUTABLE_PATH='/usr/bin/google-chrome-stable' \
8
+ && apt-get install -y libssl-dev \
9
+ && apt-get install -y pkg-config \
10
+ && apt-get install -y git \
11
+ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
12
+ && export PATH="/root/.cargo/bin:${PATH}" \
13
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
14
+
15
+ ENTRYPOINT ["/bin/bash"]
@@ -0,0 +1,21 @@
1
+ FROM joseluisq/rust-linux-darwin-builder:1.76.0
2
+
3
+ RUN apt-get update \
4
+ && apt-get install -y wget \
5
+ && wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
6
+ && apt-get install -y ./google-chrome-stable_current_amd64.deb \
7
+ && export PUPPETEER_EXECUTABLE_PATH='/usr/bin/google-chrome-stable' \
8
+ && apt-get install -y libssl-dev \
9
+ && apt-get install -y libudev-dev \
10
+ && apt-get install -y pkg-config \
11
+ && apt-get install -y git \
12
+ && apt-get install -y gcc-mingw-w64 \
13
+ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
14
+ && export PATH="/root/.cargo/bin:${PATH}" \
15
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs \
16
+ && rustup update
17
+
18
+ ENV CC=o64-clang
19
+ ENV CXX=o64-clang++
20
+
21
+ ENTRYPOINT ["/bin/bash"]
@@ -0,0 +1,11 @@
1
+ #/bin/bash
2
+
3
+ # Build base image
4
+ docker build -t eitri-base-cli-pipeline:latest -f Dockerfile-BaseCLI .
5
+ docker tag eitri-base-cli-pipeline:latest 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:latest
6
+ docker push 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:latest ─╯
7
+
8
+ # Build macos cross compile image
9
+ docker build -t eitri-base-cli-pipeline:macos -f Dockerfile-macos .
10
+ docker tag eitri-base-cli-pipeline:macos 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:macos
11
+ docker push 343482176926.dkr.ecr.us-east-1.amazonaws.com/eitri-base-cli-pipeline:macos
@@ -38,6 +38,9 @@ features = [
38
38
  "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
39
39
  ]
40
40
 
41
+ [dev-dependencies]
42
+ serial_test = "*"
43
+
41
44
  [target.x86_64-unknown-linux-gnu]
42
45
  openssl = { version = "0.9", features = ["vendored"] }
43
46
 
@@ -8,7 +8,8 @@ old_config_file_path = ".miniapp/prod-eitri.conf.js"
8
8
  create_url = "https://console.eitri.tech/docs"
9
9
 
10
10
  [blind_guardian]
11
- url = "https://api.eitri.tech/blind-guardian-api"
11
+ url = "https://api.eitri.tech"
12
+ base_path = "/blind-guardian-api"
12
13
  auth_path = "/v2/o/auth"
13
14
 
14
15
  [share_api]
@@ -8,7 +8,8 @@ old_config_file_path = ".miniapp/prod-eitri.conf.js"
8
8
  create_url = "https://console.eitri.tech/docs"
9
9
 
10
10
  [blind_guardian]
11
- url = "https://api.eitri.tech/blind-guardian-api"
11
+ url = "https://api.eitri.tech"
12
+ base_path = "/blind-guardian-api"
12
13
  auth_path = "/v2/o/auth"
13
14
 
14
15
  [share_api]
@@ -8,7 +8,8 @@ old_config_file_path = ".miniapp/prod-eitri.conf.js"
8
8
  create_url = "https://console.eitri.tech/docs"
9
9
 
10
10
  [blind_guardian]
11
- url = "https://api.eitri.tech/blind-guardian-api"
11
+ url = "https://api.eitri.tech"
12
+ base_path = "/blind-guardian-api"
12
13
  auth_path = "/v2/o/auth"
13
14
 
14
15
  [share_api]
@@ -8,7 +8,8 @@ old_config_file_path = ".miniapp/prod-eitri.conf.js"
8
8
  create_url = "https://console.eitri.tech/docs"
9
9
 
10
10
  [blind_guardian]
11
- url = "https://api.eitri.tech/blind-guardian-api"
11
+ url = "https://api.eitri.tech"
12
+ base_path = "/blind-guardian-api"
12
13
  auth_path = "/v2/o/auth"
13
14
 
14
15
  [share_api]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.11.0",
3
+ "version": "1.12.0-beta.2",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/cmd/create.js CHANGED
@@ -200,6 +200,7 @@ async function askProjMetadata(clientApplication, cmdObj, projectName) {
200
200
  ...conf,
201
201
  organizationId: clientApplication.organization.id,
202
202
  applicationId: clientApplication.id,
203
+ "type":"module",
203
204
  };
204
205
 
205
206
  await factory.writeEitriAppConf(templateProject, finalConf);
@@ -133,7 +133,7 @@ module.exports = async function runTests(args) {
133
133
  args
134
134
  }
135
135
  })
136
- process.exit(1)
136
+ process.exit(0)
137
137
  } catch (e) {
138
138
  debug(`Erro no processo de ${COMMAND_NAME}`, { message: e?.message, error: e })
139
139
  TrackingEitriAnalytics.sendEvent({
@@ -31,6 +31,7 @@ const EitriAppType = require("../model/EitriAppType");
31
31
  const chalk = require("chalk");
32
32
  const LibsService = require("./LibsService");
33
33
  const { LogSuccess } = require("../util/LogUtil");
34
+ const {extractSlug} = require("../util/LibUtil");
34
35
  const vegvisirService = new VegvisirService()
35
36
  const huginService = new HuginService()
36
37
 
@@ -240,6 +241,11 @@ class Workspace {
240
241
  const miniConf = this.getMiniConf();
241
242
  let libVersionsOutput = "";
242
243
  state.libs.forEach((lib) => {
244
+ let libraryDisplayName = lib.name
245
+ if(libraryDisplayName === "eitri-luminus"){
246
+ libraryDisplayName = extractSlug(miniConf[lib.name])
247
+ }
248
+
243
249
  let version = miniConf[lib.name];
244
250
  if (version) {
245
251
  // Captura a versao da lib quando estamos usando uma url
@@ -248,7 +254,7 @@ class Workspace {
248
254
  if (m) {
249
255
  version = m[1];
250
256
  }
251
- libVersionsOutput += ` ${lib.name} [${version}]`;
257
+ libVersionsOutput += ` ${libraryDisplayName} [${version}]`;
252
258
  }
253
259
  });
254
260
  console.log(" ", libVersionsOutput, "\n");