File: rules

package info (click to toggle)
node-jsonld 8.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,056 kB
  • sloc: javascript: 17,272; makefile: 14; sh: 4
file content (21 lines) | stat: -rwxr-xr-x 685 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	ROLLUP_PRODUCTION=1 rollup --strict --config=debian/rollup.config.js --format=esm --file=dist/index.min.js lib/index.js
	rollup --strict --config=debian/rollup.config.js --format=esm --file=dist/index.js lib/index.js
	mkdir -p debian/js
	cp -f -t debian/js \
		-- dist/*.*
	find debian/js -name '*.min.js' \
		-exec pigz --force --keep -11 -- {} + \
		-exec brotli --force --keep --best -- {} +

# TODO: Enable testsuite when cross-env (and more) is in Debian
override_dh_auto_test:
#	cross-env NODE_ENV=test mocha --delay -t 30000 -A -R ${REPORTER:-spec} tests/test.js

execute_before_dh_auto_clean:
	rm -rf node_modules/.cache