#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


%:
	dh $@

#override_dh_auto_build:

execute_before_dh_auto_configure:
	rsync -a packages/web-components/fast-foundation/src/ packages/web-components/fast-foundation/srcforbuild --exclude '*.spec.ts' --exclude '__tests__'

execute_after_dh_auto_install:
	find debian/node-microsoft-fast-foundation -name .eslintrc.js -delete
	find debian/node-microsoft-fast-foundation -name 'karma.conf.*[jt]s' -delete
	find debian/node-microsoft-fast-foundation -name CHANGELOG.json -delete
	find debian/node-microsoft-fast-foundation -name 'tsconfig*.json' -delete
	find debian/node-microsoft-fast-foundation -name 'tslint.json' -delete
	find debian/node-microsoft-fast-foundation -name 'tsdoc.json' -delete
	find debian/node-microsoft-fast-foundation -name 'api-extractor.json' -delete
	rm -rf debian/node-microsoft-fast-foundation/usr/share/nodejs/@microsoft/fast
	rm -rf debian/node-microsoft-fast-foundation/usr/share/nodejs/@microsoft/fast-foundation/srcforbuild

execute_after_dh_installdocs:
	dh_nodejs_autodocs

