[Groonga-commit] nroonga/norema [master] Locate jQuery by using the conver.js location

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Aug 28 22:25:07 JST 2012


Yoji SHIDARA	2012-08-28 22:25:07 +0900 (Tue, 28 Aug 2012)

  New Revision: 16d1599ba222855b4d156a8ad12a250b908a08de
  https://github.com/nroonga/norema/commit/16d1599ba222855b4d156a8ad12a250b908a08de

  Log:
    Locate jQuery by using the conver.js location

  Modified files:
    tools/convert.js

  Modified: tools/convert.js (+2 -1)
===================================================================
--- tools/convert.js    2012-08-28 15:36:57 +0900 (8f629a2)
+++ tools/convert.js    2012-08-28 22:25:07 +0900 (f6cb40e)
@@ -6,7 +6,8 @@ var async = require('async');
 
 var json = fs.readFileSync('all.json');
 var doc = JSON.parse(json);
-var jquery = fs.readFileSync("./jquery-1.7.2.min.js").toString();
+var jqueryPath = __dirname + '/jquery-1.7.2.min.js';
+var jquery = fs.readFileSync(jqueryPath).toString();
 
 function htmlToText(html, callback) {
   jsdom.env({
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index