binary-collections 2.0.11 → 2.0.13
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/binaries/binary-executor.cjs +89 -13
- package/binaries/clean-nodemodule.cjs +89 -13
- package/binaries/clean-nodemodules.cjs +89 -13
- package/binaries/dev.cjs +89 -13
- package/binaries/empty.cjs +89 -13
- package/binaries/git-reduce-size.cjs +89 -13
- package/binaries/javakill.cjs +89 -13
- package/binaries/kill-process.cjs +89 -13
- package/binaries/nodekill.cjs +89 -13
- package/binaries/prod.cjs +89 -13
- package/binaries/py.cjs +89 -13
- package/binaries/rmfind.cjs +89 -13
- package/binaries/rmx +15 -1
- package/binaries/rmx.cjs +89 -13
- package/binaries/rmx.cmd +12 -0
- package/binaries/submodule-token.cjs +89 -13
- package/binaries/test-cjs +9 -1
- package/binaries/test-cjs.cjs +89 -13
- package/binaries/test-cjs.cmd +16 -1
- package/binaries/test-esm +16 -0
- package/binaries/test-esm.cjs +254 -0
- package/binaries/test-esm.cmd +23 -0
- package/binaries/yarn-clean +1 -1
- package/binaries/yarn-clean.cjs +89 -13
- package/binaries/yarn-clean.cmd +1 -1
- package/binaries/yarn-clean.py +33 -15
- package/binaries/yc +131 -0
- package/binaries/yc.cjs +254 -0
- package/binaries/ycw +256 -0
- package/binaries/ycw.cjs +254 -0
- package/docs-src/binary-collections.md +34 -0
- package/docs-src/changelog.md +26 -0
- package/docs-src/clean-github-actions-caches.md +91 -2
- package/docs-src/copy-move-file.md +59 -0
- package/docs-src/del-gradle.md +17 -0
- package/docs-src/del-ps.md +28 -0
- package/docs-src/downloader.md +62 -0
- package/docs-src/env-helpers.md +29 -0
- package/docs-src/find-node-modules.md +17 -0
- package/docs-src/git-diff.md +33 -0
- package/docs-src/git-fix.md +34 -0
- package/docs-src/git-purge.md +17 -0
- package/docs-src/git-reduce-size.md +17 -0
- package/docs-src/git-undo.md +21 -0
- package/docs-src/kill-night-crows.md +26 -0
- package/docs-src/node-cache-cleaner.md +182 -0
- package/docs-src/node-executor.md +50 -0
- package/docs-src/node-package-packer.md +48 -0
- package/docs-src/npm-run-series.md +43 -0
- package/docs-src/package-resolutions-updater.md +22 -0
- package/docs-src/php-cs-fixer-staged.md +19 -0
- package/docs-src/print-directory-tree.md +35 -0
- package/docs-src/print-tarball-tree.md +55 -0
- package/docs-src/py.md +19 -0
- package/docs-src/remove-module.md +32 -0
- package/docs-src/rmfind-rmx.md +21 -0
- package/docs-src/rmpath.md +38 -0
- package/docs-src/run-by-checksum.md +87 -0
- package/docs-src/submodule-install.md +31 -0
- package/docs-src/submodule-remove.md +22 -0
- package/docs-src/submodule-token.md +17 -0
- package/docs-src/test-runners.md +21 -0
- package/docs-src/yarn-install.md +31 -0
- package/docs-src/yarn-reinstall.md +27 -0
- package/lib/binary-collections/config.cjs +126 -0
- package/lib/binary-collections/config.mjs +7 -0
- package/lib/binary-collections/executeScript.cjs +19 -0
- package/lib/binary-collections/executeScript.d.cts +12 -0
- package/lib/binary-collections/executeScript.mjs +6 -0
- package/lib/binary-collections/findScript.cjs +309 -0
- package/lib/binary-collections/findScript.d.cts +12 -0
- package/lib/binary-collections/findScript.mjs +7 -0
- package/lib/binary-collections/listScript.cjs +291 -0
- package/lib/binary-collections/listScript.d.cts +19 -0
- package/lib/binary-collections/listScript.mjs +7 -0
- package/lib/binary-collections.cjs +264 -157
- package/lib/binary-collections.mjs +26 -286
- package/lib/changelog.cjs +9 -14
- package/lib/changelog.mjs +2 -2
- package/lib/chunk-2MN4VPV2.mjs +246 -0
- package/lib/chunk-6C7KTYGZ.mjs +41 -0
- package/lib/{chunk-Z6JLYU2J.mjs → chunk-6RK5UCTP.mjs} +7 -12
- package/lib/chunk-CD3HF3LK.mjs +190 -0
- package/lib/chunk-FLYSZFLW.mjs +61 -0
- package/lib/{chunk-N436BNBK.mjs → chunk-GAGABICI.mjs} +19 -13
- package/lib/chunk-H44UWUFY.mjs +105 -0
- package/lib/chunk-KLKAIFKI.mjs +40 -0
- package/lib/chunk-LVSPEFU2.mjs +86 -0
- package/lib/{chunk-RWLXRTYP.mjs → chunk-MGPYPKIE.mjs} +2 -2
- package/lib/chunk-NGFK3EYW.mjs +28 -0
- package/lib/chunk-NQXUYO67.mjs +253 -0
- package/lib/chunk-NVEG3LEZ.mjs +143 -0
- package/lib/chunk-OBXLTXFJ.mjs +34 -0
- package/lib/chunk-OGXVGBRI.mjs +29 -0
- package/lib/chunk-OXV52GD5.mjs +62 -0
- package/lib/chunk-PXBMHE7O.mjs +35 -0
- package/lib/chunk-QD4T255Z.mjs +40 -0
- package/lib/chunk-QII2EKCS.mjs +26 -0
- package/lib/chunk-R5FJOR63.mjs +47 -0
- package/lib/chunk-RDGDLSPD.mjs +76 -0
- package/lib/chunk-RDN6HF5Z.mjs +79 -0
- package/lib/chunk-RJKTSUAX.mjs +123 -0
- package/lib/{chunk-XA3SNBPA.mjs → chunk-TBWXE7ST.mjs} +97 -38
- package/lib/chunk-UXCFNAR6.mjs +55 -0
- package/lib/{chunk-M3YIYRHT.mjs → chunk-UY5VUEA3.mjs} +1 -1
- package/lib/chunk-WSHVPGNM.mjs +44 -0
- package/lib/{chunk-66PAU5PS.mjs → chunk-X2B3X7D4.mjs} +10 -6
- package/lib/clean-github-actions-caches-cli.cjs +507 -0
- package/lib/clean-github-actions-caches-cli.mjs +74 -0
- package/lib/clean-github-actions-caches.cjs +246 -106
- package/lib/clean-github-actions-caches.d.cts +53 -1
- package/lib/clean-github-actions-caches.mjs +5 -130
- package/lib/cross-env/command.cjs +63 -0
- package/lib/cross-env/command.d.ts +8 -0
- package/lib/cross-env/command.js +45 -0
- package/lib/{ps/isWin.mjs → cross-env/command.mjs} +4 -5
- package/lib/cross-env/index.cjs +178 -0
- package/lib/cross-env/index.d.ts +8 -0
- package/lib/cross-env/index.js +102 -0
- package/lib/cross-env/index.mjs +101 -0
- package/lib/cross-env/variable.cjs +60 -0
- package/lib/cross-env/variable.d.ts +7 -0
- package/lib/cross-env/variable.js +59 -0
- package/lib/cross-env/variable.mjs +9 -0
- package/lib/del-gradle.cjs +8 -13
- package/lib/del-gradle.js +8 -8
- package/lib/del-gradle.mjs +1 -1
- package/lib/del-node-modules.cjs +185 -3
- package/lib/del-node-modules.js +25 -25
- package/lib/del-node-modules.mjs +6 -3
- package/lib/{del-ps.cjs → del-ps-cli.cjs} +38 -43
- package/lib/del-ps-cli.d.mts +1 -0
- package/lib/del-ps-cli.mjs +44 -0
- package/lib/del-yarn-caches.cjs +8 -13
- package/lib/del-yarn-caches.js +2 -2
- package/lib/del-yarn-caches.mjs +1 -1
- package/lib/downloader-cli.cjs +256 -0
- package/lib/downloader-cli.d.cts +2 -0
- package/lib/downloader-cli.mjs +90 -0
- package/lib/file/copy-cli.cjs +273 -0
- package/lib/file/copy-cli.d.mts +1 -0
- package/lib/file/copy-cli.mjs +59 -0
- package/lib/file/copy.cjs +56 -0
- package/lib/file/copy.d.mts +1 -0
- package/lib/file/copy.mjs +8 -0
- package/lib/file/move-cli.cjs +272 -0
- package/lib/file/move-cli.d.mts +1 -0
- package/lib/file/move-cli.mjs +59 -0
- package/lib/file/move.cjs +55 -0
- package/lib/file/move.d.mts +1 -0
- package/lib/file/move.mjs +8 -0
- package/lib/find-node-modules-cli.cjs +1 -1
- package/lib/find-node-modules-cli.js +1 -1
- package/lib/find-node-modules-cli.mjs +1 -1
- package/lib/find-node-modules.cjs +1 -1
- package/lib/find-node-modules.mjs +1 -1
- package/lib/free-chatgpt.cjs +27 -26
- package/lib/free-chatgpt.js +10 -10
- package/lib/free-chatgpt.mjs +2 -2
- package/lib/git/user-config.cjs +9 -14
- package/lib/git/user-config.mjs +2 -2
- package/lib/git-diff-cli.cjs +273 -66
- package/lib/git-diff-cli.mjs +5 -4
- package/lib/git-diff.cjs +273 -66
- package/lib/git-diff.d.ts +2 -1
- package/lib/git-diff.js +153 -39
- package/lib/git-diff.mjs +5 -4
- package/lib/git-fix.cjs +9 -14
- package/lib/git-fix.mjs +2 -2
- package/lib/git-purge.cjs +9 -14
- package/lib/git-purge.mjs +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +1 -1
- package/lib/kill-night-crows.cjs +7 -7
- package/lib/kill-night-crows.mjs +7 -7
- package/lib/node-cache-cleaner/npm.cjs +65 -0
- package/lib/node-cache-cleaner/npm.d.ts +2 -0
- package/lib/node-cache-cleaner/npm.js +41 -0
- package/lib/node-cache-cleaner/npm.mjs +10 -0
- package/lib/node-cache-cleaner/npx.cjs +89 -0
- package/lib/node-cache-cleaner/npx.d.ts +4 -0
- package/lib/node-cache-cleaner/npx.js +82 -0
- package/lib/{ps/index.d.mjs → node-cache-cleaner/npx.mjs} +6 -5
- package/lib/node-cache-cleaner/yarn.cjs +73 -0
- package/lib/node-cache-cleaner/yarn.d.ts +2 -0
- package/lib/node-cache-cleaner/yarn.js +62 -0
- package/lib/node-cache-cleaner/yarn.mjs +10 -0
- package/lib/node-cache-cleaner-cli.cjs +365 -0
- package/lib/node-cache-cleaner-cli.d.ts +2 -0
- package/lib/node-cache-cleaner-cli.js +57 -0
- package/lib/node-cache-cleaner-cli.mjs +60 -0
- package/lib/node-executor.cjs +272 -0
- package/lib/node-executor.d.cts +2 -0
- package/lib/node-executor.mjs +106 -0
- package/lib/node-package-packer/build-readme.cjs +150 -0
- package/lib/node-package-packer/build-readme.d.mts +10 -0
- package/lib/node-package-packer/build-readme.mjs +10 -0
- package/lib/node-package-packer/build-tarball.cjs +495 -0
- package/lib/node-package-packer/build-tarball.d.mts +33 -0
- package/lib/node-package-packer/build-tarball.mjs +175 -0
- package/lib/node-package-packer-cli.cjs +525 -0
- package/lib/node-package-packer-cli.d.mts +1 -0
- package/lib/node-package-packer-cli.mjs +34 -0
- package/lib/npm-run-series.cjs +28 -40
- package/lib/npm-run-series.mjs +21 -7
- package/lib/package-resolutions-updater-cli.cjs +255 -173
- package/lib/package-resolutions-updater-cli.mjs +19 -40
- package/lib/package-resolutions-updater.cjs +244 -141
- package/lib/package-resolutions-updater.d.mts +54 -1
- package/lib/package-resolutions-updater.mjs +8 -5
- package/lib/php-cs-fixer-staged.cjs +1 -1
- package/lib/php-cs-fixer-staged.mjs +1 -1
- package/lib/print-directory-tree.cjs +18 -20
- package/lib/print-directory-tree.mjs +11 -8
- package/lib/print-tarball-tree.cjs +262 -0
- package/lib/print-tarball-tree.d.mts +1 -0
- package/lib/print-tarball-tree.mjs +68 -0
- package/lib/ps/connected-domain.js +10 -10
- package/lib/ps/index.cjs +11 -11
- package/lib/ps/index.mjs +180 -174
- package/lib/ps/table-parser.d.ts +3 -4
- package/lib/ps/table-parser.js +15 -22
- package/lib/remove-module.cjs +19 -24
- package/lib/remove-module.mjs +2 -2
- package/lib/rm-node-module-cli.cjs +389 -0
- package/lib/rm-node-module-cli.d.cts +1 -0
- package/lib/rm-node-module-cli.mjs +92 -0
- package/lib/rm-node-modules.cjs +127 -0
- package/lib/rm-node-modules.d.cts +35 -0
- package/lib/{binary-collections-config.mjs → rm-node-modules.mjs} +3 -3
- package/lib/rmpath-cli.cjs +285 -0
- package/lib/rmpath-cli.d.mts +1 -0
- package/lib/rmpath-cli.mjs +23 -0
- package/lib/rmpath.cjs +6 -217
- package/lib/rmpath.mjs +5 -101
- package/lib/run-by-checksum/cache.cjs +69 -0
- package/lib/run-by-checksum/cache.d.ts +19 -0
- package/lib/run-by-checksum/cache.js +50 -0
- package/lib/run-by-checksum/cache.mjs +12 -0
- package/lib/run-by-checksum/hash.cjs +72 -0
- package/lib/run-by-checksum/hash.d.ts +14 -0
- package/lib/run-by-checksum/hash.js +85 -0
- package/lib/run-by-checksum/hash.mjs +10 -0
- package/lib/run-by-checksum/run.cjs +169 -0
- package/lib/run-by-checksum/run.d.ts +22 -0
- package/lib/run-by-checksum/run.js +93 -0
- package/lib/run-by-checksum/run.mjs +10 -0
- package/lib/run-by-checksum-cli.cjs +382 -0
- package/lib/run-by-checksum-cli.d.ts +2 -0
- package/lib/run-by-checksum-cli.js +43 -0
- package/lib/run-by-checksum-cli.mjs +56 -0
- package/lib/submodule-install.cjs +55 -47
- package/lib/submodule-install.mjs +48 -35
- package/lib/submodule-remove-cli.cjs +170 -4
- package/lib/submodule-remove-cli.js +5 -5
- package/lib/submodule-remove-cli.mjs +6 -4
- package/lib/utils/chatgpt.cjs +19 -13
- package/lib/utils/chatgpt.js +94 -94
- package/lib/utils/chatgpt.mjs +1 -1
- package/lib/utils/fetchResponse.cjs +24 -0
- package/lib/utils/fetchResponse.d.cts +25 -0
- package/lib/utils/fetchResponse.mjs +6 -0
- package/lib/utils/findEnvFiles.cjs +28 -46
- package/lib/utils/findEnvFiles.d.cts +19 -0
- package/lib/utils/findEnvFiles.mjs +3 -5
- package/lib/utils/findWorkspaceRoot.js +4 -4
- package/lib/utils/index.cjs +7 -12
- package/lib/utils/index.d.cts +2 -9
- package/lib/utils/index.mjs +1 -1
- package/lib/utils/isGithubTokenValid.js +7 -7
- package/lib/{ps/isWin.cjs → utils/isWindows.cjs} +12 -7
- package/lib/utils/isWindows.d.ts +5 -0
- package/lib/utils/isWindows.js +10 -0
- package/lib/utils/isWindows.mjs +10 -0
- package/lib/utils/runBash.cjs +53 -0
- package/lib/utils/runBash.d.cts +12 -0
- package/lib/utils/runBash.mjs +66 -0
- package/lib/yarn-per-branch-lock-installer.cjs +288 -0
- package/lib/yarn-per-branch-lock-installer.d.cts +2 -0
- package/lib/yarn-per-branch-lock-installer.mjs +122 -0
- package/lib/yarn-reinstall.cjs +8 -13
- package/lib/yarn-reinstall.mjs +1 -1
- package/package.json +91 -57
- package/readme.html +784 -0
- package/readme.md +107 -219
- package/releases/readme.md +6 -3
- package/test/README.md +2 -2
- package/test-project/workspaces/workspace-a/readme.md +20 -0
- package/test-project/workspaces/workspace-a/release/readme.md +42 -0
- package/test-project/workspaces/workspace-a/test/readme.md +12 -0
- package/test-project/workspaces/workspace-b/readme.md +94 -0
- package/test-project/workspaces/workspace-b/requirements.txt +1 -0
- package/test-project/workspaces/workspace-b/themes/hexo-theme-flowbite/readme.md +156 -0
- package/tmp/test-repo/README.md +2 -35
- package/tmp/test-repo-runChecksum/test-complex-glob/README.md +1 -0
- package/tmp/test-repo-runChecksum/test-mixed-args/README.md +1 -0
- package/lib/binary-collections-config.cjs +0 -15
- package/lib/chunk-2CBJCW7E.mjs +0 -81
- package/lib/chunk-4UHL4WVN.mjs +0 -136
- package/lib/chunk-6HHJRKFB.mjs +0 -59
- package/lib/chunk-6S4NXESK.mjs +0 -26
- package/lib/chunk-7XTEJHOE.mjs +0 -193
- package/lib/chunk-AJDD5DZM.mjs +0 -109
- package/lib/chunk-FCDQGYBF.mjs +0 -136
- package/lib/chunk-GEYA2USY.mjs +0 -207
- package/lib/chunk-GJTGHXRA.mjs +0 -356
- package/lib/chunk-ID2WBTE2.mjs +0 -80
- package/lib/chunk-JXFOHKDM.mjs +0 -239
- package/lib/chunk-NCXAP7AA.mjs +0 -31
- package/lib/chunk-PDSXF5HY.mjs +0 -187
- package/lib/chunk-TOIVAQF7.mjs +0 -136
- package/lib/chunk-V5SKYJUB.mjs +0 -136
- package/lib/chunk-WSRETQCA.mjs +0 -59
- package/lib/chunk-YYLIQQKF.mjs +0 -31
- package/lib/del-ps.js +0 -32
- package/lib/del-ps.mjs +0 -43
- package/lib/ps/index.d.cjs +0 -17
- package/lib/ps/index.d.ts +0 -2
- package/lib/ps/index.js +0 -254
- package/lib/ps/isWin.d.ts +0 -2
- package/lib/ps/isWin.js +0 -4
- package/lib/utils/findEnvFiles.d.ts +0 -8
- package/lib/utils/findEnvFiles.js +0 -121
- package/test/package.json +0 -20
- package/test-project/package.json +0 -16
- package/tmp/test-repo/package.json +0 -7
- package/tmp/typedoc/readme.md +0 -320
- /package/lib/{binary-collections-config.d.cts → binary-collections/config.d.cts} +0 -0
- /package/lib/{del-ps.d.ts → clean-github-actions-caches-cli.d.cts} +0 -0
package/readme.md
CHANGED
|
@@ -1,59 +1,94 @@
|
|
|
1
|
-
# Binary Collections
|
|
2
|
-
A comprehensive toolkit of Node.js CLI utilities for streamlining development workflows. Includes tools for git operations, dependency management, build processes, automation, and more.
|
|
1
|
+
# 🚀 Binary Collections
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
A comprehensive toolkit of Node.js CLI utilities designed to streamline everyday development workflows.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
It provides fast, lightweight commands for common tasks like git operations, dependency management, submodule handling, and running npm scripts in sequence or parallel—helping you reduce repetitive work and improve terminal productivity.
|
|
6
|
+
|
|
7
|
+
## ✨ Features
|
|
8
|
+
|
|
9
|
+
* ⚡ **Git Workflow Utilities**
|
|
10
|
+
Streamline common Git tasks including diff enhancements, status automation, submodule management, and repository cleanup.
|
|
11
|
+
|
|
12
|
+
* 🧹 **Cleanup Tools**
|
|
13
|
+
Quickly remove `node_modules`, clear package manager caches (npm/yarn), and clean build artifacts such as Gradle outputs.
|
|
14
|
+
|
|
15
|
+
* 🔁 **Task Orchestration**
|
|
16
|
+
Run npm scripts sequentially or in parallel with improved control and execution clarity.
|
|
17
|
+
|
|
18
|
+
* 📁 **Repository & Submodule Automation**
|
|
19
|
+
Simplify initialization, syncing, and maintenance of Git submodules and multi-repository setups.
|
|
20
|
+
|
|
21
|
+
* 📦 **Build & Package Utilities**
|
|
22
|
+
Enhance NPM workflows with improved script execution, dependency handling, and resolution helpers.
|
|
23
|
+
|
|
24
|
+
* 🛠️ **Development Helpers**
|
|
25
|
+
General-purpose utilities for process management, environment setup, and file system operations.
|
|
26
|
+
|
|
27
|
+
* 🚀 **Performance-Focused CLI Design**
|
|
28
|
+
Lightweight, fast-executing commands designed to reduce friction and speed up everyday development tasks.
|
|
10
29
|
|
|
11
30
|
## Installation
|
|
12
31
|
|
|
13
|
-
###
|
|
14
|
-
|
|
15
|
-
git clone -b master https://github.com/dimaslanjaka/bin bin
|
|
16
|
-
```
|
|
32
|
+
### Option 1: NPM Package
|
|
33
|
+
Install locally to your project or globally for system-wide access.
|
|
17
34
|
|
|
18
|
-
### NPM Installation
|
|
19
35
|
```bash
|
|
20
|
-
#
|
|
36
|
+
# Local installation
|
|
21
37
|
npm install binary-collections
|
|
22
38
|
|
|
23
|
-
#
|
|
39
|
+
# Global installation
|
|
24
40
|
npm install binary-collections -g
|
|
25
41
|
|
|
26
|
-
# Install from release archive
|
|
42
|
+
# Install from specific release archive
|
|
27
43
|
npm install binary-collections@https://github.com/dimaslanjaka/bin/raw/master/releases/bin.tgz
|
|
28
44
|
```
|
|
29
45
|
|
|
30
|
-
### Direct
|
|
46
|
+
### Option 2: Direct Execution
|
|
47
|
+
Run without installing using `npx` or `yarn dlx`.
|
|
31
48
|
|
|
32
49
|
```bash
|
|
33
|
-
# Yarn
|
|
50
|
+
# Using Yarn Berry
|
|
34
51
|
yarn dlx binary-collections@https://raw.githubusercontent.com/dimaslanjaka/bin/master/releases/bin.tgz <command-name>
|
|
35
52
|
|
|
36
|
-
# NPX
|
|
37
|
-
npx -y binary-collections@https://raw.githubusercontent.com/dimaslanjaka/bin/master/releases/bin.tgz <command-name>
|
|
53
|
+
# Using NPX
|
|
54
|
+
npx --legacy-peer-deps -y binary-collections@https://raw.githubusercontent.com/dimaslanjaka/bin/master/releases/bin.tgz <command-name>
|
|
38
55
|
```
|
|
39
56
|
|
|
40
|
-
|
|
57
|
+
### Option 3: Clone Repository
|
|
58
|
+
For development or manual setup.
|
|
41
59
|
|
|
42
|
-
|
|
60
|
+
```bash
|
|
61
|
+
git clone -b master https://github.com/dimaslanjaka/bin bin
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## VSCode Integration
|
|
65
|
+
|
|
66
|
+
To make these tools available directly in your VSCode terminal, create or update `.vscode/settings.json`:
|
|
43
67
|
|
|
44
68
|
```jsonc
|
|
45
69
|
{
|
|
46
70
|
"terminal.integrated.env.linux": {
|
|
47
|
-
"PATH": "
|
|
71
|
+
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:${workspaceFolder}/bin:${workspaceFolder}/node_modules/.bin:${workspaceFolder}/vendor/bin",
|
|
72
|
+
"PUPPETEER_SKIP_DOWNLOAD": "true"
|
|
48
73
|
},
|
|
49
74
|
"terminal.integrated.env.windows": {
|
|
50
|
-
"PATH": "${env:PATH};${workspaceFolder}\\node_modules\\.bin;${workspaceFolder}\\bin"
|
|
75
|
+
"PATH": "${env:LOCALAPPDATA}\\nvm;C:\\nvm4w\\nodejs;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\usr\\bin;${env:PATH};${workspaceFolder}\\node_modules\\.bin;${workspaceFolder}\\bin;${workspaceFolder}\\vendor\\bin;C:\\laragon\\bin\\mysql\\mysql-8.4.3-winx64\\bin;C:\\Users\\Dell\\AppData\\Local\\Programs\\Ollama",
|
|
76
|
+
"PUPPETEER_SKIP_DOWNLOAD": "true"
|
|
51
77
|
},
|
|
52
78
|
"terminal.integrated.profiles.windows": {
|
|
53
79
|
"PowerShell": {
|
|
54
80
|
"source": "PowerShell",
|
|
55
81
|
"icon": "terminal-powershell"
|
|
56
82
|
},
|
|
83
|
+
"Short PowerShell": {
|
|
84
|
+
"source": "PowerShell",
|
|
85
|
+
"args": [
|
|
86
|
+
"-NoExit",
|
|
87
|
+
"-Command",
|
|
88
|
+
"function prompt { \"[$((Get-Item .).Name)]> \" }"
|
|
89
|
+
],
|
|
90
|
+
"icon": "terminal-powershell"
|
|
91
|
+
},
|
|
57
92
|
"Command Prompt": {
|
|
58
93
|
"path": [
|
|
59
94
|
"${env:windir}\\Sysnative\\cmd.exe",
|
|
@@ -62,12 +97,25 @@ Create `.vscode/settings.json` to add binary tools to your PATH:
|
|
|
62
97
|
"args": [],
|
|
63
98
|
"icon": "terminal-cmd"
|
|
64
99
|
},
|
|
100
|
+
"Short Command Prompt": {
|
|
101
|
+
"path": [
|
|
102
|
+
"${env:windir}\\System32\\cmd.exe"
|
|
103
|
+
],
|
|
104
|
+
"args": [
|
|
105
|
+
"/k",
|
|
106
|
+
"prompt $p$_$g"
|
|
107
|
+
],
|
|
108
|
+
"icon": "terminal-cmd"
|
|
109
|
+
},
|
|
65
110
|
"Git Bash": {
|
|
66
111
|
"source": "Git Bash"
|
|
67
112
|
},
|
|
68
113
|
"Cygwin": {
|
|
69
114
|
"path": "C:\\cygwin64\\bin\\bash.exe",
|
|
70
|
-
"args": [
|
|
115
|
+
"args": [
|
|
116
|
+
"--login",
|
|
117
|
+
"-i"
|
|
118
|
+
],
|
|
71
119
|
"env": {
|
|
72
120
|
"CHERE_INVOKING": "1"
|
|
73
121
|
}
|
|
@@ -79,203 +127,42 @@ Create `.vscode/settings.json` to add binary tools to your PATH:
|
|
|
79
127
|
|
|
80
128
|
## Available Tools
|
|
81
129
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
| Category | Commands | Description |
|
|
85
|
-
|---|---|---|
|
|
86
|
-
| **Git** | `git-purge`, `git-diff`, `git-fix`, `git-reduce-size` | Git repository management and optimization |
|
|
87
|
-
| **Submodules** | `submodule`, `submodule-install`, `submodule-remove`, `submodule-token` | Git submodule operations |
|
|
88
|
-
| **NPM Scripts** | `nrs`, `run-s`, `run-series`, `npm-run-series` | Run npm scripts in series with pattern matching |
|
|
89
|
-
| **Package Mgmt** | `yarn-reinstall`, `pkg-resolutions-updater`, `pkg-res-updater` | Yarn/package resolutions management utilities |
|
|
90
|
-
| **Node.js Dev** | `find-node-modules`, `find-nodemodules`, `dev`, `prod`, `empty` | Node.js development helpers |
|
|
91
|
-
| **Process Mgmt** | `kill-process`, `nodekill`, `javakill`, `del-ps` | Process management and termination |
|
|
92
|
-
| **File System** | `rmfind`, `rmpath`, `rmx`, `print-tree`, `dir-tree` | File system operations |
|
|
93
|
-
| **Cleanup** | `del-nodemodules`, `del-yarncaches`, `del-gradle` | Cache and build directory cleanup |
|
|
94
|
-
| **GitHub Actions** | `clean-github-actions-caches`, `clean-github-actions-cache`, `clear-github-actions-cache`, `clear-github-actions-caches`, `clear-gh-caches` | Remove old GitHub Actions caches, keep only latest |
|
|
95
|
-
|
|
96
|
-
### Git Tools
|
|
97
|
-
|
|
98
|
-
#### Git Repository Purge
|
|
99
|
-
Clean and optimize git repositories by pruning reflogs:
|
|
100
|
-
```bash
|
|
101
|
-
git-purge
|
|
102
|
-
```
|
|
103
|
-

|
|
104
|
-
|
|
105
|
-
#### Git Diff Utility
|
|
106
|
-
Enhanced git diff functionality:
|
|
107
|
-
```bash
|
|
108
|
-
git-diff
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
#### Git Fix Utility
|
|
112
|
-
Comprehensive Git configuration fixer for cross-platform development (replaces `git-fix-encoding`):
|
|
130
|
+
To view a complete list of available binaries, run:
|
|
113
131
|
```bash
|
|
114
|
-
|
|
115
|
-
git-fix --lf-only # Force LF line endings only
|
|
116
|
-
git-fix --permissions # Ignore file permissions only
|
|
117
|
-
git-fix --normalize # Normalize existing files only
|
|
118
|
-
git-fix --user # Configure Git user from environment
|
|
119
|
-
git-fix --user NAME EMAIL # Configure Git user with specific values
|
|
120
|
-
git-fix --user --update-remote # Also update remote URL to match user
|
|
121
|
-
git-fix --user NAME EMAIL --update-remote # Configure user and update remote URL
|
|
132
|
+
binary-collections list
|
|
122
133
|
```
|
|
123
|
-
Features:
|
|
124
|
-
- Forces LF line endings (`core.autocrlf = false`)
|
|
125
|
-
- Ignores file permission changes (`core.filemode = false`)
|
|
126
|
-
- Sets pull strategy to false (prevents auto-rebase)
|
|
127
|
-
- Normalizes existing line endings
|
|
128
|
-
- Creates/updates `.gitattributes` with proper line ending rules
|
|
129
|
-
- Configures Git user from environment variables or CLI arguments
|
|
130
|
-
- **Non-interactive:** All configuration is now argument-driven; no interactive prompts
|
|
131
|
-
- `--update-remote` flag: Update remote URL to match the configured user (for HTTPS remotes)
|
|
132
|
-
|
|
133
|
-
User Configuration:
|
|
134
|
-
- Environment variables: `GITHUB_USER`, `GITHUB_EMAIL`
|
|
135
|
-
- CLI arguments take precedence over environment variables
|
|
136
|
-
- Use `--update-remote` to update the remote URL with the configured user
|
|
137
|
-
- Examples:
|
|
138
|
-
```bash
|
|
139
|
-
git-fix --user "John Doe" "john@example.com" # Use CLI args
|
|
140
|
-
git-fix --user --update-remote # Use env vars and update remote
|
|
141
|
-
git-fix --user "Jane" "jane@example.com" --update-remote # CLI args and update remote
|
|
142
|
-
GITHUB_USER="Jane" GITHUB_EMAIL="jane@example.com" git-fix --user # Use env vars
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
#### Git Repository Size Reducer
|
|
146
|
-
Reduce git repository size by cleaning up history:
|
|
147
|
-
```bash
|
|
148
|
-
git-reduce-size
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
#### Submodule Management
|
|
152
|
-
- **`submodule`** - General submodule operations
|
|
153
|
-
- **`submodule-install`** - Install and setup submodules
|
|
154
|
-
- **`submodule-remove`** - Remove git submodules with interactive selection
|
|
155
|
-
- **`submodule-token`** - Manage submodule tokens
|
|
156
|
-
|
|
157
|
-

|
|
158
|
-
|
|
159
134
|
|
|
160
|
-
###
|
|
135
|
+
### Quick Reference & Command Documentation
|
|
161
136
|
|
|
162
|
-
|
|
137
|
+
| Category | Commands | Description | Docs |
|
|
138
|
+
|---|---|---|---|
|
|
139
|
+
| **Git** | `git-purge`, `git-diff`, `git-fix`, `git-reduce-size`, `git-undo` | Git repository management and optimization | [`git-purge.md`](./docs-src/git-purge.md), [`git-diff.md`](./docs-src/git-diff.md), [`git-fix.md`](./docs-src/git-fix.md), [`git-reduce-size.md`](./docs-src/git-reduce-size.md), [`git-undo.md`](./docs-src/git-undo.md) |
|
|
140
|
+
| **Submodules** | `submodule`, `submodule-install`, `submodule-remove`, `submodule-token` | Git submodule operations | [`submodule-install.md`](./docs-src/submodule-install.md), [`submodule-remove.md`](./docs-src/submodule-remove.md), [`submodule-token.md`](./docs-src/submodule-token.md) |
|
|
141
|
+
| **NPM Scripts** | `nrs`, `run-s`, `run-series`, `npm-run-series` | Run npm scripts in series with pattern matching | [`npm-run-series.md`](./docs-src/npm-run-series.md) |
|
|
142
|
+
| **Package Mgmt** | `yarn-reinstall`, `pkg-resolutions-updater`, `pkg-res-updater`, `yarn-install`, `yarn-clean` | Yarn/package resolutions management utilities | [`yarn-reinstall.md`](./docs-src/yarn-reinstall.md), [`yarn-install.md`](./docs-src/yarn-install.md), [`node-cache-cleaner.md`](./docs-src/node-cache-cleaner.md), [`package-resolutions-updater.md`](./docs-src/package-resolutions-updater.md) |
|
|
143
|
+
| **Node.js Dev** | `find-node-modules`, `find-nodemodules`, `dev`, `prod`, `empty`, `node-cache-cleaner`, `node-executor`, `py` | Node.js development helpers | [`find-node-modules.md`](./docs-src/find-node-modules.md), [`env-helpers.md`](./docs-src/env-helpers.md), [`node-cache-cleaner.md`](./docs-src/node-cache-cleaner.md), [`node-executor.md`](./docs-src/node-executor.md), [`py.md`](./docs-src/py.md) |
|
|
144
|
+
| **Process Mgmt** | `kill-process`, `nodekill`, `javakill`, `del-ps`, `kill-night-crows` | Process management and termination | [`del-ps.md`](./docs-src/del-ps.md), [`kill-night-crows.md`](./docs-src/kill-night-crows.md) |
|
|
145
|
+
| **File System** | `rmfind`, `rmpath`, `rmx`, `print-tree`, `dir-tree`, `copy`, `move`, `remove-module` | File system operations | [`copy-move-file.md`](./docs-src/copy-move-file.md), [`rmpath.md`](./docs-src/rmpath.md), [`rmfind-rmx.md`](./docs-src/rmfind-rmx.md), [`print-directory-tree.md`](./docs-src/print-directory-tree.md), [`remove-module.md`](./docs-src/remove-module.md) |
|
|
146
|
+
| **Cleanup** | `del-nodemodules`, `del-yarncaches`, `del-gradle`, `del-yarn-caches`, `yarn-clean` | Cache and build directory cleanup | [`node-cache-cleaner.md`](./docs-src/node-cache-cleaner.md), [`del-gradle.md`](./docs-src/del-gradle.md) |
|
|
147
|
+
| **GitHub Actions** | `clean-github-actions-caches`, `clean-github-actions-cache`, `clear-github-actions-cache`, `clear-github-actions-caches`, `clear-gh-caches` | Remove old GitHub Actions caches, keep only latest | [`clean-github-actions-caches.md`](./docs-src/clean-github-actions-caches.md) |
|
|
148
|
+
| **Other** | `binary-collections`, `changelog`, `php-cs-fixer-staged`, `free-chatgpt`, `test-runners` | Miscellaneous utilities and documentation | [`binary-collections.md`](./docs-src/binary-collections.md), [`changelog.md`](./docs-src/changelog.md), [`php-cs-fixer-staged.md`](./docs-src/php-cs-fixer-staged.md), [`free-chatgpt.md`](./docs-src/free-chatgpt.md), [`test-runners.md`](./docs-src/test-runners.md) |
|
|
163
149
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
#### Options
|
|
167
|
-
| Flag | Description |
|
|
168
|
-
|---------------------|---------------------------------------------|
|
|
169
|
-
| `--yarn` | Use `yarn run <script-name>` instead of npm |
|
|
170
|
-
| `--verbose`, `-v` | Enable verbose output |
|
|
171
|
-
|
|
172
|
-
#### Example
|
|
173
|
-
Execute all scripts matching the pattern `namescript:**`:
|
|
174
|
-
```json
|
|
175
|
-
{
|
|
176
|
-
"name": "package-name",
|
|
177
|
-
"version": "0.0.0",
|
|
178
|
-
"private": true,
|
|
179
|
-
"scripts": {
|
|
180
|
-
"namescript:xx": "echo xx",
|
|
181
|
-
"namescript:xxx": "echo xxx",
|
|
182
|
-
"namescript:xxxx": "echo xxxx",
|
|
183
|
-
"namescript:xxxxx": "echo xxxxx",
|
|
184
|
-
"namescript": "nrs --yarn=true --verbose=true \"namescript:**\""
|
|
185
|
-
},
|
|
186
|
-
"license": "ISC"
|
|
187
|
-
}
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Package Management Tools
|
|
191
|
-
|
|
192
|
-
#### Yarn Package Reinstaller
|
|
193
|
-
Reinstall yarn packages with dependency type flags:
|
|
194
|
-
```bash
|
|
195
|
-
yarn-reinstall <packageName> [--dev|-D|--peer|-P|--optional|-O]
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
#### Package Resolutions Manager
|
|
199
|
-
Manage package resolutions in package.json (aliases: `pkg-resolutions-updater`, `pkg-res-updater`):
|
|
200
|
-
```bash
|
|
201
|
-
pkg-resolutions-updater
|
|
202
|
-
pkg-res-updater
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Node.js Development Tools
|
|
206
|
-
|
|
207
|
-
#### Node Modules Finder
|
|
208
|
-
Find all node_modules directories in a project:
|
|
209
|
-
```bash
|
|
210
|
-
find-node-modules # Library function
|
|
211
|
-
find-node-modules-cli # CLI tool
|
|
212
|
-
find-nodemodules # Alias
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
#### Development Environment Helpers
|
|
216
|
-
- **`dev`** - Development environment setup
|
|
217
|
-
- **`prod`** - Production environment setup
|
|
218
|
-
- **`empty`** - Empty utility tool
|
|
219
|
-
|
|
220
|
-
### Process Management Tools
|
|
221
|
-
|
|
222
|
-
#### Process Killers
|
|
223
|
-
Kill processes by name or pattern:
|
|
224
|
-
```bash
|
|
225
|
-
kill-process # General process killer
|
|
226
|
-
nodekill # Kill Node.js processes
|
|
227
|
-
javakill # Kill Java processes (Windows)
|
|
228
|
-
del-ps # Kill processes by command name
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
#### File System Tools
|
|
232
|
-
- **`rmfind`** - Find and remove files
|
|
233
|
-
- **`rmpath`** - Remove from PATH
|
|
234
|
-
- **`rmx`** - Remove executable files
|
|
235
|
-
|
|
236
|
-
### Cleanup Tools
|
|
237
|
-
|
|
238
|
-
#### GitHub Actions Cache Cleaner
|
|
239
|
-
[See full documentation](./docs-src/clean-github-actions-caches.md).
|
|
240
|
-
|
|
241
|
-
#### Node Modules Cleaner
|
|
242
|
-
Remove node_modules directories recursively:
|
|
243
|
-
```bash
|
|
244
|
-
del-nodemodules # Primary command
|
|
245
|
-
del-node-modules # Alternative
|
|
246
|
-
clean-nodemodule # Legacy
|
|
247
|
-
clean-nodemodules # Legacy
|
|
248
|
-
```
|
|
249
|
-

|
|
250
|
-
|
|
251
|
-
#### Yarn Cache Cleaner
|
|
252
|
-
Clear yarn cache directories:
|
|
253
|
-
```bash
|
|
254
|
-
del-yarncaches # Primary command
|
|
255
|
-
del-yarn-caches # Alternative
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
#### Gradle Build Cleaner
|
|
259
|
-
Delete gradle build folders:
|
|
260
|
-
```bash
|
|
261
|
-
del-gradle
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
#### Free ChatGPT automation tool
|
|
265
|
-
|
|
266
|
-
[See full documentation](./docs-src/free-chatgpt.md)
|
|
150
|
+
---
|
|
267
151
|
|
|
268
152
|
## Troubleshooting
|
|
269
153
|
|
|
270
154
|
### Submodule Installation Issues
|
|
271
|
-
|
|
155
|
+
|
|
156
|
+
**Error:**
|
|
272
157
|
```log
|
|
273
158
|
fatal: 'origin/<branch>' is not a commit and a branch '<branch>' cannot be created from it
|
|
274
159
|
fatal: unable to checkout submodule '<folder>/<submodule>'
|
|
275
160
|
```
|
|
276
|
-
**Solution**: Delete `.git/modules` directory before running `submodule-install`.
|
|
277
161
|
|
|
278
|
-
|
|
162
|
+
**Solution:**
|
|
163
|
+
Delete the `.git/modules` directory before running `submodule-install`.
|
|
164
|
+
|
|
165
|
+
**Complete Reset & Install:**
|
|
279
166
|
```bash
|
|
280
167
|
echo "Initializing submodules..."
|
|
281
168
|
git submodule init
|
|
@@ -290,25 +177,26 @@ npx --yes rimraf .git/modules
|
|
|
290
177
|
npx --yes binary-collections@https://raw.githubusercontent.com/dimaslanjaka/bin/master/releases/bin.tgz submodule-install
|
|
291
178
|
```
|
|
292
179
|
|
|
293
|
-
##
|
|
180
|
+
## Development
|
|
181
|
+
|
|
182
|
+
### Test Local Command Executor
|
|
183
|
+
|
|
184
|
+
When developing locally, to test the bundled executor run `bc <commandName>` (use `bin/bc` on Unix or `bin/bc.cmd` on Windows). Its usage is the same as `binary-collections <commandName>` but intended only for development and testing.
|
|
294
185
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
- The build process updates the `bin` field in `package.json` to reflect all available executables.
|
|
298
|
-
- Source code for utilities is located in the `src/` folder.
|
|
186
|
+
### Command List Generation
|
|
187
|
+
The list of available binaries is auto-generated by [`build.mjs`](./build.mjs). This script scans `bin/`, `lib/`, and updates the `bin` field in `package.json`.
|
|
299
188
|
|
|
300
|
-
To update the binary list
|
|
189
|
+
To update the binary list:
|
|
301
190
|
```bash
|
|
302
191
|
yarn run build
|
|
303
192
|
# or
|
|
304
193
|
node build.mjs
|
|
305
194
|
```
|
|
306
|
-
This scans the project and updates `package.json` with all available binaries. The list may change as files are added or removed.
|
|
307
195
|
|
|
308
|
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
311
|
-
-
|
|
196
|
+
### Project Structure
|
|
197
|
+
- **Source Code**: Located in the `src/` folder.
|
|
198
|
+
- **Binaries**: Executable scripts located in `bin/`.
|
|
199
|
+
- **Libraries**: Reusable modules in `lib/`.
|
|
312
200
|
|
|
313
201
|
## Contributing
|
|
314
202
|
|
|
@@ -316,4 +204,4 @@ Contributions are welcome! Please feel free to submit a Pull Request.
|
|
|
316
204
|
|
|
317
205
|
## License
|
|
318
206
|
|
|
319
|
-
This project is licensed under the terms specified in the LICENSE file.
|
|
207
|
+
This project is licensed under the terms specified in the [LICENSE](./LICENSE) file.
|
package/releases/readme.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
## Releases
|
|
3
3
|
| version | tarball url |
|
|
4
4
|
| :--- | :--- |
|
|
5
|
-
| latest | https://github.com/dimaslanjaka/bin/raw/
|
|
5
|
+
| latest | https://github.com/dimaslanjaka/bin/raw/f9d6d4b/releases/bin.tgz |
|
|
6
6
|
| latest | https://github.com/dimaslanjaka/bin/raw/master/releases/bin.tgz |
|
|
7
7
|
|
|
8
8
|
use this tarball with `resolutions`:
|
|
@@ -16,7 +16,9 @@ use this tarball with `resolutions`:
|
|
|
16
16
|
|
|
17
17
|
## Releases
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Get URL of `binary-collections` Release Tarball
|
|
20
22
|
- select tarball file
|
|
21
23
|

|
|
22
24
|
- copy raw url
|
|
@@ -24,6 +26,7 @@ use this tarball with `resolutions`:
|
|
|
24
26
|
- or copy download url
|
|
25
27
|

|
|
26
28
|
- then run installation from command line
|
|
29
|
+
|
|
27
30
|
```bash
|
|
28
31
|
npm i https://....url-tgz
|
|
29
32
|
```
|
|
@@ -33,4 +36,4 @@ npm i https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/node
|
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
## URL Parts Explanations
|
|
36
|
-
> https://github.com/github-username/github-repo-name/raw/github-branch-name/path-to-file-with-extension
|
|
39
|
+
> https://github.com/github-username/github-repo-name/raw/github-branch-name/path-to-file-with-extension
|
package/test/README.md
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Determine hexo instance
|
|
2
|
+
|
|
3
|
+
> Where is you now ? page ? archive ? whatever
|
|
4
|
+
|
|
5
|
+
this plugin can be used to determine where you are from plugin hexo
|
|
6
|
+
|
|
7
|
+
# Usage
|
|
8
|
+
|
|
9
|
+
- full test: https://github.com/dimaslanjaka/hexo-is/tree/master/test
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
const { hexoIs } = require('hexo-is');
|
|
13
|
+
function where(content, data){
|
|
14
|
+
console.log(hexoIs(data));
|
|
15
|
+
}
|
|
16
|
+
hexo.extend.filter.register("after_render:js", where);
|
|
17
|
+
hexo.extend.filter.register("after_render:css", where);
|
|
18
|
+
hexo.extend.filter.register("after_render:html", where);
|
|
19
|
+
where.call(hexo, {/* any mock object data */});
|
|
20
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Release `hexo-is` tarball
|
|
2
|
+
## Releases
|
|
3
|
+
| version | tarball url |
|
|
4
|
+
| :--- | :--- |
|
|
5
|
+
| 1.0.4 | https://github.com/dimaslanjaka/hexo-is/raw/6c39e7d/release/hexo-is-1.0.4.tgz |
|
|
6
|
+
| 1.0.5 | https://github.com/dimaslanjaka/hexo-is/raw/be69f8d/release/hexo-is-1.0.5.tgz |
|
|
7
|
+
| 2.0.0 | https://github.com/dimaslanjaka/hexo-is/raw/d7dfef5/release/hexo-is-2.0.0.tgz |
|
|
8
|
+
| 2.0.1 | https://github.com/dimaslanjaka/hexo-is/raw/8c5c917/release/hexo-is-2.0.1.tgz |
|
|
9
|
+
| 2.0.2 | https://github.com/dimaslanjaka/hexo-is/raw/47d81d2/release/hexo-is-2.0.2.tgz |
|
|
10
|
+
| 2.0.3 | https://github.com/dimaslanjaka/hexo-is/raw/47d81d2/release/hexo-is-2.0.3.tgz |
|
|
11
|
+
| latest | https://github.com/dimaslanjaka/hexo-is/raw/47d81d2/release/hexo-is.tgz |
|
|
12
|
+
| latest | https://github.com/dimaslanjaka/hexo-is/raw/master/release/hexo-is.tgz |
|
|
13
|
+
|
|
14
|
+
use this tarball with `resolutions`:
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"hexo-is": "<url of tarball>"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Releases
|
|
24
|
+
|
|
25
|
+
## Get URL of `hexo-is` Release Tarball
|
|
26
|
+
- select tarball file
|
|
27
|
+

|
|
28
|
+
- copy raw url
|
|
29
|
+

|
|
30
|
+
- or copy download url
|
|
31
|
+

|
|
32
|
+
- then run installation from command line
|
|
33
|
+
```bash
|
|
34
|
+
npm i https://....url-tgz
|
|
35
|
+
```
|
|
36
|
+
for example
|
|
37
|
+
```bash
|
|
38
|
+
npm i https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/nodejs-package-types.tgz
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## URL Parts Explanations
|
|
42
|
+
> https://github.com/github-username/github-repo-name/raw/github-branch-name/path-to-file-with-extension
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# hexo-themes
|
|
2
|
+
My HexoJS Theme Collections
|
|
3
|
+
|
|
4
|
+
| package | description
|
|
5
|
+
| :--- | :--- |
|
|
6
|
+
| [hexo-theme-flowbite](./themes/hexo-theme-flowbite/) | Hexo theme build using **tailwind** and **flowbite** |
|
|
7
|
+
|
|
8
|
+
### How to install this repo locally
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
touch yarn.lock
|
|
12
|
+
yarn install
|
|
13
|
+
yarn serve
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### How to install Theme
|
|
17
|
+
|
|
18
|
+
- download `tgz` file from [Relase Folder](./releases/)
|
|
19
|
+
- extract `<tgz>/package/<all files here>` file to `<hexo project>/themes/hexo-theme-name/<here>`
|
|
20
|
+
- install dependencies eg: `npm install hexo-theme-flowbite` or `yarn add hexo-theme-flowbite` (change theme name)
|
|
21
|
+
|
|
22
|
+
> for enable dynamic build on-fly like **hexo-theme-flowbite** add as **dev dependencies** (`yarn add -D hexo-theme-flowbite`)
|
|
23
|
+
|
|
24
|
+
#### How to update markdown-it to latest for Hexo
|
|
25
|
+
|
|
26
|
+
- install customized `markdown-it` [see why](https://github.com/dimaslanjaka/hexo-renderers/tree/esm#requirements)
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
yarn add markdown-it@https://github.com/dimaslanjaka/markdown-it/raw/2000d25dec653f6e62a545b30f6d58fad20e6d1f/release/markdown-it.tgz
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
> OR just using `hexo-renderers` to using built-in `markdown-it`
|
|
33
|
+
|
|
34
|
+
#### How to enable auto SEO
|
|
35
|
+
|
|
36
|
+
- install `hexo-seo`
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
yarn add hexo-seo
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[Read how to configure hexo-seo](https://github.com/dimaslanjaka/hexo-seo#readme)
|
|
43
|
+
|
|
44
|
+
#### How to update
|
|
45
|
+
|
|
46
|
+
To update theme, just call `npx hexo-theme-name` on cwd hexo project. Sample:
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
> [more detailed config here](./themes/hexo-theme-flowbite/_config.yml)
|
|
53
|
+
|
|
54
|
+
#### Search data
|
|
55
|
+
|
|
56
|
+
All post metadata on `{{ config.root }}/hexo-search.json` with contents
|
|
57
|
+
|
|
58
|
+
```jsonc
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
"url": "url relative post",
|
|
62
|
+
"title": "post title",
|
|
63
|
+
"description": "post excerpt or description"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Contribute
|
|
69
|
+
|
|
70
|
+
Step to contribute
|
|
71
|
+
|
|
72
|
+
#### Setup
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git submodule update -i -r
|
|
76
|
+
touch yarn.lock
|
|
77
|
+
yarn install
|
|
78
|
+
yarn build
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### Live testing
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
yarn run start
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Test responsive screenshoot at https://ui.dev/amiresponsive
|
|
88
|
+
|
|
89
|
+
#### Bundle
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
yarn run build
|
|
93
|
+
yarn run pack
|
|
94
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
djlint
|