Created
September 22, 2015 16:55
-
-
Save hdeshev/fc54ced365c01a67dd67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ninja_required_version = 1.6 | |
tsflags = --module commonjs --noEmitOnError --noImplicitAny --emitDecoratorMetadata --experimentalDecorators --target es5 | |
rule tsc | |
command = ./node_modules/.bin/tsc $tsflags "$in" && node build/getrefs.js "$in" "$out" "$in.dep" | |
description = TypeScript compile: $in | |
depfile = "$in.dep" | |
deps = gcc | |
rule dts | |
command = touch "$out" | |
description = TypeScript declarations: $in | |
build .ninja_dts/department.d.ts.build: dts src/department.d.ts | |
build .ninja_dts/person.d.ts.build: dts src/person.d.ts | |
build src/department-api.js: tsc src/department-api.ts | |
build src/department.js: tsc src/department.ts | |
build src/person-api.js: tsc src/person-api.ts | |
build src/person.js: tsc src/person.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment