You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
911 B

default: compile
compile:
mkdir -p out
babel src/*.js -o out/js13kgames-2015.js
uglifyjs --compress --mangle -- out/js13kgames-2015.js > out/js13kgames-2015.min.js
cp vendor/minified-custom.js out/minified.min.js # ca. 8kb space wasted ...
cp vendor/asteroid-icon.png out/asteroid.png
cp -f src/*.{html,css} out/
rm out/js13kgames-2015.js
optimize:
#closure --compilation_level ADVANCED_OPTIMIZATIONS --language_in ECMASCRIPT6 --language_out ECMASCRIPT5 --js src/main.js --js src/helpers.js --js vendor/minified-src.js --warnings_whitelist_file vendor/minified-src.js --js_output_file out.min.js
zip: compile
rm -f js13kgames2015-aaronfischer.zip
zip -9 -r js13kgames-2015-aaronfischer.zip out/*
stats: zip
ls -al js13kgames-2015-aaronfischer.zip
watch:
while true; do \
make compile; \
inotifywait -qre close_write src/.; \
done
clean:
rm -rf out/
rm js13kgames-2015-aaronfischer.zip