binary-collections 2.0.3 → 2.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/bin/bash-dummy +7 -2
- package/bin/clean-nodemodule +7 -2
- package/bin/clean-nodemodules +7 -2
- package/bin/dev +7 -2
- package/bin/empty +7 -2
- package/bin/git-fix-encoding +7 -2
- package/bin/git-reduce-size +7 -2
- package/bin/kill-process +7 -2
- package/bin/nodekill +7 -2
- package/bin/prod +7 -2
- package/bin/rmfind +7 -2
- package/bin/rmpath +7 -2
- package/bin/rmx +9 -3
- package/bin/submodule +13 -2
- package/bin/submodule-install +7 -2
- package/bin/submodule-remove +7 -2
- package/eslint.config.cjs +97 -0
- package/lib/chunk-7MSZ52XC.mjs +14 -0
- package/lib/chunk-AVDT32AY.mjs +20 -0
- package/lib/chunk-E75HJFJO.mjs +20 -0
- package/lib/chunk-GA4DDV65.mjs +202 -0
- package/lib/chunk-LPLPQBYP.mjs +53 -0
- package/lib/chunk-M4IBUK4H.mjs +173 -0
- package/lib/chunk-S4SJ7SDW.mjs +625 -0
- package/lib/del-gradle.cjs +72 -0
- package/lib/del-gradle.d.mts +2 -0
- package/lib/del-gradle.d.ts +2 -0
- package/lib/del-gradle.js +72 -0
- package/lib/del-gradle.mjs +28 -0
- package/lib/del-node-modules.cjs +72 -0
- package/lib/del-node-modules.d.mts +2 -0
- package/lib/del-node-modules.d.ts +2 -0
- package/lib/del-node-modules.js +72 -0
- package/lib/del-node-modules.mjs +28 -0
- package/lib/del-ps.cjs +706 -0
- package/lib/del-ps.d.mts +2 -0
- package/lib/del-ps.d.ts +2 -0
- package/lib/del-ps.js +706 -0
- package/lib/del-ps.mjs +46 -0
- package/lib/del-yarn-caches.cjs +65 -0
- package/lib/del-yarn-caches.d.mts +2 -0
- package/lib/del-yarn-caches.d.ts +2 -0
- package/lib/del-yarn-caches.js +65 -0
- package/lib/del-yarn-caches.mjs +21 -0
- package/lib/find-node-modules.cjs +12 -0
- package/lib/find-node-modules.d.mts +2 -0
- package/lib/find-node-modules.d.ts +2 -0
- package/lib/find-node-modules.js +6 -7
- package/lib/find-node-modules.mjs +21 -0
- package/lib/git-purge.cjs +704 -0
- package/lib/git-purge.d.mts +2 -0
- package/lib/git-purge.d.ts +2 -0
- package/lib/git-purge.js +704 -0
- package/lib/git-purge.mjs +50 -0
- package/lib/index.cjs +2 -0
- package/lib/index.d.mts +2 -0
- package/lib/index.d.ts +2 -0
- package/{index.js → lib/index.js} +1 -0
- package/lib/index.mjs +9 -0
- package/lib/npm-run-series.cjs +61 -0
- package/lib/npm-run-series.d.mts +1 -0
- package/lib/npm-run-series.d.ts +1 -0
- package/lib/npm-run-series.js +37 -20
- package/lib/npm-run-series.mjs +47 -0
- package/lib/package-resolutions.cjs +28 -0
- package/lib/package-resolutions.d.mts +25 -0
- package/lib/package-resolutions.d.ts +25 -0
- package/lib/package-resolutions.js +28 -0
- package/lib/package-resolutions.mjs +31 -0
- package/lib/ps/connected-domain.cjs +156 -0
- package/lib/ps/connected-domain.d.mts +3 -0
- package/lib/ps/connected-domain.d.ts +3 -0
- package/lib/ps/connected-domain.js +156 -0
- package/lib/ps/connected-domain.mjs +7 -0
- package/lib/ps/index.cjs +555 -0
- package/lib/ps/index.d.cjs +17 -0
- package/lib/ps/index.d.d.mts +26 -0
- package/lib/ps/index.d.d.ts +26 -0
- package/lib/ps/index.d.js +17 -0
- package/lib/ps/index.d.mjs +8 -0
- package/lib/ps/index.d.mts +26 -0
- package/lib/ps/index.d.ts +26 -0
- package/lib/ps/index.js +555 -0
- package/lib/ps/index.mjs +203 -0
- package/lib/ps/isWin.cjs +3 -0
- package/lib/ps/isWin.d.mts +3 -0
- package/lib/ps/isWin.d.ts +3 -0
- package/lib/ps/isWin.js +3 -0
- package/lib/ps/isWin.mjs +7 -0
- package/lib/ps/table-parser.cjs +359 -0
- package/lib/ps/table-parser.d.mts +3 -0
- package/lib/ps/table-parser.d.ts +3 -0
- package/lib/ps/table-parser.js +359 -0
- package/lib/ps/table-parser.mjs +8 -0
- package/lib/utils.cjs +35 -0
- package/lib/utils.d.mts +20 -0
- package/lib/utils.d.ts +20 -0
- package/lib/utils.js +35 -0
- package/lib/utils.mjs +7 -0
- package/package.json +89 -32
- package/readme.md +41 -0
- package/src/ps/index.js +285 -0
- package/test/package.json +19 -0
- package/lib/del-nodemodules.js +0 -52
- package/lib/package-resolutions.json +0 -22
package/bin/bash-dummy
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/clean-nodemodule
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/clean-nodemodules
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/dev
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/empty
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/git-fix-encoding
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/git-reduce-size
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/kill-process
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/nodekill
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/prod
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmfind
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmpath
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/rmx
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -48,7 +53,8 @@ fi
|
|
|
48
53
|
|
|
49
54
|
rm -rf "$1" &
|
|
50
55
|
|
|
51
|
-
vowels=( a i u e o A I U E O )
|
|
56
|
+
# vowels=( a i u e o A I U E O )
|
|
57
|
+
vowels=( a i u e o A I U E O 0 1 2 3 4 5 6 7 8 9 _ - . )
|
|
52
58
|
for letter in {{a..z},{A..Z}}; do
|
|
53
59
|
for vowel in "${vowels[@]}"; do
|
|
54
60
|
toBeDeleted=( "$1/.${letter}*" "$1/@${letter}*" "$1/${letter}*" "$1/@${letter}${vowel}*" "$1/.${letter}${vowel}*" "$1/${letter}${vowel}*" )
|
package/bin/submodule
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -28,6 +33,12 @@ if [ -f ".env" ]; then
|
|
|
28
33
|
export $(egrep -v '^#' .env | xargs)
|
|
29
34
|
fi
|
|
30
35
|
|
|
36
|
+
# parse and export .env file (dotenv)
|
|
37
|
+
if [ -f ".env" ]; then
|
|
38
|
+
# Export the vars in .env into your shell:
|
|
39
|
+
export $(egrep -v '^#' .env | xargs)
|
|
40
|
+
fi
|
|
41
|
+
|
|
31
42
|
# auto clone all submodules, prevent not-matched hash
|
|
32
43
|
# set ACCESS_TOKEN=github_personal_tokens
|
|
33
44
|
# usages: sh folder_this_repo/submodule-install
|
package/bin/submodule-install
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
package/bin/submodule-remove
CHANGED
|
@@ -14,12 +14,17 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
|
14
14
|
SCRIPT=$(realpath "$0")
|
|
15
15
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
# Detect Cygwin or MinGW
|
|
18
|
+
case "$(uname)" in
|
|
18
19
|
*CYGWIN*)
|
|
19
|
-
basedir
|
|
20
|
+
basedir=$(cygpath -w "$basedir")
|
|
20
21
|
# make cygwin bin as priority
|
|
21
22
|
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
22
23
|
;;
|
|
24
|
+
*MINGW*)
|
|
25
|
+
# make mingw bin as priority
|
|
26
|
+
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
27
|
+
;;
|
|
23
28
|
esac
|
|
24
29
|
|
|
25
30
|
# parse and export .env file (dotenv)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// noinspection JSUnusedGlobalSymbols
|
|
2
|
+
|
|
3
|
+
const typescriptEslintPlugin = require("@typescript-eslint/eslint-plugin"); // Import the entire TypeScript ESLint plugin
|
|
4
|
+
const prettierPlugin = require("eslint-plugin-prettier"); // Import the entire Prettier plugin
|
|
5
|
+
const { readFileSync } = require("fs"); // Import readFileSync to read files
|
|
6
|
+
const globals = require("globals");
|
|
7
|
+
|
|
8
|
+
// Read the Prettier configuration from the JSON file
|
|
9
|
+
const prettierConfig = JSON.parse(readFileSync(require.resolve("./.prettierrc.json"), "utf-8"));
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @type {import("eslint").ESLint.Options}
|
|
13
|
+
*/
|
|
14
|
+
const config = [
|
|
15
|
+
{
|
|
16
|
+
// Specifies your current project has own eslint rules without extending parent folder eslint rules
|
|
17
|
+
ignores: ["*.md", "**/tmp/**", "*.html", "*.py", "*.txt", "**/app/**", "**/dist/**", "!.*.{js,cjs,mjs}"], // .eslintignore replacement
|
|
18
|
+
linterOptions: {
|
|
19
|
+
reportUnusedDisableDirectives: true
|
|
20
|
+
},
|
|
21
|
+
languageOptions: {
|
|
22
|
+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
|
|
23
|
+
sourceType: "module", // Allows for the use of imports
|
|
24
|
+
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
|
|
25
|
+
globals: {
|
|
26
|
+
...globals.browser,
|
|
27
|
+
...globals.amd,
|
|
28
|
+
...globals.node,
|
|
29
|
+
$: "readonly", // jQuery is assigned to $
|
|
30
|
+
jQuery: "readonly", // jQuery is also available as jQuery
|
|
31
|
+
adsbygoogle: "writable", // Adsense
|
|
32
|
+
gtag: true, // Google analystic
|
|
33
|
+
safelink: true,
|
|
34
|
+
google: "readonly", // GAPI
|
|
35
|
+
gapi: "readonly" // GAPI
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
rules: {
|
|
39
|
+
// Specify your desired rules for ESLint
|
|
40
|
+
"prettier/prettier": ["error", prettierConfig],
|
|
41
|
+
"@typescript-eslint/explicit-function-return-type": "off", // Disable function without return type
|
|
42
|
+
"no-unused-vars": "off", // Disable original ESLint unused-vars
|
|
43
|
+
"@typescript-eslint/no-unused-vars": [
|
|
44
|
+
"error",
|
|
45
|
+
{
|
|
46
|
+
argsIgnorePattern: "^_",
|
|
47
|
+
varsIgnorePattern: "^_",
|
|
48
|
+
caughtErrorsIgnorePattern: "^_"
|
|
49
|
+
}
|
|
50
|
+
], // Enable TypeScript ESLint unused-vars and allow unused vars starting with underscore (_)
|
|
51
|
+
"@typescript-eslint/no-explicit-any": "off", // Allow any types
|
|
52
|
+
"@typescript-eslint/no-this-alias": [
|
|
53
|
+
// Rules for this binding
|
|
54
|
+
"error",
|
|
55
|
+
{
|
|
56
|
+
allowDestructuring: false, // Disallow `const { props, state } = this`; true by default
|
|
57
|
+
allowedNames: ["self"] // Allow `const self = this`; `[]` by default
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
// "arrow-body-style" and "prefer-arrow-callback" can cause issues with Prettier, so turn them off.
|
|
61
|
+
"arrow-body-style": "off",
|
|
62
|
+
"prefer-arrow-callback": "off"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
files: ["*.js", "*.cjs"],
|
|
67
|
+
rules: {
|
|
68
|
+
// disable require warning on js files
|
|
69
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
70
|
+
// disable include refenrences definition files on js
|
|
71
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
72
|
+
// disable require warning in js
|
|
73
|
+
"@typescript-eslint/no-require-imports": "off"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
// Enable the recommended configurations
|
|
78
|
+
plugins: {
|
|
79
|
+
"@typescript-eslint": typescriptEslintPlugin, // Use the TypeScript ESLint plugin
|
|
80
|
+
prettier: prettierPlugin // Use the Prettier plugin
|
|
81
|
+
},
|
|
82
|
+
rules: {
|
|
83
|
+
...typescriptEslintPlugin.configs["eslint-recommended"].rules,
|
|
84
|
+
...typescriptEslintPlugin.configs["recommended"].rules,
|
|
85
|
+
...prettierPlugin.configs.recommended.rules
|
|
86
|
+
},
|
|
87
|
+
languageOptions: {
|
|
88
|
+
globals: {
|
|
89
|
+
browser: true,
|
|
90
|
+
amd: true,
|
|
91
|
+
node: true
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
module.exports = config;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./chunk-AVDT32AY.mjs";
|
|
5
|
+
|
|
6
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
7
|
+
var init_esm_shims = __esm({
|
|
8
|
+
"node_modules/tsup/assets/esm_shims.js"() {
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
init_esm_shims
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
+
}) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
+
});
|
|
9
|
+
var __esm = (fn, res) => function __init() {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
};
|
|
12
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
__require,
|
|
18
|
+
__esm,
|
|
19
|
+
__commonJS
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-7MSZ52XC.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__commonJS
|
|
7
|
+
} from "./chunk-AVDT32AY.mjs";
|
|
8
|
+
|
|
9
|
+
// src/ps/isWin.js
|
|
10
|
+
var require_isWin = __commonJS({
|
|
11
|
+
"src/ps/isWin.js"(exports, module) {
|
|
12
|
+
init_esm_shims();
|
|
13
|
+
var isWin = process.platform === "win32";
|
|
14
|
+
module.exports = isWin;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
require_isWin
|
|
20
|
+
};
|