@repokit/core 4.0.6 → 5.0.1
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/README.md +17 -4
- package/dist/types.d.mts +1 -1
- package/externals/TSCompiler.ts +1 -2
- package/externals/types.ts +1 -1
- package/package.json +29 -19
- package/Cargo.lock +0 -1609
- package/Cargo.toml +0 -23
- package/installation/install.sh +0 -99
- package/internals/argv/argv.rs +0 -132
- package/internals/argv/mod.rs +0 -1
- package/internals/caches/crawl_cache.rs +0 -126
- package/internals/caches/file_cache.rs +0 -104
- package/internals/caches/mod.rs +0 -6
- package/internals/caches/old_cache.rs +0 -35
- package/internals/caches/repokit_version_resolver.rs +0 -50
- package/internals/caches/settings_cache.rs +0 -73
- package/internals/caches/version_cache.rs +0 -142
- package/internals/context/cache_scope.rs +0 -71
- package/internals/context/file_system.rs +0 -66
- package/internals/context/git_scope.rs +0 -55
- package/internals/context/mod.rs +0 -5
- package/internals/context/node_scope.rs +0 -133
- package/internals/context/typescript_bridge.rs +0 -84
- package/internals/executables/internal_executable.rs +0 -15
- package/internals/executables/internal_executable_definition.rs +0 -40
- package/internals/executables/mod.rs +0 -2
- package/internals/executor/executor.rs +0 -88
- package/internals/executor/mod.rs +0 -1
- package/internals/file_walker/file_walker.rs +0 -69
- package/internals/file_walker/mod.rs +0 -2
- package/internals/file_walker/walker.rs +0 -114
- package/internals/internal_commands/help.rs +0 -174
- package/internals/internal_commands/internal_registry.rs +0 -34
- package/internals/internal_commands/list_commands.rs +0 -97
- package/internals/internal_commands/list_owners.rs +0 -61
- package/internals/internal_commands/list_themes.rs +0 -114
- package/internals/internal_commands/list_version.rs +0 -59
- package/internals/internal_commands/locate_command.rs +0 -77
- package/internals/internal_commands/mod.rs +0 -11
- package/internals/internal_commands/onboarder.rs +0 -60
- package/internals/internal_commands/register_command.rs +0 -99
- package/internals/internal_commands/search_commands.rs +0 -201
- package/internals/internal_commands/upgrade_repokit.rs +0 -71
- package/internals/internal_filesystem/file_builder.rs +0 -56
- package/internals/internal_filesystem/mod.rs +0 -1
- package/internals/logger/logger.rs +0 -163
- package/internals/logger/mod.rs +0 -1
- package/internals/main.rs +0 -23
- package/internals/post_processing/mod.rs +0 -1
- package/internals/post_processing/post_processor.rs +0 -37
- package/internals/repokit/command_definition.rs +0 -11
- package/internals/repokit/mod.rs +0 -6
- package/internals/repokit/repokit.rs +0 -146
- package/internals/repokit/repokit_command.rs +0 -101
- package/internals/repokit/repokit_config.rs +0 -101
- package/internals/repokit/repokit_construct_validator.rs +0 -11
- package/internals/repokit/repokit_runtime.rs +0 -43
- package/internals/themes/built_in_themes/mod.rs +0 -3
- package/internals/themes/built_in_themes/money.rs +0 -41
- package/internals/themes/built_in_themes/seeing_red.rs +0 -41
- package/internals/themes/built_in_themes/the_blues.rs +0 -41
- package/internals/themes/mod.rs +0 -5
- package/internals/themes/theme.rs +0 -108
- package/internals/themes/theme_colors.rs +0 -32
- package/internals/themes/theme_inputs.rs +0 -35
- package/internals/themes/theme_registry.rs +0 -123
- package/internals/validations/command_validations.rs +0 -127
- package/internals/validations/mod.rs +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
A knowledgebase for your repository - wrapped in a CLI.
|
|
6
6
|
|
|
7
|
-
Repokit is designed for large teams in complex codebases to publish self-documenting commands, API's, and workflows to a central CLI.
|
|
7
|
+
Repokit is designed for large teams in complex codebases to publish self-documenting commands, API's, and workflows to a central repository-owned CLI.
|
|
8
8
|
|
|
9
9
|
The Repokit CLI exists as a living source of documentation and knowledge - growing alongside your team.
|
|
10
10
|
|
|
@@ -12,7 +12,20 @@ The Repokit CLI exists as a living source of documentation and knowledge - growi
|
|
|
12
12
|
|
|
13
13
|
### Installation
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Installation requires `rust` and `node.js` installed on your machine
|
|
16
|
+
|
|
17
|
+
#### Rust Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# install rust
|
|
21
|
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
22
|
+
# install repokit
|
|
23
|
+
cargo install repokit
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
#### Node.js
|
|
27
|
+
|
|
28
|
+
If you do not have node.js setup on your machine, you'll first want to install node.js.
|
|
16
29
|
|
|
17
30
|
[NVM is a popular posix compliant installer](https://github.com/nvm-sh/nvm)
|
|
18
31
|
|
|
@@ -25,10 +38,10 @@ npm init
|
|
|
25
38
|
If you don't have `typescript` already setup in your repository, you can run:
|
|
26
39
|
|
|
27
40
|
```bash
|
|
28
|
-
npm i -D typescript && tsc --init
|
|
41
|
+
npm i -D typescript && npx tsc --init
|
|
29
42
|
```
|
|
30
43
|
|
|
31
|
-
Next, install repokit:
|
|
44
|
+
Next, install repokit's command definition library:
|
|
32
45
|
|
|
33
46
|
```bash
|
|
34
47
|
npm i -D @repokit/core
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RepoKitConfig } from "./RepoKitConfig.mjs";
|
|
2
2
|
|
|
3
3
|
//#region externals/types.d.ts
|
|
4
|
-
interface IRepoKitConfig extends Omit<Partial<RepoKitConfig>, "project"> {
|
|
4
|
+
interface IRepoKitConfig extends Omit<Partial<RepoKitConfig>, "project" | "toScoped"> {
|
|
5
5
|
project: string;
|
|
6
6
|
}
|
|
7
7
|
interface IRepoKitCommand {
|
package/externals/TSCompiler.ts
CHANGED
package/externals/types.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repokit/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "A knowledgebase for your repository - wrapped in a CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -18,11 +18,7 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
"media",
|
|
20
20
|
"dist",
|
|
21
|
-
"externals"
|
|
22
|
-
"internals",
|
|
23
|
-
"installation",
|
|
24
|
-
"Cargo.lock",
|
|
25
|
-
"Cargo.toml"
|
|
21
|
+
"externals"
|
|
26
22
|
],
|
|
27
23
|
"main": "./dist/index.mjs",
|
|
28
24
|
"module": "./dist/index.mjs",
|
|
@@ -31,18 +27,19 @@
|
|
|
31
27
|
"access": "public"
|
|
32
28
|
},
|
|
33
29
|
"scripts": {
|
|
34
|
-
"build
|
|
35
|
-
"build:
|
|
30
|
+
"build": "pnpm build:debug --release",
|
|
31
|
+
"build:debug": "pnpm build:ts && cargo build",
|
|
36
32
|
"build:ts": "tsx devserver/run.ts",
|
|
37
33
|
"clean:ts": "tsx devserver/run.ts -c",
|
|
38
|
-
"
|
|
39
|
-
"lint:all": "pnpm lint:
|
|
40
|
-
"lint:rust": "cargo clippy --fix --allow-dirty",
|
|
41
|
-
"lint:
|
|
34
|
+
"format:toml": "taplo lint && taplo format",
|
|
35
|
+
"lint:all": "pnpm lint:rust && pnpm lint:ts",
|
|
36
|
+
"lint:rust": "cargo clippy --fix --allow-dirty --allow-no-vcs && pnpm format:toml",
|
|
37
|
+
"lint:rust:ci": "cargo clippy --fix",
|
|
38
|
+
"lint:ts": "oxlint --type-aware --report-unused-disable-directives --fix && oxfmt",
|
|
42
39
|
"package:ts": "pnpm lint:ts && pnpm lint:rust && pnpm build:ts",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"run:dev": "pnpm build:ts && cargo run --
|
|
40
|
+
"prepare": "husky",
|
|
41
|
+
"release": "tsx release/run.ts",
|
|
42
|
+
"run:dev": "pnpm build:ts && cargo run --bin repokit",
|
|
46
43
|
"watch:ts": "tsx devserver/run.ts -w"
|
|
47
44
|
},
|
|
48
45
|
"dependencies": {
|
|
@@ -53,14 +50,27 @@
|
|
|
53
50
|
"devDependencies": {
|
|
54
51
|
"@figliolia/child-process": "^1.0.4",
|
|
55
52
|
"@figliolia/semver": "^1.0.0",
|
|
53
|
+
"@taplo/cli": "^0.7.0",
|
|
56
54
|
"@types/node": "^25.3.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
55
|
+
"husky": "^9.1.7",
|
|
56
|
+
"lint-staged": "^17.0.2",
|
|
57
|
+
"oxfmt": "^0.53.0",
|
|
59
58
|
"oxlint": "^1.42.0",
|
|
60
|
-
"oxlint-tsgolint": "^0.
|
|
61
|
-
"tsdown": "^0.
|
|
59
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
60
|
+
"tsdown": "^0.22.0",
|
|
62
61
|
"tsx": "^4.21.0",
|
|
63
62
|
"typescript": "^6.0.2"
|
|
64
63
|
},
|
|
64
|
+
"lint-staged": {
|
|
65
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
66
|
+
"pnpm lint:ts"
|
|
67
|
+
],
|
|
68
|
+
"*.toml": [
|
|
69
|
+
"pnpm format:toml"
|
|
70
|
+
],
|
|
71
|
+
"*.rs": [
|
|
72
|
+
"pnpm lint:rust"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
65
75
|
"packageManager": "pnpm@10.33.2"
|
|
66
76
|
}
|