eitri-cli 1.22.2-beta.1 → 1.23.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.
@@ -4,6 +4,8 @@
4
4
  "development_deeplink",
5
5
  "developmentDeeplink",
6
6
  "eitri",
7
+ "github",
8
+ "httpmock",
7
9
  "luminus",
8
10
  "miniapp",
9
11
  "napi",
@@ -43,6 +43,7 @@ file-hashing = "0.1.2"
43
43
  qr2term = "0.3.1"
44
44
  fs_extra = "1.3.0"
45
45
  base64 = "0.22.1"
46
+ dialoguer = "0.11.0"
46
47
 
47
48
  [dependencies.uuid]
48
49
  version = "1.8.0"
@@ -74,7 +74,7 @@ check = "/workspace/check"
74
74
 
75
75
 
76
76
  [cdn_library]
77
+ commons_get_version = "/eitri-commons/versions/index.json"
77
78
  url = "https://cdn.83io.com.br/library"
78
79
  bifrost_versions = "/eitri-bifrost/versions/index.json"
79
80
  luminus_ui_versions = "/luminus-ui/versions/index.json"
80
- commons_get_version = "/eitri-commons/assets/$VERSION_NUMBER/eitri-commons-$VERSION_NUMBER.js"
@@ -75,7 +75,7 @@ check = "/workspace/check"
75
75
 
76
76
 
77
77
  [cdn_library]
78
+ commons_get_version = "/eitri-commons/versions/index.json"
78
79
  url = "https://cdn.83io.com.br/library"
79
80
  bifrost_versions = "/eitri-bifrost/versions/index.json"
80
81
  luminus_ui_versions = "/luminus-ui/versions/index.json"
81
- commons_get_version = "/eitri-commons/assets/$VERSION_NUMBER/eitri-commons-$VERSION_NUMBER.js"
@@ -70,7 +70,7 @@ check = "/workspace/check"
70
70
 
71
71
 
72
72
  [cdn_library]
73
+ commons_get_version = "/eitri-commons/versions/index.json"
73
74
  url = "https://cdn.83io.com.br/library"
74
75
  bifrost_versions = "/eitri-bifrost/versions/index.json"
75
76
  luminus_ui_versions = "/luminus-ui/versions/index.json"
76
- commons_get_version = "/eitri-commons/assets/$VERSION_NUMBER/eitri-commons-$VERSION_NUMBER.js"
@@ -78,4 +78,4 @@ check = "/workspace/check"
78
78
  url = "https://cdn.83io.com.br/library"
79
79
  bifrost_versions = "/eitri-bifrost/versions/index.json"
80
80
  luminus_ui_versions = "/luminus-ui/versions/index.json"
81
- commons_get_version = "/eitri-commons/assets/$VERSION_NUMBER/eitri-commons-$VERSION_NUMBER.js"
81
+ commons_get_version = "/eitri-commons/versions/index.json"
@@ -9,6 +9,11 @@ export interface StartArguments {
9
9
  playground?: boolean
10
10
  initializationParams?: string
11
11
  }
12
+ export interface CreateArguments {
13
+ projectName: string
14
+ application?: string
15
+ yes?: boolean
16
+ }
12
17
  export interface EitriLibsArguments {
13
18
  bifrost?: boolean
14
19
  luminus?: boolean
@@ -18,6 +23,7 @@ export declare function runTest(userJwt: string, userWorkspaceId: string, testPa
18
23
  export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
19
24
  export declare function doctor(): Promise<void>
20
25
  export declare function start(args: StartArguments): Promise<void>
26
+ export declare function create(args: CreateArguments): Promise<void>
21
27
  export declare namespace app {
22
28
  export function start(args: StartArguments): Promise<void>
23
29
  export function appLogs(): Promise<void>
@@ -310,12 +310,13 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { publish, runTest, eitriLibs, doctor, start, app, workspace } = nativeBinding
313
+ const { publish, runTest, eitriLibs, doctor, start, create, app, workspace } = nativeBinding
314
314
 
315
315
  module.exports.publish = publish
316
316
  module.exports.runTest = runTest
317
317
  module.exports.eitriLibs = eitriLibs
318
318
  module.exports.doctor = doctor
319
319
  module.exports.start = start
320
+ module.exports.create = create
320
321
  module.exports.app = app
321
322
  module.exports.workspace = workspace
package/index.js CHANGED
@@ -62,7 +62,14 @@ const run = async () => {
62
62
  "Define o application de execução do Eitri-App"
63
63
  )
64
64
  .option("-v, --verbose", "Exibe mais logs")
65
- .action((projectName, cmdObj) => {
65
+ .action(async (projectName, cmdObj) => {
66
+ if (process.env.FT_CREATE_V2) {
67
+ const eitriCLIV2 = require("./eitri-cli-v2/index.js");
68
+ return await eitriCLIV2.create({
69
+ ...cmdObj,
70
+ projectName
71
+ });
72
+ }
66
73
  require("./src/cmd/create")(projectName, cmdObj);
67
74
  });
68
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.22.2-beta.1",
3
+ "version": "1.23.0",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {