eitri-cli 1.50.1-beta.1 → 1.51.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.
package/check-version.js DELETED
@@ -1,13 +0,0 @@
1
- const semver = require('semver')
2
- const packageJson = require('./package')
3
-
4
- const minVersion = packageJson.engines.node
5
-
6
- const systemVersion = semver.clean(process.version)
7
-
8
- if (!semver.satisfies(systemVersion, minVersion)){
9
- console.error(' O Eitri-CLI requer uma versão mais recente do Node.js')
10
- console.error(' Por favor, atualize o Node.js para a versão mínima necessária: ', minVersion)
11
- console.error(' Versão atual em seu dispositivo: ', systemVersion)
12
- process.exit(1)
13
- }
@@ -1,23 +0,0 @@
1
- module.exports = {
2
- extends: ['@commitlint/config-conventional'],
3
- rules: {
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
- ],
22
- }
23
- };
@@ -1 +0,0 @@
1
- Pasta para fazer o teste e2e
@@ -1,89 +0,0 @@
1
- [package]
2
- edition = "2021"
3
- name = "eitri-cli-v2"
4
- version = "0.0.0"
5
-
6
- [lib]
7
- crate-type = ["cdylib"]
8
-
9
- [dependencies]
10
- # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
11
- napi = { version = "2.12.2", default-features = false, features = [
12
- "napi4",
13
- "async",
14
- ] }
15
- napi-derive = "2.12.2"
16
- homedir = "0.2.1"
17
- httpmock = "0.7.0"
18
- once_cell = "1.19.0"
19
- reqwest = { version = "0.11.24", features = [
20
- "json",
21
- "multipart",
22
- "cookies",
23
- "blocking",
24
- ] }
25
- semver = "1.0.22"
26
- serde = { version = "1.0.197", features = ["derive"] }
27
- serde_derive = "1.0.197"
28
- serde_json = "1.0.114"
29
- tokio = { version = "1.36.0", features = ["full"] }
30
- colored = "2.0"
31
- notify = "6.1.1"
32
- chrono = "0.4.37"
33
- notify-debouncer-full = "0.3.1"
34
- url = "2.5.0"
35
- urlencoding = "2.1.3"
36
- url-parse = "1.0.7"
37
- config = "0.14.0"
38
- futures-util = "0.3.30"
39
- rust_socketio = { version = "0.6.0", features = ["async"] }
40
- log = "0.4.21"
41
- env_logger = "0.11.3"
42
- crossterm = "0.27.0"
43
- spinners = "4.1.1"
44
- regex = "1.10.4"
45
- walkdir = "2.5.0"
46
- zip = "2.1.0"
47
- sha1 = "0.10.6"
48
- file-hashing = "0.1.2"
49
- qr2term = "0.3.1"
50
- fs_extra = "1.3.0"
51
- base64 = "0.22.1"
52
- dialoguer = "0.11.0"
53
- sysinfo = "0.31.2"
54
- ratatui = "0.28.1"
55
- webbrowser = "1.0.2"
56
- serde_yaml = "0.9.34"
57
-
58
- [dependencies.uuid]
59
- version = "1.8.0"
60
- features = [
61
- "v4", # Lets you generate random UUIDs
62
- "fast-rng", # Use a faster (but still sufficiently random) RNG
63
- "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
64
- ]
65
-
66
- [dev-dependencies]
67
- serial_test = "*"
68
-
69
- [target.x86_64-unknown-linux-gnu]
70
- openssl = { version = "0.9", features = ["vendored"] }
71
-
72
- [target.aarch64-apple-darwin]
73
- openssl = { version = "0.9", features = ["vendored"] }
74
-
75
- [target.x86_64-apple-darwin]
76
- openssl = { version = "0.9", features = ["vendored"] }
77
-
78
- [target.x86_64-pc-windows-msvc]
79
- linker = "clang-cl"
80
-
81
- [build-dependencies]
82
- napi-build = "2.0.1"
83
-
84
- [profile.release]
85
- lto = true
86
- strip = "symbols"
87
-
88
- [lints.rust]
89
- unexpected_cfgs = { level = "allow", check-cfg = ['cfg(napi)'] }
@@ -1,119 +0,0 @@
1
- # eitri-cli-v2
2
-
3
- This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).
4
-
5
- ## Installing eitri-cli-v2
6
-
7
- Installing eitri-cli-v2 requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).
8
-
9
- You can install the project with npm. In the project directory, run:
10
-
11
- ```sh
12
- $ npm install
13
- ```
14
-
15
- This fully installs the project, including installing any dependencies and running the build.
16
-
17
- ## Building eitri-cli-v2
18
-
19
- If you have already installed the project and only want to run the build, run:
20
-
21
- ```sh
22
- $ npm run build
23
- ```
24
-
25
- This command uses the [cargo-cp-artifact](https://github.com/neon-bindings/cargo-cp-artifact) utility to run the Rust build and copy the built library into `./index.node`.
26
-
27
- ## Exploring eitri-cli-v2
28
-
29
- After building eitri-cli-v2, you can explore its exports at the Node REPL:
30
-
31
- ```sh
32
- $ npm install
33
- $ node
34
- > require('.').hello()
35
- "hello node"
36
- ```
37
-
38
- ## Available Scripts
39
-
40
- In the project directory, you can run:
41
-
42
- ### `npm install`
43
-
44
- Installs the project, including running `npm run build`.
45
-
46
- ### `npm build`
47
-
48
- Builds the Node addon (`index.node`) from source.
49
-
50
- Additional [`cargo build`](https://doc.rust-lang.org/cargo/commands/cargo-build.html) arguments may be passed to `npm build` and `npm build-*` commands. For example, to enable a [cargo feature](https://doc.rust-lang.org/cargo/reference/features.html):
51
-
52
- ```
53
- npm run build -- --feature=beetle
54
- ```
55
-
56
- #### `npm build-debug`
57
-
58
- Alias for `npm build`.
59
-
60
- #### `npm build-release`
61
-
62
- Same as [`npm build`](#npm-build) but, builds the module with the [`release`](https://doc.rust-lang.org/cargo/reference/profiles.html#release) profile. Release builds will compile slower, but run faster.
63
-
64
- ### `npm test`
65
-
66
- Runs the unit tests by calling `cargo test`. You can learn more about [adding tests to your Rust code](https://doc.rust-lang.org/book/ch11-01-writing-tests.html) from the [Rust book](https://doc.rust-lang.org/book/).
67
-
68
- ## Project Layout
69
-
70
- The directory structure of this project is:
71
-
72
- ```
73
- eitri-cli-v2/
74
- ├── Cargo.toml
75
- ├── README.md
76
- ├── index.node
77
- ├── package.json
78
- ├── src/
79
- | └── lib.rs
80
- └── target/
81
- ```
82
-
83
- ### Cargo.toml
84
-
85
- The Cargo [manifest file](https://doc.rust-lang.org/cargo/reference/manifest.html), which informs the `cargo` command.
86
-
87
- ### README.md
88
-
89
- This file.
90
-
91
- ### index.node
92
-
93
- The Node addon—i.e., a binary Node module—generated by building the project. This is the main module for this package, as dictated by the `"main"` key in `package.json`.
94
-
95
- Under the hood, a [Node addon](https://nodejs.org/api/addons.html) is a [dynamically-linked shared object](https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries). The `"build"` script produces this file by copying it from within the `target/` directory, which is where the Rust build produces the shared object.
96
-
97
- ### package.json
98
-
99
- The npm [manifest file](https://docs.npmjs.com/cli/v7/configuring-npm/package-json), which informs the `npm` command.
100
-
101
- ### src/
102
-
103
- The directory tree containing the Rust source code for the project.
104
-
105
- ### src/lib.rs
106
-
107
- The Rust library's main module.
108
-
109
- ### target/
110
-
111
- Binary artifacts generated by the Rust build.
112
-
113
- ## Learn More
114
-
115
- To learn more about Neon, see the [Neon documentation](https://neon-bindings.com).
116
-
117
- To learn more about Rust, see the [Rust documentation](https://www.rust-lang.org).
118
-
119
- To learn more about Node, see the [Node documentation](https://nodejs.org).
@@ -1,5 +0,0 @@
1
- extern crate napi_build;
2
-
3
- fn main() {
4
- napi_build::setup();
5
- }