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:22:33 UTC
[14/61] [abbrv] [partial] cordova-create git commit: gitignore node
modules
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/interpret/index.js
----------------------------------------------------------------------
diff --git a/node_modules/interpret/index.js b/node_modules/interpret/index.js
deleted file mode 100644
index db4cb94..0000000
--- a/node_modules/interpret/index.js
+++ /dev/null
@@ -1,132 +0,0 @@
-const extensions = {
- '.babel.js': [
- {
- module: 'babel-register',
- register: function (module) {
- module({
- // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
- // which only captures the final extension (.babel.js -> .js)
- extensions: '.js'
- });
- }
- },
- {
- module: 'babel-core/register',
- register: function (module) {
- module({
- extensions: '.js'
- });
- }
- },
- {
- module: 'babel/register',
- register: function (module) {
- module({
- extensions: '.js'
- });
- }
- }
- ],
- '.buble.js': [
- {
- module: 'buble/register',
- register: function (module) {
- module({
- extensions: '.js'
- });
- }
- }
- ],
- '.cirru': 'cirru-script/lib/register',
- '.cjsx': 'node-cjsx/register',
- '.co': 'coco',
- '.coffee': ['coffee-script/register', 'coffee-script'],
- '.coffee.md': ['coffee-script/register', 'coffee-script'],
- '.csv': 'require-csv',
- '.eg': 'earlgrey/register',
- '.iced': ['iced-coffee-script/register', 'iced-coffee-script'],
- '.iced.md': 'iced-coffee-script/register',
- '.ini': 'require-ini',
- '.js': null,
- '.json': null,
- '.json5': 'json5/lib/require',
- '.jsx': [
- {
- module: 'babel-register',
- register: function (module) {
- module({
- extensions: '.jsx'
- });
- }
- },
- {
- module: 'babel-core/register',
- register: function (module) {
- module({
- extensions: '.jsx'
- });
- }
- },
- {
- module: 'babel/register',
- register: function (module) {
- module({
- extensions: '.jsx'
- });
- },
- },
- {
- module: 'node-jsx',
- register: function (module) {
- module.install({
- extension: '.jsx',
- harmony: true
- });
- }
- }
- ],
- '.litcoffee': ['coffee-script/register', 'coffee-script'],
- '.liticed': 'iced-coffee-script/register',
- '.ls': ['livescript', 'LiveScript'],
- '.node': null,
- '.toml': {
- module: 'toml-require',
- register: function (module) {
- module.install();
- }
- },
- '.ts': ['ts-node/register', 'typescript-node/register', 'typescript-register', 'typescript-require'],
- '.tsx': ['ts-node/register', 'typescript-node/register'],
- '.wisp': 'wisp/engine/node',
- '.xml': 'require-xml',
- '.yaml': 'require-yaml',
- '.yml': 'require-yaml'
-};
-
-const jsVariantExtensions = [
- '.js',
- '.babel.js',
- '.buble.js',
- '.cirru',
- '.cjsx',
- '.co',
- '.coffee',
- '.coffee.md',
- '.eg',
- '.iced',
- '.iced.md',
- '.jsx',
- '.litcoffee',
- '.liticed',
- '.ls',
- '.ts',
- '.wisp'
-];
-
-module.exports = {
- extensions: extensions,
- jsVariants: jsVariantExtensions.reduce(function (result, ext) {
- result[ext] = extensions[ext];
- return result;
- }, {})
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/interpret/package.json
----------------------------------------------------------------------
diff --git a/node_modules/interpret/package.json b/node_modules/interpret/package.json
deleted file mode 100644
index 9aa750d..0000000
--- a/node_modules/interpret/package.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "interpret",
- "raw": "interpret@^1.0.0",
- "rawSpec": "^1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/cordova-fetch/node_modules/shelljs"
- ]
- ],
- "_from": "interpret@>=1.0.0 <2.0.0",
- "_id": "interpret@1.0.1",
- "_inCache": true,
- "_installable": true,
- "_location": "/interpret",
- "_nodeVersion": "5.7.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/interpret-1.0.1.tgz_1462139669981_0.06998275523073971"
- },
- "_npmUser": {
- "email": "tyler@sleekcode.net",
- "name": "tkellen"
- },
- "_npmVersion": "3.6.0",
- "_phantomChildren": {},
- "_requested": {
- "name": "interpret",
- "raw": "interpret@^1.0.0",
- "rawSpec": "^1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/cordova-fetch/shelljs"
- ],
- "_resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.1.tgz",
- "_shasum": "d579fb7f693b858004947af39fa0db49f795602c",
- "_shrinkwrap": null,
- "_spec": "interpret@^1.0.0",
- "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/cordova-fetch/node_modules/shelljs",
- "author": {
- "name": "Tyler Kellen",
- "url": "http://goingslowly.com/"
- },
- "bugs": {
- "url": "https://github.com/tkellen/node-interpret/issues"
- },
- "dependencies": {},
- "description": "A dictionary of file extensions and associated module loaders.",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "d579fb7f693b858004947af39fa0db49f795602c",
- "tarball": "https://registry.npmjs.org/interpret/-/interpret-1.0.1.tgz"
- },
- "gitHead": "80e9d49ece362c75e697bc7487186761efd77a6f",
- "homepage": "https://github.com/tkellen/node-interpret",
- "keywords": [
- "cirru-script",
- "cjsx",
- "co",
- "coco",
- "coffee-script",
- "coffee",
- "coffee.md",
- "csv",
- "earlgrey",
- "es",
- "es6",
- "iced",
- "iced.md",
- "iced-coffee-script",
- "ini",
- "js",
- "json",
- "json5",
- "jsx",
- "react",
- "litcoffee",
- "liticed",
- "ls",
- "livescript",
- "toml",
- "ts",
- "typescript",
- "wisp",
- "xml",
- "yaml",
- "yml"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "email": "tyler@sleekcode.net",
- "name": "tkellen"
- },
- {
- "email": "blaine@iceddev.com",
- "name": "phated"
- }
- ],
- "name": "interpret",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/tkellen/node-interpret.git"
- },
- "scripts": {},
- "version": "1.0.1"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/is-url/.npmignore b/node_modules/is-url/.npmignore
deleted file mode 100644
index d135df6..0000000
--- a/node_modules/is-url/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules
-components
-build
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/History.md
----------------------------------------------------------------------
diff --git a/node_modules/is-url/History.md b/node_modules/is-url/History.md
deleted file mode 100644
index 8b24e02..0000000
--- a/node_modules/is-url/History.md
+++ /dev/null
@@ -1,25 +0,0 @@
-
-1.2.0 - November 25, 2014
--------------------------
-* add support for protocol relative urls
-
-1.1.0 - February 8, 2013
-------------------------
-* support any protocol
-* support paths on localhost
-
-1.0.0 - January 17, 2013
-------------------------
-* allow localhost to have a port
-
-0.1.0 - September 8, 2013
--------------------------
-* make regexp match more valid url types
-
-0.0.2 - August 2, 2013
-----------------------
-* remove loose matching
-
-0.0.1 - August 2, 2013
-----------------------
-:sparkles:
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/Makefile
----------------------------------------------------------------------
diff --git a/node_modules/is-url/Makefile b/node_modules/is-url/Makefile
deleted file mode 100644
index 8822506..0000000
--- a/node_modules/is-url/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-
-build: components index.js
- @component build --dev
-
-clean:
- @rm -fr build components node_modules
-
-components: component.json
- @component install --dev
-
-node_modules: package.json
- @npm install
-
-test: node_modules build
- @./node_modules/.bin/mocha --reporter spec
- @component test phantom
-
-.PHONY: clean test
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/Readme.md
----------------------------------------------------------------------
diff --git a/node_modules/is-url/Readme.md b/node_modules/is-url/Readme.md
deleted file mode 100644
index f29dc2a..0000000
--- a/node_modules/is-url/Readme.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# is-url
-
- Check whether a string is a URL.
-
-## Installation
-
-```
-$ component install segmentio/is-url
-```
-```
-$ npm install is-url
-```
-
-## API
-
-### isUrl(string)
-
- Checks whether `string` is a URL.
-
-## License
-
- MIT
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/component.json
----------------------------------------------------------------------
diff --git a/node_modules/is-url/component.json b/node_modules/is-url/component.json
deleted file mode 100644
index e7ecf76..0000000
--- a/node_modules/is-url/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "is-url",
- "repo": "segmentio/is-url",
- "version": "1.2.0",
- "license": "MIT",
- "description": "Check whether a string is a URL.",
- "keywords": [
- "url",
- "regexp",
- "regex",
- "validate"
- ],
- "scripts": [
- "index.js"
- ],
- "development": {
- "component/assert": "*"
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/index.js
----------------------------------------------------------------------
diff --git a/node_modules/is-url/index.js b/node_modules/is-url/index.js
deleted file mode 100644
index 1ef5187..0000000
--- a/node_modules/is-url/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-/**
- * Expose `isUrl`.
- */
-
-module.exports = isUrl;
-
-/**
- * Matcher.
- */
-
-var matcher = /^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/;
-
-/**
- * Loosely validate a URL `string`.
- *
- * @param {String} string
- * @return {Boolean}
- */
-
-function isUrl(string){
- return matcher.test(string);
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/package.json
----------------------------------------------------------------------
diff --git a/node_modules/is-url/package.json b/node_modules/is-url/package.json
deleted file mode 100644
index ef6aa42..0000000
--- a/node_modules/is-url/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "is-url",
- "raw": "is-url@^1.2.1",
- "rawSpec": "^1.2.1",
- "scope": null,
- "spec": ">=1.2.1 <2.0.0",
- "type": "range"
- },
- "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/cordova-fetch"
- ]
- ],
- "_from": "is-url@>=1.2.1 <2.0.0",
- "_id": "is-url@1.2.1",
- "_inCache": true,
- "_installable": true,
- "_location": "/is-url",
- "_npmUser": {
- "email": "zeke@sikelianos.com",
- "name": "zeke"
- },
- "_npmVersion": "1.4.28",
- "_phantomChildren": {},
- "_requested": {
- "name": "is-url",
- "raw": "is-url@^1.2.1",
- "rawSpec": "^1.2.1",
- "scope": null,
- "spec": ">=1.2.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/cordova-fetch"
- ],
- "_resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.1.tgz",
- "_shasum": "bc92ffd29b23d5f2180e253b916bce6fda711873",
- "_shrinkwrap": null,
- "_spec": "is-url@^1.2.1",
- "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/cordova-fetch",
- "bugs": {
- "url": "https://github.com/segmentio/is-url/issues"
- },
- "dependencies": {},
- "description": "Check whether a string is a URL.",
- "devDependencies": {
- "mocha": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "bc92ffd29b23d5f2180e253b916bce6fda711873",
- "tarball": "https://registry.npmjs.org/is-url/-/is-url-1.2.1.tgz"
- },
- "gitHead": "1e2d17ee7d15e0c1bb8deaa4439b5b807d7b6688",
- "homepage": "https://github.com/segmentio/is-url",
- "license": "MIT",
- "maintainers": [
- {
- "email": "friends@segment.io",
- "name": "segmentio"
- },
- {
- "email": "zeke@sikelianos.com",
- "name": "zeke"
- }
- ],
- "name": "is-url",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/segmentio/is-url.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "1.2.1"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/is-url/test/index.js
----------------------------------------------------------------------
diff --git a/node_modules/is-url/test/index.js b/node_modules/is-url/test/index.js
deleted file mode 100644
index 5f7aebc..0000000
--- a/node_modules/is-url/test/index.js
+++ /dev/null
@@ -1,122 +0,0 @@
-
-try {
- var url = require('is-url');
-} catch (e) {
- var url = require('..');
-}
-
-var assert = require('assert');
-
-describe('is-url', function () {
- describe('valid', function () {
- it('http://google.com', function () {
- assert(url('http://google.com'));
- });
-
- it('https://google.com', function () {
- assert(url('https://google.com'));
- });
-
- it('ftp://google.com', function () {
- assert(url('ftp://google.com'));
- });
-
- it('http://www.google.com', function () {
- assert(url('http://www.google.com'));
- });
-
- it('http://google.com/something', function () {
- assert(url('http://google.com/something'));
- });
-
- it('http://google.com?q=query', function () {
- assert(url('http://google.com?q=query'));
- });
-
- it('http://google.com#hash', function () {
- assert(url('http://google.com#hash'));
- });
-
- it('http://google.com/something?q=query#hash', function () {
- assert(url('http://google.com/something?q=query#hash'));
- });
-
- it('http://google.co.uk', function () {
- assert(url('http://google.co.uk'));
- });
-
- it('http://www.google.co.uk', function () {
- assert(url('http://www.google.co.uk'));
- });
-
- it('http://google.cat', function () {
- assert(url('http://google.cat'));
- });
-
- it('https://d1f4470da51b49289906b3d6cbd65074@app.getsentry.com/13176', function () {
- assert(url('https://d1f4470da51b49289906b3d6cbd65074@app.getsentry.com/13176'));
- });
-
- it('http://0.0.0.0', function () {
- assert(url('http://0.0.0.0'));
- });
-
- it('http://localhost', function () {
- assert(url('http://localhost'));
- });
-
- it('postgres://u:p@example.com:5702/db', function () {
- assert(url('postgres://u:p@example.com:5702/db'));
- });
-
- it('redis://:123@174.129.42.52:13271', function () {
- assert(url('redis://:123@174.129.42.52:13271'));
- });
-
- it('mongodb://u:p@example.com:10064/db', function () {
- assert(url('mongodb://u:p@example.com:10064/db'));
- });
-
- it('ws://chat.example.com/games', function () {
- assert(url('ws://chat.example.com/games'));
- });
-
- it('wss://secure.example.com/biz', function () {
- assert(url('wss://secure.example.com/biz'));
- });
-
- it('http://localhost:4000', function () {
- assert(url('http://localhost:4000'));
- });
-
- it('http://localhost:342/a/path', function () {
- assert(url('http://localhost:342/a/path'));
- });
-
- it('//google.com', function () {
- assert(url('//google.com'));
- });
- });
-
- describe('invalid', function () {
- it('http://', function () {
- assert(!url('http://'));
- });
-
- it('http://google', function () {
- assert(!url('http://google'));
- });
-
- it('http://google.', function () {
- assert(!url('http://google.'));
- });
-
- it('google', function () {
- assert(!url('google'));
- });
-
- it('google.com', function () {
- assert(!url('google.com'));
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/isarray/README.md
----------------------------------------------------------------------
diff --git a/node_modules/isarray/README.md b/node_modules/isarray/README.md
deleted file mode 100644
index 052a62b..0000000
--- a/node_modules/isarray/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-
-# isarray
-
-`Array#isArray` for older browsers.
-
-## Usage
-
-```js
-var isArray = require('isarray');
-
-console.log(isArray([])); // => true
-console.log(isArray({})); // => false
-```
-
-## Installation
-
-With [npm](http://npmjs.org) do
-
-```bash
-$ npm install isarray
-```
-
-Then bundle for the browser with
-[browserify](https://github.com/substack/browserify).
-
-With [component](http://component.io) do
-
-```bash
-$ component install juliangruber/isarray
-```
-
-## License
-
-(MIT)
-
-Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
-
-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-create/blob/9fb2883e/node_modules/isarray/build/build.js
----------------------------------------------------------------------
diff --git a/node_modules/isarray/build/build.js b/node_modules/isarray/build/build.js
deleted file mode 100644
index ec58596..0000000
--- a/node_modules/isarray/build/build.js
+++ /dev/null
@@ -1,209 +0,0 @@
-
-/**
- * Require the given path.
- *
- * @param {String} path
- * @return {Object} exports
- * @api public
- */
-
-function require(path, parent, orig) {
- var resolved = require.resolve(path);
-
- // lookup failed
- if (null == resolved) {
- orig = orig || path;
- parent = parent || 'root';
- var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
- err.path = orig;
- err.parent = parent;
- err.require = true;
- throw err;
- }
-
- var module = require.modules[resolved];
-
- // perform real require()
- // by invoking the module's
- // registered function
- if (!module.exports) {
- module.exports = {};
- module.client = module.component = true;
- module.call(this, module.exports, require.relative(resolved), module);
- }
-
- return module.exports;
-}
-
-/**
- * Registered modules.
- */
-
-require.modules = {};
-
-/**
- * Registered aliases.
- */
-
-require.aliases = {};
-
-/**
- * Resolve `path`.
- *
- * Lookup:
- *
- * - PATH/index.js
- * - PATH.js
- * - PATH
- *
- * @param {String} path
- * @return {String} path or null
- * @api private
- */
-
-require.resolve = function(path) {
- if (path.charAt(0) === '/') path = path.slice(1);
- var index = path + '/index.js';
-
- var paths = [
- path,
- path + '.js',
- path + '.json',
- path + '/index.js',
- path + '/index.json'
- ];
-
- for (var i = 0; i < paths.length; i++) {
- var path = paths[i];
- if (require.modules.hasOwnProperty(path)) return path;
- }
-
- if (require.aliases.hasOwnProperty(index)) {
- return require.aliases[index];
- }
-};
-
-/**
- * Normalize `path` relative to the current path.
- *
- * @param {String} curr
- * @param {String} path
- * @return {String}
- * @api private
- */
-
-require.normalize = function(curr, path) {
- var segs = [];
-
- if ('.' != path.charAt(0)) return path;
-
- curr = curr.split('/');
- path = path.split('/');
-
- for (var i = 0; i < path.length; ++i) {
- if ('..' == path[i]) {
- curr.pop();
- } else if ('.' != path[i] && '' != path[i]) {
- segs.push(path[i]);
- }
- }
-
- return curr.concat(segs).join('/');
-};
-
-/**
- * Register module at `path` with callback `definition`.
- *
- * @param {String} path
- * @param {Function} definition
- * @api private
- */
-
-require.register = function(path, definition) {
- require.modules[path] = definition;
-};
-
-/**
- * Alias a module definition.
- *
- * @param {String} from
- * @param {String} to
- * @api private
- */
-
-require.alias = function(from, to) {
- if (!require.modules.hasOwnProperty(from)) {
- throw new Error('Failed to alias "' + from + '", it does not exist');
- }
- require.aliases[to] = from;
-};
-
-/**
- * Return a require function relative to the `parent` path.
- *
- * @param {String} parent
- * @return {Function}
- * @api private
- */
-
-require.relative = function(parent) {
- var p = require.normalize(parent, '..');
-
- /**
- * lastIndexOf helper.
- */
-
- function lastIndexOf(arr, obj) {
- var i = arr.length;
- while (i--) {
- if (arr[i] === obj) return i;
- }
- return -1;
- }
-
- /**
- * The relative require() itself.
- */
-
- function localRequire(path) {
- var resolved = localRequire.resolve(path);
- return require(resolved, parent, path);
- }
-
- /**
- * Resolve relative to the parent.
- */
-
- localRequire.resolve = function(path) {
- var c = path.charAt(0);
- if ('/' == c) return path.slice(1);
- if ('.' == c) return require.normalize(p, path);
-
- // resolve deps by returning
- // the dep in the nearest "deps"
- // directory
- var segs = parent.split('/');
- var i = lastIndexOf(segs, 'deps') + 1;
- if (!i) i = 0;
- path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
- return path;
- };
-
- /**
- * Check if module is defined at `path`.
- */
-
- localRequire.exists = function(path) {
- return require.modules.hasOwnProperty(localRequire.resolve(path));
- };
-
- return localRequire;
-};
-require.register("isarray/index.js", function(exports, require, module){
-module.exports = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
-};
-
-});
-require.alias("isarray/index.js", "isarray/index.js");
-
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/isarray/component.json
----------------------------------------------------------------------
diff --git a/node_modules/isarray/component.json b/node_modules/isarray/component.json
deleted file mode 100644
index 9e31b68..0000000
--- a/node_modules/isarray/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name" : "isarray",
- "description" : "Array#isArray for older browsers",
- "version" : "0.0.1",
- "repository" : "juliangruber/isarray",
- "homepage": "https://github.com/juliangruber/isarray",
- "main" : "index.js",
- "scripts" : [
- "index.js"
- ],
- "dependencies" : {},
- "keywords": ["browser","isarray","array"],
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "license": "MIT"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/isarray/index.js
----------------------------------------------------------------------
diff --git a/node_modules/isarray/index.js b/node_modules/isarray/index.js
deleted file mode 100644
index 5f5ad45..0000000
--- a/node_modules/isarray/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/isarray/package.json
----------------------------------------------------------------------
diff --git a/node_modules/isarray/package.json b/node_modules/isarray/package.json
deleted file mode 100644
index 4b89c21..0000000
--- a/node_modules/isarray/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "isarray",
- "raw": "isarray@0.0.1",
- "rawSpec": "0.0.1",
- "scope": null,
- "spec": "0.0.1",
- "type": "version"
- },
- "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/readable-stream"
- ]
- ],
- "_from": "isarray@0.0.1",
- "_id": "isarray@0.0.1",
- "_inCache": true,
- "_installable": true,
- "_location": "/isarray",
- "_npmUser": {
- "email": "julian@juliangruber.com",
- "name": "juliangruber"
- },
- "_npmVersion": "1.2.18",
- "_phantomChildren": {},
- "_requested": {
- "name": "isarray",
- "raw": "isarray@0.0.1",
- "rawSpec": "0.0.1",
- "scope": null,
- "spec": "0.0.1",
- "type": "version"
- },
- "_requiredBy": [
- "/readable-stream"
- ],
- "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
- "_shrinkwrap": null,
- "_spec": "isarray@0.0.1",
- "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/readable-stream",
- "author": {
- "email": "mail@juliangruber.com",
- "name": "Julian Gruber",
- "url": "http://juliangruber.com"
- },
- "bugs": {
- "url": "https://github.com/juliangruber/isarray/issues"
- },
- "dependencies": {},
- "description": "Array#isArray for older browsers",
- "devDependencies": {
- "tap": "*"
- },
- "directories": {},
- "dist": {
- "shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
- "tarball": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
- },
- "homepage": "https://github.com/juliangruber/isarray",
- "keywords": [
- "browser",
- "isarray",
- "array"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "email": "julian@juliangruber.com",
- "name": "juliangruber"
- }
- ],
- "name": "isarray",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/juliangruber/isarray.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "0.0.1"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/.npmignore b/node_modules/jasmine-growl-reporter/.npmignore
deleted file mode 100644
index 74e6e72..0000000
--- a/node_modules/jasmine-growl-reporter/.npmignore
+++ /dev/null
@@ -1,5 +0,0 @@
-*.swp
-*.log
-build
-node_modules
-tmp
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/.travis.yml b/node_modules/jasmine-growl-reporter/.travis.yml
deleted file mode 100644
index 8963590..0000000
--- a/node_modules/jasmine-growl-reporter/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
- - 0.10
-before_script:
- - npm install -g grunt-cli
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/Gruntfile.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/Gruntfile.js b/node_modules/jasmine-growl-reporter/Gruntfile.js
deleted file mode 100644
index acf5832..0000000
--- a/node_modules/jasmine-growl-reporter/Gruntfile.js
+++ /dev/null
@@ -1,33 +0,0 @@
-
-module.exports = function(grunt) {
-
- grunt.initConfig({
-
- pkg: grunt.file.readJSON('package.json'),
-
- jshint: {
- all: [ 'lib/**/*.js' ]
- },
-
- jasmine_node: {
- projectRoot: '.',
- requirejs: false,
- forceExit: true
- },
-
- watch: {
-
- src: {
- files: [ 'lib/**/*.js', 'spec/**/*.js' ],
- tasks: [ 'jshint', 'jasmine_node' ]
- }
- }
- });
-
- grunt.loadNpmTasks('grunt-bump');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-jasmine-node');
- grunt.loadNpmTasks('grunt-contrib-watch');
-
- grunt.registerTask('default', [ 'jshint', 'jasmine_node' ]);
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/LICENSE.txt
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/LICENSE.txt b/node_modules/jasmine-growl-reporter/LICENSE.txt
deleted file mode 100644
index 8074075..0000000
--- a/node_modules/jasmine-growl-reporter/LICENSE.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2013 Simon Oulevay (Alpha Hydrae)
-
-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-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/README.md
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/README.md b/node_modules/jasmine-growl-reporter/README.md
deleted file mode 100644
index f5fb34b..0000000
--- a/node_modules/jasmine-growl-reporter/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Jasmine Growl Reporter
-
-Growl notifications when running your Jasmine specs.
-
-## Meta
-
-* **Author:** Simon Oulevay (Alpha Hydrae)
-* **License:** MIT (see [LICENSE.txt](https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/LICENSE.txt))
-* **Icons:** http://www.visualpharm.com/must_have_icon_set/
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/index.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/index.js b/node_modules/jasmine-growl-reporter/index.js
deleted file mode 100644
index 157db24..0000000
--- a/node_modules/jasmine-growl-reporter/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/reporter').inject();
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/lib/reporter.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/lib/reporter.js b/node_modules/jasmine-growl-reporter/lib/reporter.js
deleted file mode 100644
index fc894b4..0000000
--- a/node_modules/jasmine-growl-reporter/lib/reporter.js
+++ /dev/null
@@ -1,77 +0,0 @@
-
-exports.inject = function(deps) {
-
- deps = deps || {};
- var growl = deps.growl || require('growl'),
- path = require('path');
-
- var GrowlReporter = function() {
- };
-
- GrowlReporter.prototype = {
-
- reportRunnerStarting: function() {
- this.startedAt = new Date();
- this.passedSpecs = 0;
- this.totalSpecs = 0;
- },
-
- reportSpecStarting: function() {
- this.totalSpecs++;
- },
-
- reportSpecResults: function(spec) {
- if (spec.results().passed()) {
- this.passedSpecs++;
- }
- },
-
- reportRunnerResults: function() {
-
- growl(growlMessage(this.passedSpecs, this.totalSpecs), {
- name: growlName,
- title: growlTitle(this.passedSpecs, this.totalSpecs, this.startedAt),
- image: growlImage(this.passedSpecs, this.totalSpecs)
- });
- }
- };
-
- var growlName = 'Jasmine',
- resDir = path.resolve(__dirname, '../res');
-
- var growlTitle = function(passedSpecs, totalSpecs, startedAt) {
-
- var title = passed(passedSpecs, totalSpecs) ? 'PASSED' : 'FAILED';
- title += ' in ' + ((new Date().getTime() - startedAt.getTime()) / 1000) + 's';
-
- return title;
- };
-
- var growlMessage = function(passedSpecs, totalSpecs) {
-
- var description = passedSpecs + ' tests passed';
-
- var failedSpecs = totalSpecs - passedSpecs;
- if (failedSpecs) {
- description += ', ' + failedSpecs + ' tests failed';
- }
-
- description += ', ' + totalSpecs + ' total';
-
- return description;
- };
-
- var growlImage = function(passedSpecs, totalSpecs) {
- if (passed(passedSpecs, totalSpecs)) {
- return path.join(resDir, 'passed.png');
- } else {
- return path.join(resDir, 'failed.png');
- }
- };
-
- var passed = function(passedSpecs, totalSpecs) {
- return passedSpecs == totalSpecs;
- };
-
- return GrowlReporter;
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/package.json
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/package.json b/node_modules/jasmine-growl-reporter/package.json
deleted file mode 100644
index eb047a0..0000000
--- a/node_modules/jasmine-growl-reporter/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "jasmine-growl-reporter",
- "raw": "jasmine-growl-reporter@~0.0.2",
- "rawSpec": "~0.0.2",
- "scope": null,
- "spec": ">=0.0.2 <0.1.0",
- "type": "range"
- },
- "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/jasmine-node"
- ]
- ],
- "_from": "jasmine-growl-reporter@>=0.0.2 <0.1.0",
- "_id": "jasmine-growl-reporter@0.0.3",
- "_inCache": true,
- "_installable": true,
- "_location": "/jasmine-growl-reporter",
- "_npmUser": {
- "email": "hydrae.alpha@gmail.com",
- "name": "alphahydrae"
- },
- "_npmVersion": "1.4.7",
- "_phantomChildren": {},
- "_requested": {
- "name": "jasmine-growl-reporter",
- "raw": "jasmine-growl-reporter@~0.0.2",
- "rawSpec": "~0.0.2",
- "scope": null,
- "spec": ">=0.0.2 <0.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/jasmine-node"
- ],
- "_resolved": "https://registry.npmjs.org/jasmine-growl-reporter/-/jasmine-growl-reporter-0.0.3.tgz",
- "_shasum": "b87ae551e359d28ad5217765eaef6c07b763f6c8",
- "_shrinkwrap": null,
- "_spec": "jasmine-growl-reporter@~0.0.2",
- "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/jasmine-node",
- "author": {
- "name": "Alpha Hydrae",
- "url": "https://github.com/AlphaHydrae"
- },
- "bugs": {
- "url": "https://github.com/AlphaHydrae/jasmine-growl-reporter/issues"
- },
- "dependencies": {
- "growl": "~1.7.0"
- },
- "description": "Growl notifications when running your Jasmine specs.",
- "devDependencies": {
- "grunt": "~0.4.1",
- "grunt-bump": "~0.0.11",
- "grunt-contrib-jshint": "~0.6.0",
- "grunt-contrib-watch": "~0.5.1",
- "grunt-jasmine-node": "~0.1.0",
- "jasmine-node": "~1.10.2",
- "underscore": "~1.5.1"
- },
- "directories": {},
- "dist": {
- "shasum": "b87ae551e359d28ad5217765eaef6c07b763f6c8",
- "tarball": "https://registry.npmjs.org/jasmine-growl-reporter/-/jasmine-growl-reporter-0.0.3.tgz"
- },
- "homepage": "https://github.com/AlphaHydrae/jasmine-growl-reporter",
- "licenses": [
- {
- "type": "MIT",
- "url": "https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/LICENSE.txt"
- }
- ],
- "main": "./index.js",
- "maintainers": [
- {
- "email": "hydrae.alpha@gmail.com",
- "name": "alphahydrae"
- }
- ],
- "name": "jasmine-growl-reporter",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/AlphaHydrae/jasmine-growl-reporter.git"
- },
- "scripts": {
- "test": "grunt"
- },
- "version": "0.0.3"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/res/failed.png
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/res/failed.png b/node_modules/jasmine-growl-reporter/res/failed.png
deleted file mode 100644
index 6c10e11..0000000
Binary files a/node_modules/jasmine-growl-reporter/res/failed.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/res/passed.png
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/res/passed.png b/node_modules/jasmine-growl-reporter/res/passed.png
deleted file mode 100644
index 9cb5174..0000000
Binary files a/node_modules/jasmine-growl-reporter/res/passed.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/spec/matchers.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/spec/matchers.js b/node_modules/jasmine-growl-reporter/spec/matchers.js
deleted file mode 100644
index 3bb39ae..0000000
--- a/node_modules/jasmine-growl-reporter/spec/matchers.js
+++ /dev/null
@@ -1,53 +0,0 @@
-
-var _ = require('underscore');
-
-beforeEach(function() {
-
- this.addMatchers({
-
- toHaveNotified: function(message, options) {
-
- var actual = this.actual;
-
- var called = actual.calls.length,
- messageMatches = false,
- optionsMatch = true;
-
- if (called) {
- var actualMessage = actual.calls[0].args[0];
- messageMatches = _.isRegExp(message) ? _.isString(actualMessage) && actualMessage.match(message) : actualMessage == message;
-
- var actualOptions = actual.calls[0].args[1];
- if (options || actualOptions) {
- if (!options != !actualOptions) {
- optionsMatch = false;
- } else if (!_.isEqual(_.keys(options), _.keys(actualOptions))) {
- optionsMatch = false;
- } else {
- for (var name in options) {
-
- var matcher = options[name],
- value = actualOptions[name];
- if (!(_.isRegExp(matcher) ? _.isString(value) && value.match(matcher) : value == matcher)) {
- optionsMatch = false;
- break;
- }
- }
- }
- }
- }
-
- this.message = function() {
- if (!called) {
- return 'Expected ' + actual + ' to have been called';
- } else if (!messageMatches) {
- return 'Expected ' + actual + ' to have been called with message "' + message + '", got "' + actual.calls[0].args[0] + '"';
- } else if (!optionsMatch) {
- return 'Expected ' + actual + ' to have been called with options ' + JSON.stringify(options) + ', got ' + JSON.stringify(actual.calls[0].args[1]);
- }
- };
-
- return called && messageMatches && optionsMatch;
- }
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-growl-reporter/spec/reporter.spec.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-growl-reporter/spec/reporter.spec.js b/node_modules/jasmine-growl-reporter/spec/reporter.spec.js
deleted file mode 100644
index b42853c..0000000
--- a/node_modules/jasmine-growl-reporter/spec/reporter.spec.js
+++ /dev/null
@@ -1,90 +0,0 @@
-
-var _ = require('underscore');
-require('./matchers');
-
-describe("GrowlReporter", function() {
-
- var injector = require('../lib/reporter').inject,
- path = require('path'),
- growl = null,
- reporter = null;
-
- var fakeSpecResults = function(passed) {
- return {
- results: function() {
- return {
- passed: function() {
- return passed;
- }
- }
- }
- };
- };
-
- var title = 'Jasmine',
- passedRegexp = /^PASSED in [\d\.]+s$/,
- failedRegexp = /^FAILED in [\d\.]+s$/,
- passedImage = path.resolve(__dirname, '../res/passed.png'),
- failedImage = path.resolve(__dirname, '../res/failed.png');
-
- beforeEach(function() {
- growl = jasmine.createSpy();
- reporter = new (injector({ growl: growl }))();
- });
-
- it("should report 0 results", function() {
- reporter.reportRunnerStarting();
- reporter.reportRunnerResults();
- expect(growl).toHaveNotified('0 tests passed, 0 total', {
- name: title,
- title: passedRegexp,
- image: passedImage
- });
- });
-
- it("should report 2 successful results", function() {
- reporter.reportRunnerStarting();
- _.times(2, function() {
- reporter.reportSpecStarting();
- reporter.reportSpecResults(fakeSpecResults(true));
- });
- reporter.reportRunnerResults();
- expect(growl).toHaveNotified('2 tests passed, 2 total', {
- name: title,
- title: passedRegexp,
- image: passedImage
- });
- });
-
- it("should report 3 failed results", function() {
- reporter.reportRunnerStarting();
- _.times(3, function() {
- reporter.reportSpecStarting();
- reporter.reportSpecResults(fakeSpecResults(false));
- });
- reporter.reportRunnerResults();
- expect(growl).toHaveNotified('0 tests passed, 3 tests failed, 3 total', {
- name: title,
- title: failedRegexp,
- image: failedImage
- });
- });
-
- it("should report 2 passed and 4 failed results", function() {
- reporter.reportRunnerStarting();
- _.times(2, function() {
- reporter.reportSpecStarting();
- reporter.reportSpecResults(fakeSpecResults(true));
- });
- _.times(4, function() {
- reporter.reportSpecStarting();
- reporter.reportSpecResults(fakeSpecResults(false));
- });
- reporter.reportRunnerResults();
- expect(growl).toHaveNotified('2 tests passed, 4 tests failed, 6 total', {
- name: title,
- title: failedRegexp,
- image: failedImage
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/.npmignore b/node_modules/jasmine-node/.npmignore
deleted file mode 100755
index ec8ac7f..0000000
--- a/node_modules/jasmine-node/.npmignore
+++ /dev/null
@@ -1,13 +0,0 @@
-.DS_Store
-.idea
-*.iml
-*.ipr
-*.iws
-*.tmproj
-.project
-.settings
-.externalToolBuilders
-*.swp
-node_modules
-*~
-/.c9revisions/
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/.travis.yml b/node_modules/jasmine-node/.travis.yml
deleted file mode 100644
index 6e5919d..0000000
--- a/node_modules/jasmine-node/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/LICENSE b/node_modules/jasmine-node/LICENSE
deleted file mode 100755
index b6ad6d3..0000000
--- a/node_modules/jasmine-node/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License
-
-Copyright (c) 2010 Adam Abrons and Misko Hevery http://getangular.com
-
-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-create/blob/9fb2883e/node_modules/jasmine-node/README.md
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/README.md b/node_modules/jasmine-node/README.md
deleted file mode 100644
index 4acc3dc..0000000
--- a/node_modules/jasmine-node/README.md
+++ /dev/null
@@ -1,286 +0,0 @@
-jasmine-node
-======
-
-[![Build Status](https://secure.travis-ci.org/spaghetticode/jasmine-node.png)](http://travis-ci.org/spaghetticode/jasmine-node)
-
-This node.js module makes the wonderful [Pivotal Lab's jasmine](http://github.com/pivotal/jasmine)
-spec framework available in node.js.
-
-jasmine
--------
-
-Version `1.3.1` of Jasmine is currently included with node-jasmine. This is a forked version from the
-[Karma project](https://github.com/karma-runner/karma-jasmine), which allows you to use the
-`ddescribe` and `iit` functions to run individual suites or specs.
-
-BETA `2.0.0` Support is available in the `Jasmine2.0` branch.
-
-what's new
-----------
-* Growl notifications with the `--growl` flag (requires Growl to be installed)
-* Ability to test specs written in Literate Coffee-Script
-* Teamcity Reporter reinstated.
-* Ability to specify multiple files to test via list in command line
-* Ability to suppress stack trace with `--noStack`
-* Async tests now run in the expected context instead of the global one
-* `--config` flag that allows you to assign variables to process.env
-* Terminal Reporters are now available in the Jasmine Object #184
-* Done is now available in all timeout specs #199
-* `afterEach` is available in requirejs #179
-* Editors that replace instead of changing files should work with autotest #198
-* Jasmine Mock Clock now works!
-* Autotest now works!
-* Using the latest Jasmine!
-* Verbose mode tabs `describe` blocks much more accurately!
-* `--coffee` now allows specs written in Literate CoffeeScript (`.litcoffee`)
-
-install
-------
-
-To install the latest official version, use NPM:
-
-```sh
-npm install jasmine-node -g
-```
-
-To install the latest _bleeding edge_ version, clone this repository and check
-out the `beta` branch.
-
-usage
-------
-
-Write the specifications for your code in `*.js` and `*.coffee` files in the `spec/` directory.
-You can use sub-directories to better organise your specs. In the specs use `describe()`, `it()` etc. exactly
-as you would in client-side jasmine specs.
-
-**Note**: your specification files must be named as `*spec.js`, `*spec.coffee` or `*spec.litcoffee`,
-which matches the regular expression `/spec\.(js|coffee|litcoffee)$/i`;
-otherwise jasmine-node won't find them!
-For example, `sampleSpecs.js` is wrong, `sampleSpec.js` is right.
-
-If you have installed the npm package, you can run it with:
-
-```sh
-jasmine-node spec/
-```
-
-If you aren't using npm, you should add `pwd`/lib to the `$NODE_PATH`
-environment variable, then run:
-
-```sh
-node lib/jasmine-node/cli.js
-```
-
-
-You can supply the following arguments:
-
- * `--autotest`, provides automatic execution of specs after each change
- * `--watch`, when used with `--autotest`, paths after `--watch` will be
-watched for changes, allowing to watch for changes outside of specs directory
- * `--coffee`, allow execution of `.coffee` and `.litcoffee` specs
- * `--color`, indicates spec output should uses color to
-indicates passing (green) or failing (red) specs
- * `--noColor`, do not use color in the output
- * `-m, --match REGEXP`, match only specs containing "REGEXPspec"
- * `--matchall`, relax requirement of "spec" in spec file names
- * `--verbose`, verbose output as the specs are run
- * `--junitreport`, export tests results as junitreport xml format
- * `--output FOLDER`, defines the output folder for junitreport files
- * `--teamcity`, converts all console output to teamcity custom test runner commands. (Normally auto detected.)
- * `--growl`, display test run summary in a growl notification (in addition to other outputs)
- * `--runWithRequireJs`, loads all specs using requirejs instead of node's native require method
- * `--requireJsSetup`, file run before specs to include and configure RequireJS
- * `--test-dir`, the absolute root directory path where tests are located
- * `--nohelpers`, does not load helpers
- * `--forceexit`, force exit once tests complete
- * `--captureExceptions`, listen to global exceptions, report them and exit (interferes with Domains in NodeJs, so do not use if using Domains as well
- * `--config NAME VALUE`, set a global variable in `process.env`
- * `--noStack`, suppress the stack trace generated from a test failure
-
-Individual files to test can be added as bare arguments to the end of the args.
-
-Example:
-
-```bash
-jasmine-node --coffee spec/AsyncSpec.coffee spec/CoffeeSpec.coffee spec/SampleSpec.js
-```
-
-async tests
------------
-
-jasmine-node includes an alternate syntax for writing asynchronous tests. Accepting
-a done callback in the specification will trigger jasmine-node to run the test
-asynchronously waiting until the `done()` callback is called.
-
-```javascript
-var request = require('request');
-
-it("should respond with hello world", function(done) {
- request("http://localhost:3000/hello", function(error, response, body){
- expect(body).toEqual("hello world");
- done();
- });
-});
-```
-
-An asynchronous test will fail after `5000` ms if `done()` is not called. This timeout
-can be changed by setting `jasmine.getEnv().defaultTimeoutInterval` or by passing a timeout
-interval in the specification.
-
-```javascript
-var request = require('request');
-
-it("should respond with hello world", function(done) {
- request("http://localhost:3000/hello", function(error, response, body){
- done();
- });
-}, 250); // timeout after 250 ms
-```
-
-or
-
-```javascript
-var request = require('request');
-
-jasmine.getEnv().defaultTimeoutInterval = 500;
-
-it("should respond with hello world", function(done) {
- request("http://localhost:3000/hello", function(error, response, body){
- done();
- }); // timeout after 500 ms
-});
-```
-
-Checkout [`spec/SampleSpecs.js`](https://github.com/mhevery/jasmine-node/blob/master/spec/SampleSpecs.js) to see how to use it.
-
-
-requirejs
----------
-
-There is a sample project in `/spec-requirejs`. It is comprised of:
-
-1. `requirejs-setup.js`, this pulls in our wrapper template (next)
-1. `requirejs-wrapper-template`, this builds up requirejs settings
-1. `requirejs.sut.js`, this is a __SU__bject To __T__est, something required by requirejs
-1. `requirejs.spec.js`, the actual jasmine spec for testing
-
-To run it:
-
-```sh
-node lib/jasmine-node/cli.js --runWithRequireJs --requireJsSetup ./spec-requirejs/requirejs-setup.js ./spec-requirejs/
-```
-
-exceptions
-----------
-
-Often you'll want to capture an uncaught exception and log it to the console,
-this is accomplished by using the `--captureExceptions` flag. Exceptions will
-be reported to the console, but jasmine-node will attempt to recover and
-continue. It was decided to not change the current functionality until `2.0`. So,
-until then, jasmine-node will still return `0` and continue on without this flag.
-
-### Scenario ###
-
-You require a module, but it doesn't exist, ie `require('Q')` instead of
-`require('q')`. Jasmine-Node reports the error to the console, but carries on
-and returns `0`. This messes up Travis-CI because you need it to return a
-non-zero status while doing CI tests.
-
-### Mitigation ###
-
-Before `--captureExceptions`
-
-```sh
-> jasmine-node --coffee spec
-> echo $status
-0
-```
-
-Run jasmine node with the `--captureExceptions` flag.
-
-```sh
-> jasmine-node --coffee --captureExceptions spec
-> echo $status
-1
-```
-
-
-growl notifications
--------------------
-
-Jasmine node can display [Growl](http://growl.info) notifications of test
-run summaries in addition to other reports.
-Growl must be installed separately, see [node-growl](https://github.com/visionmedia/node-growl)
-for platform-specific instructions. Pass the `--growl` flag to enable the notifications.
-
-
-development
------------
-
-Install the dependent packages by running:
-
-```sh
-npm install
-```
-
-Run the specs before you send your pull request:
-
-```sh
-specs.sh
-```
-
-__Note:__ Some tests are designed to fail in the specs.sh. After each of the
-individual runs completes, there is a line that lists what the expected
-Pass/Assert/Fail count should be. If you add/remove/edit tests, please be sure
-to update this with your PR.
-
-
-changelog
----------
-
-* _1.14.5_ Using ~ instead of ^ for reporter version (thanks to [Maxim-Filimonov](https://github.com/Maxim-Filimonov))
-* _1.14.4_ Rolled back jasmine reporter version (thanks to [tjmcduffie](https://github.com/tjmcduffie))
-* _1.14.3_ Added 'onComplete' callback to TeamCityReporter (thanks to [JoergFiedler](https://github.com/JoergFiedler))
-* _1.14.2_ Uhhh...not sure what happened here.
-* _1.14.1_ Default to noColors if not in a TTY
-* _1.14.0_ Add support for `iit`, `ddescribe` (thanks to [mgcrea](https://github.com/mgcrea))
-* _1.13.1_ Add coffee-script support for 1.7.x (thanks to [nathancarter](https://github.com/nathancarter))
-* _1.13.0_ Added timing to the verbose reporter (thanks to [rick-kilgore](https://github.com/rick-kilgore))
-* _1.12.1_ Fixed an issue where an undefined variable caused an unhelpful
- exception in --watch Resolves #278
-* _1.12.0_
- * Changed `util.print` to `stdout.write` (thanks to [nrstott](https://github.com/nrstott))
- * Don\u2019t affect line numbers with --requireJsSetup (thanks to [daviddaurelio](https://github.com/davidaurelio))
- * Catch errors when loading helpers (thanks to [pimterry](https://github.com/pimterry))
- * Keep autotesting until all tests have passed (thanks to [notclive](https://github.com/notclive))
-* _1.11.0 - Added Growl notification option `--growl` (thanks to
- [AlphaHydrae](https://github.com/AlphaHydrae))_
-* _1.10.2 - Restored stack filter which was accidentally removed (thanks to
- [kevinsawicki](https://github.com/kevinsawicki))_
-* _1.10.1 - `beforeEach` and `afterEach` now properly handle the async-timeout function_
-* _1.10.0 - Skipped tests now show in the terminal reporter's output (thanks
- to [kevinsawicki](https://github.com/kevinsawicki))_
-* _1.9.1 - Timeout now consistent between Async and Non-Async Calls (thanks to
- [codemnky](https://github.com/codemnky))_
-* _1.9.0 - Now re-throwing the file-not-found error, added info to README.md,
- printing version with `--version`_
-* _1.8.1 - Fixed silent failure due to invalid REGEX (thanks to
- [pimterry](https://github.com/pimterry))_
-* _1.8.0 - Fixed bug in autotest with multiple paths and added `--watch` feature
- (thanks to [davegb3](https://github.com/davegb3))_
-* _1.7.1 - Removed unneeded fs dependency (thanks to
- [kevinsawicki](https://github.com/kevinsawicki)) Fixed broken fs call in
- node `0.6` (thanks to [abe33](https://github.com/abe33))_
-* _1.7.0 - Literate Coffee-Script now testable (thanks to [magicmoose](https://github.com/magicmoose))_
-* _1.6.0 - Teamcity Reporter Reinstated (thanks to [bhcleek](https://github.com/bhcleek))_
-* _1.5.1 - Missing files and require exceptions will now report instead of failing silently_
-* _1.5.0 - Now takes multiple files for execution. (thanks to [abe33](https://github.com/abe33))_
-* _1.4.0 - Optional flag to suppress stack trace on test failure (thanks to [Lastalas](https://github.com/Lastalas))_
-* _1.3.1 - Fixed context for async tests (thanks to [omryn](https://github.com/omryn))_
-* _1.3.0 - Added `--config` flag for changeable testing environments_
-* _1.2.3 - Fixed #179, #184, #198, #199. Fixes autotest, afterEach in requirejs, terminal reporter is in jasmine object, done function missing in async tests_
-* _1.2.2 - Revert Exception Capturing to avoid Breaking Domain Tests_
-* _1.2.1 - Emergency fix for path reference missing_
-* _1.2.0 - Fixed #149, #152, #171, #181, #195. `--autotest` now works as expected, jasmine clock now responds to the fake ticking as requested, and removed the path.exists warning_
-* _1.1.1 - Fixed #173, #169 (Blocks were not indented in verbose properly, added more documentation to address #180_
-* _1.1.0 - Updated Jasmine to `1.3.1`, fixed fs missing, catching uncaught exceptions, other fixes_
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/bin/jasmine-node
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/bin/jasmine-node b/node_modules/jasmine-node/bin/jasmine-node
deleted file mode 100755
index 33d4873..0000000
--- a/node_modules/jasmine-node/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'));
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/bower.json
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/bower.json b/node_modules/jasmine-node/bower.json
deleted file mode 100644
index 0893e5e..0000000
--- a/node_modules/jasmine-node/bower.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "jasmine-node",
- "version": "1.12.0",
- "homepage": "https://github.com/mhevery/jasmine-node",
- "authors": [
- "Misko Hevery <https://github.com/mhevery>",
- "Chris M <http://www.endgame.com>"
- ],
- "description": "Integration of Jasmine Spec framework with Node.js",
- "main": "lib/jasmine-node",
- "keywords": [
- "jasmine",
- "node",
- "commonjs",
- "node"
- ],
- "license": "MIT",
- "private": true
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/lib/jasmine-node/async-callback.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/lib/jasmine-node/async-callback.js b/node_modules/jasmine-node/lib/jasmine-node/async-callback.js
deleted file mode 100644
index d9a94c4..0000000
--- a/node_modules/jasmine-node/lib/jasmine-node/async-callback.js
+++ /dev/null
@@ -1,61 +0,0 @@
-(function() {
- var withoutAsync = {};
-
- ["it", "beforeEach", "afterEach"].forEach(function(jasmineFunction) {
- withoutAsync[jasmineFunction] = jasmine.Env.prototype[jasmineFunction];
- return jasmine.Env.prototype[jasmineFunction] = function() {
- var args = Array.prototype.slice.call(arguments, 0);
- var timeout = null;
- if (isLastArgumentATimeout(args)) {
- timeout = args.pop();
- // The changes to the jasmine test runner causes undef to be passed when
- // calling all it()'s now. If the last argument isn't a timeout and the
- // last argument IS undefined, let's just pop it off. Since out of bounds
- // items are undefined anyways, *hopefully* removing an undef item won't
- // hurt.
- } else if (args[args.length-1] == undefined) {
- args.pop();
- }
- if (isLastArgumentAnAsyncSpecFunction(args))
- {
- var specFunction = args.pop();
- args.push(function() {
- return asyncSpec(specFunction, this, timeout);
- });
- }
- return withoutAsync[jasmineFunction].apply(this, args);
- };
- });
-
- function isLastArgumentATimeout(args)
- {
- return args.length > 0 && (typeof args[args.length-1]) === "number";
- }
-
- function isLastArgumentAnAsyncSpecFunction(args)
- {
- return args.length > 0 && (typeof args[args.length-1]) === "function" && args[args.length-1].length > 0;
- }
-
- function asyncSpec(specFunction, spec, timeout) {
- if (timeout == null) timeout = jasmine.getEnv().defaultTimeoutInterval || 1000;
- var done = false;
- spec.runs(function() {
- try {
- return specFunction.call(spec, function(error) {
- done = true;
- if (error != null) return spec.fail(error);
- });
- } catch (e) {
- done = true;
- throw e;
- }
- });
- return spec.waitsFor(function() {
- if (done === true) {
- return true;
- }
- }, "spec to complete", timeout);
- };
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/lib/jasmine-node/autotest.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/lib/jasmine-node/autotest.js b/node_modules/jasmine-node/lib/jasmine-node/autotest.js
deleted file mode 100755
index 362dcb7..0000000
--- a/node_modules/jasmine-node/lib/jasmine-node/autotest.js
+++ /dev/null
@@ -1,118 +0,0 @@
-var walkdir = require('walkdir');
-var collection = require('./spec-collection');
-var path = require('path');
-var fs = require('fs');
-var child_process = require('child_process');
-var gaze = require('gaze');
-var _ = require('underscore');
-
-var baseArgv = [];
-
-for(var i = 0; i < process.argv.length; i++) {
- if(process.argv[i] !== '--autotest') {
- baseArgv.push(process.argv[i]);
- }
-}
-
-var run_external = function(command, args, callback) {
- var child = child_process.spawn(command, args);
- child.stdout.on('data', function(data) {
- process.stdout.write(data);
- });
- child.stderr.on('data', function(data) {
- process.stderr.write(data);
- });
- if(typeof callback == 'function') {
- child.on('exit', callback);
- }
-}
-
-var last_run_successful = false;
-
-var run_everything = function() {
- // run the suite when it starts
- var argv = [].concat(baseArgv);
- run_external(argv.shift(), argv, function (code) {
- last_run_successful = code === 0
- });
-}
-
-exports.start = function(loadpaths, watchFolders, patterns) {
- var watchPatterns;
-
- loadpaths.forEach(function(loadpath){
-
- // If loadpath is just a single file, we should just watch that file
- stats = fs.statSync(loadpath);
- if (stats.isFile()) {
- watchPatterns = loadpath;
- } else {
- watchPatterns = patterns.map(function(p) {
- return path.join(loadpath, p);
- });
- }
-
- changedFunc = function(event, file) {
- console.log(file + ' was changed');
-
- var match = path.basename(file, path.extname(file)) + ".*";
- match = match.replace(new RegExp("spec", "i"), "");
-
- var argv = [].concat(baseArgv, ["--match", match]);
- run_external(argv.shift(), argv, function(code) {
- // run everything if we fixed some bugs
- if(code == 0) {
- if(!last_run_successful) {
- run_everything();
- }
- } else {
- last_run_successful = false;
- }
- });
- }
-
- // Vim seems to change a file multiple times, with non-scientific testing
- // the only time we didn't duplicate the call to onChanged was at 2.5s
- // Passing true to have onChanged run on the leading edge of the timeout
- var onChanged = _.debounce(changedFunc, 2500, true);
-
- gaze(watchPatterns, function(err, watcher) {
- // Get all watched files
- console.log("Watching for changes in " + loadpath);
-
- // On file changed
- this.on('all', onChanged);
- });
-
-
-
- });
-
-
- watchFolders.forEach(function(watchPath) {
- // If watchPath is just a single file, we should just watch that file
- stats = fs.statSync(watchPath);
- if (stats.isFile()) {
- watchPatterns = watchPath;
- } else {
- watchPatterns = patterns.map(function(p) {
- return path.join(watchPath, p);
- });
- }
-
- // We debounce run_everything here due to the Vim issue described above.
- var onChanged = _.debounce(run_everything, 2500, true);
-
-
- gaze(watchPatterns, function(err, watcher) {
- console.log("Watching for changes in " + watchPath);
-
- this.on('all', onChanged);
- });
-
-
-
- });
-
- run_everything();
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/lib/jasmine-node/cli.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/lib/jasmine-node/cli.js b/node_modules/jasmine-node/lib/jasmine-node/cli.js
deleted file mode 100755
index 4a1e525..0000000
--- a/node_modules/jasmine-node/lib/jasmine-node/cli.js
+++ /dev/null
@@ -1,287 +0,0 @@
-var util,
- Path= require('path'),
- fs = require('fs');
-
-var jasmine = require('./index');
-
-
-try {
- util = require('util')
-} catch(e) {
- util = require('sys')
-}
-
-var helperCollection = require('./spec-collection');
-
-var specFolders = [];
-var watchFolders = [];
-
-// The following line keeps the jasmine setTimeout in the proper scope
-jasmine.setTimeout = jasmine.getGlobal().setTimeout;
-jasmine.setInterval = jasmine.getGlobal().setInterval;
-for (var key in jasmine)
- global[key] = jasmine[key];
-
-var isVerbose = false;
-var showColors = true;
-// Disable if we're not on a TTY
-if (!process.stdout.isTTY) {
- showColors = false;
-}
-var teamcity = process.env.TEAMCITY_PROJECT_NAME || false;
-var useRequireJs = false;
-var extensions = "js";
-var match = '.';
-var matchall = false;
-var autotest = false;
-var useHelpers = true;
-var forceExit = false;
-var captureExceptions = false;
-var includeStackTrace = true;
-var growl = false;
-
-var junitreport = {
- report: false,
- savePath : "./reports/",
- useDotNotation: true,
- consolidate: true
-}
-
-var args = process.argv.slice(2);
-var existsSync = fs.existsSync || Path.existsSync;
-
-while(args.length) {
- var arg = args.shift();
-
- switch(arg)
- {
- case '--version':
- printVersion();
- case '--color':
- showColors = true;
- break;
- case '--noColor':
- case '--nocolor':
- showColors = false;
- break;
- case '--verbose':
- isVerbose = true;
- break;
- case '--coffee':
- try {
- require('coffee-script/register'); // support CoffeeScript >=1.7.0
- } catch ( e ) {
- require('coffee-script'); // support CoffeeScript <=1.6.3
- }
- extensions = "js|coffee|litcoffee";
- break;
- case '-m':
- case '--match':
- match = args.shift();
- break;
- case '--matchall':
- matchall = true;
- break;
- case '--junitreport':
- junitreport.report = true;
- break;
- case '--output':
- junitreport.savePath = args.shift();
- break;
- case '--teamcity':
- teamcity = true;
- break;
- case '--requireJsSetup':
- var setup = args.shift();
-
- if(!existsSync(setup))
- throw new Error("RequireJS setup '" + setup + "' doesn't exist!");
-
- useRequireJs = setup;
- break;
- case '--runWithRequireJs':
- useRequireJs = useRequireJs || true;
- break;
- case '--nohelpers':
- useHelpers = false;
- break;
- case '--test-dir':
- var dir = args.shift();
-
- if(!existsSync(dir))
- throw new Error("Test root path '" + dir + "' doesn't exist!");
-
- specFolders.push(dir); // NOTE: Does not look from current working directory.
- break;
- case '--autotest':
- autotest = true;
- break;
- case '--watch':
- var nextWatchDir;
-
- // Add the following arguments, until we see another argument starting with '-'
- while (args[0] && args[0][0] !== '-') {
- nextWatchDir = args.shift();
- watchFolders.push(nextWatchDir);
-
- if (!existsSync(nextWatchDir))
- throw new Error("Watch path '" + nextWatchDir + "' doesn't exist!");
- }
- break;
-
- case '--forceexit':
- forceExit = true;
- break;
- case '--captureExceptions':
- captureExceptions = true;
- break;
- case '--noStack':
- includeStackTrace = false;
- break;
- case '--growl':
- growl = true;
- break;
- case '--config':
- var configKey = args.shift();
- var configValue = args.shift();
- process.env[configKey]=configValue;
- break;
- case '-h':
- help();
- default:
- if (arg.match(/^--params=.*/)) {
- break;
- }
- if (arg.match(/^--/)) help();
- if (arg.match(/^\/.*/)) {
- specFolders.push(arg);
- } else {
- specFolders.push(Path.join(process.cwd(), arg));
- }
- break;
- }
-}
-
-if (specFolders.length === 0) {
- help();
-} else {
- // Check to see if all our files exist
- for (var idx = 0; idx < specFolders.length; idx++) {
- if (!existsSync(specFolders[idx])) {
- console.log("File: " + specFolders[idx] + " is missing.");
- return;
- }
- }
-}
-
-if (autotest) {
-
- var patterns = ['**/*.js'];
-
- if (extensions.indexOf("coffee") !== -1) {
- patterns.push('**/*.coffee');
- }
-
- require('./autotest').start(specFolders, watchFolders, patterns);
-
- return;
-}
-
-var exitCode = 0;
-
-if (captureExceptions) {
- process.on('uncaughtException', function(e) {
- console.error(e.stack || e);
- exitCode = 1;
- process.exit(exitCode);
- });
-}
-
-process.on("exit", onExit);
-
-function onExit() {
- process.removeListener("exit", onExit);
- process.exit(exitCode);
-}
-
-var onComplete = function(runner, log) {
- process.stdout.write('\n');
- if (runner.results().failedCount == 0) {
- exitCode = 0;
- } else {
- exitCode = 1;
- }
- if (forceExit) {
- process.exit(exitCode);
- }
-};
-
-if(useHelpers){
- specFolders.forEach(function(path){
- jasmine.loadHelpersInFolder(path,
- new RegExp("helpers?\\.(" + extensions + ")$", 'i'));
-
- })
-}
-
-try {
- var regExpSpec = new RegExp(match + (matchall ? "" : "spec\\.") + "(" + extensions + ")$", 'i')
-} catch (error) {
- console.error("Failed to build spec-matching regex: " + error);
- process.exit(2);
-}
-
-
-var options = {
- specFolders: specFolders,
- onComplete: onComplete,
- isVerbose: isVerbose,
- showColors: showColors,
- teamcity: teamcity,
- useRequireJs: useRequireJs,
- regExpSpec: regExpSpec,
- junitreport: junitreport,
- includeStackTrace: includeStackTrace,
- growl: growl
-}
-
-jasmine.executeSpecsInFolder(options);
-
-
-function help(){
- process.stdout.write([
- 'USAGE: jasmine-node [--color|--noColor] [--verbose] [--coffee] directory'
- , ''
- , 'Options:'
- , ' --autotest - rerun automatically the specs when a file changes'
- , ' --watch PATH - when used with --autotest, watches the given path(s) and runs all tests if a change is detected'
- , ' --color - use color coding for output'
- , ' --noColor - do not use color coding for output'
- , ' -m, --match REGEXP - load only specs containing "REGEXPspec"'
- , ' --matchall - relax requirement of "spec" in spec file names'
- , ' --verbose - print extra information per each test run'
- , ' --coffee - load coffee-script which allows execution .coffee files'
- , ' --junitreport - export tests results as junitreport xml format'
- , ' --output - defines the output folder for junitreport files'
- , ' --teamcity - converts all console output to teamcity custom test runner commands. (Normally auto detected.)'
- , ' --growl - display test run summary in a growl notification (in addition to other outputs)'
- , ' --runWithRequireJs - loads all specs using requirejs instead of node\'s native require method'
- , ' --requireJsSetup - file run before specs to include and configure RequireJS'
- , ' --test-dir - the absolute root directory path where tests are located'
- , ' --nohelpers - does not load helpers.'
- , ' --forceexit - force exit once tests complete.'
- , ' --captureExceptions- listen to global exceptions, report them and exit (interferes with Domains)'
- , ' --config NAME VALUE- set a global variable in process.env'
- , ' --noStack - suppress the stack trace generated from a test failure'
- , ' --version - show the current version'
- , ' -h, --help - display this help and exit'
- , ''
- ].join("\n"));
-
- process.exit(-1);
-}
-
-function printVersion(){
- console.log("1.14.3");
- process.exit(0);
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/lib/jasmine-node/cs.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/lib/jasmine-node/cs.js b/node_modules/jasmine-node/lib/jasmine-node/cs.js
deleted file mode 100644
index 0d7ff76..0000000
--- a/node_modules/jasmine-node/lib/jasmine-node/cs.js
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * @license cs 0.4.2 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/require-cs for details
- */
-
-/*jslint */
-/*global define, window, XMLHttpRequest, importScripts, Packages, java,
- ActiveXObject, process, require */
-
-define(['coffee-script'], function (CoffeeScript) {
- 'use strict';
- var fs, getXhr,
- progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
- fetchText = function () {
- throw new Error('Environment unsupported.');
- },
- buildMap = {};
-
- if (typeof process !== "undefined" &&
- process.versions &&
- !!process.versions.node) {
- //Using special require.nodeRequire, something added by r.js.
- fs = require.nodeRequire('fs');
- fetchText = function (path, callback) {
- callback(fs.readFileSync(path, 'utf8'));
- };
- } else if ((typeof window !== "undefined" && window.navigator && window.document) || typeof importScripts !== "undefined") {
- // Browser action
- getXhr = function () {
- //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
- var xhr, i, progId;
- if (typeof XMLHttpRequest !== "undefined") {
- return new XMLHttpRequest();
- } else {
- for (i = 0; i < 3; i++) {
- progId = progIds[i];
- try {
- xhr = new ActiveXObject(progId);
- } catch (e) {}
-
- if (xhr) {
- progIds = [progId]; // so faster next time
- break;
- }
- }
- }
-
- if (!xhr) {
- throw new Error("getXhr(): XMLHttpRequest not available");
- }
-
- return xhr;
- };
-
- fetchText = function (url, callback) {
- var xhr = getXhr();
- xhr.open('GET', url, true);
- xhr.onreadystatechange = function (evt) {
- //Do not explicitly handle errors, those should be
- //visible via console output in the browser.
- if (xhr.readyState === 4) {
- callback(xhr.responseText);
- }
- };
- xhr.send(null);
- };
- // end browser.js adapters
- } else if (typeof Packages !== 'undefined') {
- //Why Java, why is this so awkward?
- fetchText = function (path, callback) {
- var encoding = "utf-8",
- file = new java.io.File(path),
- lineSeparator = java.lang.System.getProperty("line.separator"),
- input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
- stringBuffer, line,
- content = '';
- try {
- stringBuffer = new java.lang.StringBuffer();
- line = input.readLine();
-
- // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
- // http://www.unicode.org/faq/utf_bom.html
-
- // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
- if (line && line.length() && line.charAt(0) === 0xfeff) {
- // Eat the BOM, since we've already found the encoding on this file,
- // and we plan to concatenating this buffer with others; the BOM should
- // only appear at the top of a file.
- line = line.substring(1);
- }
-
- stringBuffer.append(line);
-
- while ((line = input.readLine()) !== null) {
- stringBuffer.append(lineSeparator);
- stringBuffer.append(line);
- }
- //Make sure we return a JavaScript string and not a Java string.
- content = String(stringBuffer.toString()); //String
- } finally {
- input.close();
- }
- callback(content);
- };
- }
-
- return {
- get: function () {
- return CoffeeScript;
- },
-
- write: function (pluginName, name, write) {
- if (buildMap.hasOwnProperty(name)) {
- var text = buildMap[name];
- write.asModule(pluginName + "!" + name, text);
- }
- },
-
- version: '0.4.2',
-
- load: function (name, parentRequire, load, config) {
- var path = parentRequire.toUrl(name + '.coffee');
- fetchText(path, function (text) {
-
- //Do CoffeeScript transform.
- try {
- text = CoffeeScript.compile(text, config.CoffeeScript);
- }
- catch (err) {
- err.message = "In " + path + ", " + err.message;
- throw(err);
- }
-
- //Hold on to the transformed text if a build.
- if (config.isBuild) {
- buildMap[name] = text;
- }
-
- //IE with conditional comments on cannot handle the
- //sourceURL trick, so skip it if enabled.
- /*@if (@_jscript) @else @*/
- if (!config.isBuild) {
- text += "\r\n//@ sourceURL=" + path;
- }
- /*@end@*/
-
- load.fromText(name, text);
-
- //Give result to load. Need to wait until the module
- //is fully parse, which will happen after this
- //execution.
- parentRequire([name], function (value) {
- load(value);
- });
- });
- }
- };
-});
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/jasmine-node/lib/jasmine-node/index.js
----------------------------------------------------------------------
diff --git a/node_modules/jasmine-node/lib/jasmine-node/index.js b/node_modules/jasmine-node/lib/jasmine-node/index.js
deleted file mode 100755
index 625e81c..0000000
--- a/node_modules/jasmine-node/lib/jasmine-node/index.js
+++ /dev/null
@@ -1,204 +0,0 @@
-var fs = require('fs');
-var mkdirp = require('mkdirp');
-var util;
-try {
- util = require('util')
-} catch(e) {
- util = require('sys')
-}
-
-var path = require('path');
-
-var filename = __dirname + '/jasmine-1.3.1.js';
-var isWindowUndefined = typeof global.window === 'undefined';
-if (isWindowUndefined) {
- global.window = {
- setTimeout: setTimeout,
- clearTimeout: clearTimeout,
- setInterval: setInterval,
- clearInterval: clearInterval
- };
-}
-
-var src = fs.readFileSync(filename);
-// Put jasmine in the global context, this is somewhat like running in a
-// browser where every file will have access to `jasmine`
-var jasmine = require('vm').runInThisContext(src + "\njasmine;", filename);
-
-
-if (isWindowUndefined) {
- delete global.window;
-}
-require("./async-callback");
-require("jasmine-reporters");
-var nodeReporters = require('./reporter').jasmineNode;
-jasmine.TerminalVerboseReporter = nodeReporters.TerminalVerboseReporter;
-jasmine.TerminalReporter = nodeReporters.TerminalReporter;
-jasmine.TeamcityReporter = nodeReporters.TeamcityReporter;
-jasmine.GrowlReporter = require('jasmine-growl-reporter');
-
-
-jasmine.loadHelpersInFolder = function(folder, matcher) {
- // Check to see if the folder is actually a file, if so, back up to the
- // parent directory and find some helpers
- folderStats = fs.statSync(folder);
- if (folderStats.isFile()) {
- folder = path.dirname(folder);
- }
-
- var helpers = [],
- helperCollection = require('./spec-collection');
-
- helperCollection.load([folder], matcher);
- helpers = helperCollection.getSpecs();
-
- for (var i = 0, len = helpers.length; i < len; ++i) {
- var file = helpers[i].path();
-
- try {
- var helper = require(file.replace(/\.*$/, ""));
- } catch (e) {
- console.log("Exception loading helper: " + file)
- console.log(e);
- throw e; // If any of the helpers fail to load, fail everything
- }
-
- for (var key in helper) {
- global[key]= helper[key];
- }
- }
-};
-
-function removeJasmineFrames(text) {
- if (!text) {
- return text;
- }
-
- var lines = [];
- text.split(/\n/).forEach(function(line){
- if (line.indexOf(filename) == -1) {
- lines.push(line);
- }
- });
- return lines.join('\n');
-}
-
-jasmine.executeSpecsInFolder = function(options){
- var folders = options['specFolders'];
- var done = options['onComplete'];
- var isVerbose = options['isVerbose'];
- var showColors = options['showColors'];
- var teamcity = options['teamcity'];
- var useRequireJs = options['useRequireJs'];
- var matcher = options['regExpSpec'];
- var junitreport = options['junitreport'];
- var includeStackTrace = options['includeStackTrace'];
- var growl = options['growl'];
-
- // Overwriting it allows us to handle custom async specs
- it = function(desc, func, timeout) {
- return jasmine.getEnv().it(desc, func, timeout);
- }
- beforeEach = function(func, timeout) {
- return jasmine.getEnv().beforeEach(func, timeout);
- }
- afterEach = function(func, timeout) {
- return jasmine.getEnv().afterEach(func, timeout);
- }
- var fileMatcher = matcher || new RegExp(".(js)$", "i"),
- colors = showColors || false,
- specs = require('./spec-collection'),
- jasmineEnv = jasmine.getEnv();
-
- specs.load(folders, fileMatcher);
-
- if(junitreport && junitreport.report) {
- var existsSync = fs.existsSync || path.existsSync;
- if(!existsSync(junitreport.savePath)) {
- util.puts('creating junit xml report save path: ' + junitreport.savePath);
- mkdirp.sync(junitreport.savePath, "0755");
- }
- jasmineEnv.addReporter(new jasmine.JUnitXmlReporter(junitreport.savePath,
- junitreport.consolidate,
- junitreport.useDotNotation));
- }
-
- if(teamcity){
- jasmineEnv.addReporter(new jasmine.TeamcityReporter({onComplete: done}));
- } else if(isVerbose) {
- jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: print,
- color: showColors,
- onComplete: done,
- stackFilter: removeJasmineFrames}));
- } else {
- jasmineEnv.addReporter(new jasmine.TerminalReporter({print: print,
- color: showColors,
- includeStackTrace: includeStackTrace,
- onComplete: done,
- stackFilter: removeJasmineFrames}));
- }
-
- if (growl) {
- jasmineEnv.addReporter(new jasmine.GrowlReporter());
- }
-
- if (useRequireJs) {
- require('./requirejs-runner').executeJsRunner(
- specs,
- done,
- jasmineEnv,
- typeof useRequireJs === 'string' ? useRequireJs : null
- );
- } else {
- var specsList = specs.getSpecs();
-
- for (var i = 0, len = specsList.length; i < len; ++i) {
- var filename = specsList[i];
- delete require.cache[filename.path()];
- // Catch exceptions in loading the spec
- try {
- require(filename.path().replace(/\.\w+$/, ""));
- } catch (e) {
- console.log("Exception loading: " + filename.path());
- console.log(e);
- throw e;
- }
- }
-
- jasmineEnv.execute();
- }
-};
-
-function now(){
- return new Date().getTime();
-}
-
-jasmine.asyncSpecWait = function(){
- var wait = jasmine.asyncSpecWait;
- wait.start = now();
- wait.done = false;
- (function innerWait(){
- waits(10);
- runs(function() {
- if (wait.start + wait.timeout < now()) {
- expect('timeout waiting for spec').toBeNull();
- } else if (wait.done) {
- wait.done = false;
- } else {
- innerWait();
- }
- });
- })();
-};
-jasmine.asyncSpecWait.timeout = 4 * 1000;
-jasmine.asyncSpecDone = function(){
- jasmine.asyncSpecWait.done = true;
-};
-
-function print(str) {
- process.stdout.write(util.format(str));
-}
-
-for ( var key in jasmine) {
- exports[key] = jasmine[key];
-}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org