Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite simply #11

Merged
merged 15 commits into from
Aug 9, 2015
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
node_modules
tags
.idea/

lib
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: false
language: node_js
node_js:
- '0.10'
- '0.11'
- 'stable'
14 changes: 14 additions & 0 deletions bin/cmd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env node
var convertCode = require('../').convertCode;
var concat = require('concat-stream');
var fs = require('fs');
var path = require("path");
var file = process.argv[2];
var input = file && file !== '-'
? fs.createReadStream(process.argv[2])
: process.stdin
;
input.pipe(concat(function (buf) {
var filePath = path.join(process.cwd(), file);
console.log(convertCode(buf.toString('utf8'), filePath));
}));
5 changes: 0 additions & 5 deletions bin/power-doctest.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/item03.js → example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ function sum(ary) {
}

var total = sum([1, 2, 3, 4, 5]);
total; // > 5
total; // => 5
2 changes: 1 addition & 1 deletion example/exception.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
throw new Error(); // => Error
throw new Error();// => Error

var object = {};
object.not.found;// => Error
2 changes: 1 addition & 1 deletion example/string.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
var result = [1, 2];
result.toString(); // > "1,2"
result.toString(); // => "1,2"
333 changes: 0 additions & 333 deletions lib/ast-generator/exception-assert.js

This file was deleted.

23 changes: 0 additions & 23 deletions lib/ast-generator/extract-console.js

This file was deleted.

302 changes: 0 additions & 302 deletions lib/ast-generator/mixin-assert.js

This file was deleted.

Loading