littlejsengine 1.4.7 → 1.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.bat CHANGED
@@ -33,13 +33,12 @@ rem copy images to build folder
33
33
  copy ..\tiles.png tiles.png
34
34
 
35
35
  rem minify code with closure
36
- move %BUILD_FILENAME% %BUILD_FILENAME%.temp
37
- call npx google-closure-compiler --js=%BUILD_FILENAME%.temp --js_output_file=%BUILD_FILENAME% --compilation_level=ADVANCED --language_out=ECMASCRIPT_2021 --warning_level=VERBOSE --jscomp_off=* --assume_function_wrapper
36
+ move %BUILD_FILENAME% temp_%BUILD_FILENAME%
37
+ call npx google-closure-compiler --js=temp_%BUILD_FILENAME% --js_output_file=%BUILD_FILENAME% --compilation_level=ADVANCED --language_out=ECMASCRIPT_2021 --warning_level=VERBOSE --jscomp_off=* --assume_function_wrapper
38
38
  if %ERRORLEVEL% NEQ 0 (
39
39
  pause
40
40
  exit /b %ERRORLEVEL%
41
41
  )
42
- del %BUILD_FILENAME%.temp
43
42
 
44
43
  rem more minification with uglify or terser (they both do about the same)
45
44
  call npx uglifyjs -o %BUILD_FILENAME% --compress --mangle -- %BUILD_FILENAME%
@@ -63,6 +62,11 @@ echo ^<body^>^<meta charset=utf-8^>^<script^> >> index.html
63
62
  type roadroller_%BUILD_FILENAME% >> index.html
64
63
  echo ^</script^> >> index.html
65
64
 
65
+ rem delete intermediate files
66
+ del %BUILD_FILENAME%
67
+ del temp_%BUILD_FILENAME%
68
+ del roadroller_%BUILD_FILENAME%
69
+
66
70
  rem zip the result, ect is recommended
67
71
  call ..\node_modules\ect-bin\vendor\win32\ect.exe -9 -strip -zip ..\%NAME%.zip index.html tiles.png
68
72
  if %ERRORLEVEL% NEQ 0 (