How to use the walker.walk function in walker

To help you get started, we’ve selected a few walker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nicodel / Run-Bike-Hike / tools / enyo_minify.js View on Github external
console.error(basename, msg.error.stack);
    }
    if (process.send) {
      process.send(msg);
    }
  });

  opt.destdir = opt.destdir || process.cwd();
  opt.output = opt.output || "build/out";
  if (path.resolve(opt.output) === opt.output) {
    throw new Error("-output must be a relative path prefix");
  }

  w(opt);
  walker.init(opt.enyo, opt.lib || opt.enyo + "/../lib", opt.mapfrom, opt.mapto);
  walker.walk(path.basename(opt.packagejs), walkerFinished);

})();
github EMSL-MSC / NWPerf / web / enyo / tools / minifier / minify.js View on Github external
w("done.");
	w("");
};

w = console.log;

opt = options(process.argv);
w("");

if (opt.help || opt.h || opt["?"]) {
	printUsage();
	process.exit();
}

walker.init(opt.enyo);
walker.walk(opt.source, finish);
github enyojs / enyo / tools / minifier / minify.js View on Github external
w("done.");
	w("");
};

w = console.log;

opt = options(process.argv);
w("");

if (opt.help || opt.h || opt["?"]) {
	printUsage();
	process.exit();
}

walker.init(opt.enyo);
walker.walk(opt.source, finish);
github enyojs / enyo / tools / minifier / minify.js View on Github external
});

	opt.destdir = opt.destdir || process.cwd();
	opt.output = opt.output || "build/out";
	if (path.resolve(opt.output) === opt.output) {
		throw new Error("-output must be a relative path prefix");
	}

	opt.enyo = opt.enyo || defaultEnyoLoc;

	opt.lib = opt.lib || path.join(opt.enyo, "../lib");
	opt.gathering = opt.gathering && (opt.lib != defaultLibLoc);

	w(opt);
	walker.init(opt.enyo, opt.lib, opt.mapfrom, opt.mapto);
	walker.walk(path.basename(opt.packagejs), walkerFinished);

})();
github enyojs / enyo / tools / minifier / lessc.js View on Github external
"help": ['--help'],
	"ri": ['--ri']
};

var opt = nopt(knownOpts, shortHands, process.argv, 2);
opt.source = opt.argv.remain[0];
if (!opt.source || opt.help) {
	printUsage();
	process.exit();
}

walker.init(opt.enyo);
if (opt.watch) {
	watchFile(opt.source);
} else {
	walker.walk(opt.source, finish);
}
github enyojs / enyo / tools / minifier / lessc.js View on Github external
var recompile = function() {
		walker.walk(opt.source, watchFinish);
	};
	var watchChanged = function(filename) {

walker

A simple directory tree walker.

Apache-2.0
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular walker functions