You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/03/04 20:32:52 UTC

[9/91] [abbrv] never ever check in node modules. baaad.

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped b/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped
deleted file mode 100644
index 8bd6648..0000000
--- a/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped
+++ /dev/null
@@ -1 +0,0 @@
-asdf

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/rm.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/rm.js b/node_modules/shelljs/test/rm.js
deleted file mode 100644
index 732950c..0000000
--- a/node_modules/shelljs/test/rm.js
+++ /dev/null
@@ -1,183 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp');
-
-//
-// Invalids
-//
-
-shell.rm();
-assert.ok(shell.error());
-
-shell.rm('asdfasdf'); // file does not exist
-assert.ok(shell.error());
-
-shell.rm('-f'); // no file
-assert.ok(shell.error());
-
-shell.rm('-@', 'resources/file1'); // invalid option
-assert.ok(shell.error());
-assert.equal(fs.existsSync('resources/file1'), true);
-
-//
-// Valids
-//
-
-// file does not exist, but -f specified
-shell.rm('-f', 'asdfasdf');
-assert.equal(shell.error(), null);
-
- // simple rm
- shell.cp('-f', 'resources/file1', 'tmp/file1');
-assert.equal(fs.existsSync('tmp/file1'), true);
-shell.rm('tmp/file1');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/file1'), false);
-
-// recursive dir removal - small-caps '-r'
-shell.mkdir('-p', 'tmp/a/b/c');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-shell.rm('-rf', 'tmp/a');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/a'), false);
-
-// recursive dir removal - capital '-R'
-shell.mkdir('-p', 'tmp/a/b/c');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-shell.rm('-Rf', 'tmp/a');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/a'), false);
-
-// recursive dir removal - absolute path
-shell.mkdir('-p', 'tmp/a/b/c');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-shell.rm('-Rf', path.resolve('./tmp/a'));
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/a'), false);
-
-// wildcard
-shell.cp('-f', 'resources/file*', 'tmp');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/file1'), true);
-assert.equal(fs.existsSync('tmp/file2'), true);
-assert.equal(fs.existsSync('tmp/file1.js'), true);
-assert.equal(fs.existsSync('tmp/file2.js'), true);
-shell.rm('tmp/file*');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync('tmp/file1'), false);
-assert.equal(fs.existsSync('tmp/file2'), false);
-assert.equal(fs.existsSync('tmp/file1.js'), false);
-assert.equal(fs.existsSync('tmp/file2.js'), false);
-
-// recursive dir removal
-shell.mkdir('-p', 'tmp/a/b/c');
-shell.mkdir('-p', 'tmp/b');
-shell.mkdir('-p', 'tmp/c');
-shell.mkdir('-p', 'tmp/.hidden');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-assert.equal(fs.existsSync('tmp/b'), true);
-assert.equal(fs.existsSync('tmp/c'), true);
-assert.equal(fs.existsSync('tmp/.hidden'), true);
-shell.rm('-rf', 'tmp/*'); 
-assert.equal(shell.error(), null);
-var contents = fs.readdirSync('tmp');
-assert.equal(contents.length, 1);
-assert.equal(contents[0], '.hidden'); // shouldn't remove hiddden if no .* given
-
-// recursive dir removal
-shell.mkdir('-p', 'tmp/a/b/c');
-shell.mkdir('-p', 'tmp/b');
-shell.mkdir('-p', 'tmp/c');
-shell.mkdir('-p', 'tmp/.hidden');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-assert.equal(fs.existsSync('tmp/b'), true);
-assert.equal(fs.existsSync('tmp/c'), true);
-assert.equal(fs.existsSync('tmp/.hidden'), true);
-shell.rm('-rf', 'tmp/*', 'tmp/.*');
-assert.equal(shell.error(), null);
-var contents = fs.readdirSync('tmp');
-assert.equal(contents.length, 0);
-
-// recursive dir removal - array-syntax
-shell.mkdir('-p', 'tmp/a/b/c');
-shell.mkdir('-p', 'tmp/b');
-shell.mkdir('-p', 'tmp/c');
-shell.mkdir('-p', 'tmp/.hidden');
-assert.equal(fs.existsSync('tmp/a/b/c'), true);
-assert.equal(fs.existsSync('tmp/b'), true);
-assert.equal(fs.existsSync('tmp/c'), true);
-assert.equal(fs.existsSync('tmp/.hidden'), true);
-shell.rm('-rf', ['tmp/*', 'tmp/.*']);
-assert.equal(shell.error(), null);
-var contents = fs.readdirSync('tmp');
-assert.equal(contents.length, 0);
-
-// removal of a read-only file (unforced)
-shell.mkdir('-p', 'tmp/readonly');
-'asdf'.to('tmp/readonly/file1');
-fs.chmodSync('tmp/readonly/file1', '0444'); // -r--r--r--
-shell.rm('tmp/readonly/file1');
-assert.equal(fs.existsSync('tmp/readonly/file1'), true); // bash's rm always asks before removing read-only files
-                                                         // here we just assume "no"
-
-// removal of a read-only file (forced)
-shell.mkdir('-p', 'tmp/readonly');
-'asdf'.to('tmp/readonly/file2');
-fs.chmodSync('tmp/readonly/file2', '0444'); // -r--r--r--
-shell.rm('-f', 'tmp/readonly/file2');
-assert.equal(fs.existsSync('tmp/readonly/file2'), false);
-
-// removal of a tree containing read-only files (unforced)
-shell.mkdir('-p', 'tmp/tree2');
-'asdf'.to('tmp/tree2/file1');
-'asdf'.to('tmp/tree2/file2');
-fs.chmodSync('tmp/tree2/file1', '0444'); // -r--r--r--
-shell.rm('-r', 'tmp/tree2');
-assert.equal(fs.existsSync('tmp/tree2/file1'), true);
-assert.equal(fs.existsSync('tmp/tree2/file2'), false);
-
-// removal of a tree containing read-only files (forced)
-shell.mkdir('-p', 'tmp/tree');
-'asdf'.to('tmp/tree/file1');
-'asdf'.to('tmp/tree/file2');
-fs.chmodSync('tmp/tree/file1', '0444'); // -r--r--r--
-shell.rm('-rf', 'tmp/tree');
-assert.equal(fs.existsSync('tmp/tree'), false);
-
-// removal of a sub-tree containing read-only and hidden files - rm('dir/*')
-shell.mkdir('-p', 'tmp/tree3');
-shell.mkdir('-p', 'tmp/tree3/subtree');
-shell.mkdir('-p', 'tmp/tree3/.hidden');
-'asdf'.to('tmp/tree3/subtree/file');
-'asdf'.to('tmp/tree3/.hidden/file');
-'asdf'.to('tmp/tree3/file');
-fs.chmodSync('tmp/tree3/file', '0444'); // -r--r--r--
-fs.chmodSync('tmp/tree3/subtree/file', '0444'); // -r--r--r--
-fs.chmodSync('tmp/tree3/.hidden/file', '0444'); // -r--r--r--
-shell.rm('-rf', 'tmp/tree3/*', 'tmp/tree3/.*'); // erase dir contents
-assert.equal(shell.ls('tmp/tree3').length, 0);
-
-// removal of a sub-tree containing read-only and hidden files - rm('dir')
-shell.mkdir('-p', 'tmp/tree4');
-shell.mkdir('-p', 'tmp/tree4/subtree');
-shell.mkdir('-p', 'tmp/tree4/.hidden');
-'asdf'.to('tmp/tree4/subtree/file');
-'asdf'.to('tmp/tree4/.hidden/file');
-'asdf'.to('tmp/tree4/file');
-fs.chmodSync('tmp/tree4/file', '0444'); // -r--r--r--
-fs.chmodSync('tmp/tree4/subtree/file', '0444'); // -r--r--r--
-fs.chmodSync('tmp/tree4/.hidden/file', '0444'); // -r--r--r--
-shell.rm('-rf', 'tmp/tree4'); // erase dir contents
-assert.equal(fs.existsSync('tmp/tree4'), false);
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/sed.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/sed.js b/node_modules/shelljs/test/sed.js
deleted file mode 100644
index d919cb4..0000000
--- a/node_modules/shelljs/test/sed.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-function numLines(str) {
-  return typeof str === 'string' ? str.match(/\n/g).length : 0;
-}
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp')
-
-//
-// Invalids
-//
-
-shell.sed();
-assert.ok(shell.error());
-
-shell.sed(/asdf/g); // too few args
-assert.ok(shell.error());
-
-shell.sed(/asdf/g, 'nada'); // too few args
-assert.ok(shell.error());
-
-assert.equal(fs.existsSync('/asdfasdf'), false); // sanity check
-shell.sed(/asdf/g, 'nada', '/asdfasdf'); // no such file
-assert.ok(shell.error());
-
-//
-// Valids
-//
-
-shell.cp('-f', 'resources/file1', 'tmp/file1')
-var result = shell.sed('test1', 'hello', 'tmp/file1'); // search string
-assert.equal(shell.error(), null);
-assert.equal(result, 'hello');
-
-var result = shell.sed(/test1/, 'hello', 'tmp/file1'); // search regex
-assert.equal(shell.error(), null);
-assert.equal(result, 'hello');
-
-var result = shell.sed(/test1/, 1234, 'tmp/file1'); // numeric replacement
-assert.equal(shell.error(), null);
-assert.equal(result, '1234');
-
-var result = shell.sed('-i', /test1/, 'hello', 'tmp/file1');
-assert.equal(shell.error(), null);
-assert.equal(result, 'hello');
-assert.equal(shell.cat('tmp/file1'), 'hello');
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/silent.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/silent.js b/node_modules/shelljs/test/silent.js
deleted file mode 100644
index 7da94ab..0000000
--- a/node_modules/shelljs/test/silent.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-function numLines(str) {
-  return typeof str === 'string' ? str.match(/\n/g).length : 0;
-}
-
-//
-// Valids
-//
-
-assert.equal(shell.silent(), false); // default
-
-shell.silent(true);
-assert.equal(shell.silent(), true);
-
-shell.silent(false);
-assert.equal(shell.silent(), false);
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/tempdir.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/tempdir.js b/node_modules/shelljs/test/tempdir.js
deleted file mode 100644
index 63448da..0000000
--- a/node_modules/shelljs/test/tempdir.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-function numLines(str) {
-  return typeof str === 'string' ? str.match(/\n/g).length : 0;
-}
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp')
-
-//
-// Valids
-//
-
-var tmp = shell.tempdir();
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync(tmp), true);
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/test.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/test.js b/node_modules/shelljs/test/test.js
deleted file mode 100644
index f074c8a..0000000
--- a/node_modules/shelljs/test/test.js
+++ /dev/null
@@ -1,83 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp')
-
-//
-// Invalids
-//
-
-var result = shell.test(); // no expression given
-assert.ok(shell.error());
-
-var result = shell.test('asdf'); // bad expression
-assert.ok(shell.error());
-
-var result = shell.test('f', 'resources/file1'); // bad expression
-assert.ok(shell.error());
-
-var result = shell.test('-f'); // no file
-assert.ok(shell.error());
-
-//
-// Valids
-//
-
-//exists
-var result = shell.test('-e', 'resources/file1');
-assert.equal(shell.error(), null);
-assert.equal(result, true);//true
-
-var result = shell.test('-e', 'resources/404');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-//directory
-var result = shell.test('-d', 'resources');
-assert.equal(shell.error(), null);
-assert.equal(result, true);//true
-
-var result = shell.test('-f', 'resources');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-var result = shell.test('-L', 'resources');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-//file
-var result = shell.test('-d', 'resources/file1');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-var result = shell.test('-f', 'resources/file1');
-assert.equal(shell.error(), null);
-assert.equal(result, true);//true
-
-var result = shell.test('-L', 'resources/file1');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-//link
-var result = shell.test('-d', 'resources/link');
-assert.equal(shell.error(), null);
-assert.equal(result, false);
-
-var result = shell.test('-f', 'resources/link');
-assert.equal(shell.error(), null);
-assert.equal(result, true);//true
-
-var result = shell.test('-L', 'resources/link');
-assert.equal(shell.error(), null);
-assert.equal(result, true);//true
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/to.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/to.js b/node_modules/shelljs/test/to.js
deleted file mode 100644
index 4ce9893..0000000
--- a/node_modules/shelljs/test/to.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-function numLines(str) {
-  return typeof str === 'string' ? str.match(/\n/g).length : 0;
-}
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp')
-
-//
-// Invalids
-//
-
-'hello world'.to();
-assert.ok(shell.error());
-
-assert.equal(fs.existsSync('/asdfasdf'), false); // sanity check
-'hello world'.to('/asdfasdf/file');
-assert.ok(shell.error());
-
-//
-// Valids
-//
-
-'hello world'.to('tmp/to1');
-var result = shell.cat('tmp/to1');
-assert.equal(shell.error(), null);
-assert.equal(result, 'hello world');
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/shelljs/test/which.js
----------------------------------------------------------------------
diff --git a/node_modules/shelljs/test/which.js b/node_modules/shelljs/test/which.js
deleted file mode 100644
index b733cb6..0000000
--- a/node_modules/shelljs/test/which.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var shell = require('..');
-
-var assert = require('assert'),
-    path = require('path'),
-    fs = require('fs');
-
-// Node shims for < v0.7
-fs.existsSync = fs.existsSync || path.existsSync;
-
-shell.silent(true);
-
-function numLines(str) {
-  return typeof str === 'string' ? str.match(/\n/g).length : 0;
-}
-
-shell.rm('-rf', 'tmp');
-shell.mkdir('tmp')
-
-//
-// Invalids
-//
-
-shell.which();
-assert.ok(shell.error());
-
-var result = shell.which('asdfasdfasdfasdfasdf'); // what are the odds...
-assert.equal(shell.error(), null);
-assert.equal(result, null);
-
-//
-// Valids
-//
-
-var result = shell.which('node');
-assert.equal(shell.error(), null);
-assert.equal(fs.existsSync(result), true);
-
-shell.exit(123);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/xcode/.npmignore b/node_modules/xcode/.npmignore
deleted file mode 100644
index 3bfb893..0000000
--- a/node_modules/xcode/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules/*
-.DS_Store
-npm-debug.log

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/xcode/LICENSE b/node_modules/xcode/LICENSE
deleted file mode 100644
index 45f03a3..0000000
--- a/node_modules/xcode/LICENSE
+++ /dev/null
@@ -1,14 +0,0 @@
-   Copyright 2012 Andrew Lunny, Adobe Systems
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/Makefile
----------------------------------------------------------------------
diff --git a/node_modules/xcode/Makefile b/node_modules/xcode/Makefile
deleted file mode 100644
index f838310..0000000
--- a/node_modules/xcode/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-tests:
-	nodeunit test/* test/parser/*
-
-parser:
-	pegjs lib/parser/pbxproj.pegjs

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/README.md
----------------------------------------------------------------------
diff --git a/node_modules/xcode/README.md b/node_modules/xcode/README.md
deleted file mode 100644
index 32582da..0000000
--- a/node_modules/xcode/README.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# node-xcode
-
-> parser/toolkit for xcodeproj project files
-
-Allows you to edit xcodeproject files and write them back out.
-
-## Example
-
-    // API is a bit wonky right now
-    var xcode = require('xcode'),
-        fs = require('fs'),
-        projectPath = 'myproject.xcodeproj/project.pbxproj',
-        myProj = xcode.project(projectPath);
-
-    // parsing is async, in a different process
-    myProj.parse(function (err) {
-        myProj.addHeaderFile('foo.h');
-        myProj.addSourceFile('foo.m');
-        myProj.addFramework('FooKit.framework');
-        
-        fs.writeFileSync(projectPath, myProj.writeSync());
-        console.log('new project written');
-    });
-
-## License
-
-MIT

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/index.js
----------------------------------------------------------------------
diff --git a/node_modules/xcode/index.js b/node_modules/xcode/index.js
deleted file mode 100644
index c593bb8..0000000
--- a/node_modules/xcode/index.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.project = require('./lib/pbxProject')

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/xcode/lib/parseJob.js
----------------------------------------------------------------------
diff --git a/node_modules/xcode/lib/parseJob.js b/node_modules/xcode/lib/parseJob.js
deleted file mode 100644
index 804be10..0000000
--- a/node_modules/xcode/lib/parseJob.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// parsing is slow and blocking right now
-// so we do it in a separate process
-var fs = require('fs'),
-    parser = require('./parser/pbxproj'),
-    path = process.argv[2],
-    fileContents, obj;
-
-try {
-    fileContents = fs.readFileSync(path, 'utf-8'),
-    obj = parser.parse(fileContents)
-    process.send(obj)
-    process.exit()
-} catch (e) {
-    process.send(e)
-    process.exit(1)
-}