Browse Source

Use one-file scripting

Also source maps support
master
Geoffrey Frogeye 4 years ago
parent
commit
516d0ff695
5 changed files with 14 additions and 7 deletions
  1. +1
    -1
      .gitignore
  2. +9
    -2
      Makefile
  3. +1
    -2
      app.html
  4. +0
    -2
      loader.js
  5. +3
    -0
      script.js

+ 1
- 1
.gitignore View File

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

+ 9
- 2
Makefile 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)

+ 1
- 2
app.html 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>


+ 0
- 2
loader.js View File

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

+ 3
- 0
script.js View File

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

function AnimatedValue(value) {
this.write(value);
}