mirror of
https://github.com/zkitter/groups.git
synced 2026-01-09 13:08:01 -05:00
* refactor: define separate routers. Update openapi spec (#38) * refactor: serve openapi.json on /api-docs * refactor: Define separate routers * Update openapi spec * fix Docker build (#39) - Type explicitly Router and Express app - Fix module resolution (module-alias)
96 lines
3.0 KiB
YAML
96 lines
3.0 KiB
YAML
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
|