Skip to content

Commit

Permalink
Merge pull request #11 from azu/fix_10
Browse files Browse the repository at this point in the history
rewrite simply
  • Loading branch information
azu committed Aug 9, 2015
2 parents 8365dd9 + fde78f0 commit eb8e16f
Show file tree
Hide file tree
Showing 33 changed files with 197 additions and 1,716 deletions.
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

0 comments on commit eb8e16f

Please sign in to comment.