diff options
author | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-10-18 16:10:08 -0400 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-10-18 16:10:27 -0400 |
commit | 596944a4ea323c923dc6677b456f632218e02153 (patch) | |
tree | ec65998036b57cfca0de871a9359030677535b61 /Makefile.am | |
parent | 20ddff0f6e3752ac27f761ac2bab0d69b6208df0 (diff) | |
parent | decf6497deee20a1a61c9cec9cd3a90110c390ed (diff) | |
download | liza-596944a4ea323c923dc6677b456f632218e02153.tar.gz liza-596944a4ea323c923dc6677b456f632218e02153.tar.bz2 liza-596944a4ea323c923dc6677b456f632218e02153.zip |
Server-side DataAPI request precedence and TypeScript introduction
This change was used as a guinea pig for introducing TypeScript, so there's
a lot here.
<<
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index fe2c8e5..ab04456 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## liza Makefile.am for automake # -# Copyright (C) 2014 R-T Specialty, LLC. +# Copyright (C) 2010-2019 R-T Specialty, LLC. # # This file is part of liza. # @@ -24,6 +24,8 @@ path_test = $(top_builddir)/test namespaces=$(shell find src -type d) nsindex=$(addsuffix /index.js, $(namespaces)) +tsout = tsconfig.tsbuildinfo + SUBDIRS = doc EXTRA_DIST = $(path_src) package.json index.js $(path_src)/version.js \ tools autogen.sh README.md $(path_test) \ @@ -35,12 +37,22 @@ all-am: modindex dist-hook: check +# used to force typescript compilation (it handles its own incremental +# compilation and dependency discovery) +$(tsout): FORCE $(path_src)/.gitignore $(path_test)/.gitignore + node_modules/.bin/tsc + modindex: $(nsindex) -%/index.js: FORCE +%/index.js: FORCE $(tsout) ./tools/gen-index "$*" > "$@" +# ignore compiled JS files (this can be removed once all files are TS) +%/.gitignore: FORCE + @echo "# THIS FILE IS GENERATED; DO NOT MODIFY!" > $@ + ( cd $*/ && find . -name '*.ts' -printf "%P\n" | sed 's/\.ts$$/.js/' ) >> $@ + test: check -check: +check: $(tsout) PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \ mocha @NODE_DESTRUCTURE@ \ --require $(path_test)/pre.js \ |