gqltsapi is a basic setup for a server-side Node application written
in TypeScript and using @babel/preset-typescript
and GraphQL. It requires
Docker.
src
.test/src
and should mimick the directory structuresrc
with the addition of .spec
to the filename. E.g., if you have asrc/lib/myFunc.ts
, your test would be attest/src/lib/myFunc.spec.ts
.yarn build
empties .build
and outputs compiled JS toscript/bootstrap
- installs/updates all dependenciesscript/build
- builds a Production-ready docker imagescript/setup
- sets up a project to be used for the first timescript/update
- updates a project to run at its current versionscript/server
- starts appscript/test
- runs testsscript/cibuild
- invoked by continuous integration servers to run testsscript/console
- opens a consoleyarn build
: builds TS files to JS files in .build
directoryyarn lint:ts
: Runs tslint
on TypeScript codebaseyarn lint:types
: Runs tsc
to type-check TypeScript codebase