forked from privateOmega/html-to-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
38 lines (26 loc) · 782 Bytes
/
justfile
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
# List all the available recipes
help:
@just --list --unsorted --list-heading ''
# Format the code using dprint
fmt:
npx dprint fmt
# Lint the code using ESLint
lint:
# Dprint doesn't support all the rules that eslint does,
# so we need to run eslint with the --fix flag to fix the rest.
# - https://github.com/dprint/dprint-plugin-typescript/issues/696
# - https://github.com/dprint/dprint-plugin-typescript/issues/432
npx eslint --ignore-pattern=.gitignore --fix .
# Run the unit tests
test-unit:
node --test --disable-warning=ExperimentalWarning
# Run all the tests
test: fmt lint test-unit
build:
bun build \
--target node \
--outfile dist/index.js \
index.js
# Bump the version and create a new release
release:
npx standard-version