-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
66 lines (50 loc) · 2.06 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# add node bin script path for recipes
export PATH := "./node_modules/.bin:" + env_var('PATH')
# Default: display available recipes
_help:
@just --list
# –––––––––––––----------------------------------------------------------------
# Setup
# –––––––––––––----------------------------------------------------------------
# Set up the dev environment
setup-dev-env:
scripts/setup-dev-env
# Install node modules afresh
install *params: clean
npm install {{params}}
# Clean up node modules
clean:
rm -rf node_modules
# Install node modules strictly as specified (typically for CI)
install-stable:
npm ci
# –––––––––––––----------------------------------------------------------------
# Run
# –––––––––––––----------------------------------------------------------------
# Run the renewal process
run:
NODE_ENV=development bin/renew
# –––––––––––––----------------------------------------------------------------
# Test & related
# –––––––––––––----------------------------------------------------------------
# Run code linting
lint *params:
semistandard {{params}}
# Run tests with optional extra parameters
test *params:
NODE_ENV=test mocha {{params}}
# Run tests with detailed output
test-detailed *params:
NODE_ENV=test mocha --reporter=spec {{params}}
# Run tests with detailed output for debugging
test-debug *params:
NODE_ENV=test mocha --timeout 3600000 --reporter=spec --inspect-brk=40000 {{params}}
# Run tests and generate HTML coverage report
test-cover *params:
NODE_ENV=test nyc --reporter=html --report-dir=./coverage mocha {{params}}
# –––––––––––––----------------------------------------------------------------
# Misc. utils
# –––––––––––––----------------------------------------------------------------
# Run source licensing tool (see 'licensing' folder for details)
license:
source-licenser --config-file .licenser.yml ./