@repokit/core 0.0.4 → 0.0.7
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/Cargo.lock +0 -153
- package/Cargo.toml +0 -1
- package/install.sh +7 -7
- package/package.json +1 -1
- package/workspaces/internal_commands/typescript_command.rs +4 -0
- package/repokit.ts +0 -36
package/Cargo.lock
CHANGED
|
@@ -8,56 +8,6 @@ version = "1.5.5"
|
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
9
|
checksum = "774ffdfeac16e9b4d75e41225dc2545d9c2082a0634b5d7f6f70e168546eecb1"
|
|
10
10
|
|
|
11
|
-
[[package]]
|
|
12
|
-
name = "arrayref"
|
|
13
|
-
version = "0.3.9"
|
|
14
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
-
checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
|
|
16
|
-
|
|
17
|
-
[[package]]
|
|
18
|
-
name = "arrayvec"
|
|
19
|
-
version = "0.5.2"
|
|
20
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
-
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
|
|
22
|
-
|
|
23
|
-
[[package]]
|
|
24
|
-
name = "base64"
|
|
25
|
-
version = "0.13.1"
|
|
26
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
-
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
|
28
|
-
|
|
29
|
-
[[package]]
|
|
30
|
-
name = "blake2b_simd"
|
|
31
|
-
version = "0.5.11"
|
|
32
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
-
checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587"
|
|
34
|
-
dependencies = [
|
|
35
|
-
"arrayref",
|
|
36
|
-
"arrayvec",
|
|
37
|
-
"constant_time_eq",
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
[[package]]
|
|
41
|
-
name = "byteorder"
|
|
42
|
-
version = "1.5.0"
|
|
43
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
-
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
45
|
-
|
|
46
|
-
[[package]]
|
|
47
|
-
name = "cfg-if"
|
|
48
|
-
version = "1.0.4"
|
|
49
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
50
|
-
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
51
|
-
|
|
52
|
-
[[package]]
|
|
53
|
-
name = "clippy"
|
|
54
|
-
version = "0.0.302"
|
|
55
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
-
checksum = "d911ee15579a3f50880d8c1d59ef6e79f9533127a3bd342462f5d584f5e8c294"
|
|
57
|
-
dependencies = [
|
|
58
|
-
"term",
|
|
59
|
-
]
|
|
60
|
-
|
|
61
11
|
[[package]]
|
|
62
12
|
name = "colored"
|
|
63
13
|
version = "3.1.1"
|
|
@@ -67,12 +17,6 @@ dependencies = [
|
|
|
67
17
|
"windows-sys",
|
|
68
18
|
]
|
|
69
19
|
|
|
70
|
-
[[package]]
|
|
71
|
-
name = "constant_time_eq"
|
|
72
|
-
version = "0.1.5"
|
|
73
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
-
checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"
|
|
75
|
-
|
|
76
20
|
[[package]]
|
|
77
21
|
name = "crossbeam"
|
|
78
22
|
version = "0.8.4"
|
|
@@ -129,17 +73,6 @@ version = "0.8.21"
|
|
|
129
73
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
74
|
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
131
75
|
|
|
132
|
-
[[package]]
|
|
133
|
-
name = "dirs"
|
|
134
|
-
version = "1.0.5"
|
|
135
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
-
checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901"
|
|
137
|
-
dependencies = [
|
|
138
|
-
"libc",
|
|
139
|
-
"redox_users",
|
|
140
|
-
"winapi",
|
|
141
|
-
]
|
|
142
|
-
|
|
143
76
|
[[package]]
|
|
144
77
|
name = "either"
|
|
145
78
|
version = "1.15.0"
|
|
@@ -235,17 +168,6 @@ dependencies = [
|
|
|
235
168
|
"slab",
|
|
236
169
|
]
|
|
237
170
|
|
|
238
|
-
[[package]]
|
|
239
|
-
name = "getrandom"
|
|
240
|
-
version = "0.1.16"
|
|
241
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
-
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
|
|
243
|
-
dependencies = [
|
|
244
|
-
"cfg-if",
|
|
245
|
-
"libc",
|
|
246
|
-
"wasi",
|
|
247
|
-
]
|
|
248
|
-
|
|
249
171
|
[[package]]
|
|
250
172
|
name = "itoa"
|
|
251
173
|
version = "1.0.17"
|
|
@@ -268,12 +190,6 @@ version = "0.3.1"
|
|
|
268
190
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
191
|
checksum = "9fa0e2a1fcbe2f6be6c42e342259976206b383122fc152e872795338b5a3f3a7"
|
|
270
192
|
|
|
271
|
-
[[package]]
|
|
272
|
-
name = "libc"
|
|
273
|
-
version = "0.2.180"
|
|
274
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
275
|
-
checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
|
|
276
|
-
|
|
277
193
|
[[package]]
|
|
278
194
|
name = "memchr"
|
|
279
195
|
version = "2.7.6"
|
|
@@ -336,29 +252,11 @@ dependencies = [
|
|
|
336
252
|
"crossbeam-utils",
|
|
337
253
|
]
|
|
338
254
|
|
|
339
|
-
[[package]]
|
|
340
|
-
name = "redox_syscall"
|
|
341
|
-
version = "0.1.57"
|
|
342
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
-
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
|
344
|
-
|
|
345
|
-
[[package]]
|
|
346
|
-
name = "redox_users"
|
|
347
|
-
version = "0.3.5"
|
|
348
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
-
checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d"
|
|
350
|
-
dependencies = [
|
|
351
|
-
"getrandom",
|
|
352
|
-
"redox_syscall",
|
|
353
|
-
"rust-argon2",
|
|
354
|
-
]
|
|
355
|
-
|
|
356
255
|
[[package]]
|
|
357
256
|
name = "repokit"
|
|
358
257
|
version = "0.1.0"
|
|
359
258
|
dependencies = [
|
|
360
259
|
"alphanumeric-sort",
|
|
361
|
-
"clippy",
|
|
362
260
|
"colored",
|
|
363
261
|
"futures",
|
|
364
262
|
"jwalk",
|
|
@@ -369,18 +267,6 @@ dependencies = [
|
|
|
369
267
|
"tokio",
|
|
370
268
|
]
|
|
371
269
|
|
|
372
|
-
[[package]]
|
|
373
|
-
name = "rust-argon2"
|
|
374
|
-
version = "0.8.3"
|
|
375
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
376
|
-
checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb"
|
|
377
|
-
dependencies = [
|
|
378
|
-
"base64",
|
|
379
|
-
"blake2b_simd",
|
|
380
|
-
"constant_time_eq",
|
|
381
|
-
"crossbeam-utils",
|
|
382
|
-
]
|
|
383
|
-
|
|
384
270
|
[[package]]
|
|
385
271
|
name = "serde"
|
|
386
272
|
version = "1.0.228"
|
|
@@ -441,17 +327,6 @@ dependencies = [
|
|
|
441
327
|
"unicode-ident",
|
|
442
328
|
]
|
|
443
329
|
|
|
444
|
-
[[package]]
|
|
445
|
-
name = "term"
|
|
446
|
-
version = "0.5.2"
|
|
447
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
448
|
-
checksum = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42"
|
|
449
|
-
dependencies = [
|
|
450
|
-
"byteorder",
|
|
451
|
-
"dirs",
|
|
452
|
-
"winapi",
|
|
453
|
-
]
|
|
454
|
-
|
|
455
330
|
[[package]]
|
|
456
331
|
name = "tokio"
|
|
457
332
|
version = "1.49.0"
|
|
@@ -467,34 +342,6 @@ version = "1.0.22"
|
|
|
467
342
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
343
|
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
469
344
|
|
|
470
|
-
[[package]]
|
|
471
|
-
name = "wasi"
|
|
472
|
-
version = "0.9.0+wasi-snapshot-preview1"
|
|
473
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
-
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
|
475
|
-
|
|
476
|
-
[[package]]
|
|
477
|
-
name = "winapi"
|
|
478
|
-
version = "0.3.9"
|
|
479
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
|
-
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
481
|
-
dependencies = [
|
|
482
|
-
"winapi-i686-pc-windows-gnu",
|
|
483
|
-
"winapi-x86_64-pc-windows-gnu",
|
|
484
|
-
]
|
|
485
|
-
|
|
486
|
-
[[package]]
|
|
487
|
-
name = "winapi-i686-pc-windows-gnu"
|
|
488
|
-
version = "0.4.0"
|
|
489
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
490
|
-
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
491
|
-
|
|
492
|
-
[[package]]
|
|
493
|
-
name = "winapi-x86_64-pc-windows-gnu"
|
|
494
|
-
version = "0.4.0"
|
|
495
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
-
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
497
|
-
|
|
498
345
|
[[package]]
|
|
499
346
|
name = "windows-link"
|
|
500
347
|
version = "0.2.1"
|
package/Cargo.toml
CHANGED
package/install.sh
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
set -e
|
|
2
2
|
|
|
3
|
+
SCRIPT_ORIGIN=$(pwd)
|
|
3
4
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
4
5
|
|
|
5
6
|
cd $REPO_ROOT
|
|
6
7
|
|
|
7
8
|
command_exists() {
|
|
8
|
-
command -v "$1"
|
|
9
|
+
command -v "$1"
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
if command_exists rustc && command_exists cargo; then
|
|
@@ -15,7 +16,7 @@ else
|
|
|
15
16
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
16
17
|
fi
|
|
17
18
|
|
|
18
|
-
if npm list --depth=0 tsx
|
|
19
|
+
if npm list --depth=0 tsx; then
|
|
19
20
|
echo "Found tsx installation"
|
|
20
21
|
else
|
|
21
22
|
# Node Dependencies installation
|
|
@@ -34,14 +35,13 @@ fi
|
|
|
34
35
|
|
|
35
36
|
echo "Installing Repokit CLI"
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
cd "$SCRIPT_DIR"
|
|
38
|
+
cd "$SCRIPT_ORIGIN"
|
|
39
39
|
|
|
40
|
-
echo "Compiling from $
|
|
40
|
+
echo "Compiling from $SCRIPT_ORIGIN"
|
|
41
41
|
|
|
42
42
|
. "$HOME/.cargo/env"
|
|
43
|
-
RUSTFLAGS="-Awarnings" cargo build --release
|
|
44
|
-
cargo install --path .
|
|
43
|
+
RUSTFLAGS="-Awarnings" cargo build --release
|
|
44
|
+
cargo install --path .
|
|
45
45
|
|
|
46
46
|
cd "$REPO_ROOT"
|
|
47
47
|
repokit
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ use serde_json::from_str;
|
|
|
6
6
|
use crate::{
|
|
7
7
|
configuration::configuration::Configuration,
|
|
8
8
|
executor::executor::Executor,
|
|
9
|
+
logger::logger::Logger,
|
|
9
10
|
repokit::interfaces::{RepoKitCommand, RepoKitConfig},
|
|
10
11
|
};
|
|
11
12
|
|
|
@@ -19,8 +20,11 @@ impl TypescriptCommand {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
pub fn parse_configuration(&self) -> RepoKitConfig {
|
|
23
|
+
Logger::info(self.root.as_str());
|
|
22
24
|
let executable = self.path_to_command("parse_configuration.ts");
|
|
25
|
+
Logger::info(&executable);
|
|
23
26
|
let stdout = self.execute(format!("{executable} --root {}", &self.root).as_str());
|
|
27
|
+
Logger::info(&stdout);
|
|
24
28
|
if stdout.is_empty() {
|
|
25
29
|
Configuration::create(&self.root);
|
|
26
30
|
}
|
package/repokit.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { RepoKitConfig } from "@repokit/core";
|
|
2
|
-
|
|
3
|
-
export const RepoKit = new RepoKitConfig({
|
|
4
|
-
project: "Repokit",
|
|
5
|
-
commands: {
|
|
6
|
-
"lint:rust": {
|
|
7
|
-
command: "cargo clippy",
|
|
8
|
-
description: "Lints rust files",
|
|
9
|
-
},
|
|
10
|
-
"format:rust": {
|
|
11
|
-
command: "cargo clippy --fix --allow-dirty",
|
|
12
|
-
description: "Formats rust files",
|
|
13
|
-
},
|
|
14
|
-
"build:rust": {
|
|
15
|
-
command: "cargo build --release",
|
|
16
|
-
description: "Build CLI in production mode",
|
|
17
|
-
},
|
|
18
|
-
"run:rust": {
|
|
19
|
-
command: "cargo run --package repokit --bin repokit",
|
|
20
|
-
description: "Run CLI in development mode",
|
|
21
|
-
},
|
|
22
|
-
"install:rust": {
|
|
23
|
-
command: "repokit build:rust && cargo install --path .",
|
|
24
|
-
description: "Installs the production CLI and adds it to your path",
|
|
25
|
-
},
|
|
26
|
-
"lint:ts": {
|
|
27
|
-
command:
|
|
28
|
-
"yarn oxlint --type-aware --type-check --report-unused-disable-directives --fix && yarn oxfmt",
|
|
29
|
-
description: "Lints typescript files",
|
|
30
|
-
},
|
|
31
|
-
"build:ts": {
|
|
32
|
-
command: "yarn ts-packager -e src",
|
|
33
|
-
description: "Builds the typescript package",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
});
|