diff --git a/lib/_src-node.f2ehint-update.js b/lib/_src-node.f2ehint-update.js new file mode 100644 index 0000000..9a1d151 --- /dev/null +++ b/lib/_src-node.f2ehint-update.js @@ -0,0 +1 @@ +console.log("updating"); \ No newline at end of file diff --git a/lib/ide.js b/lib/ide.js index 253c7db..247861f 100644 --- a/lib/ide.js +++ b/lib/ide.js @@ -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]; diff --git a/package.json b/package.json index f74ff54..6e8e19a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node.f2ehint", - "version": "0.0.7", + "version": "0.0.8", "author": { "name": "xunuo", "email": "i@xunuo.com", diff --git a/run-at-install.js b/run-at-install.js index d855e96..55537ac 100644 --- a/run-at-install.js +++ b/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" + @@ -13,6 +15,17 @@ process.stdout.write( "3. 输出TAB中,命令输出选择:[ 输入到列表框、捕捉输出 ]\n" + "4. 点击确定即可。" + "\n\n" - - -); \ No newline at end of file +); + + + +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") +*/ \ No newline at end of file