From f4e2ac6a77847ab52ef925128705efebcc2ba310 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Mon, 29 Sep 2014 17:46:23 +0400 Subject: [PATCH 1/2] CB-7666 Move stuff outside of windows subdir --- .gitignore | 2 +- windows/VERSION => VERSION | 0 appveyor.yml | 1 - {windows/bin => bin}/check_reqs | 0 {windows/bin => bin}/check_reqs.bat | 0 {windows/bin => bin}/create | 0 {windows/bin => bin}/create.bat | 0 {windows/bin => bin}/lib/check_reqs.js | 0 {windows/bin => bin}/lib/create.js | 0 {windows/bin => bin}/lib/update.js | 0 {windows/bin => bin}/node_modules/.bin/nopt | 0 .../bin => bin}/node_modules/.bin/nopt.cmd | 0 {windows/bin => bin}/node_modules/.bin/shjs | 0 .../bin => bin}/node_modules/.bin/shjs.cmd | 0 .../node_modules/node-uuid/.npmignore | 0 .../node_modules/node-uuid/LICENSE.md | 0 .../node_modules/node-uuid/README.md | 0 .../node_modules/node-uuid/component.json | 0 .../node_modules/node-uuid/package.json | 0 .../node_modules/node-uuid/uuid.js | 0 .../bin => bin}/node_modules/nopt/.npmignore | 0 .../bin => bin}/node_modules/nopt/LICENSE | 0 .../bin => bin}/node_modules/nopt/README.md | 0 .../bin => bin}/node_modules/nopt/bin/nopt.js | 0 .../node_modules/nopt/examples/my-program.js | 0 .../bin => bin}/node_modules/nopt/lib/nopt.js | 0 .../nopt/node_modules/abbrev/CONTRIBUTING.md | 0 .../nopt/node_modules/abbrev/LICENSE | 0 .../nopt/node_modules/abbrev/README.md | 0 .../nopt/node_modules/abbrev/abbrev.js | 0 .../nopt/node_modules/abbrev/package.json | 0 .../nopt/node_modules/abbrev/test.js | 0 .../node_modules/nopt/package.json | 0 .../node_modules/nopt/test/basic.js | 0 .../node_modules/q/CONTRIBUTING.md | 0 {windows/bin => bin}/node_modules/q/LICENSE | 0 {windows/bin => bin}/node_modules/q/README.md | 0 .../q/benchmark/compare-with-callbacks.js | 0 .../node_modules/q/benchmark/scenarios.js | 0 .../bin => bin}/node_modules/q/package.json | 0 {windows/bin => bin}/node_modules/q/q.js | 0 {windows/bin => bin}/node_modules/q/queue.js | 0 .../node_modules/shelljs/.documentup.json | 0 .../node_modules/shelljs/.jshintrc | 0 .../node_modules/shelljs/.npmignore | 0 .../node_modules/shelljs/.travis.yml | 0 .../bin => bin}/node_modules/shelljs/LICENSE | 0 .../node_modules/shelljs/README.md | 0 .../bin => bin}/node_modules/shelljs/bin/shjs | 0 .../node_modules/shelljs/global.js | 0 .../bin => bin}/node_modules/shelljs/make.js | 0 .../node_modules/shelljs/package.json | 0 .../shelljs/scripts/generate-docs.js | 0 .../node_modules/shelljs/scripts/run-tests.js | 0 .../bin => bin}/node_modules/shelljs/shell.js | 0 .../node_modules/shelljs/src/cat.js | 0 .../node_modules/shelljs/src/cd.js | 0 .../node_modules/shelljs/src/chmod.js | 0 .../node_modules/shelljs/src/common.js | 0 .../node_modules/shelljs/src/cp.js | 0 .../node_modules/shelljs/src/dirs.js | 0 .../node_modules/shelljs/src/echo.js | 0 .../node_modules/shelljs/src/error.js | 0 .../node_modules/shelljs/src/exec.js | 0 .../node_modules/shelljs/src/find.js | 0 .../node_modules/shelljs/src/grep.js | 0 .../node_modules/shelljs/src/ln.js | 0 .../node_modules/shelljs/src/ls.js | 0 .../node_modules/shelljs/src/mkdir.js | 0 .../node_modules/shelljs/src/mv.js | 0 .../node_modules/shelljs/src/popd.js | 0 .../node_modules/shelljs/src/pushd.js | 0 .../node_modules/shelljs/src/pwd.js | 0 .../node_modules/shelljs/src/rm.js | 0 .../node_modules/shelljs/src/sed.js | 0 .../node_modules/shelljs/src/tempdir.js | 0 .../node_modules/shelljs/src/test.js | 0 .../node_modules/shelljs/src/to.js | 0 .../node_modules/shelljs/src/toEnd.js | 0 .../node_modules/shelljs/src/which.js | 0 {windows/bin => bin}/update | 0 {windows/bin => bin}/update.bat | 0 windows/package.json => package.json | 0 .../CordovaApp.Phone.jsproj | 0 .../CordovaApp.Windows.jsproj | 0 .../CordovaApp.Windows80.jsproj | 0 .../CordovaApp.projitems | 0 .../template => template}/CordovaApp.shproj | 0 {windows/template => template}/CordovaApp.sln | 0 .../CordovaApp.vs2012.sln | 0 .../CordovaApp_TemporaryKey.pfx | Bin {windows/template => template}/config.xml | 0 {windows/template => template}/cordova/build | 0 .../template => template}/cordova/build.bat | 0 {windows/template => template}/cordova/clean | 0 .../template => template}/cordova/clean.bat | 0 .../cordova/lib/ConfigParser.js | 0 .../cordova/lib/MSBuildTools.js | 0 .../cordova/lib/WindowsStoreAppUtils.ps1 | 0 .../cordova/lib/build.js | 0 .../cordova/lib/clean.js | 0 .../template => template}/cordova/lib/exec.js | 0 .../cordova/lib/list-devices.bat | 0 .../cordova/lib/list-emulator-images.bat | 0 .../cordova/lib/list-started-emulators.bat | 0 .../cordova/lib/package.js | 0 .../cordova/lib/prepare.js | 0 .../template => template}/cordova/lib/run.js | 0 .../cordova/lib/spawn.js | 0 .../cordova/lib/utils.js | 0 .../template => template}/cordova/log.bat | 0 .../cordova/node_modules/.bin/nopt | 0 .../cordova/node_modules/.bin/nopt.cmd | 0 .../node_modules/elementtree/.npmignore | 0 .../node_modules/elementtree/.travis.yml | 0 .../node_modules/elementtree/CHANGES.md | 0 .../node_modules/elementtree/LICENSE.txt | 0 .../cordova/node_modules/elementtree/Makefile | 0 .../cordova/node_modules/elementtree/NOTICE | 0 .../node_modules/elementtree/README.md | 0 .../node_modules/elementtree/lib/constants.js | 0 .../elementtree/lib/elementpath.js | 0 .../elementtree/lib/elementtree.js | 0 .../node_modules/elementtree/lib/errors.js | 0 .../node_modules/elementtree/lib/parser.js | 0 .../elementtree/lib/parsers/index.js | 0 .../elementtree/lib/parsers/sax.js | 0 .../node_modules/elementtree/lib/sprintf.js | 0 .../elementtree/lib/treebuilder.js | 0 .../node_modules/elementtree/lib/utils.js | 0 .../elementtree/node_modules/sax/AUTHORS | 0 .../elementtree/node_modules/sax/LICENSE | 0 .../elementtree/node_modules/sax/README.md | 0 .../elementtree/node_modules/sax/lib/sax.js | 0 .../elementtree/node_modules/sax/package.json | 0 .../node_modules/elementtree/package.json | 0 .../cordova/node_modules/nopt/.npmignore | 0 .../cordova/node_modules/nopt/LICENSE | 0 .../cordova/node_modules/nopt/README.md | 0 .../cordova/node_modules/nopt/bin/nopt.js | 0 .../node_modules/nopt/examples/my-program.js | 0 .../cordova/node_modules/nopt/lib/nopt.js | 0 .../nopt/node_modules/abbrev/CONTRIBUTING.md | 0 .../nopt/node_modules/abbrev/LICENSE | 0 .../nopt/node_modules/abbrev/README.md | 0 .../nopt/node_modules/abbrev/abbrev.js | 0 .../nopt/node_modules/abbrev/package.json | 0 .../nopt/node_modules/abbrev/test.js | 0 .../cordova/node_modules/nopt/package.json | 0 .../cordova/node_modules/nopt/test/basic.js | 0 .../cordova/node_modules/q/CONTRIBUTING.md | 0 .../cordova/node_modules/q/LICENSE | 0 .../cordova/node_modules/q/README.md | 0 .../q/benchmark/compare-with-callbacks.js | 0 .../node_modules/q/benchmark/scenarios.js | 0 .../cordova/node_modules/q/package.json | 0 .../cordova/node_modules/q/q.js | 0 .../cordova/node_modules/q/queue.js | 0 .../node_modules/shelljs/.documentup.json | 0 .../cordova/node_modules/shelljs/.jshintrc | 0 .../cordova/node_modules/shelljs/.npmignore | 0 .../cordova/node_modules/shelljs/.travis.yml | 0 .../cordova/node_modules/shelljs/LICENSE | 0 .../cordova/node_modules/shelljs/README.md | 0 .../cordova/node_modules/shelljs/bin/shjs | 0 .../cordova/node_modules/shelljs/global.js | 0 .../cordova/node_modules/shelljs/make.js | 0 .../cordova/node_modules/shelljs/package.json | 0 .../shelljs/scripts/generate-docs.js | 0 .../node_modules/shelljs/scripts/run-tests.js | 0 .../cordova/node_modules/shelljs/shell.js | 0 .../cordova/node_modules/shelljs/src/cat.js | 0 .../cordova/node_modules/shelljs/src/cd.js | 0 .../cordova/node_modules/shelljs/src/chmod.js | 0 .../node_modules/shelljs/src/common.js | 0 .../cordova/node_modules/shelljs/src/cp.js | 0 .../cordova/node_modules/shelljs/src/dirs.js | 0 .../cordova/node_modules/shelljs/src/echo.js | 0 .../cordova/node_modules/shelljs/src/error.js | 0 .../cordova/node_modules/shelljs/src/exec.js | 0 .../cordova/node_modules/shelljs/src/find.js | 0 .../cordova/node_modules/shelljs/src/grep.js | 0 .../cordova/node_modules/shelljs/src/ln.js | 0 .../cordova/node_modules/shelljs/src/ls.js | 0 .../cordova/node_modules/shelljs/src/mkdir.js | 0 .../cordova/node_modules/shelljs/src/mv.js | 0 .../cordova/node_modules/shelljs/src/popd.js | 0 .../cordova/node_modules/shelljs/src/pushd.js | 0 .../cordova/node_modules/shelljs/src/pwd.js | 0 .../cordova/node_modules/shelljs/src/rm.js | 0 .../cordova/node_modules/shelljs/src/sed.js | 0 .../node_modules/shelljs/src/tempdir.js | 0 .../cordova/node_modules/shelljs/src/test.js | 0 .../cordova/node_modules/shelljs/src/to.js | 0 .../cordova/node_modules/shelljs/src/toEnd.js | 0 .../cordova/node_modules/shelljs/src/which.js | 0 {windows/template => template}/cordova/run | 0 .../template => template}/cordova/run.bat | 0 .../template => template}/cordova/version.bat | 0 .../images/SplashScreen.scale-100.png | Bin .../images/SplashScreenPhone.scale-240.png | Bin .../images/Square150x150Logo.scale-100.png | Bin .../images/Square150x150Logo.scale-240.png | Bin .../images/Square30x30Logo.scale-100.png | Bin .../images/Square310x310Logo.scale-100.png | Bin .../images/Square44x44Logo.scale-240.png | Bin .../images/Square70x70Logo.scale-100.png | Bin .../images/Square71x71Logo.scale-240.png | Bin .../images/StoreLogo.scale-100.png | Bin .../images/StoreLogo.scale-240.png | Bin .../images/Wide310x150Logo.scale-100.png | Bin .../images/Wide310x150Logo.scale-240.png | Bin .../package.phone.appxmanifest | 0 .../package.windows.appxmanifest | 0 .../package.windows80.appxmanifest | 0 {windows/template => template}/www/cordova.js | 3256 ++++++++--------- .../template => template}/www/css/index.css | 0 .../template => template}/www/img/logo.png | Bin .../www/img/smalllogo.png | Bin .../www/img/splashscreen.png | Bin .../www/img/storelogo.png | Bin {windows/template => template}/www/index.html | 0 .../template => template}/www/js/index.js | 0 windows/README.md | 109 - 224 files changed, 1629 insertions(+), 1739 deletions(-) rename windows/VERSION => VERSION (100%) rename {windows/bin => bin}/check_reqs (100%) rename {windows/bin => bin}/check_reqs.bat (100%) rename {windows/bin => bin}/create (100%) rename {windows/bin => bin}/create.bat (100%) rename {windows/bin => bin}/lib/check_reqs.js (100%) rename {windows/bin => bin}/lib/create.js (100%) rename {windows/bin => bin}/lib/update.js (100%) rename {windows/bin => bin}/node_modules/.bin/nopt (100%) rename {windows/bin => bin}/node_modules/.bin/nopt.cmd (100%) rename {windows/bin => bin}/node_modules/.bin/shjs (100%) rename {windows/bin => bin}/node_modules/.bin/shjs.cmd (100%) rename {windows/bin => bin}/node_modules/node-uuid/.npmignore (100%) rename {windows/bin => bin}/node_modules/node-uuid/LICENSE.md (100%) rename {windows/bin => bin}/node_modules/node-uuid/README.md (100%) rename {windows/bin => bin}/node_modules/node-uuid/component.json (100%) rename {windows/bin => bin}/node_modules/node-uuid/package.json (100%) rename {windows/bin => bin}/node_modules/node-uuid/uuid.js (100%) rename {windows/bin => bin}/node_modules/nopt/.npmignore (100%) rename {windows/bin => bin}/node_modules/nopt/LICENSE (100%) rename {windows/bin => bin}/node_modules/nopt/README.md (100%) rename {windows/bin => bin}/node_modules/nopt/bin/nopt.js (100%) rename {windows/bin => bin}/node_modules/nopt/examples/my-program.js (100%) rename {windows/bin => bin}/node_modules/nopt/lib/nopt.js (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/LICENSE (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/README.md (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/abbrev.js (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/package.json (100%) rename {windows/bin => bin}/node_modules/nopt/node_modules/abbrev/test.js (100%) rename {windows/bin => bin}/node_modules/nopt/package.json (100%) rename {windows/bin => bin}/node_modules/nopt/test/basic.js (100%) rename {windows/bin => bin}/node_modules/q/CONTRIBUTING.md (100%) rename {windows/bin => bin}/node_modules/q/LICENSE (100%) rename {windows/bin => bin}/node_modules/q/README.md (100%) rename {windows/bin => bin}/node_modules/q/benchmark/compare-with-callbacks.js (100%) rename {windows/bin => bin}/node_modules/q/benchmark/scenarios.js (100%) rename {windows/bin => bin}/node_modules/q/package.json (100%) rename {windows/bin => bin}/node_modules/q/q.js (100%) rename {windows/bin => bin}/node_modules/q/queue.js (100%) rename {windows/bin => bin}/node_modules/shelljs/.documentup.json (100%) rename {windows/bin => bin}/node_modules/shelljs/.jshintrc (100%) rename {windows/bin => bin}/node_modules/shelljs/.npmignore (100%) rename {windows/bin => bin}/node_modules/shelljs/.travis.yml (100%) rename {windows/bin => bin}/node_modules/shelljs/LICENSE (100%) rename {windows/bin => bin}/node_modules/shelljs/README.md (100%) rename {windows/bin => bin}/node_modules/shelljs/bin/shjs (100%) rename {windows/bin => bin}/node_modules/shelljs/global.js (100%) rename {windows/bin => bin}/node_modules/shelljs/make.js (100%) rename {windows/bin => bin}/node_modules/shelljs/package.json (100%) rename {windows/bin => bin}/node_modules/shelljs/scripts/generate-docs.js (100%) rename {windows/bin => bin}/node_modules/shelljs/scripts/run-tests.js (100%) rename {windows/bin => bin}/node_modules/shelljs/shell.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/cat.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/cd.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/chmod.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/common.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/cp.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/dirs.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/echo.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/error.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/exec.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/find.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/grep.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/ln.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/ls.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/mkdir.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/mv.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/popd.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/pushd.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/pwd.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/rm.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/sed.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/tempdir.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/test.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/to.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/toEnd.js (100%) rename {windows/bin => bin}/node_modules/shelljs/src/which.js (100%) rename {windows/bin => bin}/update (100%) rename {windows/bin => bin}/update.bat (100%) rename windows/package.json => package.json (100%) rename {windows/template => template}/CordovaApp.Phone.jsproj (100%) rename {windows/template => template}/CordovaApp.Windows.jsproj (100%) rename {windows/template => template}/CordovaApp.Windows80.jsproj (100%) rename {windows/template => template}/CordovaApp.projitems (100%) rename {windows/template => template}/CordovaApp.shproj (100%) rename {windows/template => template}/CordovaApp.sln (100%) rename {windows/template => template}/CordovaApp.vs2012.sln (100%) rename {windows/template => template}/CordovaApp_TemporaryKey.pfx (100%) rename {windows/template => template}/config.xml (100%) rename {windows/template => template}/cordova/build (100%) rename {windows/template => template}/cordova/build.bat (100%) rename {windows/template => template}/cordova/clean (100%) rename {windows/template => template}/cordova/clean.bat (100%) rename {windows/template => template}/cordova/lib/ConfigParser.js (100%) rename {windows/template => template}/cordova/lib/MSBuildTools.js (100%) rename {windows/template => template}/cordova/lib/WindowsStoreAppUtils.ps1 (100%) rename {windows/template => template}/cordova/lib/build.js (100%) rename {windows/template => template}/cordova/lib/clean.js (100%) rename {windows/template => template}/cordova/lib/exec.js (100%) rename {windows/template => template}/cordova/lib/list-devices.bat (100%) rename {windows/template => template}/cordova/lib/list-emulator-images.bat (100%) rename {windows/template => template}/cordova/lib/list-started-emulators.bat (100%) rename {windows/template => template}/cordova/lib/package.js (100%) rename {windows/template => template}/cordova/lib/prepare.js (100%) rename {windows/template => template}/cordova/lib/run.js (100%) rename {windows/template => template}/cordova/lib/spawn.js (100%) rename {windows/template => template}/cordova/lib/utils.js (100%) rename {windows/template => template}/cordova/log.bat (100%) rename {windows/template => template}/cordova/node_modules/.bin/nopt (100%) rename {windows/template => template}/cordova/node_modules/.bin/nopt.cmd (100%) rename {windows/template => template}/cordova/node_modules/elementtree/.npmignore (100%) rename {windows/template => template}/cordova/node_modules/elementtree/.travis.yml (100%) rename {windows/template => template}/cordova/node_modules/elementtree/CHANGES.md (100%) rename {windows/template => template}/cordova/node_modules/elementtree/LICENSE.txt (100%) rename {windows/template => template}/cordova/node_modules/elementtree/Makefile (100%) rename {windows/template => template}/cordova/node_modules/elementtree/NOTICE (100%) rename {windows/template => template}/cordova/node_modules/elementtree/README.md (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/constants.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/elementpath.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/elementtree.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/errors.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/parser.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/parsers/index.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/parsers/sax.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/sprintf.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/treebuilder.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/lib/utils.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/node_modules/sax/AUTHORS (100%) rename {windows/template => template}/cordova/node_modules/elementtree/node_modules/sax/LICENSE (100%) rename {windows/template => template}/cordova/node_modules/elementtree/node_modules/sax/README.md (100%) rename {windows/template => template}/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js (100%) rename {windows/template => template}/cordova/node_modules/elementtree/node_modules/sax/package.json (100%) rename {windows/template => template}/cordova/node_modules/elementtree/package.json (100%) rename {windows/template => template}/cordova/node_modules/nopt/.npmignore (100%) rename {windows/template => template}/cordova/node_modules/nopt/LICENSE (100%) rename {windows/template => template}/cordova/node_modules/nopt/README.md (100%) rename {windows/template => template}/cordova/node_modules/nopt/bin/nopt.js (100%) rename {windows/template => template}/cordova/node_modules/nopt/examples/my-program.js (100%) rename {windows/template => template}/cordova/node_modules/nopt/lib/nopt.js (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/LICENSE (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/README.md (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/package.json (100%) rename {windows/template => template}/cordova/node_modules/nopt/node_modules/abbrev/test.js (100%) rename {windows/template => template}/cordova/node_modules/nopt/package.json (100%) rename {windows/template => template}/cordova/node_modules/nopt/test/basic.js (100%) rename {windows/template => template}/cordova/node_modules/q/CONTRIBUTING.md (100%) rename {windows/template => template}/cordova/node_modules/q/LICENSE (100%) rename {windows/template => template}/cordova/node_modules/q/README.md (100%) rename {windows/template => template}/cordova/node_modules/q/benchmark/compare-with-callbacks.js (100%) rename {windows/template => template}/cordova/node_modules/q/benchmark/scenarios.js (100%) rename {windows/template => template}/cordova/node_modules/q/package.json (100%) rename {windows/template => template}/cordova/node_modules/q/q.js (100%) rename {windows/template => template}/cordova/node_modules/q/queue.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/.documentup.json (100%) rename {windows/template => template}/cordova/node_modules/shelljs/.jshintrc (100%) rename {windows/template => template}/cordova/node_modules/shelljs/.npmignore (100%) rename {windows/template => template}/cordova/node_modules/shelljs/.travis.yml (100%) rename {windows/template => template}/cordova/node_modules/shelljs/LICENSE (100%) rename {windows/template => template}/cordova/node_modules/shelljs/README.md (100%) rename {windows/template => template}/cordova/node_modules/shelljs/bin/shjs (100%) rename {windows/template => template}/cordova/node_modules/shelljs/global.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/make.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/package.json (100%) rename {windows/template => template}/cordova/node_modules/shelljs/scripts/generate-docs.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/scripts/run-tests.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/shell.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/cat.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/cd.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/chmod.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/common.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/cp.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/dirs.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/echo.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/error.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/exec.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/find.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/grep.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/ln.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/ls.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/mkdir.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/mv.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/popd.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/pushd.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/pwd.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/rm.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/sed.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/tempdir.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/test.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/to.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/toEnd.js (100%) rename {windows/template => template}/cordova/node_modules/shelljs/src/which.js (100%) rename {windows/template => template}/cordova/run (100%) rename {windows/template => template}/cordova/run.bat (100%) rename {windows/template => template}/cordova/version.bat (100%) rename {windows/template => template}/images/SplashScreen.scale-100.png (100%) rename {windows/template => template}/images/SplashScreenPhone.scale-240.png (100%) rename {windows/template => template}/images/Square150x150Logo.scale-100.png (100%) rename {windows/template => template}/images/Square150x150Logo.scale-240.png (100%) rename {windows/template => template}/images/Square30x30Logo.scale-100.png (100%) rename {windows/template => template}/images/Square310x310Logo.scale-100.png (100%) rename {windows/template => template}/images/Square44x44Logo.scale-240.png (100%) rename {windows/template => template}/images/Square70x70Logo.scale-100.png (100%) rename {windows/template => template}/images/Square71x71Logo.scale-240.png (100%) rename {windows/template => template}/images/StoreLogo.scale-100.png (100%) rename {windows/template => template}/images/StoreLogo.scale-240.png (100%) rename {windows/template => template}/images/Wide310x150Logo.scale-100.png (100%) rename {windows/template => template}/images/Wide310x150Logo.scale-240.png (100%) rename {windows/template => template}/package.phone.appxmanifest (100%) rename {windows/template => template}/package.windows.appxmanifest (100%) rename {windows/template => template}/package.windows80.appxmanifest (100%) rename {windows/template => template}/www/cordova.js (96%) rename {windows/template => template}/www/css/index.css (100%) rename {windows/template => template}/www/img/logo.png (100%) rename {windows/template => template}/www/img/smalllogo.png (100%) rename {windows/template => template}/www/img/splashscreen.png (100%) rename {windows/template => template}/www/img/storelogo.png (100%) rename {windows/template => template}/www/index.html (100%) rename {windows/template => template}/www/js/index.js (100%) delete mode 100644 windows/README.md diff --git a/.gitignore b/.gitignore index cc74062c..759486eb 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ Thumbs.db # Skip node_modules -windows/node_modules/ \ No newline at end of file +node_modules/ \ No newline at end of file diff --git a/windows/VERSION b/VERSION similarity index 100% rename from windows/VERSION rename to VERSION diff --git a/appveyor.yml b/appveyor.yml index b6035795..bf5b4422 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,6 @@ nodejs_version: 0.10 install: - - cd windows - npm install build: off diff --git a/windows/bin/check_reqs b/bin/check_reqs similarity index 100% rename from windows/bin/check_reqs rename to bin/check_reqs diff --git a/windows/bin/check_reqs.bat b/bin/check_reqs.bat similarity index 100% rename from windows/bin/check_reqs.bat rename to bin/check_reqs.bat diff --git a/windows/bin/create b/bin/create similarity index 100% rename from windows/bin/create rename to bin/create diff --git a/windows/bin/create.bat b/bin/create.bat similarity index 100% rename from windows/bin/create.bat rename to bin/create.bat diff --git a/windows/bin/lib/check_reqs.js b/bin/lib/check_reqs.js similarity index 100% rename from windows/bin/lib/check_reqs.js rename to bin/lib/check_reqs.js diff --git a/windows/bin/lib/create.js b/bin/lib/create.js similarity index 100% rename from windows/bin/lib/create.js rename to bin/lib/create.js diff --git a/windows/bin/lib/update.js b/bin/lib/update.js similarity index 100% rename from windows/bin/lib/update.js rename to bin/lib/update.js diff --git a/windows/bin/node_modules/.bin/nopt b/bin/node_modules/.bin/nopt similarity index 100% rename from windows/bin/node_modules/.bin/nopt rename to bin/node_modules/.bin/nopt diff --git a/windows/bin/node_modules/.bin/nopt.cmd b/bin/node_modules/.bin/nopt.cmd similarity index 100% rename from windows/bin/node_modules/.bin/nopt.cmd rename to bin/node_modules/.bin/nopt.cmd diff --git a/windows/bin/node_modules/.bin/shjs b/bin/node_modules/.bin/shjs similarity index 100% rename from windows/bin/node_modules/.bin/shjs rename to bin/node_modules/.bin/shjs diff --git a/windows/bin/node_modules/.bin/shjs.cmd b/bin/node_modules/.bin/shjs.cmd similarity index 100% rename from windows/bin/node_modules/.bin/shjs.cmd rename to bin/node_modules/.bin/shjs.cmd diff --git a/windows/bin/node_modules/node-uuid/.npmignore b/bin/node_modules/node-uuid/.npmignore similarity index 100% rename from windows/bin/node_modules/node-uuid/.npmignore rename to bin/node_modules/node-uuid/.npmignore diff --git a/windows/bin/node_modules/node-uuid/LICENSE.md b/bin/node_modules/node-uuid/LICENSE.md similarity index 100% rename from windows/bin/node_modules/node-uuid/LICENSE.md rename to bin/node_modules/node-uuid/LICENSE.md diff --git a/windows/bin/node_modules/node-uuid/README.md b/bin/node_modules/node-uuid/README.md similarity index 100% rename from windows/bin/node_modules/node-uuid/README.md rename to bin/node_modules/node-uuid/README.md diff --git a/windows/bin/node_modules/node-uuid/component.json b/bin/node_modules/node-uuid/component.json similarity index 100% rename from windows/bin/node_modules/node-uuid/component.json rename to bin/node_modules/node-uuid/component.json diff --git a/windows/bin/node_modules/node-uuid/package.json b/bin/node_modules/node-uuid/package.json similarity index 100% rename from windows/bin/node_modules/node-uuid/package.json rename to bin/node_modules/node-uuid/package.json diff --git a/windows/bin/node_modules/node-uuid/uuid.js b/bin/node_modules/node-uuid/uuid.js similarity index 100% rename from windows/bin/node_modules/node-uuid/uuid.js rename to bin/node_modules/node-uuid/uuid.js diff --git a/windows/bin/node_modules/nopt/.npmignore b/bin/node_modules/nopt/.npmignore similarity index 100% rename from windows/bin/node_modules/nopt/.npmignore rename to bin/node_modules/nopt/.npmignore diff --git a/windows/bin/node_modules/nopt/LICENSE b/bin/node_modules/nopt/LICENSE similarity index 100% rename from windows/bin/node_modules/nopt/LICENSE rename to bin/node_modules/nopt/LICENSE diff --git a/windows/bin/node_modules/nopt/README.md b/bin/node_modules/nopt/README.md similarity index 100% rename from windows/bin/node_modules/nopt/README.md rename to bin/node_modules/nopt/README.md diff --git a/windows/bin/node_modules/nopt/bin/nopt.js b/bin/node_modules/nopt/bin/nopt.js similarity index 100% rename from windows/bin/node_modules/nopt/bin/nopt.js rename to bin/node_modules/nopt/bin/nopt.js diff --git a/windows/bin/node_modules/nopt/examples/my-program.js b/bin/node_modules/nopt/examples/my-program.js similarity index 100% rename from windows/bin/node_modules/nopt/examples/my-program.js rename to bin/node_modules/nopt/examples/my-program.js diff --git a/windows/bin/node_modules/nopt/lib/nopt.js b/bin/node_modules/nopt/lib/nopt.js similarity index 100% rename from windows/bin/node_modules/nopt/lib/nopt.js rename to bin/node_modules/nopt/lib/nopt.js diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md b/bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md rename to bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/LICENSE b/bin/node_modules/nopt/node_modules/abbrev/LICENSE similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/LICENSE rename to bin/node_modules/nopt/node_modules/abbrev/LICENSE diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/README.md b/bin/node_modules/nopt/node_modules/abbrev/README.md similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/README.md rename to bin/node_modules/nopt/node_modules/abbrev/README.md diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/abbrev.js b/bin/node_modules/nopt/node_modules/abbrev/abbrev.js similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/abbrev.js rename to bin/node_modules/nopt/node_modules/abbrev/abbrev.js diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/package.json b/bin/node_modules/nopt/node_modules/abbrev/package.json similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/package.json rename to bin/node_modules/nopt/node_modules/abbrev/package.json diff --git a/windows/bin/node_modules/nopt/node_modules/abbrev/test.js b/bin/node_modules/nopt/node_modules/abbrev/test.js similarity index 100% rename from windows/bin/node_modules/nopt/node_modules/abbrev/test.js rename to bin/node_modules/nopt/node_modules/abbrev/test.js diff --git a/windows/bin/node_modules/nopt/package.json b/bin/node_modules/nopt/package.json similarity index 100% rename from windows/bin/node_modules/nopt/package.json rename to bin/node_modules/nopt/package.json diff --git a/windows/bin/node_modules/nopt/test/basic.js b/bin/node_modules/nopt/test/basic.js similarity index 100% rename from windows/bin/node_modules/nopt/test/basic.js rename to bin/node_modules/nopt/test/basic.js diff --git a/windows/bin/node_modules/q/CONTRIBUTING.md b/bin/node_modules/q/CONTRIBUTING.md similarity index 100% rename from windows/bin/node_modules/q/CONTRIBUTING.md rename to bin/node_modules/q/CONTRIBUTING.md diff --git a/windows/bin/node_modules/q/LICENSE b/bin/node_modules/q/LICENSE similarity index 100% rename from windows/bin/node_modules/q/LICENSE rename to bin/node_modules/q/LICENSE diff --git a/windows/bin/node_modules/q/README.md b/bin/node_modules/q/README.md similarity index 100% rename from windows/bin/node_modules/q/README.md rename to bin/node_modules/q/README.md diff --git a/windows/bin/node_modules/q/benchmark/compare-with-callbacks.js b/bin/node_modules/q/benchmark/compare-with-callbacks.js similarity index 100% rename from windows/bin/node_modules/q/benchmark/compare-with-callbacks.js rename to bin/node_modules/q/benchmark/compare-with-callbacks.js diff --git a/windows/bin/node_modules/q/benchmark/scenarios.js b/bin/node_modules/q/benchmark/scenarios.js similarity index 100% rename from windows/bin/node_modules/q/benchmark/scenarios.js rename to bin/node_modules/q/benchmark/scenarios.js diff --git a/windows/bin/node_modules/q/package.json b/bin/node_modules/q/package.json similarity index 100% rename from windows/bin/node_modules/q/package.json rename to bin/node_modules/q/package.json diff --git a/windows/bin/node_modules/q/q.js b/bin/node_modules/q/q.js similarity index 100% rename from windows/bin/node_modules/q/q.js rename to bin/node_modules/q/q.js diff --git a/windows/bin/node_modules/q/queue.js b/bin/node_modules/q/queue.js similarity index 100% rename from windows/bin/node_modules/q/queue.js rename to bin/node_modules/q/queue.js diff --git a/windows/bin/node_modules/shelljs/.documentup.json b/bin/node_modules/shelljs/.documentup.json similarity index 100% rename from windows/bin/node_modules/shelljs/.documentup.json rename to bin/node_modules/shelljs/.documentup.json diff --git a/windows/bin/node_modules/shelljs/.jshintrc b/bin/node_modules/shelljs/.jshintrc similarity index 100% rename from windows/bin/node_modules/shelljs/.jshintrc rename to bin/node_modules/shelljs/.jshintrc diff --git a/windows/bin/node_modules/shelljs/.npmignore b/bin/node_modules/shelljs/.npmignore similarity index 100% rename from windows/bin/node_modules/shelljs/.npmignore rename to bin/node_modules/shelljs/.npmignore diff --git a/windows/bin/node_modules/shelljs/.travis.yml b/bin/node_modules/shelljs/.travis.yml similarity index 100% rename from windows/bin/node_modules/shelljs/.travis.yml rename to bin/node_modules/shelljs/.travis.yml diff --git a/windows/bin/node_modules/shelljs/LICENSE b/bin/node_modules/shelljs/LICENSE similarity index 100% rename from windows/bin/node_modules/shelljs/LICENSE rename to bin/node_modules/shelljs/LICENSE diff --git a/windows/bin/node_modules/shelljs/README.md b/bin/node_modules/shelljs/README.md similarity index 100% rename from windows/bin/node_modules/shelljs/README.md rename to bin/node_modules/shelljs/README.md diff --git a/windows/bin/node_modules/shelljs/bin/shjs b/bin/node_modules/shelljs/bin/shjs similarity index 100% rename from windows/bin/node_modules/shelljs/bin/shjs rename to bin/node_modules/shelljs/bin/shjs diff --git a/windows/bin/node_modules/shelljs/global.js b/bin/node_modules/shelljs/global.js similarity index 100% rename from windows/bin/node_modules/shelljs/global.js rename to bin/node_modules/shelljs/global.js diff --git a/windows/bin/node_modules/shelljs/make.js b/bin/node_modules/shelljs/make.js similarity index 100% rename from windows/bin/node_modules/shelljs/make.js rename to bin/node_modules/shelljs/make.js diff --git a/windows/bin/node_modules/shelljs/package.json b/bin/node_modules/shelljs/package.json similarity index 100% rename from windows/bin/node_modules/shelljs/package.json rename to bin/node_modules/shelljs/package.json diff --git a/windows/bin/node_modules/shelljs/scripts/generate-docs.js b/bin/node_modules/shelljs/scripts/generate-docs.js similarity index 100% rename from windows/bin/node_modules/shelljs/scripts/generate-docs.js rename to bin/node_modules/shelljs/scripts/generate-docs.js diff --git a/windows/bin/node_modules/shelljs/scripts/run-tests.js b/bin/node_modules/shelljs/scripts/run-tests.js similarity index 100% rename from windows/bin/node_modules/shelljs/scripts/run-tests.js rename to bin/node_modules/shelljs/scripts/run-tests.js diff --git a/windows/bin/node_modules/shelljs/shell.js b/bin/node_modules/shelljs/shell.js similarity index 100% rename from windows/bin/node_modules/shelljs/shell.js rename to bin/node_modules/shelljs/shell.js diff --git a/windows/bin/node_modules/shelljs/src/cat.js b/bin/node_modules/shelljs/src/cat.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/cat.js rename to bin/node_modules/shelljs/src/cat.js diff --git a/windows/bin/node_modules/shelljs/src/cd.js b/bin/node_modules/shelljs/src/cd.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/cd.js rename to bin/node_modules/shelljs/src/cd.js diff --git a/windows/bin/node_modules/shelljs/src/chmod.js b/bin/node_modules/shelljs/src/chmod.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/chmod.js rename to bin/node_modules/shelljs/src/chmod.js diff --git a/windows/bin/node_modules/shelljs/src/common.js b/bin/node_modules/shelljs/src/common.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/common.js rename to bin/node_modules/shelljs/src/common.js diff --git a/windows/bin/node_modules/shelljs/src/cp.js b/bin/node_modules/shelljs/src/cp.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/cp.js rename to bin/node_modules/shelljs/src/cp.js diff --git a/windows/bin/node_modules/shelljs/src/dirs.js b/bin/node_modules/shelljs/src/dirs.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/dirs.js rename to bin/node_modules/shelljs/src/dirs.js diff --git a/windows/bin/node_modules/shelljs/src/echo.js b/bin/node_modules/shelljs/src/echo.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/echo.js rename to bin/node_modules/shelljs/src/echo.js diff --git a/windows/bin/node_modules/shelljs/src/error.js b/bin/node_modules/shelljs/src/error.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/error.js rename to bin/node_modules/shelljs/src/error.js diff --git a/windows/bin/node_modules/shelljs/src/exec.js b/bin/node_modules/shelljs/src/exec.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/exec.js rename to bin/node_modules/shelljs/src/exec.js diff --git a/windows/bin/node_modules/shelljs/src/find.js b/bin/node_modules/shelljs/src/find.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/find.js rename to bin/node_modules/shelljs/src/find.js diff --git a/windows/bin/node_modules/shelljs/src/grep.js b/bin/node_modules/shelljs/src/grep.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/grep.js rename to bin/node_modules/shelljs/src/grep.js diff --git a/windows/bin/node_modules/shelljs/src/ln.js b/bin/node_modules/shelljs/src/ln.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/ln.js rename to bin/node_modules/shelljs/src/ln.js diff --git a/windows/bin/node_modules/shelljs/src/ls.js b/bin/node_modules/shelljs/src/ls.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/ls.js rename to bin/node_modules/shelljs/src/ls.js diff --git a/windows/bin/node_modules/shelljs/src/mkdir.js b/bin/node_modules/shelljs/src/mkdir.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/mkdir.js rename to bin/node_modules/shelljs/src/mkdir.js diff --git a/windows/bin/node_modules/shelljs/src/mv.js b/bin/node_modules/shelljs/src/mv.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/mv.js rename to bin/node_modules/shelljs/src/mv.js diff --git a/windows/bin/node_modules/shelljs/src/popd.js b/bin/node_modules/shelljs/src/popd.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/popd.js rename to bin/node_modules/shelljs/src/popd.js diff --git a/windows/bin/node_modules/shelljs/src/pushd.js b/bin/node_modules/shelljs/src/pushd.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/pushd.js rename to bin/node_modules/shelljs/src/pushd.js diff --git a/windows/bin/node_modules/shelljs/src/pwd.js b/bin/node_modules/shelljs/src/pwd.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/pwd.js rename to bin/node_modules/shelljs/src/pwd.js diff --git a/windows/bin/node_modules/shelljs/src/rm.js b/bin/node_modules/shelljs/src/rm.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/rm.js rename to bin/node_modules/shelljs/src/rm.js diff --git a/windows/bin/node_modules/shelljs/src/sed.js b/bin/node_modules/shelljs/src/sed.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/sed.js rename to bin/node_modules/shelljs/src/sed.js diff --git a/windows/bin/node_modules/shelljs/src/tempdir.js b/bin/node_modules/shelljs/src/tempdir.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/tempdir.js rename to bin/node_modules/shelljs/src/tempdir.js diff --git a/windows/bin/node_modules/shelljs/src/test.js b/bin/node_modules/shelljs/src/test.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/test.js rename to bin/node_modules/shelljs/src/test.js diff --git a/windows/bin/node_modules/shelljs/src/to.js b/bin/node_modules/shelljs/src/to.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/to.js rename to bin/node_modules/shelljs/src/to.js diff --git a/windows/bin/node_modules/shelljs/src/toEnd.js b/bin/node_modules/shelljs/src/toEnd.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/toEnd.js rename to bin/node_modules/shelljs/src/toEnd.js diff --git a/windows/bin/node_modules/shelljs/src/which.js b/bin/node_modules/shelljs/src/which.js similarity index 100% rename from windows/bin/node_modules/shelljs/src/which.js rename to bin/node_modules/shelljs/src/which.js diff --git a/windows/bin/update b/bin/update similarity index 100% rename from windows/bin/update rename to bin/update diff --git a/windows/bin/update.bat b/bin/update.bat similarity index 100% rename from windows/bin/update.bat rename to bin/update.bat diff --git a/windows/package.json b/package.json similarity index 100% rename from windows/package.json rename to package.json diff --git a/windows/template/CordovaApp.Phone.jsproj b/template/CordovaApp.Phone.jsproj similarity index 100% rename from windows/template/CordovaApp.Phone.jsproj rename to template/CordovaApp.Phone.jsproj diff --git a/windows/template/CordovaApp.Windows.jsproj b/template/CordovaApp.Windows.jsproj similarity index 100% rename from windows/template/CordovaApp.Windows.jsproj rename to template/CordovaApp.Windows.jsproj diff --git a/windows/template/CordovaApp.Windows80.jsproj b/template/CordovaApp.Windows80.jsproj similarity index 100% rename from windows/template/CordovaApp.Windows80.jsproj rename to template/CordovaApp.Windows80.jsproj diff --git a/windows/template/CordovaApp.projitems b/template/CordovaApp.projitems similarity index 100% rename from windows/template/CordovaApp.projitems rename to template/CordovaApp.projitems diff --git a/windows/template/CordovaApp.shproj b/template/CordovaApp.shproj similarity index 100% rename from windows/template/CordovaApp.shproj rename to template/CordovaApp.shproj diff --git a/windows/template/CordovaApp.sln b/template/CordovaApp.sln similarity index 100% rename from windows/template/CordovaApp.sln rename to template/CordovaApp.sln diff --git a/windows/template/CordovaApp.vs2012.sln b/template/CordovaApp.vs2012.sln similarity index 100% rename from windows/template/CordovaApp.vs2012.sln rename to template/CordovaApp.vs2012.sln diff --git a/windows/template/CordovaApp_TemporaryKey.pfx b/template/CordovaApp_TemporaryKey.pfx similarity index 100% rename from windows/template/CordovaApp_TemporaryKey.pfx rename to template/CordovaApp_TemporaryKey.pfx diff --git a/windows/template/config.xml b/template/config.xml similarity index 100% rename from windows/template/config.xml rename to template/config.xml diff --git a/windows/template/cordova/build b/template/cordova/build similarity index 100% rename from windows/template/cordova/build rename to template/cordova/build diff --git a/windows/template/cordova/build.bat b/template/cordova/build.bat similarity index 100% rename from windows/template/cordova/build.bat rename to template/cordova/build.bat diff --git a/windows/template/cordova/clean b/template/cordova/clean similarity index 100% rename from windows/template/cordova/clean rename to template/cordova/clean diff --git a/windows/template/cordova/clean.bat b/template/cordova/clean.bat similarity index 100% rename from windows/template/cordova/clean.bat rename to template/cordova/clean.bat diff --git a/windows/template/cordova/lib/ConfigParser.js b/template/cordova/lib/ConfigParser.js similarity index 100% rename from windows/template/cordova/lib/ConfigParser.js rename to template/cordova/lib/ConfigParser.js diff --git a/windows/template/cordova/lib/MSBuildTools.js b/template/cordova/lib/MSBuildTools.js similarity index 100% rename from windows/template/cordova/lib/MSBuildTools.js rename to template/cordova/lib/MSBuildTools.js diff --git a/windows/template/cordova/lib/WindowsStoreAppUtils.ps1 b/template/cordova/lib/WindowsStoreAppUtils.ps1 similarity index 100% rename from windows/template/cordova/lib/WindowsStoreAppUtils.ps1 rename to template/cordova/lib/WindowsStoreAppUtils.ps1 diff --git a/windows/template/cordova/lib/build.js b/template/cordova/lib/build.js similarity index 100% rename from windows/template/cordova/lib/build.js rename to template/cordova/lib/build.js diff --git a/windows/template/cordova/lib/clean.js b/template/cordova/lib/clean.js similarity index 100% rename from windows/template/cordova/lib/clean.js rename to template/cordova/lib/clean.js diff --git a/windows/template/cordova/lib/exec.js b/template/cordova/lib/exec.js similarity index 100% rename from windows/template/cordova/lib/exec.js rename to template/cordova/lib/exec.js diff --git a/windows/template/cordova/lib/list-devices.bat b/template/cordova/lib/list-devices.bat similarity index 100% rename from windows/template/cordova/lib/list-devices.bat rename to template/cordova/lib/list-devices.bat diff --git a/windows/template/cordova/lib/list-emulator-images.bat b/template/cordova/lib/list-emulator-images.bat similarity index 100% rename from windows/template/cordova/lib/list-emulator-images.bat rename to template/cordova/lib/list-emulator-images.bat diff --git a/windows/template/cordova/lib/list-started-emulators.bat b/template/cordova/lib/list-started-emulators.bat similarity index 100% rename from windows/template/cordova/lib/list-started-emulators.bat rename to template/cordova/lib/list-started-emulators.bat diff --git a/windows/template/cordova/lib/package.js b/template/cordova/lib/package.js similarity index 100% rename from windows/template/cordova/lib/package.js rename to template/cordova/lib/package.js diff --git a/windows/template/cordova/lib/prepare.js b/template/cordova/lib/prepare.js similarity index 100% rename from windows/template/cordova/lib/prepare.js rename to template/cordova/lib/prepare.js diff --git a/windows/template/cordova/lib/run.js b/template/cordova/lib/run.js similarity index 100% rename from windows/template/cordova/lib/run.js rename to template/cordova/lib/run.js diff --git a/windows/template/cordova/lib/spawn.js b/template/cordova/lib/spawn.js similarity index 100% rename from windows/template/cordova/lib/spawn.js rename to template/cordova/lib/spawn.js diff --git a/windows/template/cordova/lib/utils.js b/template/cordova/lib/utils.js similarity index 100% rename from windows/template/cordova/lib/utils.js rename to template/cordova/lib/utils.js diff --git a/windows/template/cordova/log.bat b/template/cordova/log.bat similarity index 100% rename from windows/template/cordova/log.bat rename to template/cordova/log.bat diff --git a/windows/template/cordova/node_modules/.bin/nopt b/template/cordova/node_modules/.bin/nopt similarity index 100% rename from windows/template/cordova/node_modules/.bin/nopt rename to template/cordova/node_modules/.bin/nopt diff --git a/windows/template/cordova/node_modules/.bin/nopt.cmd b/template/cordova/node_modules/.bin/nopt.cmd similarity index 100% rename from windows/template/cordova/node_modules/.bin/nopt.cmd rename to template/cordova/node_modules/.bin/nopt.cmd diff --git a/windows/template/cordova/node_modules/elementtree/.npmignore b/template/cordova/node_modules/elementtree/.npmignore similarity index 100% rename from windows/template/cordova/node_modules/elementtree/.npmignore rename to template/cordova/node_modules/elementtree/.npmignore diff --git a/windows/template/cordova/node_modules/elementtree/.travis.yml b/template/cordova/node_modules/elementtree/.travis.yml similarity index 100% rename from windows/template/cordova/node_modules/elementtree/.travis.yml rename to template/cordova/node_modules/elementtree/.travis.yml diff --git a/windows/template/cordova/node_modules/elementtree/CHANGES.md b/template/cordova/node_modules/elementtree/CHANGES.md similarity index 100% rename from windows/template/cordova/node_modules/elementtree/CHANGES.md rename to template/cordova/node_modules/elementtree/CHANGES.md diff --git a/windows/template/cordova/node_modules/elementtree/LICENSE.txt b/template/cordova/node_modules/elementtree/LICENSE.txt similarity index 100% rename from windows/template/cordova/node_modules/elementtree/LICENSE.txt rename to template/cordova/node_modules/elementtree/LICENSE.txt diff --git a/windows/template/cordova/node_modules/elementtree/Makefile b/template/cordova/node_modules/elementtree/Makefile similarity index 100% rename from windows/template/cordova/node_modules/elementtree/Makefile rename to template/cordova/node_modules/elementtree/Makefile diff --git a/windows/template/cordova/node_modules/elementtree/NOTICE b/template/cordova/node_modules/elementtree/NOTICE similarity index 100% rename from windows/template/cordova/node_modules/elementtree/NOTICE rename to template/cordova/node_modules/elementtree/NOTICE diff --git a/windows/template/cordova/node_modules/elementtree/README.md b/template/cordova/node_modules/elementtree/README.md similarity index 100% rename from windows/template/cordova/node_modules/elementtree/README.md rename to template/cordova/node_modules/elementtree/README.md diff --git a/windows/template/cordova/node_modules/elementtree/lib/constants.js b/template/cordova/node_modules/elementtree/lib/constants.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/constants.js rename to template/cordova/node_modules/elementtree/lib/constants.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/elementpath.js b/template/cordova/node_modules/elementtree/lib/elementpath.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/elementpath.js rename to template/cordova/node_modules/elementtree/lib/elementpath.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/elementtree.js b/template/cordova/node_modules/elementtree/lib/elementtree.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/elementtree.js rename to template/cordova/node_modules/elementtree/lib/elementtree.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/errors.js b/template/cordova/node_modules/elementtree/lib/errors.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/errors.js rename to template/cordova/node_modules/elementtree/lib/errors.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/parser.js b/template/cordova/node_modules/elementtree/lib/parser.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/parser.js rename to template/cordova/node_modules/elementtree/lib/parser.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/parsers/index.js b/template/cordova/node_modules/elementtree/lib/parsers/index.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/parsers/index.js rename to template/cordova/node_modules/elementtree/lib/parsers/index.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/parsers/sax.js b/template/cordova/node_modules/elementtree/lib/parsers/sax.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/parsers/sax.js rename to template/cordova/node_modules/elementtree/lib/parsers/sax.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/sprintf.js b/template/cordova/node_modules/elementtree/lib/sprintf.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/sprintf.js rename to template/cordova/node_modules/elementtree/lib/sprintf.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/treebuilder.js b/template/cordova/node_modules/elementtree/lib/treebuilder.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/treebuilder.js rename to template/cordova/node_modules/elementtree/lib/treebuilder.js diff --git a/windows/template/cordova/node_modules/elementtree/lib/utils.js b/template/cordova/node_modules/elementtree/lib/utils.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/lib/utils.js rename to template/cordova/node_modules/elementtree/lib/utils.js diff --git a/windows/template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS b/template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS similarity index 100% rename from windows/template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS rename to template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS diff --git a/windows/template/cordova/node_modules/elementtree/node_modules/sax/LICENSE b/template/cordova/node_modules/elementtree/node_modules/sax/LICENSE similarity index 100% rename from windows/template/cordova/node_modules/elementtree/node_modules/sax/LICENSE rename to template/cordova/node_modules/elementtree/node_modules/sax/LICENSE diff --git a/windows/template/cordova/node_modules/elementtree/node_modules/sax/README.md b/template/cordova/node_modules/elementtree/node_modules/sax/README.md similarity index 100% rename from windows/template/cordova/node_modules/elementtree/node_modules/sax/README.md rename to template/cordova/node_modules/elementtree/node_modules/sax/README.md diff --git a/windows/template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js b/template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js similarity index 100% rename from windows/template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js rename to template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js diff --git a/windows/template/cordova/node_modules/elementtree/node_modules/sax/package.json b/template/cordova/node_modules/elementtree/node_modules/sax/package.json similarity index 100% rename from windows/template/cordova/node_modules/elementtree/node_modules/sax/package.json rename to template/cordova/node_modules/elementtree/node_modules/sax/package.json diff --git a/windows/template/cordova/node_modules/elementtree/package.json b/template/cordova/node_modules/elementtree/package.json similarity index 100% rename from windows/template/cordova/node_modules/elementtree/package.json rename to template/cordova/node_modules/elementtree/package.json diff --git a/windows/template/cordova/node_modules/nopt/.npmignore b/template/cordova/node_modules/nopt/.npmignore similarity index 100% rename from windows/template/cordova/node_modules/nopt/.npmignore rename to template/cordova/node_modules/nopt/.npmignore diff --git a/windows/template/cordova/node_modules/nopt/LICENSE b/template/cordova/node_modules/nopt/LICENSE similarity index 100% rename from windows/template/cordova/node_modules/nopt/LICENSE rename to template/cordova/node_modules/nopt/LICENSE diff --git a/windows/template/cordova/node_modules/nopt/README.md b/template/cordova/node_modules/nopt/README.md similarity index 100% rename from windows/template/cordova/node_modules/nopt/README.md rename to template/cordova/node_modules/nopt/README.md diff --git a/windows/template/cordova/node_modules/nopt/bin/nopt.js b/template/cordova/node_modules/nopt/bin/nopt.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/bin/nopt.js rename to template/cordova/node_modules/nopt/bin/nopt.js diff --git a/windows/template/cordova/node_modules/nopt/examples/my-program.js b/template/cordova/node_modules/nopt/examples/my-program.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/examples/my-program.js rename to template/cordova/node_modules/nopt/examples/my-program.js diff --git a/windows/template/cordova/node_modules/nopt/lib/nopt.js b/template/cordova/node_modules/nopt/lib/nopt.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/lib/nopt.js rename to template/cordova/node_modules/nopt/lib/nopt.js diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md b/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md rename to template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE b/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE rename to template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/README.md b/template/cordova/node_modules/nopt/node_modules/abbrev/README.md similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/README.md rename to template/cordova/node_modules/nopt/node_modules/abbrev/README.md diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js b/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js rename to template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/package.json b/template/cordova/node_modules/nopt/node_modules/abbrev/package.json similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/package.json rename to template/cordova/node_modules/nopt/node_modules/abbrev/package.json diff --git a/windows/template/cordova/node_modules/nopt/node_modules/abbrev/test.js b/template/cordova/node_modules/nopt/node_modules/abbrev/test.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/node_modules/abbrev/test.js rename to template/cordova/node_modules/nopt/node_modules/abbrev/test.js diff --git a/windows/template/cordova/node_modules/nopt/package.json b/template/cordova/node_modules/nopt/package.json similarity index 100% rename from windows/template/cordova/node_modules/nopt/package.json rename to template/cordova/node_modules/nopt/package.json diff --git a/windows/template/cordova/node_modules/nopt/test/basic.js b/template/cordova/node_modules/nopt/test/basic.js similarity index 100% rename from windows/template/cordova/node_modules/nopt/test/basic.js rename to template/cordova/node_modules/nopt/test/basic.js diff --git a/windows/template/cordova/node_modules/q/CONTRIBUTING.md b/template/cordova/node_modules/q/CONTRIBUTING.md similarity index 100% rename from windows/template/cordova/node_modules/q/CONTRIBUTING.md rename to template/cordova/node_modules/q/CONTRIBUTING.md diff --git a/windows/template/cordova/node_modules/q/LICENSE b/template/cordova/node_modules/q/LICENSE similarity index 100% rename from windows/template/cordova/node_modules/q/LICENSE rename to template/cordova/node_modules/q/LICENSE diff --git a/windows/template/cordova/node_modules/q/README.md b/template/cordova/node_modules/q/README.md similarity index 100% rename from windows/template/cordova/node_modules/q/README.md rename to template/cordova/node_modules/q/README.md diff --git a/windows/template/cordova/node_modules/q/benchmark/compare-with-callbacks.js b/template/cordova/node_modules/q/benchmark/compare-with-callbacks.js similarity index 100% rename from windows/template/cordova/node_modules/q/benchmark/compare-with-callbacks.js rename to template/cordova/node_modules/q/benchmark/compare-with-callbacks.js diff --git a/windows/template/cordova/node_modules/q/benchmark/scenarios.js b/template/cordova/node_modules/q/benchmark/scenarios.js similarity index 100% rename from windows/template/cordova/node_modules/q/benchmark/scenarios.js rename to template/cordova/node_modules/q/benchmark/scenarios.js diff --git a/windows/template/cordova/node_modules/q/package.json b/template/cordova/node_modules/q/package.json similarity index 100% rename from windows/template/cordova/node_modules/q/package.json rename to template/cordova/node_modules/q/package.json diff --git a/windows/template/cordova/node_modules/q/q.js b/template/cordova/node_modules/q/q.js similarity index 100% rename from windows/template/cordova/node_modules/q/q.js rename to template/cordova/node_modules/q/q.js diff --git a/windows/template/cordova/node_modules/q/queue.js b/template/cordova/node_modules/q/queue.js similarity index 100% rename from windows/template/cordova/node_modules/q/queue.js rename to template/cordova/node_modules/q/queue.js diff --git a/windows/template/cordova/node_modules/shelljs/.documentup.json b/template/cordova/node_modules/shelljs/.documentup.json similarity index 100% rename from windows/template/cordova/node_modules/shelljs/.documentup.json rename to template/cordova/node_modules/shelljs/.documentup.json diff --git a/windows/template/cordova/node_modules/shelljs/.jshintrc b/template/cordova/node_modules/shelljs/.jshintrc similarity index 100% rename from windows/template/cordova/node_modules/shelljs/.jshintrc rename to template/cordova/node_modules/shelljs/.jshintrc diff --git a/windows/template/cordova/node_modules/shelljs/.npmignore b/template/cordova/node_modules/shelljs/.npmignore similarity index 100% rename from windows/template/cordova/node_modules/shelljs/.npmignore rename to template/cordova/node_modules/shelljs/.npmignore diff --git a/windows/template/cordova/node_modules/shelljs/.travis.yml b/template/cordova/node_modules/shelljs/.travis.yml similarity index 100% rename from windows/template/cordova/node_modules/shelljs/.travis.yml rename to template/cordova/node_modules/shelljs/.travis.yml diff --git a/windows/template/cordova/node_modules/shelljs/LICENSE b/template/cordova/node_modules/shelljs/LICENSE similarity index 100% rename from windows/template/cordova/node_modules/shelljs/LICENSE rename to template/cordova/node_modules/shelljs/LICENSE diff --git a/windows/template/cordova/node_modules/shelljs/README.md b/template/cordova/node_modules/shelljs/README.md similarity index 100% rename from windows/template/cordova/node_modules/shelljs/README.md rename to template/cordova/node_modules/shelljs/README.md diff --git a/windows/template/cordova/node_modules/shelljs/bin/shjs b/template/cordova/node_modules/shelljs/bin/shjs similarity index 100% rename from windows/template/cordova/node_modules/shelljs/bin/shjs rename to template/cordova/node_modules/shelljs/bin/shjs diff --git a/windows/template/cordova/node_modules/shelljs/global.js b/template/cordova/node_modules/shelljs/global.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/global.js rename to template/cordova/node_modules/shelljs/global.js diff --git a/windows/template/cordova/node_modules/shelljs/make.js b/template/cordova/node_modules/shelljs/make.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/make.js rename to template/cordova/node_modules/shelljs/make.js diff --git a/windows/template/cordova/node_modules/shelljs/package.json b/template/cordova/node_modules/shelljs/package.json similarity index 100% rename from windows/template/cordova/node_modules/shelljs/package.json rename to template/cordova/node_modules/shelljs/package.json diff --git a/windows/template/cordova/node_modules/shelljs/scripts/generate-docs.js b/template/cordova/node_modules/shelljs/scripts/generate-docs.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/scripts/generate-docs.js rename to template/cordova/node_modules/shelljs/scripts/generate-docs.js diff --git a/windows/template/cordova/node_modules/shelljs/scripts/run-tests.js b/template/cordova/node_modules/shelljs/scripts/run-tests.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/scripts/run-tests.js rename to template/cordova/node_modules/shelljs/scripts/run-tests.js diff --git a/windows/template/cordova/node_modules/shelljs/shell.js b/template/cordova/node_modules/shelljs/shell.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/shell.js rename to template/cordova/node_modules/shelljs/shell.js diff --git a/windows/template/cordova/node_modules/shelljs/src/cat.js b/template/cordova/node_modules/shelljs/src/cat.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/cat.js rename to template/cordova/node_modules/shelljs/src/cat.js diff --git a/windows/template/cordova/node_modules/shelljs/src/cd.js b/template/cordova/node_modules/shelljs/src/cd.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/cd.js rename to template/cordova/node_modules/shelljs/src/cd.js diff --git a/windows/template/cordova/node_modules/shelljs/src/chmod.js b/template/cordova/node_modules/shelljs/src/chmod.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/chmod.js rename to template/cordova/node_modules/shelljs/src/chmod.js diff --git a/windows/template/cordova/node_modules/shelljs/src/common.js b/template/cordova/node_modules/shelljs/src/common.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/common.js rename to template/cordova/node_modules/shelljs/src/common.js diff --git a/windows/template/cordova/node_modules/shelljs/src/cp.js b/template/cordova/node_modules/shelljs/src/cp.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/cp.js rename to template/cordova/node_modules/shelljs/src/cp.js diff --git a/windows/template/cordova/node_modules/shelljs/src/dirs.js b/template/cordova/node_modules/shelljs/src/dirs.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/dirs.js rename to template/cordova/node_modules/shelljs/src/dirs.js diff --git a/windows/template/cordova/node_modules/shelljs/src/echo.js b/template/cordova/node_modules/shelljs/src/echo.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/echo.js rename to template/cordova/node_modules/shelljs/src/echo.js diff --git a/windows/template/cordova/node_modules/shelljs/src/error.js b/template/cordova/node_modules/shelljs/src/error.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/error.js rename to template/cordova/node_modules/shelljs/src/error.js diff --git a/windows/template/cordova/node_modules/shelljs/src/exec.js b/template/cordova/node_modules/shelljs/src/exec.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/exec.js rename to template/cordova/node_modules/shelljs/src/exec.js diff --git a/windows/template/cordova/node_modules/shelljs/src/find.js b/template/cordova/node_modules/shelljs/src/find.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/find.js rename to template/cordova/node_modules/shelljs/src/find.js diff --git a/windows/template/cordova/node_modules/shelljs/src/grep.js b/template/cordova/node_modules/shelljs/src/grep.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/grep.js rename to template/cordova/node_modules/shelljs/src/grep.js diff --git a/windows/template/cordova/node_modules/shelljs/src/ln.js b/template/cordova/node_modules/shelljs/src/ln.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/ln.js rename to template/cordova/node_modules/shelljs/src/ln.js diff --git a/windows/template/cordova/node_modules/shelljs/src/ls.js b/template/cordova/node_modules/shelljs/src/ls.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/ls.js rename to template/cordova/node_modules/shelljs/src/ls.js diff --git a/windows/template/cordova/node_modules/shelljs/src/mkdir.js b/template/cordova/node_modules/shelljs/src/mkdir.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/mkdir.js rename to template/cordova/node_modules/shelljs/src/mkdir.js diff --git a/windows/template/cordova/node_modules/shelljs/src/mv.js b/template/cordova/node_modules/shelljs/src/mv.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/mv.js rename to template/cordova/node_modules/shelljs/src/mv.js diff --git a/windows/template/cordova/node_modules/shelljs/src/popd.js b/template/cordova/node_modules/shelljs/src/popd.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/popd.js rename to template/cordova/node_modules/shelljs/src/popd.js diff --git a/windows/template/cordova/node_modules/shelljs/src/pushd.js b/template/cordova/node_modules/shelljs/src/pushd.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/pushd.js rename to template/cordova/node_modules/shelljs/src/pushd.js diff --git a/windows/template/cordova/node_modules/shelljs/src/pwd.js b/template/cordova/node_modules/shelljs/src/pwd.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/pwd.js rename to template/cordova/node_modules/shelljs/src/pwd.js diff --git a/windows/template/cordova/node_modules/shelljs/src/rm.js b/template/cordova/node_modules/shelljs/src/rm.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/rm.js rename to template/cordova/node_modules/shelljs/src/rm.js diff --git a/windows/template/cordova/node_modules/shelljs/src/sed.js b/template/cordova/node_modules/shelljs/src/sed.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/sed.js rename to template/cordova/node_modules/shelljs/src/sed.js diff --git a/windows/template/cordova/node_modules/shelljs/src/tempdir.js b/template/cordova/node_modules/shelljs/src/tempdir.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/tempdir.js rename to template/cordova/node_modules/shelljs/src/tempdir.js diff --git a/windows/template/cordova/node_modules/shelljs/src/test.js b/template/cordova/node_modules/shelljs/src/test.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/test.js rename to template/cordova/node_modules/shelljs/src/test.js diff --git a/windows/template/cordova/node_modules/shelljs/src/to.js b/template/cordova/node_modules/shelljs/src/to.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/to.js rename to template/cordova/node_modules/shelljs/src/to.js diff --git a/windows/template/cordova/node_modules/shelljs/src/toEnd.js b/template/cordova/node_modules/shelljs/src/toEnd.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/toEnd.js rename to template/cordova/node_modules/shelljs/src/toEnd.js diff --git a/windows/template/cordova/node_modules/shelljs/src/which.js b/template/cordova/node_modules/shelljs/src/which.js similarity index 100% rename from windows/template/cordova/node_modules/shelljs/src/which.js rename to template/cordova/node_modules/shelljs/src/which.js diff --git a/windows/template/cordova/run b/template/cordova/run similarity index 100% rename from windows/template/cordova/run rename to template/cordova/run diff --git a/windows/template/cordova/run.bat b/template/cordova/run.bat similarity index 100% rename from windows/template/cordova/run.bat rename to template/cordova/run.bat diff --git a/windows/template/cordova/version.bat b/template/cordova/version.bat similarity index 100% rename from windows/template/cordova/version.bat rename to template/cordova/version.bat diff --git a/windows/template/images/SplashScreen.scale-100.png b/template/images/SplashScreen.scale-100.png similarity index 100% rename from windows/template/images/SplashScreen.scale-100.png rename to template/images/SplashScreen.scale-100.png diff --git a/windows/template/images/SplashScreenPhone.scale-240.png b/template/images/SplashScreenPhone.scale-240.png similarity index 100% rename from windows/template/images/SplashScreenPhone.scale-240.png rename to template/images/SplashScreenPhone.scale-240.png diff --git a/windows/template/images/Square150x150Logo.scale-100.png b/template/images/Square150x150Logo.scale-100.png similarity index 100% rename from windows/template/images/Square150x150Logo.scale-100.png rename to template/images/Square150x150Logo.scale-100.png diff --git a/windows/template/images/Square150x150Logo.scale-240.png b/template/images/Square150x150Logo.scale-240.png similarity index 100% rename from windows/template/images/Square150x150Logo.scale-240.png rename to template/images/Square150x150Logo.scale-240.png diff --git a/windows/template/images/Square30x30Logo.scale-100.png b/template/images/Square30x30Logo.scale-100.png similarity index 100% rename from windows/template/images/Square30x30Logo.scale-100.png rename to template/images/Square30x30Logo.scale-100.png diff --git a/windows/template/images/Square310x310Logo.scale-100.png b/template/images/Square310x310Logo.scale-100.png similarity index 100% rename from windows/template/images/Square310x310Logo.scale-100.png rename to template/images/Square310x310Logo.scale-100.png diff --git a/windows/template/images/Square44x44Logo.scale-240.png b/template/images/Square44x44Logo.scale-240.png similarity index 100% rename from windows/template/images/Square44x44Logo.scale-240.png rename to template/images/Square44x44Logo.scale-240.png diff --git a/windows/template/images/Square70x70Logo.scale-100.png b/template/images/Square70x70Logo.scale-100.png similarity index 100% rename from windows/template/images/Square70x70Logo.scale-100.png rename to template/images/Square70x70Logo.scale-100.png diff --git a/windows/template/images/Square71x71Logo.scale-240.png b/template/images/Square71x71Logo.scale-240.png similarity index 100% rename from windows/template/images/Square71x71Logo.scale-240.png rename to template/images/Square71x71Logo.scale-240.png diff --git a/windows/template/images/StoreLogo.scale-100.png b/template/images/StoreLogo.scale-100.png similarity index 100% rename from windows/template/images/StoreLogo.scale-100.png rename to template/images/StoreLogo.scale-100.png diff --git a/windows/template/images/StoreLogo.scale-240.png b/template/images/StoreLogo.scale-240.png similarity index 100% rename from windows/template/images/StoreLogo.scale-240.png rename to template/images/StoreLogo.scale-240.png diff --git a/windows/template/images/Wide310x150Logo.scale-100.png b/template/images/Wide310x150Logo.scale-100.png similarity index 100% rename from windows/template/images/Wide310x150Logo.scale-100.png rename to template/images/Wide310x150Logo.scale-100.png diff --git a/windows/template/images/Wide310x150Logo.scale-240.png b/template/images/Wide310x150Logo.scale-240.png similarity index 100% rename from windows/template/images/Wide310x150Logo.scale-240.png rename to template/images/Wide310x150Logo.scale-240.png diff --git a/windows/template/package.phone.appxmanifest b/template/package.phone.appxmanifest similarity index 100% rename from windows/template/package.phone.appxmanifest rename to template/package.phone.appxmanifest diff --git a/windows/template/package.windows.appxmanifest b/template/package.windows.appxmanifest similarity index 100% rename from windows/template/package.windows.appxmanifest rename to template/package.windows.appxmanifest diff --git a/windows/template/package.windows80.appxmanifest b/template/package.windows80.appxmanifest similarity index 100% rename from windows/template/package.windows80.appxmanifest rename to template/package.windows80.appxmanifest diff --git a/windows/template/www/cordova.js b/template/www/cordova.js similarity index 96% rename from windows/template/www/cordova.js rename to template/www/cordova.js index 4cb40832..8b045603 100644 --- a/windows/template/www/cordova.js +++ b/template/www/cordova.js @@ -1,1629 +1,1629 @@ -// Platform: windows -// 8ca0f3b2b87e0759c5236b91c80f18438544409c -/* - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. -*/ -;(function() { -var PLATFORM_VERSION_BUILD_LABEL = '3.7.0-dev'; -// file: src/scripts/require.js - -/*jshint -W079 */ -/*jshint -W020 */ - -var require, - define; - -(function () { - var modules = {}, - // Stack of moduleIds currently being built. - requireStack = [], - // Map of module ID -> index into requireStack of modules currently being built. - inProgressModules = {}, - SEPARATOR = "."; - - - - function build(module) { - var factory = module.factory, - localRequire = function (id) { - var resultantId = id; - //Its a relative path, so lop off the last portion and add the id (minus "./") - if (id.charAt(0) === ".") { - resultantId = module.id.slice(0, module.id.lastIndexOf(SEPARATOR)) + SEPARATOR + id.slice(2); - } - return require(resultantId); - }; - module.exports = {}; - delete module.factory; - factory(localRequire, module.exports, module); - return module.exports; - } - - require = function (id) { - if (!modules[id]) { - throw "module " + id + " not found"; - } else if (id in inProgressModules) { - var cycle = requireStack.slice(inProgressModules[id]).join('->') + '->' + id; - throw "Cycle in require graph: " + cycle; - } - if (modules[id].factory) { - try { - inProgressModules[id] = requireStack.length; - requireStack.push(id); - return build(modules[id]); - } finally { - delete inProgressModules[id]; - requireStack.pop(); - } - } - return modules[id].exports; - }; - - define = function (id, factory) { - if (modules[id]) { - throw "module " + id + " already defined"; - } - - modules[id] = { - id: id, - factory: factory - }; - }; - - define.remove = function (id) { - delete modules[id]; - }; - - define.moduleMap = modules; -})(); - -//Export for use in node -if (typeof module === "object" && typeof require === "function") { - module.exports.require = require; - module.exports.define = define; -} - -// file: src/cordova.js -define("cordova", function(require, exports, module) { - - -var channel = require('cordova/channel'); -var platform = require('cordova/platform'); - -/** - * Intercept calls to addEventListener + removeEventListener and handle deviceready, - * resume, and pause events. - */ -var m_document_addEventListener = document.addEventListener; -var m_document_removeEventListener = document.removeEventListener; -var m_window_addEventListener = window.addEventListener; -var m_window_removeEventListener = window.removeEventListener; - -/** - * Houses custom event handlers to intercept on document + window event listeners. - */ -var documentEventHandlers = {}, - windowEventHandlers = {}; - -document.addEventListener = function(evt, handler, capture) { - var e = evt.toLowerCase(); - if (typeof documentEventHandlers[e] != 'undefined') { - documentEventHandlers[e].subscribe(handler); - } else { - m_document_addEventListener.call(document, evt, handler, capture); - } -}; - -window.addEventListener = function(evt, handler, capture) { - var e = evt.toLowerCase(); - if (typeof windowEventHandlers[e] != 'undefined') { - windowEventHandlers[e].subscribe(handler); - } else { - m_window_addEventListener.call(window, evt, handler, capture); - } -}; - -document.removeEventListener = function(evt, handler, capture) { - var e = evt.toLowerCase(); - // If unsubscribing from an event that is handled by a plugin - if (typeof documentEventHandlers[e] != "undefined") { - documentEventHandlers[e].unsubscribe(handler); - } else { - m_document_removeEventListener.call(document, evt, handler, capture); - } -}; - -window.removeEventListener = function(evt, handler, capture) { - var e = evt.toLowerCase(); - // If unsubscribing from an event that is handled by a plugin - if (typeof windowEventHandlers[e] != "undefined") { - windowEventHandlers[e].unsubscribe(handler); - } else { - m_window_removeEventListener.call(window, evt, handler, capture); - } -}; - -function createEvent(type, data) { - var event = document.createEvent('Events'); - event.initEvent(type, false, false); - if (data) { - for (var i in data) { - if (data.hasOwnProperty(i)) { - event[i] = data[i]; - } - } - } - return event; -} - - -var cordova = { - define:define, - require:require, - version:PLATFORM_VERSION_BUILD_LABEL, - platformVersion:PLATFORM_VERSION_BUILD_LABEL, - platformId:platform.id, - /** - * Methods to add/remove your own addEventListener hijacking on document + window. - */ - addWindowEventHandler:function(event) { - return (windowEventHandlers[event] = channel.create(event)); - }, - addStickyDocumentEventHandler:function(event) { - return (documentEventHandlers[event] = channel.createSticky(event)); - }, - addDocumentEventHandler:function(event) { - return (documentEventHandlers[event] = channel.create(event)); - }, - removeWindowEventHandler:function(event) { - delete windowEventHandlers[event]; - }, - removeDocumentEventHandler:function(event) { - delete documentEventHandlers[event]; - }, - /** - * Retrieve original event handlers that were replaced by Cordova - * - * @return object - */ - getOriginalHandlers: function() { - return {'document': {'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener}, - 'window': {'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener}}; - }, - /** - * Method to fire event from native code - * bNoDetach is required for events which cause an exception which needs to be caught in native code - */ - fireDocumentEvent: function(type, data, bNoDetach) { - var evt = createEvent(type, data); - if (typeof documentEventHandlers[type] != 'undefined') { - if( bNoDetach ) { - documentEventHandlers[type].fire(evt); - } - else { - setTimeout(function() { - // Fire deviceready on listeners that were registered before cordova.js was loaded. - if (type == 'deviceready') { - document.dispatchEvent(evt); - } - documentEventHandlers[type].fire(evt); - }, 0); - } - } else { - document.dispatchEvent(evt); - } - }, - fireWindowEvent: function(type, data) { - var evt = createEvent(type,data); - if (typeof windowEventHandlers[type] != 'undefined') { - setTimeout(function() { - windowEventHandlers[type].fire(evt); - }, 0); - } else { - window.dispatchEvent(evt); - } - }, - - /** - * Plugin callback mechanism. - */ - // Randomize the starting callbackId to avoid collisions after refreshing or navigating. - // This way, it's very unlikely that any new callback would get the same callbackId as an old callback. - callbackId: Math.floor(Math.random() * 2000000000), - callbacks: {}, - callbackStatus: { - NO_RESULT: 0, - OK: 1, - CLASS_NOT_FOUND_EXCEPTION: 2, - ILLEGAL_ACCESS_EXCEPTION: 3, - INSTANTIATION_EXCEPTION: 4, - MALFORMED_URL_EXCEPTION: 5, - IO_EXCEPTION: 6, - INVALID_ACTION: 7, - JSON_EXCEPTION: 8, - ERROR: 9 - }, - - /** - * Called by native code when returning successful result from an action. - */ - callbackSuccess: function(callbackId, args) { - try { - cordova.callbackFromNative(callbackId, true, args.status, [args.message], args.keepCallback); - } catch (e) { - console.log("Error in success callback: " + callbackId + " = "+e); - } - }, - - /** - * Called by native code when returning error result from an action. - */ - callbackError: function(callbackId, args) { - // TODO: Deprecate callbackSuccess and callbackError in favour of callbackFromNative. - // Derive success from status. - try { - cordova.callbackFromNative(callbackId, false, args.status, [args.message], args.keepCallback); - } catch (e) { - console.log("Error in error callback: " + callbackId + " = "+e); - } - }, - - /** - * Called by native code when returning the result from an action. - */ - callbackFromNative: function(callbackId, success, status, args, keepCallback) { - var callback = cordova.callbacks[callbackId]; - if (callback) { - if (success && status == cordova.callbackStatus.OK) { - callback.success && callback.success.apply(null, args); - } else if (!success) { - callback.fail && callback.fail.apply(null, args); - } - - // Clear callback if not expecting any more results - if (!keepCallback) { - delete cordova.callbacks[callbackId]; - } - } - }, - addConstructor: function(func) { - channel.onCordovaReady.subscribe(function() { - try { - func(); - } catch(e) { - console.log("Failed to run constructor: " + e); - } - }); - } -}; - - -module.exports = cordova; - -}); - -// file: src/common/argscheck.js -define("cordova/argscheck", function(require, exports, module) { - -var exec = require('cordova/exec'); -var utils = require('cordova/utils'); - -var moduleExports = module.exports; - -var typeMap = { - 'A': 'Array', - 'D': 'Date', - 'N': 'Number', - 'S': 'String', - 'F': 'Function', - 'O': 'Object' -}; - -function extractParamName(callee, argIndex) { - return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex]; -} - -function checkArgs(spec, functionName, args, opt_callee) { - if (!moduleExports.enableChecks) { - return; - } - var errMsg = null; - var typeName; - for (var i = 0; i < spec.length; ++i) { - var c = spec.charAt(i), - cUpper = c.toUpperCase(), - arg = args[i]; - // Asterix means allow anything. - if (c == '*') { - continue; - } - typeName = utils.typeName(arg); - if ((arg === null || arg === undefined) && c == cUpper) { - continue; - } - if (typeName != typeMap[cUpper]) { - errMsg = 'Expected ' + typeMap[cUpper]; - break; - } - } - if (errMsg) { - errMsg += ', but got ' + typeName + '.'; - errMsg = 'Wrong type for parameter "' + extractParamName(opt_callee || args.callee, i) + '" of ' + functionName + ': ' + errMsg; - // Don't log when running unit tests. - if (typeof jasmine == 'undefined') { - console.error(errMsg); - } - throw TypeError(errMsg); - } -} - -function getValue(value, defaultValue) { - return value === undefined ? defaultValue : value; -} - -moduleExports.checkArgs = checkArgs; -moduleExports.getValue = getValue; -moduleExports.enableChecks = true; - - -}); - -// file: src/common/base64.js -define("cordova/base64", function(require, exports, module) { - -var base64 = exports; - -base64.fromArrayBuffer = function(arrayBuffer) { - var array = new Uint8Array(arrayBuffer); - return uint8ToBase64(array); -}; - -base64.toArrayBuffer = function(str) { - var decodedStr = typeof atob != 'undefined' ? atob(str) : new Buffer(str,'base64').toString('binary'); - var arrayBuffer = new ArrayBuffer(decodedStr.length); - var array = new Uint8Array(arrayBuffer); - for (var i=0, len=decodedStr.length; i < len; i++) { - array[i] = decodedStr.charCodeAt(i); - } - return arrayBuffer; -}; - -//------------------------------------------------------------------------------ - -/* This code is based on the performance tests at http://jsperf.com/b64tests - * This 12-bit-at-a-time algorithm was the best performing version on all - * platforms tested. - */ - -var b64_6bit = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var b64_12bit; - -var b64_12bitTable = function() { - b64_12bit = []; - for (var i=0; i<64; i++) { - for (var j=0; j<64; j++) { - b64_12bit[i*64+j] = b64_6bit[i] + b64_6bit[j]; - } - } - b64_12bitTable = function() { return b64_12bit; }; - return b64_12bit; -}; - -function uint8ToBase64(rawData) { - var numBytes = rawData.byteLength; - var output=""; - var segment; - var table = b64_12bitTable(); - for (var i=0;i> 12]; - output += table[segment & 0xfff]; - } - if (numBytes - i == 2) { - segment = (rawData[i] << 16) + (rawData[i+1] << 8); - output += table[segment >> 12]; - output += b64_6bit[(segment & 0xfff) >> 6]; - output += '='; - } else if (numBytes - i == 1) { - segment = (rawData[i] << 16); - output += table[segment >> 12]; - output += '=='; - } - return output; -} - -}); - -// file: src/common/builder.js -define("cordova/builder", function(require, exports, module) { - -var utils = require('cordova/utils'); - -function each(objects, func, context) { - for (var prop in objects) { - if (objects.hasOwnProperty(prop)) { - func.apply(context, [objects[prop], prop]); - } - } -} - -function clobber(obj, key, value) { - exports.replaceHookForTesting(obj, key); - obj[key] = value; - // Getters can only be overridden by getters. - if (obj[key] !== value) { - utils.defineGetter(obj, key, function() { - return value; - }); - } -} - -function assignOrWrapInDeprecateGetter(obj, key, value, message) { - if (message) { - utils.defineGetter(obj, key, function() { - console.log(message); - delete obj[key]; - clobber(obj, key, value); - return value; - }); - } else { - clobber(obj, key, value); - } -} - -function include(parent, objects, clobber, merge) { - each(objects, function (obj, key) { - try { - var result = obj.path ? require(obj.path) : {}; - - if (clobber) { - // Clobber if it doesn't exist. - if (typeof parent[key] === 'undefined') { - assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated); - } else if (typeof obj.path !== 'undefined') { - // If merging, merge properties onto parent, otherwise, clobber. - if (merge) { - recursiveMerge(parent[key], result); - } else { - assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated); - } - } - result = parent[key]; - } else { - // Overwrite if not currently defined. - if (typeof parent[key] == 'undefined') { - assignOrWrapInDeprecateGetter(parent, key, result, obj.deprecated); - } else { - // Set result to what already exists, so we can build children into it if they exist. - result = parent[key]; - } - } - - if (obj.children) { - include(result, obj.children, clobber, merge); - } - } catch(e) { - utils.alert('Exception building Cordova JS globals: ' + e + ' for key "' + key + '"'); - } - }); -} - -/** - * Merge properties from one object onto another recursively. Properties from - * the src object will overwrite existing target property. - * - * @param target Object to merge properties into. - * @param src Object to merge properties from. - */ -function recursiveMerge(target, src) { - for (var prop in src) { - if (src.hasOwnProperty(prop)) { - if (target.prototype && target.prototype.constructor === target) { - // If the target object is a constructor override off prototype. - clobber(target.prototype, prop, src[prop]); - } else { - if (typeof src[prop] === 'object' && typeof target[prop] === 'object') { - recursiveMerge(target[prop], src[prop]); - } else { - clobber(target, prop, src[prop]); - } - } - } - } -} - -exports.buildIntoButDoNotClobber = function(objects, target) { - include(target, objects, false, false); -}; -exports.buildIntoAndClobber = function(objects, target) { - include(target, objects, true, false); -}; -exports.buildIntoAndMerge = function(objects, target) { - include(target, objects, true, true); -}; -exports.recursiveMerge = recursiveMerge; -exports.assignOrWrapInDeprecateGetter = assignOrWrapInDeprecateGetter; -exports.replaceHookForTesting = function() {}; - -}); - -// file: src/common/channel.js -define("cordova/channel", function(require, exports, module) { - -var utils = require('cordova/utils'), - nextGuid = 1; - -/** - * Custom pub-sub "channel" that can have functions subscribed to it - * This object is used to define and control firing of events for - * cordova initialization, as well as for custom events thereafter. - * - * The order of events during page load and Cordova startup is as follows: - * - * onDOMContentLoaded* Internal event that is received when the web page is loaded and parsed. - * onNativeReady* Internal event that indicates the Cordova native side is ready. - * onCordovaReady* Internal event fired when all Cordova JavaScript objects have been created. - * onDeviceReady* User event fired to indicate that Cordova is ready - * onResume User event fired to indicate a start/resume lifecycle event - * onPause User event fired to indicate a pause lifecycle event - * onDestroy* Internal event fired when app is being destroyed (User should use window.onunload event, not this one). - * - * The events marked with an * are sticky. Once they have fired, they will stay in the fired state. - * All listeners that subscribe after the event is fired will be executed right away. - * - * The only Cordova events that user code should register for are: - * deviceready Cordova native code is initialized and Cordova APIs can be called from JavaScript - * pause App has moved to background - * resume App has returned to foreground - * - * Listeners can be registered as: - * document.addEventListener("deviceready", myDeviceReadyListener, false); - * document.addEventListener("resume", myResumeListener, false); - * document.addEventListener("pause", myPauseListener, false); - * - * The DOM lifecycle events should be used for saving and restoring state - * window.onload - * window.onunload - * - */ - -/** - * Channel - * @constructor - * @param type String the channel name - */ -var Channel = function(type, sticky) { - this.type = type; - // Map of guid -> function. - this.handlers = {}; - // 0 = Non-sticky, 1 = Sticky non-fired, 2 = Sticky fired. - this.state = sticky ? 1 : 0; - // Used in sticky mode to remember args passed to fire(). - this.fireArgs = null; - // Used by onHasSubscribersChange to know if there are any listeners. - this.numHandlers = 0; - // Function that is called when the first listener is subscribed, or when - // the last listener is unsubscribed. - this.onHasSubscribersChange = null; -}, - channel = { - /** - * Calls the provided function only after all of the channels specified - * have been fired. All channels must be sticky channels. - */ - join: function(h, c) { - var len = c.length, - i = len, - f = function() { - if (!(--i)) h(); - }; - for (var j=0; j - if (strategy == 'r') { - continue; - } - var symbolPath = symbolList[i + 2]; - var lastDot = symbolPath.lastIndexOf('.'); - var namespace = symbolPath.substr(0, lastDot); - var lastName = symbolPath.substr(lastDot + 1); - - var deprecationMsg = symbolPath in deprecationMap ? 'Access made to deprecated symbol: ' + symbolPath + '. ' + deprecationMsg : null; - var parentObj = prepareNamespace(namespace, context); - var target = parentObj[lastName]; - - if (strategy == 'm' && target) { - builder.recursiveMerge(target, module); - } else if ((strategy == 'd' && !target) || (strategy != 'd')) { - if (!(symbolPath in origSymbols)) { - origSymbols[symbolPath] = target; - } - builder.assignOrWrapInDeprecateGetter(parentObj, lastName, module, deprecationMsg); - } - } -}; - -exports.getOriginalSymbol = function(context, symbolPath) { - var origSymbols = context.CDV_origSymbols; - if (origSymbols && (symbolPath in origSymbols)) { - return origSymbols[symbolPath]; - } - var parts = symbolPath.split('.'); - var obj = context; - for (var i = 0; i < parts.length; ++i) { - obj = obj && obj[parts[i]]; - } - return obj; -}; - -exports.reset(); - - -}); - -// file: src/windows/platform.js -define("cordova/platform", function(require, exports, module) { - -module.exports = { - // for backward compatibility we report 'windows8' when run on Windows 8.0 and - // 'windows' for Windows 8.1 and Windows Phone 8.1 - id: (navigator.appVersion.indexOf("MSAppHost/1.0") !== -1) ? 'windows8' : 'windows', - bootstrap:function() { - var cordova = require('cordova'), - exec = require('cordova/exec'), - channel = cordova.require('cordova/channel'), - modulemapper = require('cordova/modulemapper'); - - modulemapper.clobbers('cordova/exec/proxy', 'cordova.commandProxy'); - channel.onNativeReady.fire(); - - var onWinJSReady = function () { - var app = WinJS.Application; - var checkpointHandler = function checkpointHandler() { - cordova.fireDocumentEvent('pause',null,true); - }; - - var resumingHandler = function resumingHandler() { - cordova.fireDocumentEvent('resume',null,true); - }; - - app.addEventListener("checkpoint", checkpointHandler); - Windows.UI.WebUI.WebUIApplication.addEventListener("resuming", resumingHandler, false); - app.start(); - }; - - if (!window.WinJS) { - var scriptElem = document.createElement("script"); - - if (navigator.appVersion.indexOf("Windows Phone 8.1;") !== -1) { - // windows phone 8.1 + Mobile IE 11 - scriptElem.src = "//Microsoft.Phone.WinJS.2.1/js/base.js"; - } else if (navigator.appVersion.indexOf("MSAppHost/2.0;") !== -1) { - // windows 8.1 + IE 11 - scriptElem.src = "//Microsoft.WinJS.2.0/js/base.js"; - } else { - // windows 8.0 + IE 10 - scriptElem.src = "//Microsoft.WinJS.1.0/js/base.js"; - } - scriptElem.addEventListener("load", onWinJSReady); - document.head.appendChild(scriptElem); - } - else { - onWinJSReady(); - } - } -}; - -}); - -// file: src/common/pluginloader.js -define("cordova/pluginloader", function(require, exports, module) { - -var modulemapper = require('cordova/modulemapper'); -var urlutil = require('cordova/urlutil'); - -// Helper function to inject a - - - - - - - - - -- Next we want to add some code that will demonstrate that Cordova is working. - -### Adding a 'deviceready' handler... - -

Content goes here

- - - - - - -5. Test the Project -------------------------------- - -- Run the project from Visual Studio. You'll see the message box appear. - - ![](img/guide/getting-started/windows-8/wsalert.PNG) - -Done! ------ - -That's it! You're now ready to build Windows Store apps with Cordova. - -## Issues &&|| Defects -- [https://issues.apache.org/jira/browse/CB](https://issues.apache.org/jira/browse/CB) - -## Further Reading -- [http://docs.phonegap.com](http://docs.phonegap.com) -- [http://wiki.phonegap.com](http://wiki.phonegap.com) From 52c99052aef70314fa2d59928de0bc7a518f4293 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Mon, 29 Sep 2014 17:53:00 +0400 Subject: [PATCH 2/2] CB-7666 Merge node_modules and move to package root --- bin/lib/create.js | 3 + {bin/node_modules => node_modules}/.bin/nopt | 0 .../.bin/nopt.cmd | 0 {bin/node_modules => node_modules}/.bin/shjs | 0 .../.bin/shjs.cmd | 0 .../elementtree}/.npmignore | 0 .../elementtree/.travis.yml | 0 .../elementtree/CHANGES.md | 0 .../elementtree/LICENSE.txt | 0 .../elementtree/Makefile | 0 .../elementtree/NOTICE | 0 .../elementtree/README.md | 0 .../elementtree/lib/constants.js | 0 .../elementtree/lib/elementpath.js | 0 .../elementtree/lib/elementtree.js | 0 .../elementtree/lib/errors.js | 0 .../elementtree/lib/parser.js | 0 .../elementtree/lib/parsers/index.js | 0 .../elementtree/lib/parsers/sax.js | 0 .../elementtree/lib/sprintf.js | 0 .../elementtree/lib/treebuilder.js | 0 .../elementtree/lib/utils.js | 0 .../elementtree/node_modules/sax/AUTHORS | 0 .../elementtree/node_modules/sax}/LICENSE | 0 .../elementtree/node_modules/sax/README.md | 0 .../elementtree/node_modules/sax/lib/sax.js | 0 .../elementtree/node_modules/sax/package.json | 0 .../elementtree/package.json | 0 .../node-uuid/.npmignore | 0 .../node-uuid/LICENSE.md | 0 .../node-uuid/README.md | 0 .../node-uuid/component.json | 0 .../node-uuid/package.json | 0 .../node-uuid/uuid.js | 0 .../nopt}/.npmignore | 0 .../abbrev => node_modules/nopt}/LICENSE | 0 .../nopt/README.md | 0 .../nopt/bin/nopt.js | 0 .../nopt/examples/my-program.js | 0 .../nopt/lib/nopt.js | 0 .../nopt/node_modules/abbrev/CONTRIBUTING.md | 0 .../nopt/node_modules/abbrev}/LICENSE | 0 .../nopt/node_modules/abbrev/README.md | 0 .../nopt/node_modules/abbrev/abbrev.js | 0 .../nopt/node_modules/abbrev/package.json | 0 .../nopt/node_modules/abbrev/test.js | 0 .../nopt/package.json | 0 .../nopt/test/basic.js | 0 .../q/CONTRIBUTING.md | 0 {bin/node_modules => node_modules}/q/LICENSE | 0 .../node_modules => node_modules}/q/README.md | 0 .../q/benchmark/compare-with-callbacks.js | 0 .../q/benchmark/scenarios.js | 0 .../q/package.json | 0 {bin/node_modules => node_modules}/q/q.js | 0 {bin/node_modules => node_modules}/q/queue.js | 0 .../shelljs/.documentup.json | 0 .../shelljs/.jshintrc | 0 .../shelljs/.npmignore | 0 .../shelljs/.travis.yml | 0 .../shelljs/LICENSE | 0 .../shelljs/README.md | 0 .../shelljs/bin/shjs | 0 .../shelljs/global.js | 0 .../shelljs/make.js | 0 .../shelljs/package.json | 0 .../shelljs/scripts/generate-docs.js | 0 .../shelljs/scripts/run-tests.js | 0 .../shelljs/shell.js | 0 .../shelljs/src/cat.js | 0 .../shelljs/src/cd.js | 0 .../shelljs/src/chmod.js | 0 .../shelljs/src/common.js | 0 .../shelljs/src/cp.js | 0 .../shelljs/src/dirs.js | 0 .../shelljs/src/echo.js | 0 .../shelljs/src/error.js | 0 .../shelljs/src/exec.js | 0 .../shelljs/src/find.js | 0 .../shelljs/src/grep.js | 0 .../shelljs/src/ln.js | 0 .../shelljs/src/ls.js | 0 .../shelljs/src/mkdir.js | 0 .../shelljs/src/mv.js | 0 .../shelljs/src/popd.js | 0 .../shelljs/src/pushd.js | 0 .../shelljs/src/pwd.js | 0 .../shelljs/src/rm.js | 0 .../shelljs/src/sed.js | 0 .../shelljs/src/tempdir.js | 0 .../shelljs/src/test.js | 0 .../shelljs/src/to.js | 0 .../shelljs/src/toEnd.js | 0 .../shelljs/src/which.js | 0 package.json | 12 +- template/cordova/node_modules/.bin/nopt | 15 - template/cordova/node_modules/.bin/nopt.cmd | 5 - template/cordova/node_modules/nopt/.npmignore | 1 - template/cordova/node_modules/nopt/LICENSE | 23 - template/cordova/node_modules/nopt/README.md | 209 -- .../cordova/node_modules/nopt/bin/nopt.js | 54 - .../node_modules/nopt/examples/my-program.js | 30 - .../cordova/node_modules/nopt/lib/nopt.js | 414 ---- .../nopt/node_modules/abbrev/CONTRIBUTING.md | 3 - .../nopt/node_modules/abbrev/LICENSE | 23 - .../nopt/node_modules/abbrev/README.md | 23 - .../nopt/node_modules/abbrev/abbrev.js | 62 - .../nopt/node_modules/abbrev/package.json | 29 - .../nopt/node_modules/abbrev/test.js | 47 - .../cordova/node_modules/nopt/package.json | 41 - .../cordova/node_modules/nopt/test/basic.js | 251 --- .../cordova/node_modules/q/CONTRIBUTING.md | 40 - template/cordova/node_modules/q/LICENSE | 18 - template/cordova/node_modules/q/README.md | 820 ------- .../q/benchmark/compare-with-callbacks.js | 71 - .../node_modules/q/benchmark/scenarios.js | 36 - template/cordova/node_modules/q/package.json | 93 - template/cordova/node_modules/q/q.js | 1904 ----------------- template/cordova/node_modules/q/queue.js | 35 - .../node_modules/shelljs/.documentup.json | 6 - .../cordova/node_modules/shelljs/.jshintrc | 7 - .../cordova/node_modules/shelljs/.npmignore | 2 - .../cordova/node_modules/shelljs/.travis.yml | 5 - template/cordova/node_modules/shelljs/LICENSE | 26 - .../cordova/node_modules/shelljs/README.md | 569 ----- .../cordova/node_modules/shelljs/bin/shjs | 51 - .../cordova/node_modules/shelljs/global.js | 3 - template/cordova/node_modules/shelljs/make.js | 47 - .../cordova/node_modules/shelljs/package.json | 47 - .../shelljs/scripts/generate-docs.js | 21 - .../node_modules/shelljs/scripts/run-tests.js | 50 - .../cordova/node_modules/shelljs/shell.js | 157 -- .../cordova/node_modules/shelljs/src/cat.js | 43 - .../cordova/node_modules/shelljs/src/cd.js | 19 - .../cordova/node_modules/shelljs/src/chmod.js | 208 -- .../node_modules/shelljs/src/common.js | 203 -- .../cordova/node_modules/shelljs/src/cp.js | 201 -- .../cordova/node_modules/shelljs/src/dirs.js | 191 -- .../cordova/node_modules/shelljs/src/echo.js | 20 - .../cordova/node_modules/shelljs/src/error.js | 10 - .../cordova/node_modules/shelljs/src/exec.js | 181 -- .../cordova/node_modules/shelljs/src/find.js | 51 - .../cordova/node_modules/shelljs/src/grep.js | 52 - .../cordova/node_modules/shelljs/src/ln.js | 53 - .../cordova/node_modules/shelljs/src/ls.js | 126 -- .../cordova/node_modules/shelljs/src/mkdir.js | 68 - .../cordova/node_modules/shelljs/src/mv.js | 80 - .../cordova/node_modules/shelljs/src/popd.js | 1 - .../cordova/node_modules/shelljs/src/pushd.js | 1 - .../cordova/node_modules/shelljs/src/pwd.js | 11 - .../cordova/node_modules/shelljs/src/rm.js | 145 -- .../cordova/node_modules/shelljs/src/sed.js | 43 - .../node_modules/shelljs/src/tempdir.js | 56 - .../cordova/node_modules/shelljs/src/test.js | 85 - .../cordova/node_modules/shelljs/src/to.js | 29 - .../cordova/node_modules/shelljs/src/toEnd.js | 29 - .../cordova/node_modules/shelljs/src/which.js | 83 - 157 files changed, 13 insertions(+), 7229 deletions(-) rename {bin/node_modules => node_modules}/.bin/nopt (100%) rename {bin/node_modules => node_modules}/.bin/nopt.cmd (100%) rename {bin/node_modules => node_modules}/.bin/shjs (100%) rename {bin/node_modules => node_modules}/.bin/shjs.cmd (100%) rename {bin/node_modules/nopt => node_modules/elementtree}/.npmignore (100%) rename {template/cordova/node_modules => node_modules}/elementtree/.travis.yml (100%) rename {template/cordova/node_modules => node_modules}/elementtree/CHANGES.md (100%) rename {template/cordova/node_modules => node_modules}/elementtree/LICENSE.txt (100%) rename {template/cordova/node_modules => node_modules}/elementtree/Makefile (100%) rename {template/cordova/node_modules => node_modules}/elementtree/NOTICE (100%) rename {template/cordova/node_modules => node_modules}/elementtree/README.md (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/constants.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/elementpath.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/elementtree.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/errors.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/parser.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/parsers/index.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/parsers/sax.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/sprintf.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/treebuilder.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/lib/utils.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/node_modules/sax/AUTHORS (100%) rename {bin/node_modules/nopt => node_modules/elementtree/node_modules/sax}/LICENSE (100%) rename {template/cordova/node_modules => node_modules}/elementtree/node_modules/sax/README.md (100%) rename {template/cordova/node_modules => node_modules}/elementtree/node_modules/sax/lib/sax.js (100%) rename {template/cordova/node_modules => node_modules}/elementtree/node_modules/sax/package.json (100%) rename {template/cordova/node_modules => node_modules}/elementtree/package.json (100%) rename {bin/node_modules => node_modules}/node-uuid/.npmignore (100%) rename {bin/node_modules => node_modules}/node-uuid/LICENSE.md (100%) rename {bin/node_modules => node_modules}/node-uuid/README.md (100%) rename {bin/node_modules => node_modules}/node-uuid/component.json (100%) rename {bin/node_modules => node_modules}/node-uuid/package.json (100%) rename {bin/node_modules => node_modules}/node-uuid/uuid.js (100%) rename {template/cordova/node_modules/elementtree => node_modules/nopt}/.npmignore (100%) rename {bin/node_modules/nopt/node_modules/abbrev => node_modules/nopt}/LICENSE (100%) rename {bin/node_modules => node_modules}/nopt/README.md (100%) rename {bin/node_modules => node_modules}/nopt/bin/nopt.js (100%) rename {bin/node_modules => node_modules}/nopt/examples/my-program.js (100%) rename {bin/node_modules => node_modules}/nopt/lib/nopt.js (100%) rename {bin/node_modules => node_modules}/nopt/node_modules/abbrev/CONTRIBUTING.md (100%) rename {template/cordova/node_modules/elementtree/node_modules/sax => node_modules/nopt/node_modules/abbrev}/LICENSE (100%) rename {bin/node_modules => node_modules}/nopt/node_modules/abbrev/README.md (100%) rename {bin/node_modules => node_modules}/nopt/node_modules/abbrev/abbrev.js (100%) rename {bin/node_modules => node_modules}/nopt/node_modules/abbrev/package.json (100%) rename {bin/node_modules => node_modules}/nopt/node_modules/abbrev/test.js (100%) rename {bin/node_modules => node_modules}/nopt/package.json (100%) rename {bin/node_modules => node_modules}/nopt/test/basic.js (100%) rename {bin/node_modules => node_modules}/q/CONTRIBUTING.md (100%) rename {bin/node_modules => node_modules}/q/LICENSE (100%) rename {bin/node_modules => node_modules}/q/README.md (100%) rename {bin/node_modules => node_modules}/q/benchmark/compare-with-callbacks.js (100%) rename {bin/node_modules => node_modules}/q/benchmark/scenarios.js (100%) rename {bin/node_modules => node_modules}/q/package.json (100%) rename {bin/node_modules => node_modules}/q/q.js (100%) rename {bin/node_modules => node_modules}/q/queue.js (100%) rename {bin/node_modules => node_modules}/shelljs/.documentup.json (100%) rename {bin/node_modules => node_modules}/shelljs/.jshintrc (100%) rename {bin/node_modules => node_modules}/shelljs/.npmignore (100%) rename {bin/node_modules => node_modules}/shelljs/.travis.yml (100%) rename {bin/node_modules => node_modules}/shelljs/LICENSE (100%) rename {bin/node_modules => node_modules}/shelljs/README.md (100%) rename {bin/node_modules => node_modules}/shelljs/bin/shjs (100%) rename {bin/node_modules => node_modules}/shelljs/global.js (100%) rename {bin/node_modules => node_modules}/shelljs/make.js (100%) rename {bin/node_modules => node_modules}/shelljs/package.json (100%) rename {bin/node_modules => node_modules}/shelljs/scripts/generate-docs.js (100%) rename {bin/node_modules => node_modules}/shelljs/scripts/run-tests.js (100%) rename {bin/node_modules => node_modules}/shelljs/shell.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/cat.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/cd.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/chmod.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/common.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/cp.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/dirs.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/echo.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/error.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/exec.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/find.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/grep.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/ln.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/ls.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/mkdir.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/mv.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/popd.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/pushd.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/pwd.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/rm.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/sed.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/tempdir.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/test.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/to.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/toEnd.js (100%) rename {bin/node_modules => node_modules}/shelljs/src/which.js (100%) delete mode 100644 template/cordova/node_modules/.bin/nopt delete mode 100644 template/cordova/node_modules/.bin/nopt.cmd delete mode 100644 template/cordova/node_modules/nopt/.npmignore delete mode 100644 template/cordova/node_modules/nopt/LICENSE delete mode 100644 template/cordova/node_modules/nopt/README.md delete mode 100644 template/cordova/node_modules/nopt/bin/nopt.js delete mode 100644 template/cordova/node_modules/nopt/examples/my-program.js delete mode 100644 template/cordova/node_modules/nopt/lib/nopt.js delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/README.md delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/package.json delete mode 100644 template/cordova/node_modules/nopt/node_modules/abbrev/test.js delete mode 100644 template/cordova/node_modules/nopt/package.json delete mode 100644 template/cordova/node_modules/nopt/test/basic.js delete mode 100644 template/cordova/node_modules/q/CONTRIBUTING.md delete mode 100644 template/cordova/node_modules/q/LICENSE delete mode 100644 template/cordova/node_modules/q/README.md delete mode 100644 template/cordova/node_modules/q/benchmark/compare-with-callbacks.js delete mode 100644 template/cordova/node_modules/q/benchmark/scenarios.js delete mode 100644 template/cordova/node_modules/q/package.json delete mode 100644 template/cordova/node_modules/q/q.js delete mode 100644 template/cordova/node_modules/q/queue.js delete mode 100644 template/cordova/node_modules/shelljs/.documentup.json delete mode 100644 template/cordova/node_modules/shelljs/.jshintrc delete mode 100644 template/cordova/node_modules/shelljs/.npmignore delete mode 100644 template/cordova/node_modules/shelljs/.travis.yml delete mode 100644 template/cordova/node_modules/shelljs/LICENSE delete mode 100644 template/cordova/node_modules/shelljs/README.md delete mode 100644 template/cordova/node_modules/shelljs/bin/shjs delete mode 100644 template/cordova/node_modules/shelljs/global.js delete mode 100644 template/cordova/node_modules/shelljs/make.js delete mode 100644 template/cordova/node_modules/shelljs/package.json delete mode 100644 template/cordova/node_modules/shelljs/scripts/generate-docs.js delete mode 100644 template/cordova/node_modules/shelljs/scripts/run-tests.js delete mode 100644 template/cordova/node_modules/shelljs/shell.js delete mode 100644 template/cordova/node_modules/shelljs/src/cat.js delete mode 100644 template/cordova/node_modules/shelljs/src/cd.js delete mode 100644 template/cordova/node_modules/shelljs/src/chmod.js delete mode 100644 template/cordova/node_modules/shelljs/src/common.js delete mode 100644 template/cordova/node_modules/shelljs/src/cp.js delete mode 100644 template/cordova/node_modules/shelljs/src/dirs.js delete mode 100644 template/cordova/node_modules/shelljs/src/echo.js delete mode 100644 template/cordova/node_modules/shelljs/src/error.js delete mode 100644 template/cordova/node_modules/shelljs/src/exec.js delete mode 100644 template/cordova/node_modules/shelljs/src/find.js delete mode 100644 template/cordova/node_modules/shelljs/src/grep.js delete mode 100644 template/cordova/node_modules/shelljs/src/ln.js delete mode 100644 template/cordova/node_modules/shelljs/src/ls.js delete mode 100644 template/cordova/node_modules/shelljs/src/mkdir.js delete mode 100644 template/cordova/node_modules/shelljs/src/mv.js delete mode 100644 template/cordova/node_modules/shelljs/src/popd.js delete mode 100644 template/cordova/node_modules/shelljs/src/pushd.js delete mode 100644 template/cordova/node_modules/shelljs/src/pwd.js delete mode 100644 template/cordova/node_modules/shelljs/src/rm.js delete mode 100644 template/cordova/node_modules/shelljs/src/sed.js delete mode 100644 template/cordova/node_modules/shelljs/src/tempdir.js delete mode 100644 template/cordova/node_modules/shelljs/src/test.js delete mode 100644 template/cordova/node_modules/shelljs/src/to.js delete mode 100644 template/cordova/node_modules/shelljs/src/toEnd.js delete mode 100644 template/cordova/node_modules/shelljs/src/which.js diff --git a/bin/lib/create.js b/bin/lib/create.js index 44f722b1..4faeee51 100644 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -59,6 +59,9 @@ module.exports.run = function (argv) { // Copy our unique VERSION file, so peeps can tell what version this project was created from. shell.cp("-rf", path.join(root, 'VERSION'), projectPath); + // copy node_modules to cordova directory + shell.cp('-r', path.join(root, 'node_modules'), path.join(projectPath, 'cordova')); + if (templateOverrides && fs.existsSync(templateOverrides)) { console.log('Copying template overrides from ' + templateOverrides + ' to ' + projectPath); shell.cp("-rf", templateOverrides, projectPath); diff --git a/bin/node_modules/.bin/nopt b/node_modules/.bin/nopt similarity index 100% rename from bin/node_modules/.bin/nopt rename to node_modules/.bin/nopt diff --git a/bin/node_modules/.bin/nopt.cmd b/node_modules/.bin/nopt.cmd similarity index 100% rename from bin/node_modules/.bin/nopt.cmd rename to node_modules/.bin/nopt.cmd diff --git a/bin/node_modules/.bin/shjs b/node_modules/.bin/shjs similarity index 100% rename from bin/node_modules/.bin/shjs rename to node_modules/.bin/shjs diff --git a/bin/node_modules/.bin/shjs.cmd b/node_modules/.bin/shjs.cmd similarity index 100% rename from bin/node_modules/.bin/shjs.cmd rename to node_modules/.bin/shjs.cmd diff --git a/bin/node_modules/nopt/.npmignore b/node_modules/elementtree/.npmignore similarity index 100% rename from bin/node_modules/nopt/.npmignore rename to node_modules/elementtree/.npmignore diff --git a/template/cordova/node_modules/elementtree/.travis.yml b/node_modules/elementtree/.travis.yml similarity index 100% rename from template/cordova/node_modules/elementtree/.travis.yml rename to node_modules/elementtree/.travis.yml diff --git a/template/cordova/node_modules/elementtree/CHANGES.md b/node_modules/elementtree/CHANGES.md similarity index 100% rename from template/cordova/node_modules/elementtree/CHANGES.md rename to node_modules/elementtree/CHANGES.md diff --git a/template/cordova/node_modules/elementtree/LICENSE.txt b/node_modules/elementtree/LICENSE.txt similarity index 100% rename from template/cordova/node_modules/elementtree/LICENSE.txt rename to node_modules/elementtree/LICENSE.txt diff --git a/template/cordova/node_modules/elementtree/Makefile b/node_modules/elementtree/Makefile similarity index 100% rename from template/cordova/node_modules/elementtree/Makefile rename to node_modules/elementtree/Makefile diff --git a/template/cordova/node_modules/elementtree/NOTICE b/node_modules/elementtree/NOTICE similarity index 100% rename from template/cordova/node_modules/elementtree/NOTICE rename to node_modules/elementtree/NOTICE diff --git a/template/cordova/node_modules/elementtree/README.md b/node_modules/elementtree/README.md similarity index 100% rename from template/cordova/node_modules/elementtree/README.md rename to node_modules/elementtree/README.md diff --git a/template/cordova/node_modules/elementtree/lib/constants.js b/node_modules/elementtree/lib/constants.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/constants.js rename to node_modules/elementtree/lib/constants.js diff --git a/template/cordova/node_modules/elementtree/lib/elementpath.js b/node_modules/elementtree/lib/elementpath.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/elementpath.js rename to node_modules/elementtree/lib/elementpath.js diff --git a/template/cordova/node_modules/elementtree/lib/elementtree.js b/node_modules/elementtree/lib/elementtree.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/elementtree.js rename to node_modules/elementtree/lib/elementtree.js diff --git a/template/cordova/node_modules/elementtree/lib/errors.js b/node_modules/elementtree/lib/errors.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/errors.js rename to node_modules/elementtree/lib/errors.js diff --git a/template/cordova/node_modules/elementtree/lib/parser.js b/node_modules/elementtree/lib/parser.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/parser.js rename to node_modules/elementtree/lib/parser.js diff --git a/template/cordova/node_modules/elementtree/lib/parsers/index.js b/node_modules/elementtree/lib/parsers/index.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/parsers/index.js rename to node_modules/elementtree/lib/parsers/index.js diff --git a/template/cordova/node_modules/elementtree/lib/parsers/sax.js b/node_modules/elementtree/lib/parsers/sax.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/parsers/sax.js rename to node_modules/elementtree/lib/parsers/sax.js diff --git a/template/cordova/node_modules/elementtree/lib/sprintf.js b/node_modules/elementtree/lib/sprintf.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/sprintf.js rename to node_modules/elementtree/lib/sprintf.js diff --git a/template/cordova/node_modules/elementtree/lib/treebuilder.js b/node_modules/elementtree/lib/treebuilder.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/treebuilder.js rename to node_modules/elementtree/lib/treebuilder.js diff --git a/template/cordova/node_modules/elementtree/lib/utils.js b/node_modules/elementtree/lib/utils.js similarity index 100% rename from template/cordova/node_modules/elementtree/lib/utils.js rename to node_modules/elementtree/lib/utils.js diff --git a/template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS b/node_modules/elementtree/node_modules/sax/AUTHORS similarity index 100% rename from template/cordova/node_modules/elementtree/node_modules/sax/AUTHORS rename to node_modules/elementtree/node_modules/sax/AUTHORS diff --git a/bin/node_modules/nopt/LICENSE b/node_modules/elementtree/node_modules/sax/LICENSE similarity index 100% rename from bin/node_modules/nopt/LICENSE rename to node_modules/elementtree/node_modules/sax/LICENSE diff --git a/template/cordova/node_modules/elementtree/node_modules/sax/README.md b/node_modules/elementtree/node_modules/sax/README.md similarity index 100% rename from template/cordova/node_modules/elementtree/node_modules/sax/README.md rename to node_modules/elementtree/node_modules/sax/README.md diff --git a/template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js b/node_modules/elementtree/node_modules/sax/lib/sax.js similarity index 100% rename from template/cordova/node_modules/elementtree/node_modules/sax/lib/sax.js rename to node_modules/elementtree/node_modules/sax/lib/sax.js diff --git a/template/cordova/node_modules/elementtree/node_modules/sax/package.json b/node_modules/elementtree/node_modules/sax/package.json similarity index 100% rename from template/cordova/node_modules/elementtree/node_modules/sax/package.json rename to node_modules/elementtree/node_modules/sax/package.json diff --git a/template/cordova/node_modules/elementtree/package.json b/node_modules/elementtree/package.json similarity index 100% rename from template/cordova/node_modules/elementtree/package.json rename to node_modules/elementtree/package.json diff --git a/bin/node_modules/node-uuid/.npmignore b/node_modules/node-uuid/.npmignore similarity index 100% rename from bin/node_modules/node-uuid/.npmignore rename to node_modules/node-uuid/.npmignore diff --git a/bin/node_modules/node-uuid/LICENSE.md b/node_modules/node-uuid/LICENSE.md similarity index 100% rename from bin/node_modules/node-uuid/LICENSE.md rename to node_modules/node-uuid/LICENSE.md diff --git a/bin/node_modules/node-uuid/README.md b/node_modules/node-uuid/README.md similarity index 100% rename from bin/node_modules/node-uuid/README.md rename to node_modules/node-uuid/README.md diff --git a/bin/node_modules/node-uuid/component.json b/node_modules/node-uuid/component.json similarity index 100% rename from bin/node_modules/node-uuid/component.json rename to node_modules/node-uuid/component.json diff --git a/bin/node_modules/node-uuid/package.json b/node_modules/node-uuid/package.json similarity index 100% rename from bin/node_modules/node-uuid/package.json rename to node_modules/node-uuid/package.json diff --git a/bin/node_modules/node-uuid/uuid.js b/node_modules/node-uuid/uuid.js similarity index 100% rename from bin/node_modules/node-uuid/uuid.js rename to node_modules/node-uuid/uuid.js diff --git a/template/cordova/node_modules/elementtree/.npmignore b/node_modules/nopt/.npmignore similarity index 100% rename from template/cordova/node_modules/elementtree/.npmignore rename to node_modules/nopt/.npmignore diff --git a/bin/node_modules/nopt/node_modules/abbrev/LICENSE b/node_modules/nopt/LICENSE similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/LICENSE rename to node_modules/nopt/LICENSE diff --git a/bin/node_modules/nopt/README.md b/node_modules/nopt/README.md similarity index 100% rename from bin/node_modules/nopt/README.md rename to node_modules/nopt/README.md diff --git a/bin/node_modules/nopt/bin/nopt.js b/node_modules/nopt/bin/nopt.js similarity index 100% rename from bin/node_modules/nopt/bin/nopt.js rename to node_modules/nopt/bin/nopt.js diff --git a/bin/node_modules/nopt/examples/my-program.js b/node_modules/nopt/examples/my-program.js similarity index 100% rename from bin/node_modules/nopt/examples/my-program.js rename to node_modules/nopt/examples/my-program.js diff --git a/bin/node_modules/nopt/lib/nopt.js b/node_modules/nopt/lib/nopt.js similarity index 100% rename from bin/node_modules/nopt/lib/nopt.js rename to node_modules/nopt/lib/nopt.js diff --git a/bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md b/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md rename to node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md diff --git a/template/cordova/node_modules/elementtree/node_modules/sax/LICENSE b/node_modules/nopt/node_modules/abbrev/LICENSE similarity index 100% rename from template/cordova/node_modules/elementtree/node_modules/sax/LICENSE rename to node_modules/nopt/node_modules/abbrev/LICENSE diff --git a/bin/node_modules/nopt/node_modules/abbrev/README.md b/node_modules/nopt/node_modules/abbrev/README.md similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/README.md rename to node_modules/nopt/node_modules/abbrev/README.md diff --git a/bin/node_modules/nopt/node_modules/abbrev/abbrev.js b/node_modules/nopt/node_modules/abbrev/abbrev.js similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/abbrev.js rename to node_modules/nopt/node_modules/abbrev/abbrev.js diff --git a/bin/node_modules/nopt/node_modules/abbrev/package.json b/node_modules/nopt/node_modules/abbrev/package.json similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/package.json rename to node_modules/nopt/node_modules/abbrev/package.json diff --git a/bin/node_modules/nopt/node_modules/abbrev/test.js b/node_modules/nopt/node_modules/abbrev/test.js similarity index 100% rename from bin/node_modules/nopt/node_modules/abbrev/test.js rename to node_modules/nopt/node_modules/abbrev/test.js diff --git a/bin/node_modules/nopt/package.json b/node_modules/nopt/package.json similarity index 100% rename from bin/node_modules/nopt/package.json rename to node_modules/nopt/package.json diff --git a/bin/node_modules/nopt/test/basic.js b/node_modules/nopt/test/basic.js similarity index 100% rename from bin/node_modules/nopt/test/basic.js rename to node_modules/nopt/test/basic.js diff --git a/bin/node_modules/q/CONTRIBUTING.md b/node_modules/q/CONTRIBUTING.md similarity index 100% rename from bin/node_modules/q/CONTRIBUTING.md rename to node_modules/q/CONTRIBUTING.md diff --git a/bin/node_modules/q/LICENSE b/node_modules/q/LICENSE similarity index 100% rename from bin/node_modules/q/LICENSE rename to node_modules/q/LICENSE diff --git a/bin/node_modules/q/README.md b/node_modules/q/README.md similarity index 100% rename from bin/node_modules/q/README.md rename to node_modules/q/README.md diff --git a/bin/node_modules/q/benchmark/compare-with-callbacks.js b/node_modules/q/benchmark/compare-with-callbacks.js similarity index 100% rename from bin/node_modules/q/benchmark/compare-with-callbacks.js rename to node_modules/q/benchmark/compare-with-callbacks.js diff --git a/bin/node_modules/q/benchmark/scenarios.js b/node_modules/q/benchmark/scenarios.js similarity index 100% rename from bin/node_modules/q/benchmark/scenarios.js rename to node_modules/q/benchmark/scenarios.js diff --git a/bin/node_modules/q/package.json b/node_modules/q/package.json similarity index 100% rename from bin/node_modules/q/package.json rename to node_modules/q/package.json diff --git a/bin/node_modules/q/q.js b/node_modules/q/q.js similarity index 100% rename from bin/node_modules/q/q.js rename to node_modules/q/q.js diff --git a/bin/node_modules/q/queue.js b/node_modules/q/queue.js similarity index 100% rename from bin/node_modules/q/queue.js rename to node_modules/q/queue.js diff --git a/bin/node_modules/shelljs/.documentup.json b/node_modules/shelljs/.documentup.json similarity index 100% rename from bin/node_modules/shelljs/.documentup.json rename to node_modules/shelljs/.documentup.json diff --git a/bin/node_modules/shelljs/.jshintrc b/node_modules/shelljs/.jshintrc similarity index 100% rename from bin/node_modules/shelljs/.jshintrc rename to node_modules/shelljs/.jshintrc diff --git a/bin/node_modules/shelljs/.npmignore b/node_modules/shelljs/.npmignore similarity index 100% rename from bin/node_modules/shelljs/.npmignore rename to node_modules/shelljs/.npmignore diff --git a/bin/node_modules/shelljs/.travis.yml b/node_modules/shelljs/.travis.yml similarity index 100% rename from bin/node_modules/shelljs/.travis.yml rename to node_modules/shelljs/.travis.yml diff --git a/bin/node_modules/shelljs/LICENSE b/node_modules/shelljs/LICENSE similarity index 100% rename from bin/node_modules/shelljs/LICENSE rename to node_modules/shelljs/LICENSE diff --git a/bin/node_modules/shelljs/README.md b/node_modules/shelljs/README.md similarity index 100% rename from bin/node_modules/shelljs/README.md rename to node_modules/shelljs/README.md diff --git a/bin/node_modules/shelljs/bin/shjs b/node_modules/shelljs/bin/shjs similarity index 100% rename from bin/node_modules/shelljs/bin/shjs rename to node_modules/shelljs/bin/shjs diff --git a/bin/node_modules/shelljs/global.js b/node_modules/shelljs/global.js similarity index 100% rename from bin/node_modules/shelljs/global.js rename to node_modules/shelljs/global.js diff --git a/bin/node_modules/shelljs/make.js b/node_modules/shelljs/make.js similarity index 100% rename from bin/node_modules/shelljs/make.js rename to node_modules/shelljs/make.js diff --git a/bin/node_modules/shelljs/package.json b/node_modules/shelljs/package.json similarity index 100% rename from bin/node_modules/shelljs/package.json rename to node_modules/shelljs/package.json diff --git a/bin/node_modules/shelljs/scripts/generate-docs.js b/node_modules/shelljs/scripts/generate-docs.js similarity index 100% rename from bin/node_modules/shelljs/scripts/generate-docs.js rename to node_modules/shelljs/scripts/generate-docs.js diff --git a/bin/node_modules/shelljs/scripts/run-tests.js b/node_modules/shelljs/scripts/run-tests.js similarity index 100% rename from bin/node_modules/shelljs/scripts/run-tests.js rename to node_modules/shelljs/scripts/run-tests.js diff --git a/bin/node_modules/shelljs/shell.js b/node_modules/shelljs/shell.js similarity index 100% rename from bin/node_modules/shelljs/shell.js rename to node_modules/shelljs/shell.js diff --git a/bin/node_modules/shelljs/src/cat.js b/node_modules/shelljs/src/cat.js similarity index 100% rename from bin/node_modules/shelljs/src/cat.js rename to node_modules/shelljs/src/cat.js diff --git a/bin/node_modules/shelljs/src/cd.js b/node_modules/shelljs/src/cd.js similarity index 100% rename from bin/node_modules/shelljs/src/cd.js rename to node_modules/shelljs/src/cd.js diff --git a/bin/node_modules/shelljs/src/chmod.js b/node_modules/shelljs/src/chmod.js similarity index 100% rename from bin/node_modules/shelljs/src/chmod.js rename to node_modules/shelljs/src/chmod.js diff --git a/bin/node_modules/shelljs/src/common.js b/node_modules/shelljs/src/common.js similarity index 100% rename from bin/node_modules/shelljs/src/common.js rename to node_modules/shelljs/src/common.js diff --git a/bin/node_modules/shelljs/src/cp.js b/node_modules/shelljs/src/cp.js similarity index 100% rename from bin/node_modules/shelljs/src/cp.js rename to node_modules/shelljs/src/cp.js diff --git a/bin/node_modules/shelljs/src/dirs.js b/node_modules/shelljs/src/dirs.js similarity index 100% rename from bin/node_modules/shelljs/src/dirs.js rename to node_modules/shelljs/src/dirs.js diff --git a/bin/node_modules/shelljs/src/echo.js b/node_modules/shelljs/src/echo.js similarity index 100% rename from bin/node_modules/shelljs/src/echo.js rename to node_modules/shelljs/src/echo.js diff --git a/bin/node_modules/shelljs/src/error.js b/node_modules/shelljs/src/error.js similarity index 100% rename from bin/node_modules/shelljs/src/error.js rename to node_modules/shelljs/src/error.js diff --git a/bin/node_modules/shelljs/src/exec.js b/node_modules/shelljs/src/exec.js similarity index 100% rename from bin/node_modules/shelljs/src/exec.js rename to node_modules/shelljs/src/exec.js diff --git a/bin/node_modules/shelljs/src/find.js b/node_modules/shelljs/src/find.js similarity index 100% rename from bin/node_modules/shelljs/src/find.js rename to node_modules/shelljs/src/find.js diff --git a/bin/node_modules/shelljs/src/grep.js b/node_modules/shelljs/src/grep.js similarity index 100% rename from bin/node_modules/shelljs/src/grep.js rename to node_modules/shelljs/src/grep.js diff --git a/bin/node_modules/shelljs/src/ln.js b/node_modules/shelljs/src/ln.js similarity index 100% rename from bin/node_modules/shelljs/src/ln.js rename to node_modules/shelljs/src/ln.js diff --git a/bin/node_modules/shelljs/src/ls.js b/node_modules/shelljs/src/ls.js similarity index 100% rename from bin/node_modules/shelljs/src/ls.js rename to node_modules/shelljs/src/ls.js diff --git a/bin/node_modules/shelljs/src/mkdir.js b/node_modules/shelljs/src/mkdir.js similarity index 100% rename from bin/node_modules/shelljs/src/mkdir.js rename to node_modules/shelljs/src/mkdir.js diff --git a/bin/node_modules/shelljs/src/mv.js b/node_modules/shelljs/src/mv.js similarity index 100% rename from bin/node_modules/shelljs/src/mv.js rename to node_modules/shelljs/src/mv.js diff --git a/bin/node_modules/shelljs/src/popd.js b/node_modules/shelljs/src/popd.js similarity index 100% rename from bin/node_modules/shelljs/src/popd.js rename to node_modules/shelljs/src/popd.js diff --git a/bin/node_modules/shelljs/src/pushd.js b/node_modules/shelljs/src/pushd.js similarity index 100% rename from bin/node_modules/shelljs/src/pushd.js rename to node_modules/shelljs/src/pushd.js diff --git a/bin/node_modules/shelljs/src/pwd.js b/node_modules/shelljs/src/pwd.js similarity index 100% rename from bin/node_modules/shelljs/src/pwd.js rename to node_modules/shelljs/src/pwd.js diff --git a/bin/node_modules/shelljs/src/rm.js b/node_modules/shelljs/src/rm.js similarity index 100% rename from bin/node_modules/shelljs/src/rm.js rename to node_modules/shelljs/src/rm.js diff --git a/bin/node_modules/shelljs/src/sed.js b/node_modules/shelljs/src/sed.js similarity index 100% rename from bin/node_modules/shelljs/src/sed.js rename to node_modules/shelljs/src/sed.js diff --git a/bin/node_modules/shelljs/src/tempdir.js b/node_modules/shelljs/src/tempdir.js similarity index 100% rename from bin/node_modules/shelljs/src/tempdir.js rename to node_modules/shelljs/src/tempdir.js diff --git a/bin/node_modules/shelljs/src/test.js b/node_modules/shelljs/src/test.js similarity index 100% rename from bin/node_modules/shelljs/src/test.js rename to node_modules/shelljs/src/test.js diff --git a/bin/node_modules/shelljs/src/to.js b/node_modules/shelljs/src/to.js similarity index 100% rename from bin/node_modules/shelljs/src/to.js rename to node_modules/shelljs/src/to.js diff --git a/bin/node_modules/shelljs/src/toEnd.js b/node_modules/shelljs/src/toEnd.js similarity index 100% rename from bin/node_modules/shelljs/src/toEnd.js rename to node_modules/shelljs/src/toEnd.js diff --git a/bin/node_modules/shelljs/src/which.js b/node_modules/shelljs/src/which.js similarity index 100% rename from bin/node_modules/shelljs/src/which.js rename to node_modules/shelljs/src/which.js diff --git a/package.json b/package.json index e8cd8200..2cedfee8 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,19 @@ "apache" ], "dependencies": { - "q": "^0.9.0", + "q": ">0.9.0", "nopt": "~3", "node-uuid": "~1.4", - "shelljs": "~0.3" + "shelljs": "~0.3", + "elementtree": "~0.1.5" }, + "bundledDependencies": [ + "q", + "nopt", + "node-uuid", + "shelljs", + "elementtree" + ], "scripts": { "test": "bin\\create .\\testcreate & .\\testcreate\\cordova\\build & rm -rf .\\testcreate" }, diff --git a/template/cordova/node_modules/.bin/nopt b/template/cordova/node_modules/.bin/nopt deleted file mode 100644 index 25995f38..00000000 --- a/template/cordova/node_modules/.bin/nopt +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=`dirname "$0"` - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@" - ret=$? -else - node "$basedir/../nopt/bin/nopt.js" "$@" - ret=$? -fi -exit $ret diff --git a/template/cordova/node_modules/.bin/nopt.cmd b/template/cordova/node_modules/.bin/nopt.cmd deleted file mode 100644 index c8e82169..00000000 --- a/template/cordova/node_modules/.bin/nopt.cmd +++ /dev/null @@ -1,5 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\nopt\bin\nopt.js" %* -) ELSE ( - node "%~dp0\..\nopt\bin\nopt.js" %* -) \ No newline at end of file diff --git a/template/cordova/node_modules/nopt/.npmignore b/template/cordova/node_modules/nopt/.npmignore deleted file mode 100644 index 3c3629e6..00000000 --- a/template/cordova/node_modules/nopt/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/template/cordova/node_modules/nopt/LICENSE b/template/cordova/node_modules/nopt/LICENSE deleted file mode 100644 index 05a40109..00000000 --- a/template/cordova/node_modules/nopt/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright 2009, 2010, 2011 Isaac Z. Schlueter. -All rights reserved. - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/template/cordova/node_modules/nopt/README.md b/template/cordova/node_modules/nopt/README.md deleted file mode 100644 index 5aba088b..00000000 --- a/template/cordova/node_modules/nopt/README.md +++ /dev/null @@ -1,209 +0,0 @@ -If you want to write an option parser, and have it be good, there are -two ways to do it. The Right Way, and the Wrong Way. - -The Wrong Way is to sit down and write an option parser. We've all done -that. - -The Right Way is to write some complex configurable program with so many -options that you go half-insane just trying to manage them all, and put -it off with duct-tape solutions until you see exactly to the core of the -problem, and finally snap and write an awesome option parser. - -If you want to write an option parser, don't write an option parser. -Write a package manager, or a source control system, or a service -restarter, or an operating system. You probably won't end up with a -good one of those, but if you don't give up, and you are relentless and -diligent enough in your procrastination, you may just end up with a very -nice option parser. - -## USAGE - - // my-program.js - var nopt = require("nopt") - , Stream = require("stream").Stream - , path = require("path") - , knownOpts = { "foo" : [String, null] - , "bar" : [Stream, Number] - , "baz" : path - , "bloo" : [ "big", "medium", "small" ] - , "flag" : Boolean - , "pick" : Boolean - , "many" : [String, Array] - } - , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] - , "b7" : ["--bar", "7"] - , "m" : ["--bloo", "medium"] - , "p" : ["--pick"] - , "f" : ["--flag"] - } - // everything is optional. - // knownOpts and shorthands default to {} - // arg list defaults to process.argv - // slice defaults to 2 - , parsed = nopt(knownOpts, shortHands, process.argv, 2) - console.log(parsed) - -This would give you support for any of the following: - -```bash -$ node my-program.js --foo "blerp" --no-flag -{ "foo" : "blerp", "flag" : false } - -$ node my-program.js ---bar 7 --foo "Mr. Hand" --flag -{ bar: 7, foo: "Mr. Hand", flag: true } - -$ node my-program.js --foo "blerp" -f -----p -{ foo: "blerp", flag: true, pick: true } - -$ node my-program.js -fp --foofoo -{ foo: "Mr. Foo", flag: true, pick: true } - -$ node my-program.js --foofoo -- -fp # -- stops the flag parsing. -{ foo: "Mr. Foo", argv: { remain: ["-fp"] } } - -$ node my-program.js --blatzk -fp # unknown opts are ok. -{ blatzk: true, flag: true, pick: true } - -$ node my-program.js --blatzk=1000 -fp # but you need to use = if they have a value -{ blatzk: 1000, flag: true, pick: true } - -$ node my-program.js --no-blatzk -fp # unless they start with "no-" -{ blatzk: false, flag: true, pick: true } - -$ node my-program.js --baz b/a/z # known paths are resolved. -{ baz: "/Users/isaacs/b/a/z" } - -# if Array is one of the types, then it can take many -# values, and will always be an array. The other types provided -# specify what types are allowed in the list. - -$ node my-program.js --many 1 --many null --many foo -{ many: ["1", "null", "foo"] } - -$ node my-program.js --many foo -{ many: ["foo"] } -``` - -Read the tests at the bottom of `lib/nopt.js` for more examples of -what this puppy can do. - -## Types - -The following types are supported, and defined on `nopt.typeDefs` - -* String: A normal string. No parsing is done. -* path: A file system path. Gets resolved against cwd if not absolute. -* url: A url. If it doesn't parse, it isn't accepted. -* Number: Must be numeric. -* Date: Must parse as a date. If it does, and `Date` is one of the options, - then it will return a Date object, not a string. -* Boolean: Must be either `true` or `false`. If an option is a boolean, - then it does not need a value, and its presence will imply `true` as - the value. To negate boolean flags, do `--no-whatever` or `--whatever - false` -* NaN: Means that the option is strictly not allowed. Any value will - fail. -* Stream: An object matching the "Stream" class in node. Valuable - for use when validating programmatically. (npm uses this to let you - supply any WriteStream on the `outfd` and `logfd` config options.) -* Array: If `Array` is specified as one of the types, then the value - will be parsed as a list of options. This means that multiple values - can be specified, and that the value will always be an array. - -If a type is an array of values not on this list, then those are -considered valid values. For instance, in the example above, the -`--bloo` option can only be one of `"big"`, `"medium"`, or `"small"`, -and any other value will be rejected. - -When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be -interpreted as their JavaScript equivalents. - -You can also mix types and values, or multiple types, in a list. For -instance `{ blah: [Number, null] }` would allow a value to be set to -either a Number or null. When types are ordered, this implies a -preference, and the first type that can be used to properly interpret -the value will be used. - -To define a new type, add it to `nopt.typeDefs`. Each item in that -hash is an object with a `type` member and a `validate` method. The -`type` member is an object that matches what goes in the type list. The -`validate` method is a function that gets called with `validate(data, -key, val)`. Validate methods should assign `data[key]` to the valid -value of `val` if it can be handled properly, or return boolean -`false` if it cannot. - -You can also call `nopt.clean(data, types, typeDefs)` to clean up a -config object and remove its invalid properties. - -## Error Handling - -By default, nopt outputs a warning to standard error when invalid -options are found. You can change this behavior by assigning a method -to `nopt.invalidHandler`. This method will be called with -the offending `nopt.invalidHandler(key, val, types)`. - -If no `nopt.invalidHandler` is assigned, then it will console.error -its whining. If it is assigned to boolean `false` then the warning is -suppressed. - -## Abbreviations - -Yes, they are supported. If you define options like this: - -```javascript -{ "foolhardyelephants" : Boolean -, "pileofmonkeys" : Boolean } -``` - -Then this will work: - -```bash -node program.js --foolhar --pil -node program.js --no-f --pileofmon -# etc. -``` - -## Shorthands - -Shorthands are a hash of shorter option names to a snippet of args that -they expand to. - -If multiple one-character shorthands are all combined, and the -combination does not unambiguously match any other option or shorthand, -then they will be broken up into their constituent parts. For example: - -```json -{ "s" : ["--loglevel", "silent"] -, "g" : "--global" -, "f" : "--force" -, "p" : "--parseable" -, "l" : "--long" -} -``` - -```bash -npm ls -sgflp -# just like doing this: -npm ls --loglevel silent --global --force --long --parseable -``` - -## The Rest of the args - -The config object returned by nopt is given a special member called -`argv`, which is an object with the following fields: - -* `remain`: The remaining args after all the parsing has occurred. -* `original`: The args as they originally appeared. -* `cooked`: The args after flags and shorthands are expanded. - -## Slicing - -Node programs are called with more or less the exact argv as it appears -in C land, after the v8 and node-specific options have been plucked off. -As such, `argv[0]` is always `node` and `argv[1]` is always the -JavaScript program being run. - -That's usually not very useful to you. So they're sliced off by -default. If you want them, then you can pass in `0` as the last -argument, or any other number that you'd like to slice off the start of -the list. diff --git a/template/cordova/node_modules/nopt/bin/nopt.js b/template/cordova/node_modules/nopt/bin/nopt.js deleted file mode 100644 index 3232d4c5..00000000 --- a/template/cordova/node_modules/nopt/bin/nopt.js +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env node -var nopt = require("../lib/nopt") - , path = require("path") - , types = { num: Number - , bool: Boolean - , help: Boolean - , list: Array - , "num-list": [Number, Array] - , "str-list": [String, Array] - , "bool-list": [Boolean, Array] - , str: String - , clear: Boolean - , config: Boolean - , length: Number - , file: path - } - , shorthands = { s: [ "--str", "astring" ] - , b: [ "--bool" ] - , nb: [ "--no-bool" ] - , tft: [ "--bool-list", "--no-bool-list", "--bool-list", "true" ] - , "?": ["--help"] - , h: ["--help"] - , H: ["--help"] - , n: [ "--num", "125" ] - , c: ["--config"] - , l: ["--length"] - , f: ["--file"] - } - , parsed = nopt( types - , shorthands - , process.argv - , 2 ) - -console.log("parsed", parsed) - -if (parsed.help) { - console.log("") - console.log("nopt cli tester") - console.log("") - console.log("types") - console.log(Object.keys(types).map(function M (t) { - var type = types[t] - if (Array.isArray(type)) { - return [t, type.map(function (type) { return type.name })] - } - return [t, type && type.name] - }).reduce(function (s, i) { - s[i[0]] = i[1] - return s - }, {})) - console.log("") - console.log("shorthands") - console.log(shorthands) -} diff --git a/template/cordova/node_modules/nopt/examples/my-program.js b/template/cordova/node_modules/nopt/examples/my-program.js deleted file mode 100644 index 142447e1..00000000 --- a/template/cordova/node_modules/nopt/examples/my-program.js +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env node - -//process.env.DEBUG_NOPT = 1 - -// my-program.js -var nopt = require("../lib/nopt") - , Stream = require("stream").Stream - , path = require("path") - , knownOpts = { "foo" : [String, null] - , "bar" : [Stream, Number] - , "baz" : path - , "bloo" : [ "big", "medium", "small" ] - , "flag" : Boolean - , "pick" : Boolean - } - , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] - , "b7" : ["--bar", "7"] - , "m" : ["--bloo", "medium"] - , "p" : ["--pick"] - , "f" : ["--flag", "true"] - , "g" : ["--flag"] - , "s" : "--flag" - } - // everything is optional. - // knownOpts and shorthands default to {} - // arg list defaults to process.argv - // slice defaults to 2 - , parsed = nopt(knownOpts, shortHands, process.argv, 2) - -console.log("parsed =\n"+ require("util").inspect(parsed)) diff --git a/template/cordova/node_modules/nopt/lib/nopt.js b/template/cordova/node_modules/nopt/lib/nopt.js deleted file mode 100644 index 5309a00f..00000000 --- a/template/cordova/node_modules/nopt/lib/nopt.js +++ /dev/null @@ -1,414 +0,0 @@ -// info about each config option. - -var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG - ? function () { console.error.apply(console, arguments) } - : function () {} - -var url = require("url") - , path = require("path") - , Stream = require("stream").Stream - , abbrev = require("abbrev") - -module.exports = exports = nopt -exports.clean = clean - -exports.typeDefs = - { String : { type: String, validate: validateString } - , Boolean : { type: Boolean, validate: validateBoolean } - , url : { type: url, validate: validateUrl } - , Number : { type: Number, validate: validateNumber } - , path : { type: path, validate: validatePath } - , Stream : { type: Stream, validate: validateStream } - , Date : { type: Date, validate: validateDate } - } - -function nopt (types, shorthands, args, slice) { - args = args || process.argv - types = types || {} - shorthands = shorthands || {} - if (typeof slice !== "number") slice = 2 - - debug(types, shorthands, args, slice) - - args = args.slice(slice) - var data = {} - , key - , remain = [] - , cooked = args - , original = args.slice(0) - - parse(args, data, remain, types, shorthands) - // now data is full - clean(data, types, exports.typeDefs) - data.argv = {remain:remain,cooked:cooked,original:original} - Object.defineProperty(data.argv, 'toString', { value: function () { - return this.original.map(JSON.stringify).join(" ") - }, enumerable: false }) - return data -} - -function clean (data, types, typeDefs) { - typeDefs = typeDefs || exports.typeDefs - var remove = {} - , typeDefault = [false, true, null, String, Array] - - Object.keys(data).forEach(function (k) { - if (k === "argv") return - var val = data[k] - , isArray = Array.isArray(val) - , type = types[k] - if (!isArray) val = [val] - if (!type) type = typeDefault - if (type === Array) type = typeDefault.concat(Array) - if (!Array.isArray(type)) type = [type] - - debug("val=%j", val) - debug("types=", type) - val = val.map(function (val) { - // if it's an unknown value, then parse false/true/null/numbers/dates - if (typeof val === "string") { - debug("string %j", val) - val = val.trim() - if ((val === "null" && ~type.indexOf(null)) - || (val === "true" && - (~type.indexOf(true) || ~type.indexOf(Boolean))) - || (val === "false" && - (~type.indexOf(false) || ~type.indexOf(Boolean)))) { - val = JSON.parse(val) - debug("jsonable %j", val) - } else if (~type.indexOf(Number) && !isNaN(val)) { - debug("convert to number", val) - val = +val - } else if (~type.indexOf(Date) && !isNaN(Date.parse(val))) { - debug("convert to date", val) - val = new Date(val) - } - } - - if (!types.hasOwnProperty(k)) { - return val - } - - // allow `--no-blah` to set 'blah' to null if null is allowed - if (val === false && ~type.indexOf(null) && - !(~type.indexOf(false) || ~type.indexOf(Boolean))) { - val = null - } - - var d = {} - d[k] = val - debug("prevalidated val", d, val, types[k]) - if (!validate(d, k, val, types[k], typeDefs)) { - if (exports.invalidHandler) { - exports.invalidHandler(k, val, types[k], data) - } else if (exports.invalidHandler !== false) { - debug("invalid: "+k+"="+val, types[k]) - } - return remove - } - debug("validated val", d, val, types[k]) - return d[k] - }).filter(function (val) { return val !== remove }) - - if (!val.length) delete data[k] - else if (isArray) { - debug(isArray, data[k], val) - data[k] = val - } else data[k] = val[0] - - debug("k=%s val=%j", k, val, data[k]) - }) -} - -function validateString (data, k, val) { - data[k] = String(val) -} - -function validatePath (data, k, val) { - if (val === true) return false - if (val === null) return true - - val = String(val) - var homePattern = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\// - if (val.match(homePattern) && process.env.HOME) { - val = path.resolve(process.env.HOME, val.substr(2)) - } - data[k] = path.resolve(String(val)) - return true -} - -function validateNumber (data, k, val) { - debug("validate Number %j %j %j", k, val, isNaN(val)) - if (isNaN(val)) return false - data[k] = +val -} - -function validateDate (data, k, val) { - debug("validate Date %j %j %j", k, val, Date.parse(val)) - var s = Date.parse(val) - if (isNaN(s)) return false - data[k] = new Date(val) -} - -function validateBoolean (data, k, val) { - if (val instanceof Boolean) val = val.valueOf() - else if (typeof val === "string") { - if (!isNaN(val)) val = !!(+val) - else if (val === "null" || val === "false") val = false - else val = true - } else val = !!val - data[k] = val -} - -function validateUrl (data, k, val) { - val = url.parse(String(val)) - if (!val.host) return false - data[k] = val.href -} - -function validateStream (data, k, val) { - if (!(val instanceof Stream)) return false - data[k] = val -} - -function validate (data, k, val, type, typeDefs) { - // arrays are lists of types. - if (Array.isArray(type)) { - for (var i = 0, l = type.length; i < l; i ++) { - if (type[i] === Array) continue - if (validate(data, k, val, type[i], typeDefs)) return true - } - delete data[k] - return false - } - - // an array of anything? - if (type === Array) return true - - // NaN is poisonous. Means that something is not allowed. - if (type !== type) { - debug("Poison NaN", k, val, type) - delete data[k] - return false - } - - // explicit list of values - if (val === type) { - debug("Explicitly allowed %j", val) - // if (isArray) (data[k] = data[k] || []).push(val) - // else data[k] = val - data[k] = val - return true - } - - // now go through the list of typeDefs, validate against each one. - var ok = false - , types = Object.keys(typeDefs) - for (var i = 0, l = types.length; i < l; i ++) { - debug("test type %j %j %j", k, val, types[i]) - var t = typeDefs[types[i]] - if (t && type === t.type) { - var d = {} - ok = false !== t.validate(d, k, val) - val = d[k] - if (ok) { - // if (isArray) (data[k] = data[k] || []).push(val) - // else data[k] = val - data[k] = val - break - } - } - } - debug("OK? %j (%j %j %j)", ok, k, val, types[i]) - - if (!ok) delete data[k] - return ok -} - -function parse (args, data, remain, types, shorthands) { - debug("parse", args, data, remain) - - var key = null - , abbrevs = abbrev(Object.keys(types)) - , shortAbbr = abbrev(Object.keys(shorthands)) - - for (var i = 0; i < args.length; i ++) { - var arg = args[i] - debug("arg", arg) - - if (arg.match(/^-{2,}$/)) { - // done with keys. - // the rest are args. - remain.push.apply(remain, args.slice(i + 1)) - args[i] = "--" - break - } - var hadEq = false - if (arg.charAt(0) === "-" && arg.length > 1) { - if (arg.indexOf("=") !== -1) { - hadEq = true - var v = arg.split("=") - arg = v.shift() - v = v.join("=") - args.splice.apply(args, [i, 1].concat([arg, v])) - } - - // see if it's a shorthand - // if so, splice and back up to re-parse it. - var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs) - debug("arg=%j shRes=%j", arg, shRes) - if (shRes) { - debug(arg, shRes) - args.splice.apply(args, [i, 1].concat(shRes)) - if (arg !== shRes[0]) { - i -- - continue - } - } - arg = arg.replace(/^-+/, "") - var no = null - while (arg.toLowerCase().indexOf("no-") === 0) { - no = !no - arg = arg.substr(3) - } - - if (abbrevs[arg]) arg = abbrevs[arg] - - var isArray = types[arg] === Array || - Array.isArray(types[arg]) && types[arg].indexOf(Array) !== -1 - - // allow unknown things to be arrays if specified multiple times. - if (!types.hasOwnProperty(arg) && data.hasOwnProperty(arg)) { - if (!Array.isArray(data[arg])) - data[arg] = [data[arg]] - isArray = true - } - - var val - , la = args[i + 1] - - var isBool = typeof no === 'boolean' || - types[arg] === Boolean || - Array.isArray(types[arg]) && types[arg].indexOf(Boolean) !== -1 || - (typeof types[arg] === 'undefined' && !hadEq) || - (la === "false" && - (types[arg] === null || - Array.isArray(types[arg]) && ~types[arg].indexOf(null))) - - if (isBool) { - // just set and move along - val = !no - // however, also support --bool true or --bool false - if (la === "true" || la === "false") { - val = JSON.parse(la) - la = null - if (no) val = !val - i ++ - } - - // also support "foo":[Boolean, "bar"] and "--foo bar" - if (Array.isArray(types[arg]) && la) { - if (~types[arg].indexOf(la)) { - // an explicit type - val = la - i ++ - } else if ( la === "null" && ~types[arg].indexOf(null) ) { - // null allowed - val = null - i ++ - } else if ( !la.match(/^-{2,}[^-]/) && - !isNaN(la) && - ~types[arg].indexOf(Number) ) { - // number - val = +la - i ++ - } else if ( !la.match(/^-[^-]/) && ~types[arg].indexOf(String) ) { - // string - val = la - i ++ - } - } - - if (isArray) (data[arg] = data[arg] || []).push(val) - else data[arg] = val - - continue - } - - if (types[arg] === String && la === undefined) - la = "" - - if (la && la.match(/^-{2,}$/)) { - la = undefined - i -- - } - - val = la === undefined ? true : la - if (isArray) (data[arg] = data[arg] || []).push(val) - else data[arg] = val - - i ++ - continue - } - remain.push(arg) - } -} - -function resolveShort (arg, shorthands, shortAbbr, abbrevs) { - // handle single-char shorthands glommed together, like - // npm ls -glp, but only if there is one dash, and only if - // all of the chars are single-char shorthands, and it's - // not a match to some other abbrev. - arg = arg.replace(/^-+/, '') - - // if it's an exact known option, then don't go any further - if (abbrevs[arg] === arg) - return null - - // if it's an exact known shortopt, same deal - if (shorthands[arg]) { - // make it an array, if it's a list of words - if (shorthands[arg] && !Array.isArray(shorthands[arg])) - shorthands[arg] = shorthands[arg].split(/\s+/) - - return shorthands[arg] - } - - // first check to see if this arg is a set of single-char shorthands - var singles = shorthands.___singles - if (!singles) { - singles = Object.keys(shorthands).filter(function (s) { - return s.length === 1 - }).reduce(function (l,r) { - l[r] = true - return l - }, {}) - shorthands.___singles = singles - debug('shorthand singles', singles) - } - - var chrs = arg.split("").filter(function (c) { - return singles[c] - }) - - if (chrs.join("") === arg) return chrs.map(function (c) { - return shorthands[c] - }).reduce(function (l, r) { - return l.concat(r) - }, []) - - - // if it's an arg abbrev, and not a literal shorthand, then prefer the arg - if (abbrevs[arg] && !shorthands[arg]) - return null - - // if it's an abbr for a shorthand, then use that - if (shortAbbr[arg]) - arg = shortAbbr[arg] - - // make it an array, if it's a list of words - if (shorthands[arg] && !Array.isArray(shorthands[arg])) - shorthands[arg] = shorthands[arg].split(/\s+/) - - return shorthands[arg] -} diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md b/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md deleted file mode 100644 index 2f302612..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +++ /dev/null @@ -1,3 +0,0 @@ - To get started, sign the - Contributor License Agreement. diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE b/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE deleted file mode 100644 index 05a40109..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright 2009, 2010, 2011 Isaac Z. Schlueter. -All rights reserved. - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/README.md b/template/cordova/node_modules/nopt/node_modules/abbrev/README.md deleted file mode 100644 index 99746fe6..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# abbrev-js - -Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). - -Usage: - - var abbrev = require("abbrev"); - abbrev("foo", "fool", "folding", "flop"); - - // returns: - { fl: 'flop' - , flo: 'flop' - , flop: 'flop' - , fol: 'folding' - , fold: 'folding' - , foldi: 'folding' - , foldin: 'folding' - , folding: 'folding' - , foo: 'foo' - , fool: 'fool' - } - -This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js b/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js deleted file mode 100644 index 69cfeac5..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/abbrev.js +++ /dev/null @@ -1,62 +0,0 @@ - -module.exports = exports = abbrev.abbrev = abbrev - -abbrev.monkeyPatch = monkeyPatch - -function monkeyPatch () { - Object.defineProperty(Array.prototype, 'abbrev', { - value: function () { return abbrev(this) }, - enumerable: false, configurable: true, writable: true - }) - - Object.defineProperty(Object.prototype, 'abbrev', { - value: function () { return abbrev(Object.keys(this)) }, - enumerable: false, configurable: true, writable: true - }) -} - -function abbrev (list) { - if (arguments.length !== 1 || !Array.isArray(list)) { - list = Array.prototype.slice.call(arguments, 0) - } - for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { - args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) - } - - // sort them lexicographically, so that they're next to their nearest kin - args = args.sort(lexSort) - - // walk through each, seeing how much it has in common with the next and previous - var abbrevs = {} - , prev = "" - for (var i = 0, l = args.length ; i < l ; i ++) { - var current = args[i] - , next = args[i + 1] || "" - , nextMatches = true - , prevMatches = true - if (current === next) continue - for (var j = 0, cl = current.length ; j < cl ; j ++) { - var curChar = current.charAt(j) - nextMatches = nextMatches && curChar === next.charAt(j) - prevMatches = prevMatches && curChar === prev.charAt(j) - if (!nextMatches && !prevMatches) { - j ++ - break - } - } - prev = current - if (j === cl) { - abbrevs[current] = current - continue - } - for (var a = current.substr(0, j) ; j <= cl ; j ++) { - abbrevs[a] = current - a += current.charAt(j) - } - } - return abbrevs -} - -function lexSort (a, b) { - return a === b ? 0 : a > b ? 1 : -1 -} diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/package.json b/template/cordova/node_modules/nopt/node_modules/abbrev/package.json deleted file mode 100644 index b1890206..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "abbrev", - "version": "1.0.5", - "description": "Like ruby's abbrev module, but in js", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me" - }, - "main": "abbrev.js", - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "http://github.com/isaacs/abbrev-js" - }, - "license": { - "type": "MIT", - "url": "https://github.com/isaacs/abbrev-js/raw/master/LICENSE" - }, - "readme": "# abbrev-js\n\nJust like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).\n\nUsage:\n\n var abbrev = require(\"abbrev\");\n abbrev(\"foo\", \"fool\", \"folding\", \"flop\");\n \n // returns:\n { fl: 'flop'\n , flo: 'flop'\n , flop: 'flop'\n , fol: 'folding'\n , fold: 'folding'\n , foldi: 'folding'\n , foldin: 'folding'\n , folding: 'folding'\n , foo: 'foo'\n , fool: 'fool'\n }\n\nThis is handy for command-line scripts, or other cases where you want to be able to accept shorthands.\n", - "readmeFilename": "README.md", - "bugs": { - "url": "https://github.com/isaacs/abbrev-js/issues" - }, - "homepage": "https://github.com/isaacs/abbrev-js", - "_id": "abbrev@1.0.5", - "_from": "abbrev@1" -} diff --git a/template/cordova/node_modules/nopt/node_modules/abbrev/test.js b/template/cordova/node_modules/nopt/node_modules/abbrev/test.js deleted file mode 100644 index d5a7303e..00000000 --- a/template/cordova/node_modules/nopt/node_modules/abbrev/test.js +++ /dev/null @@ -1,47 +0,0 @@ -var abbrev = require('./abbrev.js') -var assert = require("assert") -var util = require("util") - -console.log("TAP Version 13") -var count = 0 - -function test (list, expect) { - count++ - var actual = abbrev(list) - assert.deepEqual(actual, expect, - "abbrev("+util.inspect(list)+") === " + util.inspect(expect) + "\n"+ - "actual: "+util.inspect(actual)) - actual = abbrev.apply(exports, list) - assert.deepEqual(abbrev.apply(exports, list), expect, - "abbrev("+list.map(JSON.stringify).join(",")+") === " + util.inspect(expect) + "\n"+ - "actual: "+util.inspect(actual)) - console.log('ok - ' + list.join(' ')) -} - -test([ "ruby", "ruby", "rules", "rules", "rules" ], -{ rub: 'ruby' -, ruby: 'ruby' -, rul: 'rules' -, rule: 'rules' -, rules: 'rules' -}) -test(["fool", "foom", "pool", "pope"], -{ fool: 'fool' -, foom: 'foom' -, poo: 'pool' -, pool: 'pool' -, pop: 'pope' -, pope: 'pope' -}) -test(["a", "ab", "abc", "abcd", "abcde", "acde"], -{ a: 'a' -, ab: 'ab' -, abc: 'abc' -, abcd: 'abcd' -, abcde: 'abcde' -, ac: 'acde' -, acd: 'acde' -, acde: 'acde' -}) - -console.log("0..%d", count) diff --git a/template/cordova/node_modules/nopt/package.json b/template/cordova/node_modules/nopt/package.json deleted file mode 100644 index 62d0fe84..00000000 --- a/template/cordova/node_modules/nopt/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "nopt", - "version": "3.0.1", - "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "main": "lib/nopt.js", - "scripts": { - "test": "tap test/*.js" - }, - "repository": { - "type": "git", - "url": "http://github.com/isaacs/nopt" - }, - "bin": { - "nopt": "./bin/nopt.js" - }, - "license": { - "type": "MIT", - "url": "https://github.com/isaacs/nopt/raw/master/LICENSE" - }, - "dependencies": { - "abbrev": "1" - }, - "devDependencies": { - "tap": "~0.4.8" - }, - "readme": "If you want to write an option parser, and have it be good, there are\ntwo ways to do it. The Right Way, and the Wrong Way.\n\nThe Wrong Way is to sit down and write an option parser. We've all done\nthat.\n\nThe Right Way is to write some complex configurable program with so many\noptions that you go half-insane just trying to manage them all, and put\nit off with duct-tape solutions until you see exactly to the core of the\nproblem, and finally snap and write an awesome option parser.\n\nIf you want to write an option parser, don't write an option parser.\nWrite a package manager, or a source control system, or a service\nrestarter, or an operating system. You probably won't end up with a\ngood one of those, but if you don't give up, and you are relentless and\ndiligent enough in your procrastination, you may just end up with a very\nnice option parser.\n\n## USAGE\n\n // my-program.js\n var nopt = require(\"nopt\")\n , Stream = require(\"stream\").Stream\n , path = require(\"path\")\n , knownOpts = { \"foo\" : [String, null]\n , \"bar\" : [Stream, Number]\n , \"baz\" : path\n , \"bloo\" : [ \"big\", \"medium\", \"small\" ]\n , \"flag\" : Boolean\n , \"pick\" : Boolean\n , \"many\" : [String, Array]\n }\n , shortHands = { \"foofoo\" : [\"--foo\", \"Mr. Foo\"]\n , \"b7\" : [\"--bar\", \"7\"]\n , \"m\" : [\"--bloo\", \"medium\"]\n , \"p\" : [\"--pick\"]\n , \"f\" : [\"--flag\"]\n }\n // everything is optional.\n // knownOpts and shorthands default to {}\n // arg list defaults to process.argv\n // slice defaults to 2\n , parsed = nopt(knownOpts, shortHands, process.argv, 2)\n console.log(parsed)\n\nThis would give you support for any of the following:\n\n```bash\n$ node my-program.js --foo \"blerp\" --no-flag\n{ \"foo\" : \"blerp\", \"flag\" : false }\n\n$ node my-program.js ---bar 7 --foo \"Mr. Hand\" --flag\n{ bar: 7, foo: \"Mr. Hand\", flag: true }\n\n$ node my-program.js --foo \"blerp\" -f -----p\n{ foo: \"blerp\", flag: true, pick: true }\n\n$ node my-program.js -fp --foofoo\n{ foo: \"Mr. Foo\", flag: true, pick: true }\n\n$ node my-program.js --foofoo -- -fp # -- stops the flag parsing.\n{ foo: \"Mr. Foo\", argv: { remain: [\"-fp\"] } }\n\n$ node my-program.js --blatzk -fp # unknown opts are ok.\n{ blatzk: true, flag: true, pick: true }\n\n$ node my-program.js --blatzk=1000 -fp # but you need to use = if they have a value\n{ blatzk: 1000, flag: true, pick: true }\n\n$ node my-program.js --no-blatzk -fp # unless they start with \"no-\"\n{ blatzk: false, flag: true, pick: true }\n\n$ node my-program.js --baz b/a/z # known paths are resolved.\n{ baz: \"/Users/isaacs/b/a/z\" }\n\n# if Array is one of the types, then it can take many\n# values, and will always be an array. The other types provided\n# specify what types are allowed in the list.\n\n$ node my-program.js --many 1 --many null --many foo\n{ many: [\"1\", \"null\", \"foo\"] }\n\n$ node my-program.js --many foo\n{ many: [\"foo\"] }\n```\n\nRead the tests at the bottom of `lib/nopt.js` for more examples of\nwhat this puppy can do.\n\n## Types\n\nThe following types are supported, and defined on `nopt.typeDefs`\n\n* String: A normal string. No parsing is done.\n* path: A file system path. Gets resolved against cwd if not absolute.\n* url: A url. If it doesn't parse, it isn't accepted.\n* Number: Must be numeric.\n* Date: Must parse as a date. If it does, and `Date` is one of the options,\n then it will return a Date object, not a string.\n* Boolean: Must be either `true` or `false`. If an option is a boolean,\n then it does not need a value, and its presence will imply `true` as\n the value. To negate boolean flags, do `--no-whatever` or `--whatever\n false`\n* NaN: Means that the option is strictly not allowed. Any value will\n fail.\n* Stream: An object matching the \"Stream\" class in node. Valuable\n for use when validating programmatically. (npm uses this to let you\n supply any WriteStream on the `outfd` and `logfd` config options.)\n* Array: If `Array` is specified as one of the types, then the value\n will be parsed as a list of options. This means that multiple values\n can be specified, and that the value will always be an array.\n\nIf a type is an array of values not on this list, then those are\nconsidered valid values. For instance, in the example above, the\n`--bloo` option can only be one of `\"big\"`, `\"medium\"`, or `\"small\"`,\nand any other value will be rejected.\n\nWhen parsing unknown fields, `\"true\"`, `\"false\"`, and `\"null\"` will be\ninterpreted as their JavaScript equivalents.\n\nYou can also mix types and values, or multiple types, in a list. For\ninstance `{ blah: [Number, null] }` would allow a value to be set to\neither a Number or null. When types are ordered, this implies a\npreference, and the first type that can be used to properly interpret\nthe value will be used.\n\nTo define a new type, add it to `nopt.typeDefs`. Each item in that\nhash is an object with a `type` member and a `validate` method. The\n`type` member is an object that matches what goes in the type list. The\n`validate` method is a function that gets called with `validate(data,\nkey, val)`. Validate methods should assign `data[key]` to the valid\nvalue of `val` if it can be handled properly, or return boolean\n`false` if it cannot.\n\nYou can also call `nopt.clean(data, types, typeDefs)` to clean up a\nconfig object and remove its invalid properties.\n\n## Error Handling\n\nBy default, nopt outputs a warning to standard error when invalid\noptions are found. You can change this behavior by assigning a method\nto `nopt.invalidHandler`. This method will be called with\nthe offending `nopt.invalidHandler(key, val, types)`.\n\nIf no `nopt.invalidHandler` is assigned, then it will console.error\nits whining. If it is assigned to boolean `false` then the warning is\nsuppressed.\n\n## Abbreviations\n\nYes, they are supported. If you define options like this:\n\n```javascript\n{ \"foolhardyelephants\" : Boolean\n, \"pileofmonkeys\" : Boolean }\n```\n\nThen this will work:\n\n```bash\nnode program.js --foolhar --pil\nnode program.js --no-f --pileofmon\n# etc.\n```\n\n## Shorthands\n\nShorthands are a hash of shorter option names to a snippet of args that\nthey expand to.\n\nIf multiple one-character shorthands are all combined, and the\ncombination does not unambiguously match any other option or shorthand,\nthen they will be broken up into their constituent parts. For example:\n\n```json\n{ \"s\" : [\"--loglevel\", \"silent\"]\n, \"g\" : \"--global\"\n, \"f\" : \"--force\"\n, \"p\" : \"--parseable\"\n, \"l\" : \"--long\"\n}\n```\n\n```bash\nnpm ls -sgflp\n# just like doing this:\nnpm ls --loglevel silent --global --force --long --parseable\n```\n\n## The Rest of the args\n\nThe config object returned by nopt is given a special member called\n`argv`, which is an object with the following fields:\n\n* `remain`: The remaining args after all the parsing has occurred.\n* `original`: The args as they originally appeared.\n* `cooked`: The args after flags and shorthands are expanded.\n\n## Slicing\n\nNode programs are called with more or less the exact argv as it appears\nin C land, after the v8 and node-specific options have been plucked off.\nAs such, `argv[0]` is always `node` and `argv[1]` is always the\nJavaScript program being run.\n\nThat's usually not very useful to you. So they're sliced off by\ndefault. If you want them, then you can pass in `0` as the last\nargument, or any other number that you'd like to slice off the start of\nthe list.\n", - "readmeFilename": "README.md", - "bugs": { - "url": "https://github.com/isaacs/nopt/issues" - }, - "homepage": "https://github.com/isaacs/nopt", - "_id": "nopt@3.0.1", - "_shasum": "bce5c42446a3291f47622a370abbf158fbbacbfd", - "_from": "nopt@", - "_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.1.tgz" -} diff --git a/template/cordova/node_modules/nopt/test/basic.js b/template/cordova/node_modules/nopt/test/basic.js deleted file mode 100644 index 2f9088cf..00000000 --- a/template/cordova/node_modules/nopt/test/basic.js +++ /dev/null @@ -1,251 +0,0 @@ -var nopt = require("../") - , test = require('tap').test - - -test("passing a string results in a string", function (t) { - var parsed = nopt({ key: String }, {}, ["--key", "myvalue"], 0) - t.same(parsed.key, "myvalue") - t.end() -}) - -// https://github.com/npm/nopt/issues/31 -test("Empty String results in empty string, not true", function (t) { - var parsed = nopt({ empty: String }, {}, ["--empty"], 0) - t.same(parsed.empty, "") - t.end() -}) - -test("~ path is resolved to $HOME", function (t) { - var path = require("path") - if (!process.env.HOME) process.env.HOME = "/tmp" - var parsed = nopt({key: path}, {}, ["--key=~/val"], 0) - t.same(parsed.key, path.resolve(process.env.HOME, "val")) - t.end() -}) - -// https://github.com/npm/nopt/issues/24 -test("Unknown options are not parsed as numbers", function (t) { - var parsed = nopt({"parse-me": Number}, null, ['--leave-as-is=1.20', '--parse-me=1.20'], 0) - t.equal(parsed['leave-as-is'], '1.20') - t.equal(parsed['parse-me'], 1.2) - t.end() -}); - -test("other tests", function (t) { - - var util = require("util") - , Stream = require("stream") - , path = require("path") - , url = require("url") - - , shorthands = - { s : ["--loglevel", "silent"] - , d : ["--loglevel", "info"] - , dd : ["--loglevel", "verbose"] - , ddd : ["--loglevel", "silly"] - , noreg : ["--no-registry"] - , reg : ["--registry"] - , "no-reg" : ["--no-registry"] - , silent : ["--loglevel", "silent"] - , verbose : ["--loglevel", "verbose"] - , h : ["--usage"] - , H : ["--usage"] - , "?" : ["--usage"] - , help : ["--usage"] - , v : ["--version"] - , f : ["--force"] - , desc : ["--description"] - , "no-desc" : ["--no-description"] - , "local" : ["--no-global"] - , l : ["--long"] - , p : ["--parseable"] - , porcelain : ["--parseable"] - , g : ["--global"] - } - - , types = - { aoa: Array - , nullstream: [null, Stream] - , date: Date - , str: String - , browser : String - , cache : path - , color : ["always", Boolean] - , depth : Number - , description : Boolean - , dev : Boolean - , editor : path - , force : Boolean - , global : Boolean - , globalconfig : path - , group : [String, Number] - , gzipbin : String - , logfd : [Number, Stream] - , loglevel : ["silent","win","error","warn","info","verbose","silly"] - , long : Boolean - , "node-version" : [false, String] - , npaturl : url - , npat : Boolean - , "onload-script" : [false, String] - , outfd : [Number, Stream] - , parseable : Boolean - , pre: Boolean - , prefix: path - , proxy : url - , "rebuild-bundle" : Boolean - , registry : url - , searchopts : String - , searchexclude: [null, String] - , shell : path - , t: [Array, String] - , tag : String - , tar : String - , tmp : path - , "unsafe-perm" : Boolean - , usage : Boolean - , user : String - , username : String - , userconfig : path - , version : Boolean - , viewer: path - , _exit : Boolean - , path: path - } - - ; [["-v", {version:true}, []] - ,["---v", {version:true}, []] - ,["ls -s --no-reg connect -d", - {loglevel:"info",registry:null},["ls","connect"]] - ,["ls ---s foo",{loglevel:"silent"},["ls","foo"]] - ,["ls --registry blargle", {}, ["ls"]] - ,["--no-registry", {registry:null}, []] - ,["--no-color true", {color:false}, []] - ,["--no-color false", {color:true}, []] - ,["--no-color", {color:false}, []] - ,["--color false", {color:false}, []] - ,["--color --logfd 7", {logfd:7,color:true}, []] - ,["--color=true", {color:true}, []] - ,["--logfd=10", {logfd:10}, []] - ,["--tmp=/tmp -tar=gtar",{tmp:"/tmp",tar:"gtar"},[]] - ,["--tmp=tmp -tar=gtar", - {tmp:path.resolve(process.cwd(), "tmp"),tar:"gtar"},[]] - ,["--logfd x", {}, []] - ,["a -true -- -no-false", {true:true},["a","-no-false"]] - ,["a -no-false", {false:false},["a"]] - ,["a -no-no-true", {true:true}, ["a"]] - ,["a -no-no-no-false", {false:false}, ["a"]] - ,["---NO-no-No-no-no-no-nO-no-no"+ - "-No-no-no-no-no-no-no-no-no"+ - "-no-no-no-no-NO-NO-no-no-no-no-no-no"+ - "-no-body-can-do-the-boogaloo-like-I-do" - ,{"body-can-do-the-boogaloo-like-I-do":false}, []] - ,["we are -no-strangers-to-love "+ - "--you-know=the-rules --and=so-do-i "+ - "---im-thinking-of=a-full-commitment "+ - "--no-you-would-get-this-from-any-other-guy "+ - "--no-gonna-give-you-up "+ - "-no-gonna-let-you-down=true "+ - "--no-no-gonna-run-around false "+ - "--desert-you=false "+ - "--make-you-cry false "+ - "--no-tell-a-lie "+ - "--no-no-and-hurt-you false" - ,{"strangers-to-love":false - ,"you-know":"the-rules" - ,"and":"so-do-i" - ,"you-would-get-this-from-any-other-guy":false - ,"gonna-give-you-up":false - ,"gonna-let-you-down":false - ,"gonna-run-around":false - ,"desert-you":false - ,"make-you-cry":false - ,"tell-a-lie":false - ,"and-hurt-you":false - },["we", "are"]] - ,["-t one -t two -t three" - ,{t: ["one", "two", "three"]} - ,[]] - ,["-t one -t null -t three four five null" - ,{t: ["one", "null", "three"]} - ,["four", "five", "null"]] - ,["-t foo" - ,{t:["foo"]} - ,[]] - ,["--no-t" - ,{t:["false"]} - ,[]] - ,["-no-no-t" - ,{t:["true"]} - ,[]] - ,["-aoa one -aoa null -aoa 100" - ,{aoa:["one", null, '100']} - ,[]] - ,["-str 100" - ,{str:"100"} - ,[]] - ,["--color always" - ,{color:"always"} - ,[]] - ,["--no-nullstream" - ,{nullstream:null} - ,[]] - ,["--nullstream false" - ,{nullstream:null} - ,[]] - ,["--notadate=2011-01-25" - ,{notadate: "2011-01-25"} - ,[]] - ,["--date 2011-01-25" - ,{date: new Date("2011-01-25")} - ,[]] - ,["-cl 1" - ,{config: true, length: 1} - ,[] - ,{config: Boolean, length: Number, clear: Boolean} - ,{c: "--config", l: "--length"}] - ,["--acount bla" - ,{"acount":true} - ,["bla"] - ,{account: Boolean, credentials: Boolean, options: String} - ,{a:"--account", c:"--credentials",o:"--options"}] - ,["--clear" - ,{clear:true} - ,[] - ,{clear:Boolean,con:Boolean,len:Boolean,exp:Boolean,add:Boolean,rep:Boolean} - ,{c:"--con",l:"--len",e:"--exp",a:"--add",r:"--rep"}] - ,["--file -" - ,{"file":"-"} - ,[] - ,{file:String} - ,{}] - ,["--file -" - ,{"file":true} - ,["-"] - ,{file:Boolean} - ,{}] - ,["--path" - ,{"path":null} - ,[]] - ,["--path ." - ,{"path":process.cwd()} - ,[]] - ].forEach(function (test) { - var argv = test[0].split(/\s+/) - , opts = test[1] - , rem = test[2] - , actual = nopt(test[3] || types, test[4] || shorthands, argv, 0) - , parsed = actual.argv - delete actual.argv - for (var i in opts) { - var e = JSON.stringify(opts[i]) - , a = JSON.stringify(actual[i] === undefined ? null : actual[i]) - if (e && typeof e === "object") { - t.deepEqual(e, a) - } else { - t.equal(e, a) - } - } - t.deepEqual(rem, parsed.remain) - }) - t.end() -}) diff --git a/template/cordova/node_modules/q/CONTRIBUTING.md b/template/cordova/node_modules/q/CONTRIBUTING.md deleted file mode 100644 index 500ab17b..00000000 --- a/template/cordova/node_modules/q/CONTRIBUTING.md +++ /dev/null @@ -1,40 +0,0 @@ - -For pull requests: - -- Be consistent with prevalent style and design decisions. -- Add a Jasmine spec to `specs/q-spec.js`. -- Use `npm test` to avoid regressions. -- Run tests in `q-spec/run.html` in as many supported browsers as you - can find the will to deal with. -- Do not build minified versions; we do this each release. -- If you would be so kind, add a note to `CHANGES.md` in an - appropriate section: - - - `Next Major Version` if it introduces backward incompatibilities - to code in the wild using documented features. - - `Next Minor Version` if it adds a new feature. - - `Next Patch Version` if it fixes a bug. - -For releases: - -- Run `npm test`. -- Run tests in `q-spec/run.html` in a representative sample of every - browser under the sun. -- Run `npm run cover` and make sure you're happy with the results. -- Run `npm run minify` and be sure to commit the resulting `q.min.js`. -- Note the Gzipped size output by the previous command, and update - `README.md` if it has changed to 1 significant digit. -- Stash any local changes. -- Update `CHANGES.md` to reflect all changes in the differences - between `HEAD` and the previous tagged version. Give credit where - credit is due. -- Update `README.md` to address all new, non-experimental features. -- Update the API reference on the Wiki to reflect all non-experimental - features. -- Use `npm version major|minor|patch` to update `package.json`, - commit, and tag the new version. -- Use `npm publish` to send up a new release. -- Send an email to the q-continuum mailing list announcing the new - release and the notes from the change log. This helps folks - maintaining other package ecosystems. - diff --git a/template/cordova/node_modules/q/LICENSE b/template/cordova/node_modules/q/LICENSE deleted file mode 100644 index 8a706b59..00000000 --- a/template/cordova/node_modules/q/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright 2009–2014 Kristopher Michael Kowal. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. diff --git a/template/cordova/node_modules/q/README.md b/template/cordova/node_modules/q/README.md deleted file mode 100644 index bdd4168c..00000000 --- a/template/cordova/node_modules/q/README.md +++ /dev/null @@ -1,820 +0,0 @@ -[![Build Status](https://secure.travis-ci.org/kriskowal/q.png?branch=master)](http://travis-ci.org/kriskowal/q) - - - Promises/A+ logo - - -*This is Q version 1, from the `v1` branch in Git. This documentation applies to -the latest of both the version 1 and version 0.9 release trains. These releases -are stable. There will be no further releases of 0.9 after 0.9.7 which is nearly -equivalent to version 1.0.0. All further releases of `q@~1.0` will be backward -compatible. The version 2 release train introduces significant but -backward-incompatible changes and is experimental at this time.* - -If a function cannot return a value or throw an exception without -blocking, it can return a promise instead. A promise is an object -that represents the return value or the thrown exception that the -function may eventually provide. A promise can also be used as a -proxy for a [remote object][Q-Connection] to overcome latency. - -[Q-Connection]: https://github.com/kriskowal/q-connection - -On the first pass, promises can mitigate the “[Pyramid of -Doom][POD]”: the situation where code marches to the right faster -than it marches forward. - -[POD]: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/ - -```javascript -step1(function (value1) { - step2(value1, function(value2) { - step3(value2, function(value3) { - step4(value3, function(value4) { - // Do something with value4 - }); - }); - }); -}); -``` - -With a promise library, you can flatten the pyramid. - -```javascript -Q.fcall(promisedStep1) -.then(promisedStep2) -.then(promisedStep3) -.then(promisedStep4) -.then(function (value4) { - // Do something with value4 -}) -.catch(function (error) { - // Handle any error from all above steps -}) -.done(); -``` - -With this approach, you also get implicit error propagation, just like `try`, -`catch`, and `finally`. An error in `promisedStep1` will flow all the way to -the `catch` function, where it’s caught and handled. (Here `promisedStepN` is -a version of `stepN` that returns a promise.) - -The callback approach is called an “inversion of control”. -A function that accepts a callback instead of a return value -is saying, “Don’t call me, I’ll call you.”. Promises -[un-invert][IOC] the inversion, cleanly separating the input -arguments from control flow arguments. This simplifies the -use and creation of API’s, particularly variadic, -rest and spread arguments. - -[IOC]: http://www.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript - - -## Getting Started - -The Q module can be loaded as: - -- A ``