|
@@ -94,15 +94,15 @@ EXTRAS_FILES = [
|
|
|
'extras/cameras/FlyCamera.js',
|
|
|
'extras/cameras/RollCamera.js',
|
|
|
'extras/cameras/TrackballCamera.js',
|
|
|
-'extras/geometries/Cube.js',
|
|
|
-'extras/geometries/Cylinder.js',
|
|
|
-'extras/geometries/Icosahedron.js',
|
|
|
-'extras/geometries/Lathe.js',
|
|
|
-'extras/geometries/Plane.js',
|
|
|
-'extras/geometries/Sphere.js',
|
|
|
-'extras/geometries/Torus.js',
|
|
|
-'extras/geometries/TorusKnot.js',
|
|
|
-'extras/geometries/Text.js',
|
|
|
+'extras/geometries/CubeGeometry.js',
|
|
|
+'extras/geometries/CylinderGeometry.js',
|
|
|
+'extras/geometries/IcosahedronGeometry.js',
|
|
|
+'extras/geometries/LatheGeometry.js',
|
|
|
+'extras/geometries/PlaneGeometry.js',
|
|
|
+'extras/geometries/SphereGeometry.js',
|
|
|
+'extras/geometries/TextGeometry.js',
|
|
|
+'extras/geometries/TorusGeometry.js',
|
|
|
+'extras/geometries/TorusKnotGeometry.js',
|
|
|
'extras/io/Loader.js',
|
|
|
'extras/io/JSONLoader.js',
|
|
|
'extras/io/BinaryLoader.js',
|
|
@@ -356,7 +356,7 @@ def makeDebug(text):
|
|
|
return text
|
|
|
|
|
|
|
|
|
-def buildLib(files, debug, unminified, filename):
|
|
|
+def buildLib(files, debug, minified, filename):
|
|
|
|
|
|
text = merge(files)
|
|
|
|
|
@@ -375,7 +375,7 @@ def buildLib(files, debug, unminified, filename):
|
|
|
print "Compiling", filename
|
|
|
print "=" * 40
|
|
|
|
|
|
- if not unminified:
|
|
|
+ if minified:
|
|
|
text = compress(text)
|
|
|
|
|
|
output(addHeader(text, filename), folder + filename)
|
|
@@ -401,7 +401,7 @@ def parse_args():
|
|
|
parser.add_argument('--svg', help='Build ThreeSVG.js', action='store_true')
|
|
|
parser.add_argument('--dom', help='Build ThreeDOM.js', action='store_true')
|
|
|
parser.add_argument('--debug', help='Generate debug versions', action='store_const', const=True, default=False)
|
|
|
- parser.add_argument('--unminified', help='Generate unminified versions', action='store_const', const=True, default=False)
|
|
|
+ parser.add_argument('--minified', help='Generate minified versions', action='store_const', const=True, default=False)
|
|
|
parser.add_argument('--all', help='Build all Three.js versions', action='store_true')
|
|
|
|
|
|
args = parser.parse_args()
|
|
@@ -416,7 +416,7 @@ def parse_args():
|
|
|
parser.add_option('--svg', dest='svg', help='Build ThreeSVG.js', action='store_true')
|
|
|
parser.add_option('--dom', dest='dom', help='Build ThreeDOM.js', action='store_true')
|
|
|
parser.add_option('--debug', dest='debug', help='Generate debug versions', action='store_const', const=True, default=False)
|
|
|
- parser.add_option('--unminified', help='Generate unminified versions', action='store_const', const=True, default=False)
|
|
|
+ parser.add_option('--minified', help='Generate minified versions', action='store_const', const=True, default=False)
|
|
|
parser.add_option('--all', dest='all', help='Build all Three.js versions', action='store_true')
|
|
|
|
|
|
args, remainder = parser.parse_args()
|
|
@@ -433,7 +433,7 @@ def main(argv=None):
|
|
|
|
|
|
args = parse_args()
|
|
|
debug = args.debug
|
|
|
- unminified = args.unminified
|
|
|
+ minified = args.minified
|
|
|
|
|
|
config = [
|
|
|
['Three', 'includes', COMMON_FILES + EXTRAS_FILES, args.common],
|
|
@@ -446,7 +446,7 @@ def main(argv=None):
|
|
|
|
|
|
for fname_lib, fname_inc, files, enabled in config:
|
|
|
if enabled or args.all:
|
|
|
- buildLib(files, debug, unminified, fname_lib)
|
|
|
+ buildLib(files, debug, minified, fname_lib)
|
|
|
if args.includes:
|
|
|
buildIncludes(files, fname_inc)
|
|
|
|