Skip to content

Commit b466ac8

Browse files
committed
Provide a shell script that generates a version of out/paper.js that uses load.js to directly load the library through the seperate source files in the src directory, as required development of the library itself.
1 parent 4a23e35 commit b466ac8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

build/load.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Paper.js
2+
#
3+
# This file is part of Paper.js, a JavaScript Vector Graphics Library,
4+
# based on Scriptographer.org and designed to be largely API compatible.
5+
# http://scriptographer.org/
6+
#
7+
# Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
8+
# http://lehni.org/ & http://jonathanpuckey.com/
9+
#
10+
# All rights reserved. See LICENSE file for details.
11+
12+
# Generate a paper.js file that uses load.js to directly load the library
13+
# through the seperate source files in the src directory. Very useful during
14+
# development of the library itself.
15+
16+
echo "// Paper.js loader for development, as produced by the build/load.sh script
17+
var root = '../../';
18+
document.write('<script type=\"text/javascript\" src=\"' + root
19+
+ 'src/load.js\"></script>');" > ../out/paper.js;

0 commit comments

Comments
 (0)