Permalink
Browse files

Severe bug fix to client side event listeners

  • Loading branch information...
1 parent e41d7f2 commit a8e6e330dd09a0c113a905999416ca3cfafc34c1 @jouni committed Dec 17, 2011
Showing with 2,129 additions and 1,626 deletions.
  1. +4 −2 README.md
  2. +32 −0 build/build-client
  3. +1 −5 client/default.html
  4. +1,979 −1,576 client/ender.js
  5. +39 −4 client/ender.min.js
  6. +25 −17 client/seep.js
  7. +3 −0 client/seep.min.js
  8. +2 −2 client/themes/alta.css
  9. +4 −0 client/widgets/field.js
  10. +6 −5 client/widgets/input.js
  11. +1 −1 index.js
  12. +1 −1 lib/app-registry.js
  13. +5 −2 lib/application.js
  14. +27 −11 lib/start.js
View
@@ -33,14 +33,16 @@ my-app.js
})
-Then in the command line, if you installed seep globally (with npm install -g seep)
+In the command line, if you installed seep globally (with npm install -g seep)
$ seep start my-app.js
-For local install
+or for a local installation
$ node_modules/.bin/seep start my-app.js
+Then point your browser to http://localhost:8000/my-app
+
## License
View
@@ -0,0 +1,32 @@
+#!/usr/bin/env node
+
+var fs = require("fs")
+ , path = require("path")
+ , exec = require('child_process').exec
+
+
+// Get the sources
+
+var ender = fs.readFileSync("../client/ender.js")
+ender = ender.toString("utf8", 0, ender.length)
+var lab = fs.readFileSync("../client/LAB.js", "utf8")
+var io = fs.readFileSync("../node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js", "utf8")
+var seep = fs.readFileSync("../client/seep.js", "utf8")
+
+
+// Combine them into a temporary file
+
+var dir = path.dirname(__filename)
+fs.writeFileSync(dir + "/temp.js", ender + "\n;\n" + lab + "\n;\n" + io + "\n;\n" + seep)
+
+
+// Use uglifyjs to process the output
+var reserved = "seep.get"
+
+var child = exec("uglifyjs --no-copyright --reserved-names \""+reserved+"\" -o "+dir+"/../client/seep.min.js " + dir + "/temp.js",
+ function (error, stdout, stderr) {
+ if (error !== null) {
+ console.log('exec error: ' + error)
+ }
+ fs.unlinkSync(dir + "/temp.js")
+})
View
@@ -7,11 +7,7 @@
</head>
<body>
- <!-- TODO package all these dependencies to seep.js -->
- <script src="/ender.min.js" type="text/javascript"></script>
- <script src="/LAB.js" type="text/javascript"></script>
- <script src="/socket.io/socket.io.js" type=text/javascript></script>
- <script src="/seep.js" type="text/javascript"></script>
+ <script src="/seep.min.js" type="text/javascript"></script>
<script type="text/javascript">
seep.standalone = "SERVER_ADDR"
seep.init("APP_URL")
Oops, something went wrong.

0 comments on commit a8e6e33

Please sign in to comment.