eitri-cli 1.33.1 → 1.34.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.
@@ -12,6 +12,7 @@
12
12
  "meitri",
13
13
  "miniapp",
14
14
  "napi",
15
+ "releaserc",
15
16
  "reqwest",
16
17
  "socketio",
17
18
  "sysinfo",
@@ -116,6 +116,7 @@ pipelines:
116
116
  - node
117
117
  name: 'Windows cross compile'
118
118
  script:
119
+ - apt-get install -y mingw-w64
119
120
  - rustup target add x86_64-pc-windows-msvc
120
121
  - cargo install --locked cargo-xwin
121
122
  - cd eitri-cli-v2
@@ -73,6 +73,9 @@ openssl = { version = "0.9", features = ["vendored"] }
73
73
  [target.x86_64-apple-darwin]
74
74
  openssl = { version = "0.9", features = ["vendored"] }
75
75
 
76
+ [target.x86_64-pc-windows-msvc]
77
+ linker = "clang-cl"
78
+
76
79
  [build-dependencies]
77
80
  napi-build = "2.0.1"
78
81
 
@@ -27,6 +27,7 @@ export interface PushArgs {
27
27
  verbose?: boolean
28
28
  shared?: boolean
29
29
  message?: string
30
+ release?: boolean
30
31
  }
31
32
  export interface TestingArgs {
32
33
  testPath?: string
package/index.js CHANGED
@@ -95,8 +95,7 @@ const run = async () => {
95
95
  )
96
96
  .option("-v, --verbose", "Exibe mais logs")
97
97
  .action(async (projectName, cmdObj) => {
98
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
99
- return await eitriCLIV2.create({
98
+ return await globalEitriCLIV2.create({
100
99
  ...cmdObj,
101
100
  projectName
102
101
  });
@@ -128,8 +127,7 @@ const run = async () => {
128
127
  .option("-sh, --shared", "Executa o Eitri-App no modo compartilhável.")
129
128
 
130
129
  startProgram.action(async (cmdObj) => {
131
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
132
- return await eitriCLIV2.start(cmdObj);
130
+ return await globalEitriCLIV2.start(cmdObj);
133
131
  });
134
132
 
135
133
  program
@@ -150,11 +148,7 @@ const run = async () => {
150
148
  )
151
149
  .option("-y, --yes", "Aceita automaticamente as respostas do prompt.")
152
150
  .action(async (cmdObj) => {
153
- if (process.env.FT_PUSH_VERSION_V2) {
154
- await globalEitriCLIV2.pushVersion(cmdObj);
155
- return;
156
- }
157
- require("./src/cmd/push-version")(cmdObj);
151
+ return await globalEitriCLIV2.pushVersion(cmdObj);
158
152
  });
159
153
 
160
154
  program
@@ -183,8 +177,7 @@ const run = async () => {
183
177
  .option("--bifrost", "Lista todas as versões do Bifrost")
184
178
  .option("--luminus", "Lista todas as versões do Luminus")
185
179
  .action(async (cmdObj) => {
186
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
187
- await eitriCLIV2.eitriLibs(cmdObj);
180
+ await globalEitriCLIV2.eitriLibs(cmdObj);
188
181
  });
189
182
 
190
183
  program
@@ -193,12 +186,7 @@ const run = async () => {
193
186
  "Valida as dependências externas para execução da CLI do Eitri"
194
187
  )
195
188
  .action(async (cmdObj) => {
196
- if (NEW_CLI_VERSION) {
197
- console.log("doctor (v2)");
198
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
199
- return await eitriCLIV2.doctor();
200
- }
201
- require("./src/cmd/doctor")(cmdObj);
189
+ return await globalEitriCLIV2.doctor();
202
190
  });
203
191
 
204
192
  program
@@ -210,8 +198,7 @@ const run = async () => {
210
198
  )
211
199
  .option("-m, --message <publish-message>", "Adiciona comentários na versão")
212
200
  .action(async (cmdObj) => {
213
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
214
- await eitriCLIV2.publish(cmdObj.environment, cmdObj.message || "");
201
+ await globalEitriCLIV2.publish(cmdObj.environment, cmdObj.message || "");
215
202
  });
216
203
 
217
204
  program
@@ -233,8 +220,7 @@ const run = async () => {
233
220
  "Fornece um prompt para geração de Views com o Eitri-GPT."
234
221
  )
235
222
  .action(async (cmdObj) => {
236
- const eitriCLIV2 = require("./eitri-cli-v2/index.js");
237
- return await eitriCLIV2.gpt();
223
+ return await globalEitriCLIV2.gpt();
238
224
  });
239
225
 
240
226
  program.addCommand(VegvisirCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.33.1",
3
+ "version": "1.34.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": {
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "eitri-test-1729704642332-shared": [
6
- "./eitri-test-1729704642332-shared/src/export.js"
7
- ]
8
- }
9
- },
10
- "include": [
11
- "./**/*"
12
- ]
13
- }