-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
55 lines (55 loc) · 2.56 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "loading.sh",
"version": "0.0.1",
"description": "Loading with style in the shell.",
"main": "loading.sh",
"files": [
"/loading.sh",
"/man"
],
"man": [
"./man/loading.1"
],
"scripts": {
"lint": "shellcheck loading.sh",
"test": "npm run -s lint && time bats --jobs 16 --no-parallelize-across-files test.bats",
"testf": "run() { npm run -s lint && bats -f \"$@\" test.bats; }; run",
"testi": "run() { npm run -s lint && bats -f \" $( cat test.bats | grep @test | cut -d' ' -f3- | head -$1 | tail -1 | sed 's/\" {$//' )$\" test.bats; }; run",
"testw": "run() { npm run -s test; fswatch -0 -o -r . | xargs -0 -n1 npm run test; }; run",
"testnw": "run() { npm run -s testn; fswatch -0 -o -r . | xargs -0 -n1 npm run testn; }; run",
"testfw": "run() { npm run -s testf \"$@\"; fswatch -0 -o -r . | xargs -0 -n1 npm run testf \"$@\"; }; run",
"testiw": "run() { npm run -s testi \"$@\"; fswatch -0 -o -r . | xargs -0 -n1 npm run testi \"$@\"; }; run",
"simulate": "./simulator",
"man": "sed '1,/^Usage$/d' README.md | sed '1s/^/DESCRIPTION\\nBasic usage:\\n/' | marked-man --name=loading | sed -E 's/^(..Bloading)/\\1 – “tmux-execute” – a lightweight tmux command \\& layout composer/' | tr '\\n' '\\r' | sed -E 's/\\([^\\)]*\\)//g' | tr '\\r' '\\n' > ./man/loading.1",
"release": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz && echo $'\n'\"Press ENTER to publish the files above · CTRL+C to cancel · node $( node -v ) · npm $( npm -v )\"$'\n\n' && head -n 1 >/dev/null && npm publish",
"releasenext": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz && echo $'\n'\"Press ENTER to publish the files above (tag=next) · CTRL+C to cancel · node $( node -v ) · npm $( npm -v )\"$'\n\n' && head -n 1 >/dev/null && npm publish --tag next",
"tf": "npm run -s testf",
"ti": "npm run -s testi",
"tn": "npm run -s testn",
"tw": "npm run -s testw",
"tnw": "npm run -s testnw",
"tfw": "npm run -s testfw",
"tiw": "npm run -s testiw",
"s": "npm run -s simulate"
},
"bin": {
"loading": "loading.sh"
},
"repository": {
"type": "git",
"url": "https://github.com/evnp/loading.sh.git"
},
"homepage": "https://github.com/evnp/loading.sh",
"author": "Evan Purcer <[email protected]> (https://e2.gg)",
"license": "MIT",
"devDependencies": {
"bats": "1.11.0",
"bats-assert": "2.0.0",
"bats-support": "git+https://github.com/ztombol/bats-support.git#v0.2.0",
"marked-man": "2.1.0",
"shellcheck": "3.0.0"
},
"engines": {
"node": ">=20.0.0 <21.0.0"
}
}