UNPKG

679 BPlain TextView Raw
1.PHONY: js
2
3js:
4 ./node_modules/.bin/coffee -o js -c lib/
5 cp -r lib/font/data js/font/data
6
7browser: lib/**/*.coffee
8 mkdir -p build/
9 ./node_modules/.bin/browserify \
10 --standalone PDFDocument \
11 --debug \
12 --transform coffeeify \
13 --extension .coffee \
14 lib/document.coffee \
15 | ./node_modules/.bin/exorcist build/pdfkit.js.map > build/pdfkit.js
16
17browser-demo: js demo/browser.js
18 ./node_modules/.bin/browserify demo/browser.js > demo/bundle.js
19
20docs: pdf-guide website browser-demo
21
22pdf-guide:
23 ./node_modules/.bin/coffee docs/generate.coffee
24
25website:
26 mkdir -p docs/img
27 ./node_modules/.bin/coffee docs/generate_website.coffee
28
29clean:
30 rm -rf js build demo/bundle.js