Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

solved requires

  • Loading branch information...
commit a977a1e6a7cc146533cfb9dcbde7e94cfa79ce11 1 parent 1a77ea0
@ramitos ramitos authored
Showing with 10 additions and 8 deletions.
  1. +2 −0  .gitignore
  2. +7 −7 bin/jsctags.js
  3. +1 −1  lib/jsctags/ctags/index.js
View
2  .gitignore
@@ -0,0 +1,2 @@
+
+.DS_Store
View
14 bin/jsctags.js
@@ -39,12 +39,12 @@
var argv = process.argv;
var path = require('path');
-var _ = require('underscore')._;
+var _ = require('../lib/jsctags/underscore')._;
var fs = require('fs');
var util = require('util');
-var ctags = require('ctags');
-var getopt = require('getopt').getopt;
-var log = require('log');
+var ctags = require('../lib/jsctags/ctags');
+var getopt = require('../lib/jsctags/getopt').getopt;
+var log = require('../lib/jsctags/log');
var Tags = ctags.Tags;
function usage() {
@@ -102,8 +102,8 @@ var tags = new Tags();
// Ascend the directory hierarchy to find the CommonJS package this module is
// in, if any.
-function getModuleInfo(fullPath) {
- function commonJS(modulePath, packageId) {
+function getModuleInfo (fullPath) {
+ function commonJS (modulePath, packageId) {
var ext = path.extname(modulePath), len = modulePath.length;
var modulePart = modulePath.substring(0, len - ext.length);
var moduleId = (packageId != null)
@@ -170,7 +170,7 @@ function getModuleInfo(fullPath) {
}
var idsSeen = {};
-function processPath(p) {
+function processPath (p) {
var st = fs.statSync(p);
var id = idFor(st);
if (id in idsSeen) {
View
2  lib/jsctags/ctags/index.js
@@ -40,7 +40,7 @@ var _ = require('underscore')._;
var Interpreter = require('./interp').Interpreter;
var TagReader = require('./reader').TagReader;
var TagWriter = require('./writer').TagWriter;
-var Trait = require('traits').Trait;
+var Trait = require('../traits').Trait;
exports.Tags = function(initialTags) {
this.tags = initialTags != null ? initialTags : [];
Please sign in to comment.
Something went wrong with that request. Please try again.