Commit 56b61362 authored by frankie's avatar frankie 💬

adjustements on packager script

parent 90d6f2b3
......@@ -34,12 +34,14 @@ threejs_files = [
'js/threejs/controls/OrbitControls.js',
'js/threejs/Detector.js',
'js/threejs/libs/stats.min.js',
'js/threejs/libs/dat.gui.min.js'
'js/threejs/libs/dat.gui.min.js',
'js/threejs/shaders/UnpackDepthRGBAShader.js',
'js/threejs/utils/ShadowMapViewer.js'
]
export_folder = '../package'
export_file_css = 'sisyphus_#.css'
export_file_threejs = 'three.js'
export_file_threejs = 'three_#.js'
export_files = [
{
'html_tmpl': 'template.html',
......@@ -81,8 +83,6 @@ export_files = [
{
'html_tmpl': 'template_archive.html',
'js_src' : [
'js/threejs/shaders/UnpackDepthRGBAShader.js',
'js/threejs/utils/ShadowMapViewer.js',
'js/slider/range-slider.js',
'js/utils/Basics.js',
'js/utils/Interpolation.js',
......@@ -268,9 +268,10 @@ with open( export_path, 'w') as f:
# generation of common files, JS
threejs_content = get_content( threejs_files, 'js' )
export_file_threejs = export_file_threejs.replace( "#", str(uuid.uuid1()) )
export_path = os.path.join( export_folder, export_file_threejs )
print( "creating javascript '" + export_path + "'" )
with open( export_folder+'/'+export_file_threejs , 'w') as f:
print( "creating javascript '" + export_file_threejs + "'" )
with open( export_path , 'w') as f:
f.write( threejs_content )
f.close()
uglify( export_path )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment