File: rules

package info (click to toggle)
node-vue-resource 1.5.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 536 kB
  • sloc: makefile: 14
file content (25 lines) | stat: -rwxr-xr-x 680 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
#!/usr/bin/make -f
# -*- makefile -*-


%:
	dh $@ --with nodejs

override_dh_auto_build:
#commonjs
	webpack --config debian/webpack.config.js --mode development \
	--entry ./src/index.js --output dist/vue-resource.common.js \
	--output-library-target commonjs \
	--module-bind 'js=babel-loader'
#umd
	webpack --config debian/webpack.config.js --mode development \
	--entry ./src/index.js --output dist/vue-resource.js --target web \
	--output-library VueResource --output-library-target umd \
	--module-bind 'js=babel-loader'
	uglifyjs.terser dist/vue-resource.js -o dist/vue-resource.min.js

#override_dh_auto_test:


override_dh_auto_clean:
	rm -rf lib dist node_modules/.cache