1 | .PHONY: js
|
2 |
|
3 | js:
|
4 | ./node_modules/.bin/coffee -o js -c lib/
|
5 | cp -r lib/font/data js/font/data
|
6 |
|
7 | browser: 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 |
|
17 | browser-demo: js demo/browser.js
|
18 | ./node_modules/.bin/browserify demo/browser.js > demo/bundle.js
|
19 |
|
20 | docs: pdf-guide website browser-demo
|
21 |
|
22 | pdf-guide:
|
23 | ./node_modules/.bin/coffee docs/generate.coffee
|
24 |
|
25 | website:
|
26 | mkdir -p docs/img
|
27 | ./node_modules/.bin/coffee docs/generate_website.coffee
|
28 |
|
29 | clean:
|
30 | rm -rf js build demo/bundle.js
|