Use one-file scripting
Also source maps support
This commit is contained in:
parent
f2bcc6f5b0
commit
516d0ff695
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
||||||
bundle.js
|
out.js
|
||||||
node_modules
|
node_modules
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -1,2 +1,9 @@
|
||||||
bundle.js: loader.js
|
FLAGS=''
|
||||||
browserify $< -o $@
|
|
||||||
|
main: out.js
|
||||||
|
|
||||||
|
debug: FLAGS += --debug
|
||||||
|
debug: out.js
|
||||||
|
|
||||||
|
out.js: script.js
|
||||||
|
browserify $< -o $@ $(FLAGS)
|
||||||
|
|
3
app.html
3
app.html
|
@ -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/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/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="http://cdnjs.cloudflare.com/ajax/libs/stats.js/r11/Stats.js"></script>
|
||||||
<script src="bundle.js"></script>
|
<script src="out.js"></script>
|
||||||
<script src="script.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
window.Client = require('agario-client');
|
|
||||||
window.EventEmitter = require('events').EventEmitter;
|
|
Reference in a new issue