Files
groups/package-scripts.yaml
r1oga ea63eb12bb feat: accept post requests parameters (since, until ...) (#18)
* feat: accept post requests parameters (since, until ...) (#15)

* test committer group handler happy path

* test committers group handler params validation

* test voters group handler

* test posting with since/until string parameters

* update serverless functions

* undo renaming of test setup file

* update gh workflows to include push/pr to staging branch

* chore: format/lint (#16)

* update jest configs

* format/lint

* update test.ci script
2023-01-20 16:47:37 +01:00

79 lines
2.3 KiB
YAML

scripts:
build:
script: nps clean 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: 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 --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: jest --config test/jest.config.ts
description: Run tests (once, coverage)
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