@kitschpatrol/snip 0.0.1 → 0.0.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/dist/cli.js +22 -0
- package/package.json +26 -27
- package/readme.md +4 -4
- package/bin/cli.js +0 -128473
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/snip",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI tool for snippet management.",
|
|
6
6
|
"repository": {
|
|
@@ -25,59 +25,58 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": "
|
|
29
|
-
"pnpm": ">=
|
|
28
|
+
"node": "^18.17.0 || >=20.5.0",
|
|
29
|
+
"pnpm": ">=9.0.0"
|
|
30
30
|
},
|
|
31
31
|
"bin": {
|
|
32
|
-
"snip": "./
|
|
32
|
+
"snip": "./dist/cli.js"
|
|
33
33
|
},
|
|
34
|
-
"main": "./bin/cli.js",
|
|
35
34
|
"files": [
|
|
36
|
-
"
|
|
35
|
+
"dist/*"
|
|
37
36
|
],
|
|
38
37
|
"keywords": [
|
|
39
38
|
"cli",
|
|
40
39
|
"snippets",
|
|
41
|
-
"vscode"
|
|
40
|
+
"vscode",
|
|
41
|
+
"npm-package"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@commander-js/extra-typings": "^12.1.0",
|
|
45
|
+
"@types/fs-extra": "^11.0.4",
|
|
46
|
+
"@types/ignore-walk": "^4.0.3",
|
|
47
|
+
"@types/inquirer": "^9.0.7",
|
|
45
48
|
"commander": "^12.1.0",
|
|
46
|
-
"execa": "^9.1
|
|
49
|
+
"execa": "^9.3.1",
|
|
47
50
|
"fs-extra": "^11.2.0",
|
|
48
|
-
"ignore-walk": "^
|
|
49
|
-
"inquirer": "^
|
|
51
|
+
"ignore-walk": "^7.0.0",
|
|
52
|
+
"inquirer": "^10.2.2"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"@types/ignore-walk": "^4.0.3",
|
|
56
|
-
"@types/inquirer": "^9.0.7",
|
|
57
|
-
"@types/node": "^20.12.12",
|
|
58
|
-
"bumpp": "^9.4.1",
|
|
55
|
+
"@kitschpatrol/shared-config": "^4.7.5",
|
|
56
|
+
"@types/node": "^20.16.5",
|
|
57
|
+
"bumpp": "^9.5.2",
|
|
59
58
|
"chalk": "^5.3.0",
|
|
60
59
|
"date-fns": "^3.6.0",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"tslog": "^4.9.
|
|
65
|
-
"tsx": "^4.
|
|
66
|
-
"typescript": "^5.4
|
|
67
|
-
"vitest": "^
|
|
60
|
+
"node-jq": "^6.0.1",
|
|
61
|
+
"pkgroll": "^2.4.2",
|
|
62
|
+
"rimraf": "^6.0.1",
|
|
63
|
+
"tslog": "^4.9.3",
|
|
64
|
+
"tsx": "^4.19.0",
|
|
65
|
+
"typescript": "^5.5.4",
|
|
66
|
+
"vitest": "^2.0.5",
|
|
68
67
|
"zod": "^3.23.8"
|
|
69
68
|
},
|
|
70
69
|
"publishConfig": {
|
|
71
70
|
"access": "public"
|
|
72
71
|
},
|
|
73
72
|
"scripts": {
|
|
74
|
-
"build": "
|
|
75
|
-
"
|
|
73
|
+
"build": "pkgroll --clean-dist --minify",
|
|
74
|
+
"clean": "rimraf ./pnpm-lock.yaml && git clean -fdX",
|
|
76
75
|
"fix": "pnpm shared-config --fix",
|
|
77
76
|
"lint": "pnpm shared-config --lint",
|
|
78
77
|
"prebuild": "jq '{command: .bin | keys[], version, description}' package.json > ./src/generated/package-info.json",
|
|
79
78
|
"release": "pnpm run build && pnpm bumpp --commit 'Release: %s' && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
|
|
80
|
-
"start": "node ./
|
|
79
|
+
"start": "node ./dist/cli.js",
|
|
81
80
|
"test": "vitest",
|
|
82
81
|
"update-language-data": "tsx ./scripts/update-vscode-language-data.ts"
|
|
83
82
|
}
|
package/readme.md
CHANGED
|
@@ -60,10 +60,10 @@ A CLI tool for snippet management.
|
|
|
60
60
|
Options:
|
|
61
61
|
-v, --version output the version number
|
|
62
62
|
-c, --config <path> path to configuration file (default:
|
|
63
|
-
"
|
|
63
|
+
"~/.config/snip/config.json", env:
|
|
64
64
|
SNIP_CONFIG_FILE)
|
|
65
65
|
-l, --library <path> path to library directory where snippets are
|
|
66
|
-
stored (default: "
|
|
66
|
+
stored (default: "~/.snip", env:
|
|
67
67
|
SNIP_LIBRARY_DIR)
|
|
68
68
|
-d, --debug extra logging for troubleshooting (default:
|
|
69
69
|
false, env: SNIP_DEBUG)
|
|
@@ -104,7 +104,7 @@ Modifications include:
|
|
|
104
104
|
|
|
105
105
|
## The future
|
|
106
106
|
|
|
107
|
-
- [ ]
|
|
107
|
+
- [ ] Explore Amazon Q (née Fig) auto-complete generation and integration
|
|
108
108
|
- [ ] Additional editor adapters
|
|
109
109
|
- [ ] Sync-from-editor migration fixes
|
|
110
110
|
- [ ] Cosmiconfig
|
|
@@ -113,7 +113,7 @@ Modifications include:
|
|
|
113
113
|
|
|
114
114
|
[@kitschpatrol](https://github.com/kitschpatrol)
|
|
115
115
|
|
|
116
|
-
##
|
|
116
|
+
## Acknowledgments
|
|
117
117
|
|
|
118
118
|
[Jared Hanstra](https://github.com/jhanstra) is the author of the original [snipster](https://github.com/jhanstra/snipster) project on which Snip is based.
|
|
119
119
|
|