File: rules

package info (click to toggle)
node-tldts 7.0.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,608 kB
  • sloc: javascript: 509; sh: 27; makefile: 22
file content (28 lines) | stat: -rwxr-xr-x 889 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_build:
	# First compile tldts-utils to get the update script
	tsc --build packages/tldts-utils/tsconfig.json
	# Regenerate hashes.ts and trie.ts from local public_suffix_list.dat
	node -e "require('./packages/tldts-utils/dist/cjs/index.js').updateInternalDataStructures()"
	# Now build everything
	tsc --build ./tsconfig.project.json
	set -e; for i in packages/tldts-core packages/tldts-utils packages/tldts-tests packages/tldts packages/tldts-experimental packages/tldts-icann; do \
		(echo "# $$i"; \
			cd $$i && \
			pkgjs-run build && \
			pkgjs-run bundle && \
			echo '{"type":"commonjs"}' > dist/cjs/package.json && \
			echo '{"type":"module"}' > dist/es6/package.json \
		); \
	done

execute_after_dh_installdocs:
	dh_nodejs_autodocs auto_dispatch