Use one-file scripting

Also source maps support
This commit is contained in:
Geoffrey Frogeye 2015-06-08 23:59:07 +02:00
parent f2bcc6f5b0
commit 516d0ff695
5 changed files with 14 additions and 7 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
bundle.js
out.js
node_modules

View file

@ -1,2 +1,9 @@
bundle.js: loader.js
browserify $< -o $@
FLAGS=''
main: out.js
debug: FLAGS += --debug
debug: out.js
out.js: script.js
browserify $< -o $@ $(FLAGS)

View file

@ -7,8 +7,7 @@
<script src="http://cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.6/pixi.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/stats.js/r11/Stats.js"></script>
<script src="bundle.js"></script>
<script src="script.js"></script>
<script src="out.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</style>
</head>

View file

@ -1,2 +0,0 @@
window.Client = require('agario-client');
window.EventEmitter = require('events').EventEmitter;

View file

@ -1,3 +1,6 @@
window.Client = require('agario-client');
window.EventEmitter = require('events').EventEmitter;
function AnimatedValue(value) {
this.write(value);
}