NOTE: This repo is a work-in-progress and is not ready for general use just yet. This is not an official Google product.
This repository is Google's default TypeScript configuration. Made with ❤️ by the Google Node.js team.
If you're already using [email protected]+ (bundled with Node 8.3+), run:
npx gts init
Still on an older version of npm? We got ya! In a directory with your package.json
run:
npm install --save-dev gts [email protected]
$(npm bin)/gts init
- Adds a
tsconfig.json
file to your project that uses the Google TS Style. - Adds the necessary devDependencies to your
package.json
. - Adds scripts to your
package.json
:check
: Lints and checks for formatting problems.fix
: Automatically fixes formatting and linting problems (if possible).clean
: Removes output files.compile
: Compiles the source code using TypeScript compiler.pretest
,posttest
andprepare
: convenience integrations.
See LICENSE.md