tween.js/utils/builder.py
2012-10-27 11:50:09 +02:00

12 lines
348 B
Python

import os
source = '../src/Tween.js'
output = '../build/tween.min.js'
os.system( 'java -jar compiler/compiler.jar --language_in=ECMASCRIPT5_STRICT --js ' + source + ' --js_output_file ' + output )
# header
with open(output,'r') as f: text = f.read()
with open(output,'w') as f: f.write('// tween.js - http://github.com/sole/tween.js\n' + text)