1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
ifneq ($(filter pkg.node-rollup-plugin-node-resolve.transpilebabel,$(DEB_BUILD_PROFILES)),)
TRANSPILE_PROF?=babel6
BABEL_PRESET?=env
export BABEL_PRESET
else ifneq ($(filter pkg.node-rollup-plugin-node-resolve.transpilebuble,$(DEB_BUILD_PROFILES)),)
TRANSPILE_PROF?=buble
else ifneq ($(filter pkg.node-rollup-plugin-node-resolve.transpilenone,$(DEB_BUILD_PROFILES)),)
TRANSPILE_PROF?=none
else
TRANSPILE_PROF?=none
endif
TRANSPILE?=$(TRANSPILE_PROF)
export TRANSPILE
%:
echo "TRANSPILE $$TRANSPILE"
dh $@
override_dh_auto_build:
dh_auto_build --buildsystem=nodejs
cd packages/node-resolve; if rollup -c; then \
echo "build succeeds"; \
else \
echo "build failed, trying with legacy rollup plugins"; \
rollup -c ../../debian/rollup-legacy.config.js; \
fi
override_dh_fixperms:
dh_fixperms
find debian/node-rollup-plugin-node-resolve -type f -name '*.ts' -exec chmod -x {} \;
|