-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
47 lines (36 loc) · 1.47 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
# add node bin script path for recipes
export PATH := "./node_modules/.bin:" + env_var('PATH')
# Default: display available recipes
_help:
@just --list
# –––––––––––––----------------------------------------------------------------
# Setup
# –––––––––––––----------------------------------------------------------------
# Install node modules afresh
install *params: clean
npm install {{params}}
# Clean up node modules
clean:
rm -rf node_modules
# –––––––––––––----------------------------------------------------------------
# Test & related
# –––––––––––––----------------------------------------------------------------
# Run code linting
lint *options:
eslint {{options}} .
# Run types checking
types-check *options:
tsc {{options}}
# Generate TypeScript definitions
types-emit *options:
rm src/*.d.ts
tsc src/*.js --checkJs --declaration --emitDeclarationOnly {{options}}
# Run source licensing tool (see 'licensing' folder for details)
license:
source-licenser --config-file .licenser.yml ./
# –––––––––––––----------------------------------------------------------------
# Documentation
# –––––––––––––----------------------------------------------------------------
# Generate DOCUMENTATION.md file from JSDoc comments in `src`
doc:
jsdoc2md -c jsdoc.conf.json -f src/**/*.js > DOCUMENTATION.md