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

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

%:
	dh $@

override_dh_auto_build:
	pkgjs-install-minimal
	# One process per group: a single run keeps every rollup-plugin-typescript2
	# language service alive and blows the 4 GB heap.
	NODE_OPTIONS="--max-old-space-size=4096" node scripts/build.js runtime,full,template-compiler
	NODE_OPTIONS="--max-old-space-size=4096" node scripts/build.js server-renderer
	NODE_OPTIONS="--max-old-space-size=4096" node scripts/build.js compiler-sfc
	cd dist && for f in *.prod.js;do \
		ln -s $$f $${f%%prod.js}js; \
	done
