@repokit/core 0.0.3 → 0.0.6

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/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" >/dev/null 2>&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 >/dev/null 2>&1; then
19
+ if npm list --depth=0 tsx; then
19
20
  echo "Found tsx installation"
20
21
  else
21
22
  # Node Dependencies installation
@@ -34,10 +35,13 @@ fi
34
35
 
35
36
  echo "Installing Repokit CLI"
36
37
 
37
- SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
38
- cd "$SCRIPT_DIR"
38
+ cd "$SCRIPT_ORIGIN"
39
+
40
+ echo "Compiling from $SCRIPT_ORIGIN"
39
41
 
40
42
  . "$HOME/.cargo/env"
41
- RUSTFLAGS="-Awarnings" cargo build --release > /dev/null
42
- cargo install --path . > /dev/null
43
+ RUSTFLAGS="-Awarnings" cargo build --release
44
+ cargo install --path .
45
+
46
+ cd "$REPO_ROOT"
43
47
  repokit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repokit/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "A knowledgebase for your repository - wrapped in a CLI",
5
5
  "homepage": "https://github.com/alexfigliolia/repokit#readme",
6
6
  "license": "MIT",
@@ -5,8 +5,8 @@ use serde_json::from_str;
5
5
 
6
6
  use crate::{
7
7
  configuration::configuration::Configuration,
8
- repokit::interfaces::{RepoKitCommand, RepoKitConfig},
9
8
  executor::executor::Executor,
9
+ repokit::interfaces::{RepoKitCommand, RepoKitConfig},
10
10
  };
11
11
 
12
12
  pub struct TypescriptCommand {
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
- });