-
Notifications
You must be signed in to change notification settings - Fork 16
/
tscmin.bat
13 lines (9 loc) · 896 Bytes
/
tscmin.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
@ECHO OFF
CALL tsc
REM ECMASCRIPT_2015 and ES6 are the same thing...
REM https://www.typescriptlang.org/docs/handbook/compiler-options.html (--target section)
REM https://github.com/google/closure-compiler/wiki/Flags-and-Options
REM We are using ECMASCRIPT_2015 (without async/await support) in favor of a few old Android devices... (here and at tsconfig.json)
java -jar D:\Tools\closure-compiler.jar --js assets\js\graphicalFilterEditor.js --js_output_file assets\js\graphicalFilterEditor.min.js --language_in ECMASCRIPT_2015 --language_out ECMASCRIPT_2015 --strict_mode_input --compilation_level SIMPLE
REM java -jar D:\Tools\closure-compiler.jar --js assets\js\graphicalFilterEditor.js --js_output_file assets\js\graphicalFilterEditor.min.js --language_in ECMASCRIPT_2017 --language_out ECMASCRIPT_2017 --strict_mode_input --compilation_level SIMPLE
DEL assets\js\graphicalFilterEditor.js