debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment this to turn on verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | mkdir dist |
| 12 | cp index.js dist/index.js |
| 13 | patch -p1 <debian/es5-hook.diff |
| 14 | NODE_PATH=debian/node_modules rollup -c debian/rollup.config.js |
| 15 | rm -f dist/index.js |
| 16 | terser -o dist/psl.min.js dist/psl.js |
| 17 | dh_auto_build |