Permalink
Browse files

v0.0.2

  • Loading branch information...
mekwall committed Apr 18, 2012
1 parent c6a8e6f commit d828f9dbf845281a0d751b73a8e6dd350290c84c
View
@@ -0,0 +1,28 @@
+{spawn, exec} = require 'child_process'
+
+option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'
+option '-w', '--watch', 'continually build qob framework'
+
+task 'build', 'build the qob framework', (options) ->
+ coffee = spawn 'coffee', ['-c' + (if options.watch then 'w' else ''), '-o', 'lib', 'src']
+ coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
+
+task 'install', 'install the `qob` command into /usr/local (or --prefix)', (options) ->
+ base = options.prefix or '/usr/local'
+ lib = base + '/lib/qob'
+ exec([
+ 'mkdir -p ' + lib
+ 'cp -rf bin README resources vendor lib ' + lib
+ 'ln -sf ' + lib + '/bin/qob ' + base + '/bin/qob'
+ ].join(' && '), (err, stdout, stderr) ->
+ if err then console.error stderr
+ )
+
+task 'doc', 'rebuild the qob documentation', ->
+ exec([
+ 'bin/docco src/docco.coffee'
+ 'sed "s/docco.css/resources\\/docco.css/" < docs/docco.html > index.html'
+ 'rm -r docs'
+ ].join(' && '), (err) ->
+ throw err if err
+ )
View
@@ -0,0 +1,15 @@
+compile:
+ ./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src
+
+MOCHA_TESTS := $(shell find test/ -name '*.mocha.coffee')
+MOCHA := ./node_modules/mocha/bin/mocha
+OUT_FILE = "test-output.tmp"
+
+g = "."
+
+test-mocha:
+ @NODE_ENV=test $(MOCHA) \
+ --grep "$(g)" \
+ $(MOCHA_TESTS) | tee $(OUT_FILE)
+
+test: test-mocha
View
No changes.
View
@@ -1,6 +1,6 @@
try {
module.exports = require('./lib/moon');
} catch (e) {
- require('coffee-script');
+ require('iced-coffee-script');
module.exports = require('./src/moon');
}
View
@@ -5,7 +5,7 @@
"framework",
"real-time"
],
- "version": "0.0.1",
+ "version": "0.0.2",
"authors": [
{
"name": "Marcus Ekwall",
@@ -27,23 +27,24 @@
}
],
"bugs": {
- "url": "git://github.com/mekwall/qob/issues"
+ "url": "git://github.com/mekwall/moon/issues"
},
"repository": {
"type": "git",
- "url": "git://github.com/mekwall/qob.git"
+ "url": "git://github.com/mekwall/moon.git"
},
"directories": {
"lib": "./lib"
},
"bin": {
- "qob": "./bin/qob"
+ "moon": "./bin/moon"
},
"scripts": {
"install": ""
},
"dependencies": {
- "coffee-script": ">= 1.3.1",
+ "http-proxy": ">= 0.8.x",
+ "iced-coffee-script": ">= 1.3.x",
"colors": ">= 0.6.0",
"fs-extra": ">= 0.0.4",
"temp": ">= 0.4.0",
@@ -53,12 +54,17 @@
"redis": ">= 0.7.1",
"connect": ">= 2.1.2",
"connect-redis": ">= 1.3.0",
- "socket.io": ">= 0.9.5",
+ "socket.io": "git://github.com/LearnBoost/socket.io.git",
"director": "git://github.com/flatiron/director.git",
"jade": ">= 0.24.0",
"stylus": ">= 0.25.0",
"nib": ">= 0.4.0"
},
+ "optionalDependencies": {
+ "spdy": ">= 1.2.0",
+ "js-yaml": ">= 0.3.7",
+ "winston": "git://github.com/mekwall/winston.git"
+ },
"devDependencies": {
"docco": ">= 0.3.0",
"mocha": ">= 1.0.1"
Oops, something went wrong.

0 comments on commit d828f9d

Please sign in to comment.