commit 115859a301936cae4ba14afff4ec527df49bf4b6 Author: Aaron Fischer Date: Mon Aug 24 15:40:02 2015 +0200 Create a small build tool to use ES6 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..032c9f9 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +default: compile + +compile: + traceur --script src/*.js --out out/js13kgames-2015.js + uglifyjs --compress --mangle -- out/js13kgames-2015.js > out/js13kgames-2015.min.js + rm out/js13kgames-2015.js + cp -f src/*.{html,css} out/ + +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 stats; \ + inotifywait -qre close_write src/.; \ + done + +clean: + rm -rf out/ + rm js13kgames-2015-aaronfischer.zip diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..6f6b9bd --- /dev/null +++ b/src/index.html @@ -0,0 +1,13 @@ + + + + js13kGames 2015 -- Aaron Fischer + + + + + + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..0a5e075 --- /dev/null +++ b/src/main.js @@ -0,0 +1,3 @@ +var bootstrap = function() { + console.log("Hi du"); +}; diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..2066fe8 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,4 @@ +* { + margin: 0; + padding: 0; +} \ No newline at end of file