@@ -9,21 +9,21 @@ all: changelog.md readme.md index.js docs output
9
9
10
10
.PHONY : build
11
11
build : | node_modules
12
- npx spago build
12
+ bun x spago build
13
13
14
14
15
15
changelog.md : .git | node_modules
16
16
# git config changelog.format '- %s (%h)'
17
17
# git changelog
18
- npx conventional-changelog \
18
+ bun x conventional-changelog \
19
19
--infile $@ \
20
20
--same-file \
21
21
--output-unreleased
22
22
23
23
24
24
srcFiles := $(shell find src -type f -name "* .purs")
25
25
index.js : $(srcFiles ) spago.yaml | node_modules
26
- npx spago bundle \
26
+ bun x spago bundle \
27
27
--platform node \
28
28
--minify
29
29
@@ -33,7 +33,7 @@ bundle: index.js
33
33
34
34
# The specified target is configured in package.json
35
35
docs : output | node_modules
36
- npx parcel build webapp/index.html \
36
+ bun x parcel build webapp/index.html \
37
37
--public-url /Transity \
38
38
--no-source-maps \
39
39
--target $@
@@ -43,54 +43,54 @@ docs: output | node_modules
43
43
# Use e.g. Vercel's "serve" like this: `serve docs-dev`.
44
44
# The specified target is configured in package.json.
45
45
docs-dev : output index.js | node_modules
46
- npx parcel build webapp/index.html \
46
+ bun x parcel build webapp/index.html \
47
47
--no-source-maps \
48
48
--target $@
49
49
50
50
51
51
52
52
output : src spago.yaml | node_modules
53
- npx spago build
53
+ bun x spago build
54
54
55
55
56
- node_modules : package.json package-lock.json
57
- if test ! -d $@ ; then npm install; fi
56
+ node_modules : package.json
57
+ if test ! -d $@ ; then bun install; fi
58
58
59
59
60
60
readme.md : | node_modules
61
- npx markdown-toc -i $@
61
+ bun x markdown-toc -i $@
62
62
63
63
64
64
# #### TESTING ######
65
65
66
66
.PHONY : lint-js
67
67
lint-js : | node_modules
68
- npx eslint \
68
+ bun x eslint \
69
69
--max-warnings 0 \
70
- --ignore-path .gitignore \
70
+ --ignore-pattern .gitignore \
71
71
scripts
72
72
73
73
74
74
.PHONY : test-spago
75
75
test-spago : | node_modules
76
- npx spago test
76
+ bun x spago test
77
77
78
78
79
79
.PHONY : test-cli
80
80
test-cli : | node_modules
81
- npx spago run -- \
81
+ bun x spago run -- \
82
82
balance examples/journal.yaml \
83
83
> /dev/null
84
84
85
- npx spago run -- \
85
+ bun x spago run -- \
86
86
balance examples/journal.yaml examples/journal-only-transactions.yaml \
87
87
> /dev/null
88
88
89
- npx spago run -- \
89
+ bun x spago run -- \
90
90
unused-files examples/receipts examples/journal.yaml \
91
91
2> /dev/null
92
92
93
- npx spago run -- \
93
+ bun x spago run -- \
94
94
unused-files \
95
95
examples/receipts \
96
96
examples/journal.yaml \
@@ -106,16 +106,17 @@ test: test-spago test-cli lint-js
106
106
test-watch : | node_modules
107
107
watchexec \
108
108
--exts purs \
109
- ' npx spago test'
109
+ ' bun x spago test'
110
110
111
111
112
112
.PHONY : clean
113
113
clean :
114
- -rm -rf \
115
- .parcel-cache \
116
- .spago \
117
- docs \
118
- docs-dev \
119
- index.js \
120
- node_modules \
121
- output
114
+ -rm -f bun.lockb
115
+ -rm -f index.js
116
+ -rm -f package-lock.json
117
+ -rm -rf .parcel-cache
118
+ -rm -rf .spago
119
+ -rm -rf docs
120
+ -rm -rf docs-dev
121
+ -rm -rf node_modules
122
+ -rm -rf output
0 commit comments