You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/08/01 22:23:09 UTC

[50/61] [abbrv] [partial] cordova-create git commit: gitignore node modules

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 5309464..9a9c7e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@ npm-debug.log
 .wafpickle-*
 config.gypi
 CVS
+node_modules/*
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/cake
----------------------------------------------------------------------
diff --git a/node_modules/.bin/cake b/node_modules/.bin/cake
deleted file mode 100755
index 5965f4e..0000000
--- a/node_modules/.bin/cake
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env node
-
-var path = require('path');
-var fs   = require('fs');
-var lib  = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
-
-require(lib + '/coffee-script/cake').run();
diff --git a/node_modules/.bin/cake b/node_modules/.bin/cake
new file mode 120000
index 0000000..d95f32a
--- /dev/null
+++ b/node_modules/.bin/cake
@@ -0,0 +1 @@
+../coffee-script/bin/cake
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/coffee
----------------------------------------------------------------------
diff --git a/node_modules/.bin/coffee b/node_modules/.bin/coffee
deleted file mode 100755
index 3d1d71c..0000000
--- a/node_modules/.bin/coffee
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env node
-
-var path = require('path');
-var fs   = require('fs');
-var lib  = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
-
-require(lib + '/coffee-script/command').run();
diff --git a/node_modules/.bin/coffee b/node_modules/.bin/coffee
new file mode 120000
index 0000000..b57f275
--- /dev/null
+++ b/node_modules/.bin/coffee
@@ -0,0 +1 @@
+../coffee-script/bin/coffee
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/jasmine-node
----------------------------------------------------------------------
diff --git a/node_modules/.bin/jasmine-node b/node_modules/.bin/jasmine-node
deleted file mode 100755
index 33d4873..0000000
--- a/node_modules/.bin/jasmine-node
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env node
-
-if( !process.env.NODE_ENV ) process.env.NODE_ENV = 'test';
-
-var path = require('path');
-require(path.join(__dirname,'../lib/jasmine-node/cli.js'));
diff --git a/node_modules/.bin/jasmine-node b/node_modules/.bin/jasmine-node
new file mode 120000
index 0000000..a1c6532
--- /dev/null
+++ b/node_modules/.bin/jasmine-node
@@ -0,0 +1 @@
+../jasmine-node/bin/jasmine-node
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/jshint
----------------------------------------------------------------------
diff --git a/node_modules/.bin/jshint b/node_modules/.bin/jshint
deleted file mode 100755
index f56105f..0000000
--- a/node_modules/.bin/jshint
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env node
-
-require("../src/cli.js").interpret(process.argv);
diff --git a/node_modules/.bin/jshint b/node_modules/.bin/jshint
new file mode 120000
index 0000000..1b5b30c
--- /dev/null
+++ b/node_modules/.bin/jshint
@@ -0,0 +1 @@
+../jshint/bin/jshint
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/npm
----------------------------------------------------------------------
diff --git a/node_modules/.bin/npm b/node_modules/.bin/npm
deleted file mode 100755
index ace40ca..0000000
--- a/node_modules/.bin/npm
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/env node
-;(function () { // wrapper in case we're in module_context mode
-
-// windows: running "npm blah" in this folder will invoke WSH, not node.
-if (typeof WScript !== "undefined") {
-  WScript.echo("npm does not work when run\n"
-              +"with the Windows Scripting Host\n\n"
-              +"'cd' to a different directory,\n"
-              +"or type 'npm.cmd <args>',\n"
-              +"or type 'node npm <args>'.")
-  WScript.quit(1)
-  return
-}
-
-
-process.title = "npm"
-
-var log = require("npmlog")
-log.pause() // will be unpaused when config is loaded.
-log.info("it worked if it ends with", "ok")
-
-var path = require("path")
-  , npm = require("../lib/npm.js")
-  , npmconf = require("../lib/config/core.js")
-  , errorHandler = require("../lib/utils/error-handler.js")
-
-  , configDefs = npmconf.defs
-  , shorthands = configDefs.shorthands
-  , types = configDefs.types
-  , nopt = require("nopt")
-
-// if npm is called as "npmg" or "npm_g", then
-// run in global mode.
-if (path.basename(process.argv[1]).slice(-1)  === "g") {
-  process.argv.splice(1, 1, "npm", "-g")
-}
-
-log.verbose("cli", process.argv)
-
-var conf = nopt(types, shorthands)
-npm.argv = conf.argv.remain
-if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift()
-else conf.usage = true
-
-
-if (conf.version) {
-  console.log(npm.version)
-  return
-}
-
-if (conf.versions) {
-  npm.command = "version"
-  conf.usage = false
-  npm.argv = []
-}
-
-log.info("using", "npm@%s", npm.version)
-log.info("using", "node@%s", process.version)
-
-process.on("uncaughtException", errorHandler)
-
-if (conf.usage && npm.command !== "help") {
-  npm.argv.unshift(npm.command)
-  npm.command = "help"
-}
-
-// now actually fire up npm and run the command.
-// this is how to use npm programmatically:
-conf._exit = true
-npm.load(conf, function (er) {
-  if (er) return errorHandler(er)
-  npm.commands[npm.command](npm.argv, errorHandler)
-})
-
-})()
diff --git a/node_modules/.bin/npm b/node_modules/.bin/npm
new file mode 120000
index 0000000..e804334
--- /dev/null
+++ b/node_modules/.bin/npm
@@ -0,0 +1 @@
+../npm/bin/npm-cli.js
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/.bin/pegjs
----------------------------------------------------------------------
diff --git a/node_modules/.bin/pegjs b/node_modules/.bin/pegjs
deleted file mode 100755
index e934ed9..0000000
--- a/node_modules/.bin/pegjs
+++ /dev/null
@@ -1,270 +0,0 @@
-#!/usr/bin/env node
-
-"use strict";
-
-var fs   = require("fs");
-var path = require("path");
-var PEG  = require("../lib/peg");
-
-/* Helpers */
-
-function printVersion() {
-  console.log("PEG.js " + PEG.VERSION);
-}
-
-function printHelp() {
-  console.log("Usage: pegjs [options] [--] [<input_file>] [<output_file>]");
-  console.log("");
-  console.log("Generates a parser from the PEG grammar specified in the <input_file> and writes");
-  console.log("it to the <output_file>.");
-  console.log("");
-  console.log("If the <output_file> is omitted, its name is generated by changing the");
-  console.log("<input_file> extension to \".js\". If both <input_file> and <output_file> are");
-  console.log("omitted, standard input and output are used.");
-  console.log("");
-  console.log("Options:");
-  console.log("  -e, --export-var <variable>        name of the variable where the parser");
-  console.log("                                     object will be stored (default:");
-  console.log("                                     \"module.exports\")");
-  console.log("      --cache                        make generated parser cache results");
-  console.log("      --allowed-start-rules <rules>  comma-separated list of rules the generated");
-  console.log("                                     parser will be allowed to start parsing");
-  console.log("                                     from (default: the first rule in the");
-  console.log("                                     grammar)");
-  console.log("  -o, --optimize <goal>              select optimization for speed or size");
-  console.log("                                     (default: speed)");
-  console.log("      --trace                        enable tracing in generated parser");
-  console.log("      --plugin <plugin>              use a specified plugin (can be specified");
-  console.log("                                     multiple times)");
-  console.log("      --extra-options <options>      additional options (in JSON format) to pass");
-  console.log("                                     to PEG.buildParser");
-  console.log("      --extra-options-file <file>    file with additional options (in JSON");
-  console.log("                                     format) to pass to PEG.buildParser");
-  console.log("  -v, --version                      print version information and exit");
-  console.log("  -h, --help                         print help and exit");
-}
-
-function exitSuccess() {
-  process.exit(0);
-}
-
-function exitFailure() {
-  process.exit(1);
-}
-
-function abort(message) {
-  console.error(message);
-  exitFailure();
-}
-
-function addExtraOptions(options, json) {
-  var extraOptions;
-
-  try {
-    extraOptions = JSON.parse(json);
-  } catch (e) {
-    if (!(e instanceof SyntaxError)) { throw e; }
-
-    abort("Error parsing JSON: " + e.message);
-  }
-  if (typeof extraOptions !== "object") {
-    abort("The JSON with extra options has to represent an object.");
-  }
-
-  for (var key in extraOptions) {
-    if (extraOptions.hasOwnProperty(key)) {
-      options[key] = extraOptions[key];
-    }
-  }
-}
-
-/*
- * Extracted into a function just to silence JSHint complaining about creating
- * functions in a loop.
- */
-function trim(s) {
-  return s.trim();
-}
-
-/* Arguments */
-
-var args = process.argv.slice(2); // Trim "node" and the script path.
-
-function isOption(arg) {
-  return (/^-/).test(arg);
-}
-
-function nextArg() {
-  args.shift();
-}
-
-/* Files */
-
-function readStream(inputStream, callback) {
-  var input = "";
-  inputStream.on("data", function(data) { input += data; });
-  inputStream.on("end", function() { callback(input); });
-}
-
-/* Main */
-
-/* This makes the generated parser a CommonJS module by default. */
-var exportVar = "module.exports";
-var options = {
-  cache:    false,
-  output:   "source",
-  optimize: "speed",
-  trace:    false,
-  plugins:  []
-};
-
-while (args.length > 0 && isOption(args[0])) {
-  switch (args[0]) {
-    case "-e":
-    case "--export-var":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the -e/--export-var option.");
-      }
-      exportVar = args[0];
-      break;
-
-    case "--cache":
-      options.cache = true;
-      break;
-
-    case "--allowed-start-rules":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the -e/--allowed-start-rules option.");
-      }
-      options.allowedStartRules = args[0]
-        .split(",")
-        .map(trim);
-      break;
-
-    case "--trace":
-      options.trace = true;
-      break;
-
-    case "-o":
-    case "--optimize":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the -o/--optimize option.");
-      }
-      if (args[0] !== "speed" && args[0] !== "size") {
-        abort("Optimization goal must be either \"speed\" or \"size\".");
-      }
-      options.optimize = args[0];
-      break;
-
-    case "--plugin":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the --plugin option.");
-      }
-      var id = /^(\.\/|\.\.\/)/.test(args[0]) ? path.resolve(args[0]) : args[0];
-      var mod;
-      try {
-        mod = require(id);
-      } catch (e) {
-        if (e.code !== "MODULE_NOT_FOUND") { throw e; }
-
-        abort("Can't load module \"" + id + "\".");
-      }
-      options.plugins.push(mod);
-      break;
-
-    case "--extra-options":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the --extra-options option.");
-      }
-      addExtraOptions(options, args[0]);
-      break;
-
-    case "--extra-options-file":
-      nextArg();
-      if (args.length === 0) {
-        abort("Missing parameter of the --extra-options-file option.");
-      }
-      try {
-        var json = fs.readFileSync(args[0]);
-      } catch(e) {
-        abort("Can't read from file \"" + args[0] + "\".");
-      }
-      addExtraOptions(options, json);
-      break;
-
-    case "-v":
-    case "--version":
-      printVersion();
-      exitSuccess();
-      break;
-
-    case "-h":
-    case "--help":
-      printHelp();
-      exitSuccess();
-      break;
-
-    case "--":
-      nextArg();
-      break;
-
-    default:
-      abort("Unknown option: " + args[0] + ".");
-  }
-  nextArg();
-}
-
-switch (args.length) {
-  case 0:
-    process.stdin.resume();
-    var inputStream = process.stdin;
-    var outputStream = process.stdout;
-    break;
-
-  case 1:
-  case 2:
-    var inputFile = args[0];
-    var inputStream = fs.createReadStream(inputFile);
-    inputStream.on("error", function() {
-      abort("Can't read from file \"" + inputFile + "\".");
-    });
-
-    var outputFile = args.length === 1
-      ? args[0].replace(/\.[^.]*$/, ".js")
-      : args[1];
-    var outputStream = fs.createWriteStream(outputFile);
-    outputStream.on("error", function() {
-      abort("Can't write to file \"" + outputFile + "\".");
-    });
-
-    break;
-
-  default:
-    abort("Too many arguments.");
-}
-
-readStream(inputStream, function(input) {
-  var source;
-
-  try {
-    source = PEG.buildParser(input, options);
-  } catch (e) {
-    if (e.location !== undefined) {
-      abort(e.location.start.line + ":" + e.location.start.column + ": " + e.message);
-    } else {
-      abort(e.message);
-    }
-  }
-
-  outputStream.write(
-    exportVar !== "" ? exportVar + " = " + source + ";\n" : source + "\n"
-  );
-  if (outputStream !== process.stdout) {
-    outputStream.end();
-  }
-});


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org