Skip to content

Commit

Permalink
Signed-off-by: snow <i@xunuo.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
xunuo committed Jul 3, 2012
1 parent d2d07ee commit c620b52
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/_src-node.f2ehint-update.js
@@ -0,0 +1 @@
console.log("updating");
17 changes: 17 additions & 0 deletions lib/ide.js
Expand Up @@ -3,6 +3,23 @@ var fs = require('fs'),
config = require('./jshint-config.js'),
jshint = require('../packages/jshint/jshint.js');

/*
nodeChildProcess = this.nodeChildProcess = require('child_process');
var cmd = "node ../../node.f2ehint-update.js";
var run = nodeChildProcess.exec(cmd);
// ´´½¨¼àÌý
run.stdout.on('data', function (data){
console.log(data);
});
// ´íÎó
run.stderr.on('data', function (err) {
console.log(err);
});
*/



var file = process.argv[2];

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "node.f2ehint",
"version": "0.0.7",
"version": "0.0.8",
"author": {
"name": "xunuo",
"email": "i@xunuo.com",
Expand Down
19 changes: 16 additions & 3 deletions run-at-install.js
@@ -1,4 +1,6 @@
#!/usr/bin/env node

/*
var hintIDEPath = "node \"" + __dirname + "\\lib\\ide.js\"";
process.stdout.write(
"\n\n**** 请对应您的IDE作如下设置 : ****\n\n" +
Expand All @@ -13,6 +15,17 @@ process.stdout.write(
"3. 输出TAB中,命令输出选择:[ 输入到列表框、捕捉输出 ]\n" +
"4. 点击确定即可。" +
"\n\n"


);
);
var fs = require('fs');
var copy = function(src, dest) {
var oldFile = fs.createReadStream(src);
var newFile = fs.createWriteStream(dest);
require('util').pump(oldFile, newFile);
};
copy("./lib/_src-node.f2ehint-update.js", "../node.f2ehint-update.js")
*/

0 comments on commit c620b52

Please sign in to comment.