This repository was archived by the owner on Mar 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage-scripts.yaml
More file actions
95 lines (84 loc) · 3.03 KB
/
package-scripts.yaml
File metadata and controls
95 lines (84 loc) · 3.03 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
scripts:
barrels:
script: barrelsby -c .barrelsby.json
hiddenFromHelp: true
build:
db:
script: pnpx prisma generate
hiddenFromHelp: true
default:
script: nps clean build.db barrels compile
description: Build project
clean:
script: rm -rf dist
hiddenFromHelp: true
compile:
script: tsc -p tsconfig.compile.json
hiddenFromHelp: true
fix:
default:
script: nps lint.fix format.fix
hiddenFromHelp: Fix linting and formatting errors
fetch:
spaces:
script: tsnd --cls --transpile-only scripts/get-spaces.ts
description: Fetch query results (-m <min> -s <size>)
ghgroup:
script: tsnd --cls --transpile-only scripts/get-committers-group.ts
description: Fetch GH group members
format:
default:
script: nps 'test.once --selectProjects prettier --coverage false'
description: Check for format errors
fix:
script: prettier --write .
hiddenFromHelp: true
lint:
default:
script: nps 'test.once --selectProjects lint --coverage false'
description: Check for lint errors
fix:
script: eslint . --ext .ts --fix
hiddenFromHelp: true
precommit:
script: tsc && lint-staged
hiddenFromHelp: true
start:
default:
script: nps build start.prod
description: Start in production mode
dev:
script: dotenv -e .env.dev -- tsnd --cls --exit-child --ignore-watch node_modules --quiet --respawn --rs --transpile-only -r tsconfig-paths/register src
description: Start in dev mode
prod:
script: NODE_ENV=production node -r module-alias/register dist
hiddenFromHelp: true
test:
default:
script: nps 'test.once --watch --coverage=false'
description: Run tests (watch, no coverage)
ci:
script: jest --config test/jest.config.ts --selectProjects unit integration e2e --silent --reporters=jest-silent-reporter
hiddenFromHelp: true
debug:
script: node --inspect-brk ./node_modules/jest/bin/jest --runInBand --watch --config test/jest.unit.ts
description: Start tests in debug mode (open in chrome://inspect)
once:
script: dotenv -e .env.test -- jest --config test/jest.config.ts
description: Run tests (once, coverage)
e2e:
script: dotenv -e .env.test -- jest --config test/jest.config.ts --selectProjects e2e --coverage=false
description: Run e2e tests
integration:
script: dotenv -e .env.test -- jest --config test/jest.config.ts --selectProjects integration --coverage=false
description: Run e2e tests
unit:
script: dotenv -e .env.test -- jest --config test/jest.config.ts --selectProjects unit --coverage=false
description: Run e2e tests
validate:
default:
script: concurrently tsc 'nps test.once'
description: Perform static analysis testing (lint, format...)
ci:
script: concurrently tsc 'jest --config test/jest.config.ts --selectProjects prettier lint --silent --reporters=jest-silent-reporter --coverage false'
hiddenFromHelp: true