Permalink
Browse files

Fix bug in packager script, update test

  • Loading branch information...
1 parent 0dd0ef2 commit 8f4413f4a3a1c1862496bc62b7bd9171a74dfa68 @justjohn committed Mar 2, 2012
Showing with 12 additions and 15 deletions.
  1. +5 −2 bin/packager
  2. +6 −12 test/index.html
  3. +1 −1 test/program.js
View
@@ -1,10 +1,13 @@
#!/usr/bin/env node
var PACKAGER = require("../packager")
+ , fs = require("fs")
+
, args = process.argv
, node = args.shift()
- , thisFile = args.shift().split("/")
- , thisFile = thisFile[thisFile.length-1]
+ , thisPath = args.shift().split("/")
+ , thisFile = thisPath[thisPath.length-1]
+
, files = []
, arg
, options = {};
View
@@ -1,22 +1,16 @@
<!doctype html>
<html>
<head>
- <title>Flip Clock</title>
- <script type="text/javascript" charset="utf-8">
- // Prevent scrolling on Android / iOS devices
- document.ontouchmove = function(e){e.preventDefault();}
- document.ontouchstart = function(e){e.preventDefault();}
- </script>
+ <title>Test App</title>
<script type="text/javascript" src="vendor/nobleModules.js"></script>
<script type="text/javascript" src="program.js"></script>
<script type="text/javascript">
- module.declare(["test"], function() {
- // boot the app
- require("test").boot();
- });
- </script>
+ module.declare(["test"], function() {
+ // boot the app
+ require("test").boot();
+ });
+ </script>
</head>
<body id="body">
- Test...
</body>
</html>
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 8f4413f

Please sign in to comment.