File: rules

package info (click to toggle)
twitter-bootstrap4 4.3.1+dfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,716 kB
  • sloc: sh: 35; makefile: 20; xml: 11
file content (26 lines) | stat: -rwxr-xr-x 1,170 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
23
24
25
26
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	mkdir -p dist/css dist/js dist/tmp
	sassc -m auto scss/bootstrap.scss dist/tmp/bootstrap.css
	sassc -m auto scss/bootstrap-grid.scss dist/tmp/bootstrap-grid.css
	sassc -m auto scss/bootstrap-reboot.scss dist/tmp/bootstrap-reboot.css
	node debian/postcss.js
	sassc -m auto --style compressed dist/tmp/bootstrap.css dist/css/bootstrap.min.css
	sassc -m auto --style compressed dist/tmp/bootstrap-grid.css dist/css/bootstrap-grid.min.css
	sassc -m auto --style compressed dist/tmp/bootstrap-reboot.css dist/css/bootstrap-reboot.min.css
	rm -rf dist/tmp

	node build/build-plugins.js
	rollup --sourcemap --environment BUNDLE:true --config build/rollup.config.js
	rollup --sourcemap --environment BUNDLE:false --config build/rollup.config.js
	uglifyjs --compress --mangle --comments "/^!" --source-map dist/js/bootstrap.min.js.map -o dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js
	uglifyjs --compress --mangle --comments "/^!" --source-map dist/js/bootstrap.min.js.map -o dist/js/bootstrap.min.js dist/js/bootstrap.js

override_dh_installdocs:
	dh_installdocs --exclude license.md

override_dh_auto_test: