File: rules

package info (click to toggle)
node-popper2 2.11.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,012 kB
  • sloc: javascript: 4,592; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

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

BROWSERDEST=usr/share/javascript/popperjs2

%:
	dh $@

override_dh_auto_build:
	babeljs src -d lib --ignore '**/*.test.js','**/__mocks__'
	BROWSER_COMPAT=true babeljs src -d dist/esm --ignore '**/*.test.js','**/__mocks__'
	rollup -c .config/rollup.config.js

override_dh_install:
	dh_install
	mkdir -p debian/node-popper2/usr/share/javascript
	mv debian/node-popper2/usr/share/nodejs/@popperjs/core/dist/umd/ \
		debian/node-popper2/$(BROWSERDEST)

override_dh_auto_test:
	dh_auto_test || true # Missing dependencies make the tests fail