@siddhaartha_bs/monkcli 0.1.0 → 0.1.2
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 +32 -0
- package/dist/monkcli.js +12 -5
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -16,6 +16,22 @@ npm install -g @siddhaartha_bs/monkcli
|
|
|
16
16
|
monkcli
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
If your npm global install tries to write to a system directory and asks for `sudo`,
|
|
20
|
+
prefer a user-local npm prefix instead of installing with elevated privileges:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
mkdir -p "$HOME/.local"
|
|
24
|
+
npm config set prefix "$HOME/.local"
|
|
25
|
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
|
|
26
|
+
source ~/.zshrc
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then install again:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install -g @siddhaartha_bs/monkcli
|
|
33
|
+
```
|
|
34
|
+
|
|
19
35
|
### npx
|
|
20
36
|
|
|
21
37
|
```bash
|
|
@@ -28,6 +44,22 @@ npx @siddhaartha_bs/monkcli
|
|
|
28
44
|
npm install -g @siddhaartha_bs/monkcli@latest
|
|
29
45
|
```
|
|
30
46
|
|
|
47
|
+
`@latest` means the latest version published to npm, not the latest local commits on `main`.
|
|
48
|
+
|
|
49
|
+
## Check Version
|
|
50
|
+
|
|
51
|
+
Check the installed CLI version:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
monkcli --version
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Check the latest published npm version:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm view @siddhaartha_bs/monkcli version
|
|
61
|
+
```
|
|
62
|
+
|
|
31
63
|
## Uninstall
|
|
32
64
|
|
|
33
65
|
```bash
|
package/dist/monkcli.js
CHANGED
|
@@ -964,8 +964,8 @@ function styleIncorrect(char) {
|
|
|
964
964
|
function styleUpcoming(char) {
|
|
965
965
|
return {
|
|
966
966
|
char,
|
|
967
|
-
color: COLORS_ENABLED ? "
|
|
968
|
-
dimColor:
|
|
967
|
+
color: COLORS_ENABLED ? "white" : void 0,
|
|
968
|
+
dimColor: false,
|
|
969
969
|
bold: false
|
|
970
970
|
};
|
|
971
971
|
}
|
|
@@ -995,7 +995,7 @@ function buildPastChars(targetText, inputText, pointer) {
|
|
|
995
995
|
visible[0] = {
|
|
996
996
|
char: "\u2026",
|
|
997
997
|
color: COLORS_ENABLED ? "gray" : void 0,
|
|
998
|
-
dimColor:
|
|
998
|
+
dimColor: false,
|
|
999
999
|
bold: HIGH_CONTRAST
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
@@ -1015,7 +1015,7 @@ function buildFutureChars(targetText, pointer) {
|
|
|
1015
1015
|
visible[visible.length - 1] = {
|
|
1016
1016
|
char: "\u2026",
|
|
1017
1017
|
color: COLORS_ENABLED ? "gray" : void 0,
|
|
1018
|
-
dimColor:
|
|
1018
|
+
dimColor: false,
|
|
1019
1019
|
bold: HIGH_CONTRAST
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
@@ -1448,4 +1448,11 @@ function App() {
|
|
|
1448
1448
|
|
|
1449
1449
|
// apps/cli/src/index.tsx
|
|
1450
1450
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1451
|
-
|
|
1451
|
+
if (process.stdout.isTTY) {
|
|
1452
|
+
process.stdout.write("\x1B[?1049h");
|
|
1453
|
+
}
|
|
1454
|
+
var instance = render(/* @__PURE__ */ jsx4(App, {}));
|
|
1455
|
+
await instance.waitUntilExit();
|
|
1456
|
+
if (process.stdout.isTTY) {
|
|
1457
|
+
process.stdout.write("\x1B[?1049l");
|
|
1458
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siddhaartha_bs/monkcli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI typing test inspired by Monkeytype.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"monkcli": "./bin/monkcli.mjs"
|
|
11
11
|
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
12
15
|
"files": [
|
|
13
16
|
"bin",
|
|
14
17
|
"dist",
|
|
@@ -20,14 +23,18 @@
|
|
|
20
23
|
"react": "^19.2.4"
|
|
21
24
|
},
|
|
22
25
|
"scripts": {
|
|
26
|
+
"changeset": "changeset",
|
|
23
27
|
"dev": "tsx --tsconfig ./apps/cli/tsconfig.json ./apps/cli/src/index.tsx",
|
|
24
28
|
"build": "node ./scripts/build-package.mjs",
|
|
25
29
|
"prepack": "npm run build",
|
|
30
|
+
"version-packages": "changeset version && npm install --package-lock-only --ignore-scripts",
|
|
31
|
+
"release": "npm run build && changeset publish",
|
|
26
32
|
"test": "vitest",
|
|
27
33
|
"docker:build": "docker build -t monkcli:local .",
|
|
28
34
|
"docker:run": "docker run --rm -it monkcli:local"
|
|
29
35
|
},
|
|
30
36
|
"devDependencies": {
|
|
37
|
+
"@changesets/cli": "^2.30.0",
|
|
31
38
|
"@types/node": "^25.3.3",
|
|
32
39
|
"@types/react": "^19.2.14",
|
|
33
40
|
"esbuild": "^0.25.9",
|