Created
April 22, 2012 00:56
-
-
Save aseemk/2440598 to your computer and use it in GitHub Desktop.
Trying to Streamline a Cakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return if not require('streamline/module')(module) | |
task 'greet', -> | |
console.log 'Hello...' | |
setTimeout _, 1000 | |
console.log '...world' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": "", | |
"name": "streamline-test", | |
"version": "0.0.0", | |
"repository": { | |
"url": "" | |
}, | |
"main": "./lib", | |
"engines": { | |
"node": "~0.6.13" | |
}, | |
"dependencies": { | |
"coffee-script": "1.3.1", | |
"streamline": "0.3.1" | |
}, | |
"devDependencies": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cake greet | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: error streamlining /Users/aseemk/Projects/Node/streamline-test/tmp--161404330: :1:missing operand on line 1 | |
at Object.transform (/Users/aseemk/Projects/Node/streamline-test/node_modules/streamline/lib/callbacks/transform.js:1413:10) | |
at Object.transformModule (/Users/aseemk/Projects/Node/streamline-test/node_modules/streamline/lib/compiler/compile.js:261:19) | |
at Module._compile (/Users/aseemk/Projects/Node/streamline-test/node_modules/streamline/lib/compiler/register.js:41:72) | |
at Object..js (module.js:408:10) | |
at Module.load (module.js:334:31) | |
at Function._load (module.js:293:12) | |
at require (module.js:346:19) | |
at /Users/aseemk/Projects/Node/streamline-test/node_modules/streamline/lib/compiler/register.js:75:17 | |
at Object.<anonymous> (/Users/aseemk/Projects/Node/streamline-test/Cakefile:2:35) | |
at Module.<anonymous> (module.js:402:26) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return if not require('streamline/module')(module) | |
task 'help', -> | |
console.log 'Hello...' | |
setTimeout _, 1000 | |
console.log '...world' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment