mirror of
https://github.com/tweenjs/tween.js.git
synced 2025-12-08 20:16:12 +00:00
12 lines
348 B
Python
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)
|