File: rules

package info (click to toggle)
node-rdf-canonize 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 328 kB
  • sloc: javascript: 2,218; makefile: 15; sh: 1
file content (21 lines) | stat: -rwxr-xr-x 552 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:
	BROWSERSLIST='node 6' babeljs \
		--no-babelrc --presets=@babel/preset-env \
		--out-dir dist/node6/lib \
		-- lib
	webpack --progress
	mkdir -p debian/js
	cp -f -t debian/js \
		-- dist/*.*
	find debian/js \( -name '*.min.js' -or -name '*.css' \) \
		-exec pigz --force --keep -11 -- {} + \
		-exec brotli --force --keep --best --suffix=.brotli -- {} +

# TODO: Enable testsuite when normalization spec is in Debian
override_dh_auto_test:
#	mocha -R spec --check-leaks test/ conformance-test.js