File: rules

package info (click to toggle)
node-markdown-to-jsx 7.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: javascript: 35; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 617 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
#!/usr/bin/make -f
# -*- makefile -*-

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

ROLLUP_PLUGINS=-p @rollup/plugin-babel -p rollup-plugin-typescript2 -p rollup-plugin-terser
ES_FILE=$(shell pkgjs-pjson . exports . import)
CJS_FILE=$(shell pkgjs-pjson . exports . require)

%:
	dh $@

override_dh_auto_build:
	rollup $(ROLLUP_PLUGINS) --external react -f es -o $(ES_FILE) index.tsx
	ln -s $(ES_FILE) index.js
	rollup $(ROLLUP_PLUGINS) --external react -p @rollup/plugin-node-resolve -f cjs -o $(CJS_FILE) index.cjs.tsx
	rm -f index.js

override_dh_installdocs:
	dh_installdocs
	dh_nodejs_autodocs