cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [11/91] [abbrv] never ever check in node modules. baaad.
Date Mon, 04 Mar 2013 19:32:52 GMT
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/plist/tests/test-parseFile.js
----------------------------------------------------------------------
diff --git a/node_modules/plist/tests/test-parseFile.js b/node_modules/plist/tests/test-parseFile.js
deleted file mode 100644
index 3815f73..0000000
--- a/node_modules/plist/tests/test-parseFile.js
+++ /dev/null
@@ -1,52 +0,0 @@
-var path = require('path')
-  , plist = require('../');
-
-exports.testParseFileSmallItunesXML = function(test) {
-  var file = path.join(__dirname, 'iTunes-small.xml');
-  plist.parseFile(file, function(err, dicts) {
-    var dict = dicts[0];
-
-    test.ifError(err);
-    test.equal(dict['Application Version'], '9.0.3');
-    test.equal(dict['Library Persistent ID'], '6F81D37F95101437');
-
-    test.done();
-  });
-}
-
-exports.testParseFile = function(test) {
-  var file = path.join(__dirname, 'sample2.plist');
-
-  plist.parseFile(file, function(err, dicts) {
-    var dict = dicts[0];
-    test.ifError(err);
-
-    test.equal(dict['PopupMenu'][2]['Key'], "\n        \n        #import <Cocoa/Cocoa.h>\n\n#import <MacRuby/MacRuby.h>\n\nint main(int argc, char *argv[])\n{\n  return macruby_main(\"rb_main.rb\", argc, argv);\n}\n\n");
-  
-    test.done();
-  });
-}
-
-exports.testParseFileSync = function(test) {
-  var file = path.join(__dirname, 'sample2.plist');
-  test.doesNotThrow(function(){
-    var dict = plist.parseFileSync(file);
-    test.equal(dict['PopupMenu'][2]['Key'], "\n        \n        #import <Cocoa/Cocoa.h>\n\n#import <MacRuby/MacRuby.h>\n\nint main(int argc, char *argv[])\n{\n  return macruby_main(\"rb_main.rb\", argc, argv);\n}\n\n");
-  });
-  test.done();
-}
-
-exports.testParseFileAirplayXML = function(test) {
-  var file = path.join(__dirname, 'airplay.xml');
-
-  plist.parseFile(file, function(err, dicts) {
-    var dict;
-    test.ifError(err);
-    dict = dicts[0];
-    
-    test.equal(dict['duration'], 5555.0495000000001);
-    test.equal(dict['position'], 4.6269989039999997);
-
-    test.done();
-  });
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/plist/tests/test-parseString.js
----------------------------------------------------------------------
diff --git a/node_modules/plist/tests/test-parseString.js b/node_modules/plist/tests/test-parseString.js
deleted file mode 100644
index 9aebd03..0000000
--- a/node_modules/plist/tests/test-parseString.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var plist = require('../');
-
-exports.testString = function(test) {
-  plist.parseString('<string>Hello World!</string>', function(err, res) {
-    test.ifError(err);
-    test.equal(res, 'Hello World!');
-    test.done();
-  });
-}
-
-exports.testParseStringSync = function(test) {
-  test.doesNotThrow(function(){
-    var res = plist.parseStringSync('<plist><dict><key>test</key><integer>101</integer></dict></plist>');
-    test.equal(Object.keys(res)[0], 'test');
-    test.equal(res.test, 101);
-    test.done();
-  });
-}
-
-exports.testParseStringSyncFailsOnInvalidXML = function(test) {
-  test.throws(function(){
-    var res = plist.parseStringSync('<string>Hello World!</string>');
-  });
-  test.done();
-}
-
-exports.testDict = function(test) {
-  plist.parseString('<plist><dict><key>test</key><integer>101</integer></dict></plist>', function(err, res) {
-    test.ifError(err);
-  
-    test.ok(Array.isArray(res));
-    test.equal(res.length, 1);
-    test.equal(Object.keys(res[0])[0], 'test');
-    test.equal(res[0].test, 101);
-    test.done();
-  });
-}
-
-exports.testCDATA = function(test) {
-  plist.parseString('<string><![CDATA[Hello World!&lt;M]]></string>', function(err, res) {
-    test.ifError(err);
-    test.equal(res, 'Hello World!&lt;M');
-    test.done();
-  });
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/plist/tests/test.js
----------------------------------------------------------------------
diff --git a/node_modules/plist/tests/test.js b/node_modules/plist/tests/test.js
deleted file mode 100644
index 701e94c..0000000
--- a/node_modules/plist/tests/test.js
+++ /dev/null
@@ -1,121 +0,0 @@
-var path = require("path");
-var assert = require("assert");
-var plist = require("../");
-
-// First test...
-var file = path.join(__dirname, "iTunes-small.xml");
-var startTime1 = new Date();
-
-plist.parseFile(file, function(err, dicts) {
-  if (err) {
-    throw err;
-  }
-
-  var endTime = new Date();
-  console.log('Parsed "' + file + '" in ' + (endTime - startTime1) + 'ms');
-
-  var dict = dicts[0];
-  assert.equal(dict['Application Version'], "9.0.3");
-  assert.equal(dict['Library Persistent ID'], "6F81D37F95101437");
-
-  // Try re-stringifying and re-parsing
-  plist.parseString(plist.stringify(dicts), function(err, dicts2) {
-    assert.deepEqual(dicts,dicts2);
-  });
-  
-});
-
-
-// Second tests. Runs concurrently with the first test...
-var file2 = path.join(__dirname, "sample2.plist");
-var startTime2 = new Date();
-
-plist.parseFile(file2, function(err, dicts) {
-  if (err) {
-    throw err;
-  }
-
-  var endTime = new Date();
-  console.log('Parsed "' + file2 + '" in ' + (endTime - startTime2) + 'ms');
-
-  var dict = dicts[0];
-  assert.equal(dict['PopupMenu'][2]['Key'], "\n        \n        #import &lt;Cocoa/Cocoa.h&gt;\n\n#import &lt;MacRuby/MacRuby.h&gt;\n\nint main(int argc, char *argv[])\n{\n  return macruby_main(\"rb_main.rb\", argc, argv);\n}\n\n");
-
-  // Try re-stringifying and re-parsing
-  plist.parseString(plist.stringify(dicts), function(err, dicts2) {
-    assert.deepEqual(dicts,dicts2);
-  });
-
-});
-
-
-// Third test...
-var file3 = path.join(__dirname, "airplay.xml");
-var startTime3 = new Date();
-
-plist.parseFile(file3, function(err, dicts) {
-  if (err) {
-    throw err;
-  }
-
-  var endTime = new Date();
-  console.log('Parsed "' + file3 + '" in ' + (endTime - startTime3) + 'ms');
-
-  var dict = dicts[0];
-  assert.equal(dict['duration'], 5555.0495000000001);
-  assert.equal(dict['position'], 4.6269989039999997);
-
-  // Try re-stringifying and re-parsing
-  plist.parseString(plist.stringify(dicts), function(err, dicts2) {
-    assert.deepEqual(dicts,dicts2);
-  });
-
-});
-
-// Fourth test...
-var file4 = path.join(__dirname, "Xcode-Info.plist");
-var startTime4 = new Date();
-
-plist.parseFile(file4, function(err, dicts) {
-  if (err) {
-    throw err;
-  }
-
-  var endTime = new Date();
-  console.log('Parsed "' + file4 + '" in ' + (endTime - startTime4) + 'ms');
-
-  var dict = dicts[0];
-  assert.equal(dict['CFBundleAllowMixedLocalizations'], true);
-  assert.equal(dict['CFBundleExecutable'], "${EXECUTABLE_NAME}");
-  assert.equal(dict['UISupportedInterfaceOrientations~ipad'][0], "UIInterfaceOrientationPortrait");
-
-  // Try re-stringifying and re-parsing
-  plist.parseString(plist.stringify(dicts), function(err, dicts2) {
-    assert.deepEqual(dicts,dicts2);
-  });
-
-});
-
-
-// Fifth test...
-var file5 = path.join(__dirname, "Xcode-PhoneGap.plist");
-var startTime5 = new Date();
-
-plist.parseFile(file5, function(err, dicts) {
-  if (err) {
-    throw err;
-  }
-
-  var endTime = new Date();
-  console.log('Parsed "' + file5 + '" in ' + (endTime - startTime5) + 'ms');
-
-  var dict = dicts[0];
-  assert.equal(dict['ExternalHosts'][0], "*");
-  assert.equal(dict['Plugins']['com.phonegap.accelerometer'], "PGAccelerometer");
-  
-  // Try re-stringifying and re-parsing
-  plist.parseString(plist.stringify(dicts), function(err, dicts2) {
-    assert.deepEqual(dicts,dicts2);
-  });
-
-});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/plist/tests/utf8data.xml
----------------------------------------------------------------------
diff --git a/node_modules/plist/tests/utf8data.xml b/node_modules/plist/tests/utf8data.xml
deleted file mode 100644
index 18f65e6..0000000
--- a/node_modules/plist/tests/utf8data.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-	<dict>
-		<key>Smart Info</key>
-		<data>4pyTIMOgIGxhIG1vZGU=</data>
-		<key>Newlines</key>
-		<data>
-			4pyTIMOgIGx
-			hIG1vZGU=
-		</data>
-	</dict>
-</plist>

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/AUTHORS
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/AUTHORS b/node_modules/rimraf/AUTHORS
deleted file mode 100644
index 008cbe7..0000000
--- a/node_modules/rimraf/AUTHORS
+++ /dev/null
@@ -1,5 +0,0 @@
-# Authors sorted by whether or not they're me.
-Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)
-Wayne Larsen <wayne@larsen.st> (http://github.com/wvl)
-ritch <skawful@gmail.com>
-Marcel Laverdet

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/LICENSE b/node_modules/rimraf/LICENSE
deleted file mode 100644
index 05a4010..0000000
--- a/node_modules/rimraf/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
-All rights reserved.
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/README.md
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/README.md b/node_modules/rimraf/README.md
deleted file mode 100644
index 99983dc..0000000
--- a/node_modules/rimraf/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-A `rm -rf` for node.
-
-Install with `npm install rimraf`, or just drop rimraf.js somewhere.
-
-## API
-
-`rimraf(f, [options,] callback)`
-
-The callback will be called with an error if there is one.  Certain
-errors are handled for you:
-
-* `EBUSY` -  rimraf will back off a maximum of opts.maxBusyTries times
-  before giving up.
-* `EMFILE` - If too many file descriptors get opened, rimraf will
-  patiently wait until more become available.
-
-## Options
-
-The options object is optional.  These fields are respected:
-
-* `maxBusyTries` -  The number of times to retry a file or folder in the
-  event of an `EBUSY` error.  The default is 3.
-* `gently` - If provided a `gently` path, then rimraf will only delete
-  files and folders that are beneath this path, and only delete symbolic
-  links that point to a place within this path.  (This is very important
-  to npm's use-case, and shows rimraf's pedigree.)
-
-
-## rimraf.sync
-
-It can remove stuff synchronously, too.  But that's not so good.  Use
-the async API.  It's better.

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/fiber.js
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/fiber.js b/node_modules/rimraf/fiber.js
deleted file mode 100644
index 8812a6b..0000000
--- a/node_modules/rimraf/fiber.js
+++ /dev/null
@@ -1,86 +0,0 @@
-// fiber/future port originally written by Marcel Laverdet
-// https://gist.github.com/1131093
-// I updated it to bring to feature parity with cb version.
-// The bugs are probably mine, not Marcel's.
-// -- isaacs
-
-var path = require('path')
-  , fs = require('fs')
-  , Future = require('fibers/future')
-
-// Create future-returning fs functions
-var fs2 = {}
-for (var ii in fs) {
-  fs2[ii] = Future.wrap(fs[ii])
-}
-
-// Return a future which just pauses for a certain amount of time
-
-function timer (ms) {
-  var future = new Future
-  setTimeout(function () {
-    future.return()
-  }, ms)
-  return future
-}
-
-function realish (p) {
-  return path.resolve(path.dirname(fs2.readlink(p)))
-}
-
-// for EMFILE backoff.
-var timeout = 0
-  , EMFILE_MAX = 1000
-
-function rimraf_ (p, opts) {
-  opts = opts || {}
-  opts.maxBusyTries = opts.maxBusyTries || 3
-  if (opts.gently) opts.gently = path.resolve(opts.gently)
-  var busyTries = 0
-
-  // exits by throwing or returning.
-  // loops on handled errors.
-  while (true) {
-    try {
-      var stat = fs2.lstat(p).wait()
-
-      // check to make sure that symlinks are ours.
-      if (opts.gently) {
-        var rp = stat.isSymbolicLink() ? realish(p) : path.resolve(p)
-        if (rp.indexOf(opts.gently) !== 0) {
-          var er = new Error("Refusing to delete: "+p+" not in "+opts.gently)
-          er.errno = require("constants").EEXIST
-          er.code = "EEXIST"
-          er.path = p
-          throw er
-        }
-      }
-
-      if (!stat.isDirectory()) return fs2.unlink(p).wait()
-
-      var rimrafs = fs2.readdir(p).wait().map(function (file) {
-        return rimraf(path.join(p, file), opts)
-      })
-
-      Future.wait(rimrafs)
-      fs2.rmdir(p).wait()
-      timeout = 0
-      return
-
-    } catch (er) {
-      if (er.message.match(/^EMFILE/) && timeout < EMFILE_MAX) {
-        timer(timeout++).wait()
-      } else if (er.message.match(/^EBUSY/)
-                 && busyTries < opt.maxBusyTries) {
-        timer(++busyTries * 100).wait()
-      } else if (er.message.match(/^ENOENT/)) {
-        // already gone
-        return
-      } else {
-        throw er
-      }
-    }
-  }
-}
-
-var rimraf = module.exports = rimraf_.future()

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/package.json
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json
deleted file mode 100644
index eda14d9..0000000
--- a/node_modules/rimraf/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
-  "name": "rimraf",
-  "version": "1.0.9",
-  "main": "rimraf.js",
-  "description": "A deep deletion module for node (like `rm -rf`)",
-  "author": {
-    "name": "Isaac Z. Schlueter",
-    "email": "i@izs.me",
-    "url": "http://blog.izs.me/"
-  },
-  "license": {
-    "type": "MIT",
-    "url": "https://github.com/isaacs/rimraf/raw/master/LICENSE"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/isaacs/rimraf.git"
-  },
-  "scripts": {
-    "test": "cd test && bash run.sh"
-  },
-  "contributors": [
-    {
-      "name": "Isaac Z. Schlueter",
-      "email": "i@izs.me",
-      "url": "http://blog.izs.me"
-    },
-    {
-      "name": "Wayne Larsen",
-      "email": "wayne@larsen.st",
-      "url": "http://github.com/wvl"
-    },
-    {
-      "name": "ritch",
-      "email": "skawful@gmail.com"
-    },
-    {
-      "name": "Marcel Laverdet"
-    }
-  ],
-  "readme": "A `rm -rf` for node.\n\nInstall with `npm install rimraf`, or just drop rimraf.js somewhere.\n\n## API\n\n`rimraf(f, [options,] callback)`\n\nThe callback will be called with an error if there is one.  Certain\nerrors are handled for you:\n\n* `EBUSY` -  rimraf will back off a maximum of opts.maxBusyTries times\n  before giving up.\n* `EMFILE` - If too many file descriptors get opened, rimraf will\n  patiently wait until more become available.\n\n## Options\n\nThe options object is optional.  These fields are respected:\n\n* `maxBusyTries` -  The number of times to retry a file or folder in the\n  event of an `EBUSY` error.  The default is 3.\n* `gently` - If provided a `gently` path, then rimraf will only delete\n  files and folders that are beneath this path, and only delete symbolic\n  links that point to a place within this path.  (This is very important\n  to npm's use-case, and shows rimraf's pedigree.)\n\n\n## rimraf.sync\n\nIt can remove stuff synchronously, too
 .  But that's not so good.  Use\nthe async API.  It's better.\n",
-  "_id": "rimraf@1.0.9",
-  "_from": "rimraf@1.0.9"
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/rimraf.js
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js
deleted file mode 100644
index e8104e9..0000000
--- a/node_modules/rimraf/rimraf.js
+++ /dev/null
@@ -1,145 +0,0 @@
-module.exports = rimraf
-rimraf.sync = rimrafSync
-
-var path = require("path")
-  , fs
-
-try {
-  // optional dependency
-  fs = require("graceful-fs")
-} catch (er) {
-  fs = require("fs")
-}
-
-var lstat = process.platform === "win32" ? "stat" : "lstat"
-  , lstatSync = lstat + "Sync"
-
-// for EMFILE handling
-var timeout = 0
-  , EMFILE_MAX = 1000
-
-function rimraf (p, opts, cb) {
-  if (typeof opts === "function") cb = opts, opts = {}
-
-  if (!cb) throw new Error("No callback passed to rimraf()")
-  if (!opts) opts = {}
-
-  var busyTries = 0
-  opts.maxBusyTries = opts.maxBusyTries || 3
-
-  if (opts.gently) opts.gently = path.resolve(opts.gently)
-
-  rimraf_(p, opts, function CB (er) {
-    if (er) {
-      if (er.code === "EBUSY" && busyTries < opts.maxBusyTries) {
-        var time = (opts.maxBusyTries - busyTries) * 100
-        busyTries ++
-        // try again, with the same exact callback as this one.
-        return setTimeout(function () {
-          rimraf_(p, opts, CB)
-        })
-      }
-
-      // this one won't happen if graceful-fs is used.
-      if (er.code === "EMFILE" && timeout < EMFILE_MAX) {
-        return setTimeout(function () {
-          rimraf_(p, opts, CB)
-        }, timeout ++)
-      }
-
-      // already gone
-      if (er.code === "ENOENT") er = null
-    }
-
-    timeout = 0
-    cb(er)
-  })
-}
-
-function rimraf_ (p, opts, cb) {
-  fs[lstat](p, function (er, s) {
-    // if the stat fails, then assume it's already gone.
-    if (er) {
-      // already gone
-      if (er.code === "ENOENT") return cb()
-      // some other kind of error, permissions, etc.
-      return cb(er)
-    }
-
-    // don't delete that don't point actually live in the "gently" path
-    if (opts.gently) return clobberTest(p, s, opts, cb)
-    return rm_(p, s, opts, cb)
-  })
-}
-
-function rm_ (p, s, opts, cb) {
-  if (!s.isDirectory()) return fs.unlink(p, cb)
-  fs.readdir(p, function (er, files) {
-    if (er) return cb(er)
-    asyncForEach(files.map(function (f) {
-      return path.join(p, f)
-    }), function (file, cb) {
-      rimraf(file, opts, cb)
-    }, function (er) {
-      if (er) return cb(er)
-      fs.rmdir(p, cb)
-    })
-  })
-}
-
-function clobberTest (p, s, opts, cb) {
-  var gently = opts.gently
-  if (!s.isSymbolicLink()) next(null, path.resolve(p))
-  else realish(p, next)
-
-  function next (er, rp) {
-    if (er) return rm_(p, s, cb)
-    if (rp.indexOf(gently) !== 0) return clobberFail(p, gently, cb)
-    else return rm_(p, s, opts, cb)
-  }
-}
-
-function realish (p, cb) {
-  fs.readlink(p, function (er, r) {
-    if (er) return cb(er)
-    return cb(null, path.resolve(path.dirname(p), r))
-  })
-}
-
-function clobberFail (p, g, cb) {
-  var er = new Error("Refusing to delete: "+p+" not in "+g)
-    , constants = require("constants")
-  er.errno = constants.EEXIST
-  er.code = "EEXIST"
-  er.path = p
-  return cb(er)
-}
-
-function asyncForEach (list, fn, cb) {
-  if (!list.length) cb()
-  var c = list.length
-    , errState = null
-  list.forEach(function (item, i, list) {
-    fn(item, function (er) {
-      if (errState) return
-      if (er) return cb(errState = er)
-      if (-- c === 0) return cb()
-    })
-  })
-}
-
-// this looks simpler, but it will fail with big directory trees,
-// or on slow stupid awful cygwin filesystems
-function rimrafSync (p) {
-  try {
-    var s = fs[lstatSync](p)
-  } catch (er) {
-    if (er.code === "ENOENT") return
-    throw er
-  }
-  if (!s.isDirectory()) return fs.unlinkSync(p)
-  fs.readdirSync(p).forEach(function (f) {
-    rimrafSync(path.join(p, f))
-  })
-  fs.rmdirSync(p)
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/test/run.sh
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/test/run.sh b/node_modules/rimraf/test/run.sh
deleted file mode 100644
index 598f016..0000000
--- a/node_modules/rimraf/test/run.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-set -e
-for i in test-*.js; do
-  echo -n $i ...
-  bash setup.sh
-  node $i
-  ! [ -d target ]
-  echo "pass"
-done
-rm -rf target

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/test/setup.sh
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/test/setup.sh b/node_modules/rimraf/test/setup.sh
deleted file mode 100644
index 2602e63..0000000
--- a/node_modules/rimraf/test/setup.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-set -e
-
-files=10
-folders=2
-depth=4
-target="$PWD/target"
-
-rm -rf target
-
-fill () {
-  local depth=$1
-  local files=$2
-  local folders=$3
-  local target=$4
-
-  if ! [ -d $target ]; then
-    mkdir -p $target
-  fi
-
-  local f
-
-  f=$files
-  while [ $f -gt 0 ]; do
-    touch "$target/f-$depth-$f"
-    let f--
-  done
-
-  let depth--
-
-  if [ $depth -le 0 ]; then
-    return 0
-  fi
-
-  f=$folders
-  while [ $f -gt 0 ]; do
-    mkdir "$target/folder-$depth-$f"
-    fill $depth $files $folders "$target/d-$depth-$f"
-    let f--
-  done
-}
-
-fill $depth $files $folders $target
-
-# sanity assert
-[ -d $target ]

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/test/test-async.js
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/test/test-async.js b/node_modules/rimraf/test/test-async.js
deleted file mode 100644
index 9c2e0b7..0000000
--- a/node_modules/rimraf/test/test-async.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var rimraf = require("../rimraf")
-  , path = require("path")
-rimraf(path.join(__dirname, "target"), function (er) {
-  if (er) throw er
-})

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/test/test-fiber.js
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/test/test-fiber.js b/node_modules/rimraf/test/test-fiber.js
deleted file mode 100644
index 20d61a1..0000000
--- a/node_modules/rimraf/test/test-fiber.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var rimraf
-  , path = require("path")
-
-try {
-  rimraf = require("../fiber")
-} catch (er) {
-  console.error("skipping fiber test")
-}
-
-if (rimraf) {
-  Fiber(function () {
-    rimraf(path.join(__dirname, "target")).wait()
-  }).run()
-}
-

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/rimraf/test/test-sync.js
----------------------------------------------------------------------
diff --git a/node_modules/rimraf/test/test-sync.js b/node_modules/rimraf/test/test-sync.js
deleted file mode 100644
index eb71f10..0000000
--- a/node_modules/rimraf/test/test-sync.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var rimraf = require("../rimraf")
-  , path = require("path")
-rimraf.sync(path.join(__dirname, "target"))

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/.documentup.json
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/.documentup.json b/node_modules/shelljs/.documentup.json
deleted file mode 100644
index 2d0c727..0000000
--- a/node_modules/shelljs/.documentup.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-  "name": "ShellJS",
-  "twitter": [
-    "arturadib"
-  ]
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/.travis.yml b/node_modules/shelljs/.travis.yml
deleted file mode 100644
index 70076dc..0000000
--- a/node_modules/shelljs/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
-  - 0.4
-  - 0.6
-  - 0.7 # development version of 0.8, may be unstable
-

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/LICENSE b/node_modules/shelljs/LICENSE
deleted file mode 100644
index 1b35ee9..0000000
--- a/node_modules/shelljs/LICENSE
+++ /dev/null
@@ -1,26 +0,0 @@
-Copyright (c) 2012, Artur Adib <aadib@mozilla.com>
-All rights reserved.
-
-You may use this project under the terms of the New BSD license as follows:
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-    * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-    * Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-    * Neither the name of Artur Adib nor the
-      names of the contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/README.md
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/README.md b/node_modules/shelljs/README.md
deleted file mode 100644
index 3ce1fad..0000000
--- a/node_modules/shelljs/README.md
+++ /dev/null
@@ -1,410 +0,0 @@
-# ShellJS - Unix shell commands for Node.js [![Build Status](https://secure.travis-ci.org/arturadib/shelljs.png)](http://travis-ci.org/arturadib/shelljs)
-
-ShellJS is a portable (**Windows included**) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts!
-
-The project is [unit-tested](http://travis-ci.org/arturadib/shelljs) and is being used at Mozilla's [PDF.js](http://github.com/mozilla/pdf.js), [Butter.js](http://github.com/mozilla/butter) and [others](http://search.npmjs.org/#/shelljs).
-
-
-## Installing
-
-Via npm:
-
-```bash
-$ npm install [-g] shelljs
-```
-
-If the global option `-g` is specified, the binary `shjs` will be installed. This makes it possible to
-run ShellJS scripts much like any shell script from the command line, i.e. without requiring a `node_modules` folder:
-
-```bash
-$ shjs my_script
-```
-
-You can also just copy `shell.js` into your project's directory, and `require()` accordingly.
-
-
-## Examples
-
-### JavaScript
-
-```javascript
-require('shelljs/global');
-
-if (!which('git')) {
-  echo('Sorry, this script requires git');
-  exit(1);
-}
-
-// Copy files to release dir
-mkdir('-p', 'out/Release');
-cp('-R', 'stuff/*', 'out/Release');
-
-// Replace macros in each .js file
-cd('lib');
-ls('*.js').forEach(function(file) {
-  sed('-i', 'BUILD_VERSION', 'v0.1.2', file);
-  sed('-i', /.*REMOVE_THIS_LINE.*\n/, '', file);
-  sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat('macro.js'), file);
-});
-cd('..');
-
-// Run external tool synchronously
-if (exec('git commit -am "Auto-commit"').code !== 0) {
-  echo('Error: Git commit failed');
-  exit(1);
-}
-```
-
-### CoffeeScript
-
-```coffeescript
-require 'shelljs/global'
-
-if not which 'git'
-  echo 'Sorry, this script requires git'
-  exit 1
-
-# Copy files to release dir
-mkdir '-p', 'out/Release'
-cp '-R', 'stuff/*', 'out/Release'
-
-# Replace macros in each .js file
-cd 'lib'
-for file in ls '*.js'
-  sed '-i', 'BUILD_VERSION', 'v0.1.2', file
-  sed '-i', /.*REMOVE_THIS_LINE.*\n/, '', file
-  sed '-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat 'macro.js', file
-cd '..'
-
-# Run external tool synchronously
-if (exec 'git commit -am "Auto-commit"').code != 0
-  echo 'Error: Git commit failed'
-  exit 1
-```
-
-## Global vs. Local
-
-The example above uses the convenience script `shelljs/global` to reduce verbosity. If polluting your global namespace is not desirable, simply require `shelljs`.
-
-Example:
-
-```javascript
-var shell = require('shelljs');
-shell.echo('hello world');
-```
-
-## Make tool
-
-A convenience script `shelljs/make` is also provided to mimic the behavior of a Unix Makefile. In this case all shell objects are global, and command line arguments will cause the script to execute only the corresponding function in the global `target` object. To avoid redundant calls, target functions are executed only once per script.
-
-Example (CoffeeScript):
-
-```coffeescript
-require 'shelljs/make'
-
-target.all = ->
-  target.bundle()
-  target.docs()
-
-target.bundle = ->
-  cd __dirname
-  mkdir 'build'
-  cd 'lib'
-  (cat '*.js').to '../build/output.js'
-
-target.docs = ->
-  cd __dirname
-  mkdir 'docs'
-  cd 'lib'
-  for file in ls '*.js'
-    text = grep '//@', file     # extract special comments
-    text.replace '//@', ''      # remove comment tags
-    text.to 'docs/my_docs.md'
-```
-
-To run the target `all`, call the above script without arguments: `$ node make`. To run the target `docs`: `$ node make docs`, and so on.
-
-
-
-<!-- 
-
-  DO NOT MODIFY BEYOND THIS POINT - IT'S AUTOMATICALLY GENERATED
-
--->
-
-
-## Command reference
-
-
-All commands run synchronously, unless otherwise stated.
-
-
-### cd('dir')
-Changes to directory `dir` for the duration of the script
-
-### pwd()
-Returns the current directory.
-
-### ls([options ,] path [,path ...])
-### ls([options ,] path_array)
-Available options:
-
-+ `-R`: recursive
-+ `-a`: all files (include files beginning with `.`)
-
-Examples:
-
-```javascript
-ls('projs/*.js');
-ls('-R', '/users/me', '/tmp');
-ls('-R', ['/users/me', '/tmp']); // same as above
-```
-
-Returns array of files in the given path, or in current directory if no path provided.
-
-### find(path [,path ...])
-### find(path_array)
-Examples:
-
-```javascript
-find('src', 'lib');
-find(['src', 'lib']); // same as above
-find('.').filter(function(file) { return file.match(/\.js$/); });
-```
-
-Returns array of all files (however deep) in the given paths.
-
-The main difference from `ls('-R', path)` is that the resulting file names 
-include the base directories, e.g. `lib/resources/file1` instead of just `file1`.
-
-### cp('[options ,] source [,source ...], dest')
-### cp('[options ,] source_array, dest')
-Available options:
-
-+ `-f`: force
-+ `-r, -R`: recursive
-
-Examples:
-
-```javascript
-cp('file1', 'dir1');
-cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
-cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
-```
-
-Copies files. The wildcard `*` is accepted.
-
-### rm([options ,] file [, file ...])
-### rm([options ,] file_array)
-Available options:
-
-+ `-f`: force
-+ `-r, -R`: recursive
-
-Examples:
-
-```javascript
-rm('-rf', '/tmp/*');
-rm('some_file.txt', 'another_file.txt');
-rm(['some_file.txt', 'another_file.txt']); // same as above
-```
-
-Removes files. The wildcard `*` is accepted. 
-
-### mv(source [, source ...], dest')
-### mv(source_array, dest')
-Available options:
-
-+ `f`: force
-
-Examples:
-
-```javascript
-mv('-f', 'file', 'dir/');
-mv('file1', 'file2', 'dir/');
-mv(['file1', 'file2'], 'dir/'); // same as above
-```
-
-Moves files. The wildcard `*` is accepted.
-
-### mkdir([options ,] dir [, dir ...])
-### mkdir([options ,] dir_array)
-Available options:
-
-+ `p`: full path (will create intermediate dirs if necessary)
-
-Examples:
-
-```javascript
-mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
-mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
-```
-
-Creates directories.
-
-### test(expression)
-Available expression primaries:
-
-+ `'-d', 'path'`: true if path is a directory
-+ `'-f', 'path'`: true if path is a regular file
-
-Examples:
-
-```javascript
-if (test('-d', path)) { /* do something with dir */ };
-if (!test('-f', path)) continue; // skip if it's a regular file
-```
-
-Evaluates expression using the available primaries and returns corresponding value.
-
-### cat(file [, file ...])
-### cat(file_array)
-
-Examples:
-
-```javascript
-var str = cat('file*.txt');
-var str = cat('file1', 'file2');
-var str = cat(['file1', 'file2']); // same as above
-```
-
-Returns a string containing the given file, or a concatenated string
-containing the files if more than one file is given (a new line character is
-introduced between each file). Wildcard `*` accepted.
-
-### 'string'.to(file)
-
-Examples:
-
-```javascript
-cat('input.txt').to('output.txt');
-```
-
-Analogous to the redirection operator `>` in Unix, but works with JavaScript strings (such as
-those returned by `cat`, `grep`, etc). _Like Unix redirections, `to()` will overwrite any existing file!_
-
-### sed([options ,] search_regex, replace_str, file)
-Available options:
-
-+ `-i`: Replace contents of 'file' in-place. _Note that no backups will be created!_
-
-Examples:
-
-```javascript
-sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
-sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js');
-```
-
-Reads an input string from `file` and performs a JavaScript `replace()` on the input
-using the given search regex and replacement string. Returns the new string after replacement.
-
-### grep([options ,] regex_filter, file [, file ...])
-### grep([options ,] regex_filter, file_array)
-Available options:
-
-+ `-v`: Inverse the sense of the regex and print the lines not matching the criteria.
-
-Examples:
-
-```javascript
-grep('-v', 'GLOBAL_VARIABLE', '*.js');
-grep('GLOBAL_VARIABLE', '*.js');
-```
-
-Reads input string from given files and returns a string containing all lines of the 
-file that match the given `regex_filter`. Wildcard `*` accepted.
-
-### which(command)
-
-Examples:
-
-```javascript
-var nodeExec = which('node');
-```
-
-Searches for `command` in the system's PATH. On Windows looks for `.exe`, `.cmd`, and `.bat` extensions.
-Returns string containing the absolute path to the command.
-
-### echo(string [,string ...])
-
-Examples:
-
-```javascript
-echo('hello world');
-var str = echo('hello world');
-```
-
-Prints string to stdout, and returns string with additional utility methods
-like `.to()`.
-
-### exit(code)
-Exits the current process with the given exit code.
-
-### env['VAR_NAME']
-Object containing environment variables (both getter and setter). Shortcut to process.env.
-
-### exec(command [, options] [, callback])
-Available options (all `false` by default):
-
-+ `async`: Asynchronous execution. Needs callback.
-+ `silent`: Do not echo program output to console.
-
-Examples:
-
-```javascript
-var version = exec('node --version', {silent:true}).output;
-
-var child = exec('some_long_running_process', {async:true});
-child.stdout.on('data', function(data) { 
-  /* ... do something with data ... */ 
-});
-```
-
-Executes the given `command` _synchronously_, unless otherwise specified. 
-When in synchronous mode returns the object `{ code:..., output:... }`, containing the program's 
-`output` (stdout + stderr)  and its exit `code`. Otherwise returns the child process object, and
-the `callback` gets the arguments `(code, output)`.
-
-**Note:** For long-lived processes, it's best to run `exec()` asynchronously as
-the current synchronous implementation uses a lot of CPU. This should be getting
-fixed soon.
-
-## Non-Unix commands
-
-
-### tempdir()
-Searches and returns string containing a writeable, platform-dependent temporary directory.
-Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).
-
-### error()
-Tests if error occurred in the last command. Returns `null` if no error occurred,
-otherwise returns string explaining the error
-
-### silent([state])
-Example:
-
-```javascript
-var silentState = silent();
-silent(true);
-/* ... */
-silent(silentState); // restore old silent state
-```
-
-Suppresses all command output if `state = true`, except for `echo()` calls. 
-Returns state if no arguments given.
-
-## Deprecated
-
-
-### exists(path [, path ...])
-### exists(path_array)
-
-_This function is being deprecated. Use `test()` instead._
-
-Returns true if all the given paths exist.
-
-### verbose()
-
-_This function is being deprecated. Use `silent(false) instead.`_
-
-Enables all output (default)

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/bin/shjs
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/bin/shjs b/node_modules/shelljs/bin/shjs
deleted file mode 100755
index faa9995..0000000
--- a/node_modules/shelljs/bin/shjs
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env node
-require('../global');
-
-if (process.argv.length < 3) {
-  console.log('ShellJS: missing argument (script name)');
-  console.log();
-  process.exit(1);
-}
-
-var scriptName = process.argv[2];
-env['NODE_PATH'] = __dirname + '/../..';
-
-if (!scriptName.match(/\.js/) && !scriptName.match(/\.coffee/)) {
-  if (test('-f', scriptName + '.js'))
-    scriptName += '.js';
-  if (test('-f', scriptName + '.coffee'))
-    scriptName += '.coffee';
-}
-
-if (!test('-f', scriptName)) {
-  console.log('ShellJS: script not found ('+scriptName+')');
-  console.log();
-  process.exit(1);
-}
-
-
-if (scriptName.match(/\.coffee$/)) {
-  //
-  // CoffeeScript
-  //
-  if (which('coffee')) {
-    exec('coffee ' + scriptName, { async: true });
-  } else {
-    console.log('ShellJS: CoffeeScript interpreter not found');
-    console.log();
-    process.exit(1);
-  }
-} else {
-  //
-  // JavaScript
-  //
-  exec('node ' + scriptName, { async: true });
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/global.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/global.js b/node_modules/shelljs/global.js
deleted file mode 100644
index 83a27e6..0000000
--- a/node_modules/shelljs/global.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var shell = require('./shell.js');
-for (cmd in shell)
-  global[cmd] = shell[cmd];

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/make.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/make.js b/node_modules/shelljs/make.js
deleted file mode 100644
index c495735..0000000
--- a/node_modules/shelljs/make.js
+++ /dev/null
@@ -1,46 +0,0 @@
-require('./global');
-
-global.target = {};
-
-// This ensures we only execute the script targets after the entire script has
-// been evaluated
-var args = process.argv.slice(2);
-setTimeout(function() {
-
-  if (args.length === 1 && args[0] === '--help') {
-    console.log('Available targets:');
-    for (t in target)
-      console.log('  ' + t);
-    return;
-  }
-
-  // Wrap targets to prevent duplicate execution
-  for (t in target) {
-    (function(t, oldTarget){
-
-      // Wrap it
-      target[t] = function(force) {
-        if (oldTarget.done && !force)
-          return;
-        oldTarget.done = true;
-        return oldTarget.apply(oldTarget, arguments);
-      }
-
-    })(t, target[t]);
-  }
-
-  // Execute desired targets
-  if (args.length > 0) {
-    args.forEach(function(arg) {
-      if (arg in target) 
-        target[arg]();
-      else {
-        console.log('no such target: ' + arg);
-        exit(1);
-      }
-    });
-  } else if ('all' in target) {
-    target.all();
-  }
-
-}, 0);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/package.json
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/package.json b/node_modules/shelljs/package.json
deleted file mode 100644
index 856b0ac..0000000
--- a/node_modules/shelljs/package.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
-  "name": "shelljs",
-  "version": "0.0.7",
-  "author": {
-    "name": "Artur Adib",
-    "email": "aadib@mozilla.com"
-  },
-  "description": "Portable Unix shell commands for Node.js",
-  "keywords": [
-    "unix",
-    "shell",
-    "makefile",
-    "make",
-    "jake",
-    "synchronous"
-  ],
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/arturadib/shelljs.git"
-  },
-  "homepage": "http://github.com/arturadib/shelljs",
-  "main": "./shell.js",
-  "scripts": {
-    "test": "node scripts/run-tests"
-  },
-  "bin": {
-    "shjs": "./bin/shjs"
-  },
-  "dependencies": {},
-  "devDependencies": {},
-  "optionalDependencies": {},
-  "engines": {
-    "node": "*"
-  },
-  "readme": "# ShellJS - Unix shell commands for Node.js [![Build Status](https://secure.travis-ci.org/arturadib/shelljs.png)](http://travis-ci.org/arturadib/shelljs)\n\nShellJS is a portable (**Windows included**) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts!\n\nThe project is [unit-tested](http://travis-ci.org/arturadib/shelljs) and is being used at Mozilla's [PDF.js](http://github.com/mozilla/pdf.js), [Butter.js](http://github.com/mozilla/butter) and [others](http://search.npmjs.org/#/shelljs).\n\n\n## Installing\n\nVia npm:\n\n```bash\n$ npm install [-g] shelljs\n```\n\nIf the global option `-g` is specified, the binary `shjs` will be installed. This makes it possible to\nrun ShellJS scripts much like any shell script f
 rom the command line, i.e. without requiring a `node_modules` folder:\n\n```bash\n$ shjs my_script\n```\n\nYou can also just copy `shell.js` into your project's directory, and `require()` accordingly.\n\n\n## Examples\n\n### JavaScript\n\n```javascript\nrequire('shelljs/global');\n\nif (!which('git')) {\n  echo('Sorry, this script requires git');\n  exit(1);\n}\n\n// Copy files to release dir\nmkdir('-p', 'out/Release');\ncp('-R', 'stuff/*', 'out/Release');\n\n// Replace macros in each .js file\ncd('lib');\nls('*.js').forEach(function(file) {\n  sed('-i', 'BUILD_VERSION', 'v0.1.2', file);\n  sed('-i', /.*REMOVE_THIS_LINE.*\\n/, '', file);\n  sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\\n/, cat('macro.js'), file);\n});\ncd('..');\n\n// Run external tool synchronously\nif (exec('git commit -am \"Auto-commit\"').code !== 0) {\n  echo('Error: Git commit failed');\n  exit(1);\n}\n```\n\n### CoffeeScript\n\n```coffeescript\nrequire 'shelljs/global'\n\nif not which 'git'\n  echo 'Sorry, this sc
 ript requires git'\n  exit 1\n\n# Copy files to release dir\nmkdir '-p', 'out/Release'\ncp '-R', 'stuff/*', 'out/Release'\n\n# Replace macros in each .js file\ncd 'lib'\nfor file in ls '*.js'\n  sed '-i', 'BUILD_VERSION', 'v0.1.2', file\n  sed '-i', /.*REMOVE_THIS_LINE.*\\n/, '', file\n  sed '-i', /.*REPLACE_LINE_WITH_MACRO.*\\n/, cat 'macro.js', file\ncd '..'\n\n# Run external tool synchronously\nif (exec 'git commit -am \"Auto-commit\"').code != 0\n  echo 'Error: Git commit failed'\n  exit 1\n```\n\n## Global vs. Local\n\nThe example above uses the convenience script `shelljs/global` to reduce verbosity. If polluting your global namespace is not desirable, simply require `shelljs`.\n\nExample:\n\n```javascript\nvar shell = require('shelljs');\nshell.echo('hello world');\n```\n\n## Make tool\n\nA convenience script `shelljs/make` is also provided to mimic the behavior of a Unix Makefile. In this case all shell objects are global, and command line arguments will cause the script to 
 execute only the corresponding function in the global `target` object. To avoid redundant calls, target functions are executed only once per script.\n\nExample (CoffeeScript):\n\n```coffeescript\nrequire 'shelljs/make'\n\ntarget.all = ->\n  target.bundle()\n  target.docs()\n\ntarget.bundle = ->\n  cd __dirname\n  mkdir 'build'\n  cd 'lib'\n  (cat '*.js').to '../build/output.js'\n\ntarget.docs = ->\n  cd __dirname\n  mkdir 'docs'\n  cd 'lib'\n  for file in ls '*.js'\n    text = grep '//@', file     # extract special comments\n    text.replace '//@', ''      # remove comment tags\n    text.to 'docs/my_docs.md'\n```\n\nTo run the target `all`, call the above script without arguments: `$ node make`. To run the target `docs`: `$ node make docs`, and so on.\n\n\n\n<!-- \n\n  DO NOT MODIFY BEYOND THIS POINT - IT'S AUTOMATICALLY GENERATED\n\n-->\n\n\n## Command reference\n\n\nAll commands run synchronously, unless otherwise stated.\n\n\n### cd('dir')\nChanges to directory `dir` for the dura
 tion of the script\n\n### pwd()\nReturns the current directory.\n\n### ls([options ,] path [,path ...])\n### ls([options ,] path_array)\nAvailable options:\n\n+ `-R`: recursive\n+ `-a`: all files (include files beginning with `.`)\n\nExamples:\n\n```javascript\nls('projs/*.js');\nls('-R', '/users/me', '/tmp');\nls('-R', ['/users/me', '/tmp']); // same as above\n```\n\nReturns array of files in the given path, or in current directory if no path provided.\n\n### find(path [,path ...])\n### find(path_array)\nExamples:\n\n```javascript\nfind('src', 'lib');\nfind(['src', 'lib']); // same as above\nfind('.').filter(function(file) { return file.match(/\\.js$/); });\n```\n\nReturns array of all files (however deep) in the given paths.\n\nThe main difference from `ls('-R', path)` is that the resulting file names \ninclude the base directories, e.g. `lib/resources/file1` instead of just `file1`.\n\n### cp('[options ,] source [,source ...], dest')\n### cp('[options ,] source_array, dest')\nAva
 ilable options:\n\n+ `-f`: force\n+ `-r, -R`: recursive\n\nExamples:\n\n```javascript\ncp('file1', 'dir1');\ncp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');\ncp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above\n```\n\nCopies files. The wildcard `*` is accepted.\n\n### rm([options ,] file [, file ...])\n### rm([options ,] file_array)\nAvailable options:\n\n+ `-f`: force\n+ `-r, -R`: recursive\n\nExamples:\n\n```javascript\nrm('-rf', '/tmp/*');\nrm('some_file.txt', 'another_file.txt');\nrm(['some_file.txt', 'another_file.txt']); // same as above\n```\n\nRemoves files. The wildcard `*` is accepted. \n\n### mv(source [, source ...], dest')\n### mv(source_array, dest')\nAvailable options:\n\n+ `f`: force\n\nExamples:\n\n```javascript\nmv('-f', 'file', 'dir/');\nmv('file1', 'file2', 'dir/');\nmv(['file1', 'file2'], 'dir/'); // same as above\n```\n\nMoves files. The wildcard `*` is accepted.\n\n### mkdir([options ,] dir [, dir ...])\n### mkdir([options ,] dir_array)\nAva
 ilable options:\n\n+ `p`: full path (will create intermediate dirs if necessary)\n\nExamples:\n\n```javascript\nmkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');\nmkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above\n```\n\nCreates directories.\n\n### test(expression)\nAvailable expression primaries:\n\n+ `'-d', 'path'`: true if path is a directory\n+ `'-f', 'path'`: true if path is a regular file\n\nExamples:\n\n```javascript\nif (test('-d', path)) { /* do something with dir */ };\nif (!test('-f', path)) continue; // skip if it's a regular file\n```\n\nEvaluates expression using the available primaries and returns corresponding value.\n\n### cat(file [, file ...])\n### cat(file_array)\n\nExamples:\n\n```javascript\nvar str = cat('file*.txt');\nvar str = cat('file1', 'file2');\nvar str = cat(['file1', 'file2']); // same as above\n```\n\nReturns a string containing the given file, or a concatenated string\ncontaining the files if more than one file is given (a new line character is
 \nintroduced between each file). Wildcard `*` accepted.\n\n### 'string'.to(file)\n\nExamples:\n\n```javascript\ncat('input.txt').to('output.txt');\n```\n\nAnalogous to the redirection operator `>` in Unix, but works with JavaScript strings (such as\nthose returned by `cat`, `grep`, etc). _Like Unix redirections, `to()` will overwrite any existing file!_\n\n### sed([options ,] search_regex, replace_str, file)\nAvailable options:\n\n+ `-i`: Replace contents of 'file' in-place. _Note that no backups will be created!_\n\nExamples:\n\n```javascript\nsed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');\nsed(/.*DELETE_THIS_LINE.*\\n/, '', 'source.js');\n```\n\nReads an input string from `file` and performs a JavaScript `replace()` on the input\nusing the given search regex and replacement string. Returns the new string after replacement.\n\n### grep([options ,] regex_filter, file [, file ...])\n### grep([options ,] regex_filter, file_array)\nAvailable options:\n\n+ `-v`: Inverse the sense 
 of the regex and print the lines not matching the criteria.\n\nExamples:\n\n```javascript\ngrep('-v', 'GLOBAL_VARIABLE', '*.js');\ngrep('GLOBAL_VARIABLE', '*.js');\n```\n\nReads input string from given files and returns a string containing all lines of the \nfile that match the given `regex_filter`. Wildcard `*` accepted.\n\n### which(command)\n\nExamples:\n\n```javascript\nvar nodeExec = which('node');\n```\n\nSearches for `command` in the system's PATH. On Windows looks for `.exe`, `.cmd`, and `.bat` extensions.\nReturns string containing the absolute path to the command.\n\n### echo(string [,string ...])\n\nExamples:\n\n```javascript\necho('hello world');\nvar str = echo('hello world');\n```\n\nPrints string to stdout, and returns string with additional utility methods\nlike `.to()`.\n\n### exit(code)\nExits the current process with the given exit code.\n\n### env['VAR_NAME']\nObject containing environment variables (both getter and setter). Shortcut to process.env.\n\n### exec(c
 ommand [, options] [, callback])\nAvailable options (all `false` by default):\n\n+ `async`: Asynchronous execution. Needs callback.\n+ `silent`: Do not echo program output to console.\n\nExamples:\n\n```javascript\nvar version = exec('node --version', {silent:true}).output;\n\nvar child = exec('some_long_running_process', {async:true});\nchild.stdout.on('data', function(data) { \n  /* ... do something with data ... */ \n});\n```\n\nExecutes the given `command` _synchronously_, unless otherwise specified. \nWhen in synchronous mode returns the object `{ code:..., output:... }`, containing the program's \n`output` (stdout + stderr)  and its exit `code`. Otherwise returns the child process object, and\nthe `callback` gets the arguments `(code, output)`.\n\n**Note:** For long-lived processes, it's best to run `exec()` asynchronously as\nthe current synchronous implementation uses a lot of CPU. This should be getting\nfixed soon.\n\n## Non-Unix commands\n\n\n### tempdir()\nSearches and r
 eturns string containing a writeable, platform-dependent temporary directory.\nFollows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).\n\n### error()\nTests if error occurred in the last command. Returns `null` if no error occurred,\notherwise returns string explaining the error\n\n### silent([state])\nExample:\n\n```javascript\nvar silentState = silent();\nsilent(true);\n/* ... */\nsilent(silentState); // restore old silent state\n```\n\nSuppresses all command output if `state = true`, except for `echo()` calls. \nReturns state if no arguments given.\n\n## Deprecated\n\n\n### exists(path [, path ...])\n### exists(path_array)\n\n_This function is being deprecated. Use `test()` instead._\n\nReturns true if all the given paths exist.\n\n### verbose()\n\n_This function is being deprecated. Use `silent(false) instead.`_\n\nEnables all output (default)\n",
-  "_id": "shelljs@0.0.7",
-  "_from": "shelljs@0.0.x"
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/scripts/docs.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/scripts/docs.js b/node_modules/shelljs/scripts/docs.js
deleted file mode 100755
index 68a2138..0000000
--- a/node_modules/shelljs/scripts/docs.js
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env node
-require('../global');
-
-echo('Appending docs to README.md');
-
-cd(__dirname + '/..');
-
-// Extract docs from shell.js
-var docs = grep('//@', 'shell.js');
-// Remove '//@'
-docs = docs.replace(/\/\/\@ ?/g, '');
-// Append docs to README
-sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');
-
-echo('All done.');

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/scripts/run-tests.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/scripts/run-tests.js b/node_modules/shelljs/scripts/run-tests.js
deleted file mode 100755
index 506aae6..0000000
--- a/node_modules/shelljs/scripts/run-tests.js
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env node
-require('../global');
-
-var failed = false;
-
-cd(__dirname + '/../test');
-ls('*.js').forEach(function(file) {
-  echo('Running test:', file);
-  if (exec('node '+file).code !== 123) // 123 avoids false positives (e.g. premature exit)
-    failed = true;
-});
-
-if (failed) {
-  echo();
-  echo('WARNING: Some tests did not pass!');
-  exit(1);
-} else {
-  echo();
-  echo('All tests passed.');
-}


Mime
View raw message