Generate .gitignores for compiled JS files
This will help until all files are typescript.master
parent
5a1b84c271
commit
5fafe4a469
|
@ -13,6 +13,10 @@ src/version.js
|
||||||
Makefile
|
Makefile
|
||||||
package.json
|
package.json
|
||||||
|
|
||||||
|
# generated by Makefile
|
||||||
|
src/.gitignore
|
||||||
|
test/.gitignore
|
||||||
|
|
||||||
# generated by gen-index
|
# generated by gen-index
|
||||||
src/**/index.js
|
src/**/index.js
|
||||||
|
|
||||||
|
|
|
@ -39,13 +39,18 @@ dist-hook: check
|
||||||
|
|
||||||
# used to force typescript compilation (it handles its own incremental
|
# used to force typescript compilation (it handles its own incremental
|
||||||
# compilation and dependency discovery)
|
# compilation and dependency discovery)
|
||||||
$(tsout): FORCE
|
$(tsout): FORCE $(path_src)/.gitignore $(path_test)/.gitignore
|
||||||
node_modules/.bin/tsc
|
node_modules/.bin/tsc
|
||||||
|
|
||||||
modindex: $(nsindex)
|
modindex: $(nsindex)
|
||||||
%/index.js: FORCE $(tsout)
|
%/index.js: FORCE $(tsout)
|
||||||
./tools/gen-index "$*" > "$@"
|
./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
|
test: check
|
||||||
check: $(tsout)
|
check: $(tsout)
|
||||||
PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
|
PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
|
||||||
|
|
Loading…
Reference in New Issue