Skip to content

Commit b21ae3c

Browse files
author
Nikos M
committed
update buildtools
1 parent 5d75288 commit b21ae3c

9 files changed

Lines changed: 258 additions & 320 deletions

build-bundle.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
REM ###################################################
44
REM #
55
REM # The buildtools repository is at:
6-
REM # https://github.com/foo123/scripts/buildtools
6+
REM # https://github.com/foo123/Beeld
77
REM #
88
REM ###################################################
99

1010
REM to use the python build tool do:
11-
REM python %BUILDTOOLS%\build.py --deps ".\dependencies-bundle"
11+
REM python %BUILDTOOLS%\Beeld.py --config ".\config.custom" --tasks bundle
1212

1313
REM to use the php build tool do:
14-
REM php -f %BUILDTOOLS%\build.php -- --deps=".\dependencies-bundle"
14+
REM php -f %BUILDTOOLS%\Beeld.php -- --config=".\config.custom" --tasks=bundle
1515

1616
REM to use the node build tool do:
17-
node %BUILDTOOLS%\build.js --deps ".\dependencies-bundle"
17+
node %BUILDTOOLS%\Beeld.js --config ".\config.custom" --tasks bundle

build-bundle.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

build-three.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
REM ###################################################
44
REM #
55
REM # The buildtools repository is at:
6-
REM # https://github.com/foo123/scripts/buildtools
6+
REM # https://github.com/foo123/Beeld
77
REM #
88
REM ###################################################
99

1010
REM to use the python build tool do:
11-
python %BUILDTOOLS%\build.py --deps ".\dependencies-three"
11+
REM python %BUILDTOOLS%\Beeld.py --config ".\config.custom" --tasks build_three
1212

1313
REM to use the php build tool do:
14-
REM php -f %BUILDTOOLS%\build.php -- --deps=".\dependencies-three"
14+
REM php -f %BUILDTOOLS%\Beeld.php -- --config=".\config.custom" --tasks=build_three
1515

1616
REM to use the node build tool do:
17-
REM node %BUILDTOOLS%\build.js --deps ".\dependencies-three"
17+
node %BUILDTOOLS%\Beeld.js --config ".\config.custom" --tasks build_three

build.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
REM ###################################################
44
REM #
55
REM # The buildtools repository is at:
6-
REM # https://github.com/foo123/scripts/buildtools
6+
REM # https://github.com/foo123/Beeld
77
REM #
88
REM ###################################################
99

1010
REM to use the python build tool do:
11-
python %BUILDTOOLS%\build.py --deps ".\dependencies"
11+
REM python %BUILDTOOLS%\Beeld.py --config ".\config.custom" --tasks build
1212

1313
REM to use the php build tool do:
14-
REM php -f %BUILDTOOLS%\build.php -- --deps=".\dependencies"
14+
REM php -f %BUILDTOOLS%\Beeld.php -- --config=".\config.custom" --tasks=build
1515

1616
REM to use the node build tool do:
17-
REM node %BUILDTOOLS%\build.js --deps ".\dependencies"
17+
node %BUILDTOOLS%\Beeld.js --config ".\config.custom" --tasks build

build.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

config.custom

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
###################################################
2+
#
3+
# The buildtools repository is at:
4+
# https://github.com/foo123/Beeld
5+
#
6+
###################################################
7+
8+
tasks =[{}]
9+
10+
build ={}
11+
12+
src =[]
13+
14+
!tpl:umd-header.tpl.js # include a umd-header template
15+
16+
# core
17+
./src/MOD3.js
18+
19+
./src/math/ModConstant.js
20+
./src/math/XMath.js
21+
./src/math/Range.js
22+
./src/math/Phase.js
23+
./src/math/Point.js
24+
./src/math/Matrix.js
25+
./src/math/Vector3.js
26+
./src/math/Matrix4.js
27+
28+
./src/core/WorkerInterface.js
29+
./src/core/VertexProxy.js
30+
./src/core/FaceProxy.js
31+
./src/core/MeshProxy.js
32+
./src/core/Modifier.js
33+
./src/core/Factory.js
34+
./src/core/ModifierStack.js
35+
36+
# 3rd-party
37+
# https://github.com/josephg/noisejs
38+
./src/3rd-party/perlin.js
39+
40+
# modifiers
41+
./src/modifiers/Pivot.js
42+
./src/modifiers/Bend.js
43+
./src/modifiers/Bloat.js
44+
./src/modifiers/Twist.js
45+
./src/modifiers/Skew.js
46+
./src/modifiers/Taper.js
47+
./src/modifiers/Wheel.js
48+
./src/modifiers/Break.js
49+
./src/modifiers/Noise.js
50+
./src/modifiers/DisplaceMap.js
51+
./src/modifiers/Perlin.js
52+
53+
# Support for Three.js
54+
./src/plugins/Three/Vertex.js
55+
./src/plugins/Three/Mesh.js
56+
./src/plugins/Three/Library.js
57+
58+
# Support for J3D
59+
./src/plugins/J3D/Vertex.js
60+
./src/plugins/J3D/Mesh.js
61+
./src/plugins/J3D/Library.js
62+
63+
# Support for CubicVR.js
64+
./src/plugins/CubicVR/Vertex.js
65+
./src/plugins/CubicVR/Mesh.js
66+
./src/plugins/CubicVR/Library.js
67+
68+
# Support for Copperlicht
69+
./src/plugins/Copperlicht/Vertex.js
70+
./src/plugins/Copperlicht/Mesh.js
71+
./src/plugins/Copperlicht/Library.js
72+
73+
# Support for Pre3D
74+
./src/plugins/Pre3D/Vertex.js
75+
./src/plugins/Pre3D/Mesh.js
76+
./src/plugins/Pre3D/Library.js
77+
78+
!tpl:umd-footer.tpl.js # include a umd-footer template
79+
80+
@ # end block
81+
82+
# extract header from this file
83+
header = ./src/MOD3.js
84+
85+
replace =[{}]
86+
87+
"@@ROOT@@" = "this"
88+
"@@EXPORTS@@" = "exports"
89+
"@@MODULE_NAME@@" = "MOD3"
90+
"@@MODULE_DEPENDENCIES@@" = "[ ['Classy'], ['./classy.js'] ]"
91+
"@@MODULE_ARGUMENTS@@" = "Classy"
92+
"@@VERSION@@" = "0.4.1"
93+
"@@DEPENDENCIES@@" = "@dependencies: Classy.js"
94+
"@@USE_STRICT@@" = '"use strict";'
95+
96+
@ # end block
97+
98+
# extract documentation
99+
doc ={}
100+
"startdoc" = "/**[DOC_MD]"
101+
"enddoc" = "[/DOC_MD]**/"
102+
"trimx" = "\\s*\\*\\s?"
103+
"output" = ".\api-reference.md"
104+
@ # end block
105+
106+
# Minify the Package (map of lists)
107+
minify ={}
108+
109+
# Options for Node UglifyJS Compiler (if used, default), (mangle and compress)
110+
uglifyjs =[]
111+
-m -c
112+
@ # end block
113+
114+
# Options for Java Closure Compiler (if used)
115+
closure =[]
116+
"--language_in=ECMASCRIPT5_STRICT"
117+
@ # end block
118+
119+
# Options for Java YUI Compressor Compiler (if used)
120+
yui =[]
121+
--preserve-semi
122+
@ # end block
123+
124+
@ # end block
125+
126+
out = ./build/mod3.min.js
127+
128+
@ # end block
129+
130+
131+
build_three ={}
132+
133+
src =[]
134+
135+
!tpl:umd-header.tpl.js # include a umd-header template
136+
137+
# core
138+
./src/MOD3.js
139+
140+
./src/math/ModConstant.js
141+
./src/math/XMath.js
142+
./src/math/Range.js
143+
./src/math/Phase.js
144+
./src/math/Point.js
145+
./src/math/Matrix.js
146+
./src/math/Vector3.js
147+
./src/math/Matrix4.js
148+
149+
./src/core/WorkerInterface.js
150+
./src/core/VertexProxy.js
151+
./src/core/FaceProxy.js
152+
./src/core/MeshProxy.js
153+
./src/core/Modifier.js
154+
./src/core/Factory.js
155+
./src/core/ModifierStack.js
156+
157+
# 3rd-party
158+
# https://github.com/josephg/noisejs
159+
./src/3rd-party/perlin.js
160+
161+
# modifiers
162+
./src/modifiers/Pivot.js
163+
./src/modifiers/Bend.js
164+
./src/modifiers/Bloat.js
165+
./src/modifiers/Twist.js
166+
./src/modifiers/Skew.js
167+
./src/modifiers/Taper.js
168+
./src/modifiers/Wheel.js
169+
./src/modifiers/Break.js
170+
./src/modifiers/Noise.js
171+
./src/modifiers/DisplaceMap.js
172+
./src/modifiers/Perlin.js
173+
174+
# Support for Three.js
175+
./src/plugins/Three/Vertex.js
176+
./src/plugins/Three/Mesh.js
177+
./src/plugins/Three/Library.js
178+
179+
!tpl:umd-footer.tpl.js # include a umd-footer template
180+
181+
@ # end block
182+
183+
# extract header from this file
184+
header = ./src/MOD3.js
185+
186+
replace =[{}]
187+
188+
"@@ROOT@@" = "this"
189+
"@@EXPORTS@@" = "exports"
190+
"@@MODULE_NAME@@" = "MOD3"
191+
"@@MODULE_DEPENDENCIES@@" = "[ ['Classy'], ['./classy.js'] ]"
192+
"@@MODULE_ARGUMENTS@@" = "Classy"
193+
"@@VERSION@@" = "0.4.1"
194+
"@@DEPENDENCIES@@" = "@dependencies: Classy.js"
195+
"@@USE_STRICT@@" = '"use strict";'
196+
197+
@ # end block
198+
199+
# extract documentation
200+
doc ={}
201+
"startdoc" = "/**[DOC_MD]"
202+
"enddoc" = "[/DOC_MD]**/"
203+
"trimx" = "\\s*\\*\\s?"
204+
"output" = ".\api-reference.md"
205+
@ # end block
206+
207+
# Minify the Package (map of lists)
208+
minify ={}
209+
210+
# Options for Node UglifyJS Compiler (if used, default), (mangle and compress)
211+
uglifyjs =[]
212+
-m -c
213+
@ # end block
214+
215+
# Options for Java Closure Compiler (if used)
216+
closure =[]
217+
"--language_in=ECMASCRIPT5_STRICT"
218+
@ # end block
219+
220+
# Options for Java YUI Compressor Compiler (if used)
221+
yui =[]
222+
--preserve-semi
223+
@ # end block
224+
225+
@ # end block
226+
227+
out = ./build/mod3.three.min.js
228+
229+
@ # end block
230+
231+
bundle ={}
232+
233+
bundle =[]
234+
235+
# bundle-in external dependencies
236+
./build/classy.js
237+
./build/mod3.min.js
238+
239+
@ # end block
240+
241+
242+
out = ./build/mod3.bundle.js
243+
244+
@ # end block
245+
246+
@ # end block

0 commit comments

Comments
 (0)