cordova-lib.git
8 years agoMerge branch 'CB-6615' of https://github.com/MSOpenTech/cordova-plugman
Jesse MacFadyen [Fri, 20 Jun 2014 21:50:30 +0000 (14:50 -0700)] 
Merge branch 'CB-6615' of https://github.com/MSOpenTech/cordova-plugman

8 years agoCB-6709 Do not create merges/ folder when adding a platform
Michal Mocny [Fri, 20 Jun 2014 17:46:50 +0000 (13:46 -0400)] 
CB-6709 Do not create merges/ folder when adding a platform

8 years agoCB-6140 Don't allow deletion of platform dependencies
Danyi Lin [Thu, 19 Jun 2014 22:45:19 +0000 (18:45 -0400)] 
CB-6140 Don't allow deletion of platform dependencies

plugman dependency check will ignore platform/dependency when removing an
installed plugin, which will result in platform level dependencies is
uninstalled improperly.

github: close #38

8 years agoCB-6986 make npm run jshint work without a global jshint
Josh Soref [Thu, 19 Jun 2014 20:00:04 +0000 (16:00 -0400)] 
CB-6986 make npm run jshint work without a global jshint

Add jshint to dev-deps in package.json and use it instead of relying on a
global jshint.

github: close #37

8 years agoCB-6698: Fix 'android update lib-project' to work with paths containing spaces
Martin Bektchiev [Thu, 19 Jun 2014 17:29:15 +0000 (20:29 +0300)] 
CB-6698: Fix 'android update lib-project' to work with paths containing spaces

github: close #36

8 years agoCB-6973: Run JSHint on all code in src/ via npm test
Mark Koudritsky [Thu, 19 Jun 2014 16:56:59 +0000 (12:56 -0400)] 
CB-6973: Run JSHint on all code in src/ via npm test

"npm test" will nor run "jshing src" if the jasmine stage completes
with no errors.

Specs are not covered by JSHint for now.

8 years agoCB-6973: Fix JSHint errors in cordova/metadata/*
Mark Koudritsky [Thu, 19 Jun 2014 16:51:45 +0000 (12:51 -0400)] 
CB-6973: Fix JSHint errors in cordova/metadata/*

All files in src pass JSHint clean now.
To run JSHint on all the js files, run
jshint src
from the root dir of cordova-lib package

8 years agoCB-6973: Fix JSHint errors in ConfigParse
Mark Koudritsky [Thu, 19 Jun 2014 14:52:17 +0000 (10:52 -0400)] 
CB-6973: Fix JSHint errors in ConfigParse

Also a minor bug fix in findOrCreate().

8 years agoCB-6973: Fix JSHint errors in plugman/platforms/*
Mark Koudritsky [Thu, 19 Jun 2014 14:35:02 +0000 (10:35 -0400)] 
CB-6973: Fix JSHint errors in plugman/platforms/*

8 years agoCB-6973: Fix JSHint errors in plugman/registry/*
Mark Koudritsky [Thu, 19 Jun 2014 13:59:34 +0000 (09:59 -0400)] 
CB-6973: Fix JSHint errors in plugman/registry/*

8 years agoCB-6973: Fix more JSHint errors
Mark Koudritsky [Wed, 18 Jun 2014 21:07:28 +0000 (17:07 -0400)] 
CB-6973: Fix more JSHint errors

8 years agoCB-6540 Rephrase Error msg for creating a project inside its template
Josh Soref [Wed, 18 Jun 2014 22:17:19 +0000 (18:17 -0400)] 
CB-6540 Rephrase Error msg for creating a project inside its template

github: close #35

8 years agoCB-6542: Delay creating project until there's some chance that it will succeed
Josh Soref [Wed, 18 Jun 2014 22:13:23 +0000 (18:13 -0400)] 
CB-6542: Delay creating project until there's some chance that it will succeed

github: close #34

8 years agofolder_contents() now ignores .svn folders
strille [Wed, 18 Jun 2014 13:10:16 +0000 (15:10 +0200)] 
folder_contents() now ignores .svn folders

.svn folders should not be referenced in the jsproj file. They are already
correctly ignored when copying the www folder, and this causes the build to
fail (since the jsproj references files that cannot be found in www).

github: close #33

8 years agoCB-6970 Share win project files manipulation code between cordova and plugman
sgrebnov [Wed, 18 Jun 2014 13:05:06 +0000 (17:05 +0400)] 
CB-6970 Share win project files manipulation code between cordova and plugman

github: close #32

8 years agoCB-6973: Fix JSHint errors in src/plugman/*.js
Mark Koudritsky [Wed, 18 Jun 2014 19:14:26 +0000 (15:14 -0400)] 
CB-6973: Fix JSHint errors in src/plugman/*.js

Add JSHint config comment in all the files (sometimes with tweaks)
/* jshint node:true, bitwise:true, undef:true, trailing:true, quotmark:true,
          indent:4, unused:vars, latedef:nofunc
*/

JSHint is now happy for both src/cordova/*.js and src/plugman/*.js
not including subdirs.

Use
npm run jshint
to run jshint on all the files that have been fixed so far.

8 years agoCB-6973: Add JSHint to npm-test in package.json
Mark Koudritsky [Wed, 18 Jun 2014 16:38:31 +0000 (12:38 -0400)] 
CB-6973: Add JSHint to npm-test in package.json

 - It runs after jasmine and only if jasmine test was successful.
 - Can be run separately as "npm run jshint".
 - For now only covers src/cordova/*.js not including metadata/*.js

8 years agoCB-6973: Fix JSHint errors in src/cordova/*.js
Mark Koudritsky [Wed, 18 Jun 2014 14:57:54 +0000 (10:57 -0400)] 
CB-6973: Fix JSHint errors in src/cordova/*.js

Add JSHint config comment in all the files (sometimes with tweaks)
/* jshint node:true, bitwise:true, undef:true, trailing:true, quotmark:true,
          indent:4, unused:vars, latedef:nofunc
*/

JSHint is now happy for all of src/cordova/*.js (not including metadata/*.js).

8 years agoCB-6954: Expose the unified events as cordova_lib.events
Mark Koudritsky [Wed, 18 Jun 2014 15:09:56 +0000 (11:09 -0400)] 
CB-6954: Expose the unified events as cordova_lib.events

After events got shared between cordova and plugman, some log messages were
printed multiple times since handlers were registered twice in the cli:
cordova.on(...)
plugman.on(...)
changing it to
events.on(...)

8 years agoJSHint fixes
Mark Koudritsky [Tue, 17 Jun 2014 19:44:09 +0000 (15:44 -0400)] 
JSHint fixes

Add the following JSHint config to several files that already had some inline
JSHint config. This is part of figuring out the optimal jshint config for us.

/* jshint node:true, bitwise:true, undef:true, trailing:true, quotmark:true,
          indent:4, unused:vars, latedef:nofunc
*/

In some files tweaks to this config were needed. I added them on a separate
line. For example, the tweaks in plugman/install.js are:
laxcomma:true, sub:true, expr:true, asi:true, quotmark:false

8 years agoCB-6954: Share events.js between cordova and plugman
sgrebnov [Tue, 17 Jun 2014 13:32:24 +0000 (17:32 +0400)] 
CB-6954: Share events.js between cordova and plugman

github: close #31

8 years agoCB-6698 Automatically copy sub-libraries to project's directory
Martin Bektchiev [Fri, 13 Jun 2014 16:00:36 +0000 (19:00 +0300)] 
CB-6698 Automatically copy sub-libraries to project's directory

Github: close #29

8 years agoRevert "CB-6698 Resolve android <framework> relative to plugin_dir when custom=true"
Martin Bektchiev [Fri, 13 Jun 2014 15:12:02 +0000 (18:12 +0300)] 
Revert "CB-6698 Resolve android <framework> relative to plugin_dir when custom=true"

This reverts commit 04588a42067a5ba0d303f4b69f99f44640c3b9e0.

8 years agoMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-lib
Anis Kadri [Fri, 13 Jun 2014 23:44:56 +0000 (16:44 -0700)] 
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-lib

Conflicts:
cordova-lib/npm-shrinkwrap.json

8 years agoremoving doWrap from prepare
Anis Kadri [Fri, 13 Jun 2014 23:43:25 +0000 (16:43 -0700)] 
removing doWrap from prepare

8 years agoCB-6942 Describe running hooks only in verbose mode.
Michal Mocny [Fri, 13 Jun 2014 21:02:18 +0000 (17:02 -0400)] 
CB-6942 Describe running hooks only in verbose mode.

8 years agoCB-6512: Allow "cordova platform add /path/to/platform/files"
Mark Koudritsky [Fri, 13 Jun 2014 20:55:52 +0000 (16:55 -0400)] 
CB-6512: Allow "cordova platform add /path/to/platform/files"

The directory with platform files is expected to contain a package.json
with name: cordova-platformName.

Example:

    cordova platform add \
        /Users/kamrik/.cordova/lib/npm_cache/cordova-ios/3.5.0/package/

8 years agoUpdate hooks-README.md - shebang line in hooks on Windows.
A.Perez [Fri, 13 Jun 2014 15:30:36 +0000 (17:30 +0200)] 
Update hooks-README.md - shebang line in hooks on Windows.

I think letting know to users of Windows that a shebang line is expected at
the start of their non bat scripts is a good idea. I found out myself not
knowing how to make my python and node.js scripts to work as hooks until I
read cordova-lib\src\cordova\hooker.js line 77, function
extractSheBangInterpreter.

github: close #28

8 years agoUpdate properties-parser to version 0.2.3
Martin Bektchiev [Fri, 13 Jun 2014 13:11:10 +0000 (16:11 +0300)] 
Update properties-parser to version 0.2.3

github: close #27

8 years agoMerge remote-tracking branch 'rodms/CB-6895'
Piotr Zalewa [Fri, 13 Jun 2014 10:44:47 +0000 (12:44 +0200)] 
Merge remote-tracking branch 'rodms/CB-6895'

8 years agoAllow "cordova platform add platform@version"
Mark Koudritsky [Thu, 12 Jun 2014 21:21:57 +0000 (17:21 -0400)] 
Allow "cordova platform add platform@version"

This only works with --usenpm for now.
E.g.:
cordova platform add ios@3.5.0 --usenpm

8 years agoMinor style filxes in cordova/platform.js
Mark Koudritsky [Thu, 12 Jun 2014 21:00:34 +0000 (17:00 -0400)] 
Minor style filxes in cordova/platform.js

Committing separately to avoid mixing this with real logic changes coming next.

8 years agoCB-6895 Add more config properties into manifest 26/head
Rodrigo Silveira [Tue, 10 Jun 2014 22:29:49 +0000 (15:29 -0700)] 
CB-6895 Add more config properties into manifest

8 years agoStyle fixes in lazy_load.js
Mark Koudritsky [Thu, 12 Jun 2014 17:41:48 +0000 (13:41 -0400)] 
Style fixes in lazy_load.js

 - Make jshint happy.
 - Use function name() instead of name: function() for less indent
   and less ambiguity about function names. Some of them had
   oneName: function otherName() {...}
   which is very confusing.

8 years agoCB-6931: Fix licence headers in cordova-lib
Ian Clelland [Thu, 12 Jun 2014 14:16:44 +0000 (10:16 -0400)] 
CB-6931: Fix licence headers in cordova-lib

8 years agoAdd util func for chaining promises
Mark Koudritsky [Wed, 11 Jun 2014 21:52:21 +0000 (17:52 -0400)] 
Add util func for chaining promises

In many places we construct chains of promises consisting of the same function
called repeatedly with different args (a kind of promise-land forEach loop).
This is usually implemented with reduce( func(), Q() ) which results in a deep
indentation christmas tree. This change adds a utility function
Q_chainmap(argsArray, func) to use in such cases.

8 years agoStyle fixes in src/cordova/platform.js
Mark Koudritsky [Wed, 11 Jun 2014 21:31:00 +0000 (17:31 -0400)] 
Style fixes in src/cordova/platform.js

 - Wrap some overly long lines.
 - Unindent a chunk of code which lived under an unneeded "else".

8 years agoadding configurable attribute
Anis Kadri [Wed, 11 Jun 2014 00:20:37 +0000 (17:20 -0700)] 
adding configurable attribute

8 years agocleaning up plugman.js for uninstall
Anis Kadri [Tue, 10 Jun 2014 23:23:24 +0000 (16:23 -0700)] 
cleaning up plugman.js for uninstall

8 years agoadding param to uninstall
Anis Kadri [Tue, 10 Jun 2014 23:12:02 +0000 (16:12 -0700)] 
adding param to uninstall

8 years agoadding support for prepare flag
Anis Kadri [Tue, 10 Jun 2014 23:07:10 +0000 (16:07 -0700)] 
adding support for prepare flag

8 years agoadding prepare-browserify
Anis Kadri [Tue, 10 Jun 2014 23:06:46 +0000 (16:06 -0700)] 
adding prepare-browserify

8 years agoadding options to prepare
Anis Kadri [Tue, 10 Jun 2014 23:06:15 +0000 (16:06 -0700)] 
adding options to prepare

8 years agoadding and freezing cordova-js
Anis Kadri [Tue, 10 Jun 2014 23:05:50 +0000 (16:05 -0700)] 
adding and freezing cordova-js

8 years agoStyle fixes in src/cordova/ustil.js
Mark Koudritsky [Tue, 10 Jun 2014 19:30:55 +0000 (15:30 -0400)] 
Style fixes in src/cordova/ustil.js

 - Add jshint config line.
 - Make jshint happy.
 - Use regular function defs instead of inline assignment. This reduces indent,
   and hoists the functions up so they can use each other.

 Most of the diff is the white space of reduced indent.

8 years agoremoved root package.json file
Lorin Beer [Mon, 9 Jun 2014 20:01:33 +0000 (13:01 -0700)] 
removed root package.json file

8 years ago[CB-6879] config parser breakout into a cordova level module
Lorin Beer [Thu, 5 Jun 2014 06:52:13 +0000 (23:52 -0700)] 
[CB-6879] config parser breakout into a cordova level module

internal referencing is weak (relative paths)
10 squashed commits

package.json added to root, so that package.json can be linked from git/hub url as well as npm registry

updated create.js to consume configparser module from root of cordova-lib master module

config parser readme skeleton

[docs] document configparser module

updated create test to use modular ConfigParser

metadata parsers now consume the Cordova-Lib ConfigParser module

references the source by relative path
improvement would be for each module to be referenced through npm

cordova lib functions refer to modularized ConfigParser

removed ConfigParser implementation from cordova

tracking config parser test suite

8 years agoFix --noregistry for dependent plugins
Mark Koudritsky [Fri, 6 Jun 2014 20:27:01 +0000 (16:27 -0400)] 
Fix --noregistry for dependent plugins

--noregistry wasn't plumbed through properly and dependent plugins were still
downloaded from the registry. Works ok now

8 years agoCB-6698 Resolve android <framework> relative to plugin_dir when custom=true
Andrew Grieve [Fri, 6 Jun 2014 20:23:47 +0000 (16:23 -0400)] 
CB-6698 Resolve android <framework> relative to plugin_dir when custom=true

8 years agoFix tests on node 0.11.x
Andrew Grieve [Fri, 6 Jun 2014 20:00:59 +0000 (16:00 -0400)] 
Fix tests on node 0.11.x

8 years agoStyle changes in cordova/platform.js
Mark Koudritsky [Fri, 6 Jun 2014 19:12:27 +0000 (15:12 -0400)] 
Style changes in cordova/platform.js

Make jshint happy.
No functional changes, at least none intended.

8 years agoMerge 'icenium/bektchiev/refer-properties-parser-from-npm'
Mark Koudritsky [Fri, 6 Jun 2014 14:13:54 +0000 (10:13 -0400)] 
Merge 'icenium/bektchiev/refer-properties-parser-from-npm'

Fix android <framework> unit tests to not expect end of line.

github: close #25

8 years agoFix android <framework> unit tests to not expect end of line. 25/head
Martin Bektchiev [Fri, 6 Jun 2014 06:43:42 +0000 (09:43 +0300)] 
Fix android <framework> unit tests to not expect end of line.

8 years agoCB-6024: Accept cli vars as part of opts param
Mark Koudritsky [Thu, 5 Jun 2014 22:31:46 +0000 (18:31 -0400)] 
CB-6024: Accept cli vars as part of opts param

This is part of the nopt refacoring in cordova-cli. The old spaghetti logic
for extracting options and variables from the arguments is kept, but should
probably be removed soon.

8 years agoMerge branch 'bektchiev/refer-properties-parser-from-npm' of https://github.com/Iceni...
Andrew Grieve [Wed, 4 Jun 2014 14:24:57 +0000 (10:24 -0400)] 
Merge branch 'bektchiev/refer-properties-parser-from-npm' of https://github.com/Icenium/cordova-lib

8 years agoUse properties-parser dep from npm registry, not github
Martin Bektchiev [Wed, 4 Jun 2014 14:11:12 +0000 (17:11 +0300)] 
Use properties-parser dep from npm registry, not github

Using github URLs as dependencies in package.json doesn't work for people who
don't have git installed on their machine.

github: close #24

8 years agoRefer properties-parser package from NPM. 24/head
Martin Bektchiev [Wed, 4 Jun 2014 14:11:12 +0000 (17:11 +0300)] 
Refer properties-parser package from NPM.

8 years agoCB-6859 Removed all wp7 references, tests still passing 23/head
Jesse MacFadyen [Tue, 3 Jun 2014 21:43:49 +0000 (14:43 -0700)] 
CB-6859 Removed all wp7 references, tests still passing

8 years agoRemove trailing spaces in all js files
Mark Koudritsky [Tue, 3 Jun 2014 19:19:58 +0000 (15:19 -0400)] 
Remove trailing spaces in all js files

So that everyone can use auto removal of trailing spaces without generating
unwanted diff lines. Only white space changes, nothing else.
This also adds newlines at the end of files that didn't have them.

Files used in testing fixtures are not affected.

The command used:
sed -i '' 's/[[:space:]]*$//g' **/*.js

8 years agoExtract AndroidProject class into a separate .js file
Martin Bektchiev [Tue, 3 Jun 2014 11:19:59 +0000 (14:19 +0300)] 
Extract AndroidProject class into a separate .js file

8 years agoCB-6698: Support library references for Android via the framework tag
Martin Bektchiev [Tue, 27 May 2014 11:53:19 +0000 (14:53 +0300)] 
CB-6698: Support library references for Android via the framework tag

8 years agoCB-6854 Strip BOM when adding cordova.define() to js-modules
Andrew Grieve [Tue, 3 Jun 2014 18:23:26 +0000 (14:23 -0400)] 
CB-6854 Strip BOM when adding cordova.define() to js-modules

8 years agoAdd npm cache based downloading to lazy_load
Mark Koudritsky [Fri, 30 May 2014 21:27:29 +0000 (17:27 -0400)] 
Add npm cache based downloading to lazy_load

lazy_load was downloading platforms files from github using a url like this
git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=snapshot;h=3.5.0;sf=tgz

This change adds the possibility to donwload platform file from npm registry
E.g. cordova-ios is published here https://www.npmjs.org/package/cordova-ios

By default the old way is still used, to use npm add --usenpm flag to cordova
cli or opts.usenpm=true in opts parameter of the cordova.raw.platform()
function.

8 years agoCB-6823 Improve test for is source path ancestor when using copy-from or link-to
Michal Mocny [Fri, 30 May 2014 18:02:49 +0000 (14:02 -0400)] 
CB-6823 Improve test for is source path ancestor when using copy-from or link-to

8 years agoCB-6815 Add license to CONTRIBUTING.md
Marcel Kinard [Fri, 30 May 2014 15:35:13 +0000 (11:35 -0400)] 
CB-6815 Add license to CONTRIBUTING.md

8 years agoUse PluginInfo in plugman/install.js
Mark Koudritsky [Fri, 30 May 2014 15:19:14 +0000 (11:19 -0400)] 
Use PluginInfo in plugman/install.js

This changes plugman/install.js to use PluginInfo instead of direct xml parsing
for plugin.xml. There is still some xml parsing left because those xml elements
are passed down to ActionStack.

8 years agoExtend PluginInfo to parse more of plugin.xml
Mark Koudritsky [Thu, 22 May 2014 20:23:14 +0000 (16:23 -0400)] 
Extend PluginInfo to parse more of plugin.xml

8 years agoCB-6767 Allow `cordova` to be replaceable
Josh Soref [Tue, 27 May 2014 17:22:39 +0000 (13:22 -0400)] 
CB-6767 Allow `cordova` to be replaceable

Allow to specify the name of the binary for phrasing error and warning messages
with the proper binary name.

github: close #20

8 years agoCB-6772 Provide a default for AndroidLaunchMode
Michal Mocny [Thu, 29 May 2014 18:42:24 +0000 (14:42 -0400)] 
CB-6772 Provide a default for AndroidLaunchMode

8 years agoCB-5421 fix windows8 test
Josh Soref [Wed, 14 May 2014 19:14:39 +0000 (15:14 -0400)] 
CB-5421 fix windows8 test

The following error message doesn't show any longer when running
npm test
ls: no such file or directory: /some/path/platforms/windows8/www

github: close #8

8 years agoCB-6711: Use parseProjectFile when working with XCode projects.
Martin Bektchiev [Wed, 14 May 2014 16:56:35 +0000 (19:56 +0300)] 
CB-6711: Use parseProjectFile when working with XCode projects.

Otherwise the changes get overwritten by the cached version of the project file.
This is due to double caching between ConfigKeeper and parseProjectFile.
Add a unit test to guard against similar bugs in the future.

github: close #15

8 years agoStart using PluginInfo object in plugman/install.js
Mark Koudritsky [Fri, 16 May 2014 19:03:33 +0000 (15:03 -0400)] 
Start using PluginInfo object in plugman/install.js

8 years agoFix create.spec - don't expect merges dir
Mark Koudritsky [Tue, 20 May 2014 15:23:55 +0000 (11:23 -0400)] 
Fix create.spec - don't expect merges dir

The merges dir was removed from the default app. Remove it from the list of
dirs the create spec expects to exist.

8 years agoCB-6709 Remove merges/ folder for default apps
Michal Mocny [Fri, 16 May 2014 19:53:03 +0000 (15:53 -0400)] 
CB-6709 Remove merges/ folder for default apps

8 years agosupport for shrinkwrap flag
Gorkem Ercan [Thu, 15 May 2014 19:43:44 +0000 (15:43 -0400)] 
support for shrinkwrap flag

Adds support for a shrinkwrap flag. Unless the flag is specified the saved
data will not contain the version information.

8 years agoInitial implementation for restore and save plugin
Gorkem Ercan [Wed, 14 May 2014 01:05:48 +0000 (21:05 -0400)] 
Initial implementation for restore and save plugin

Adds a new save command to CLI which persists the currently added plugins to config.xml. There
is also an accompanying restore command which scans the config.xml and
restores the missing plugins that are listed.  Adds a new function to ConfigParser for adding
features. Updates plugin rm command to print a warning to also remove a
plugin that has been added to config.xml as a restore target.

Adds two new test for the new commands namely restore.spec and save.spec and
enhances the existing ConfigParser.spec for the new addFeature function.

8 years agoRemove unused code from plugman/install.js
Mark Koudritsky [Fri, 16 May 2014 18:41:05 +0000 (14:41 -0400)] 
Remove unused code from plugman/install.js

isPluginInstalled() function was defined twice with exactly the same body.

"usused:vars" directive for jshint means it will warn about unused variables
but not about unused function parameters.

8 years agoStyle fixes in plugman/insall.js, jshint runs with no warnings
Mark Koudritsky [Fri, 16 May 2014 18:28:59 +0000 (14:28 -0400)] 
Style fixes in plugman/insall.js, jshint runs with no warnings

8 years agoCB-6668: Use <description> for "plugin ls" when <name> is missing.
Mark Koudritsky [Fri, 16 May 2014 01:26:54 +0000 (21:26 -0400)] 
CB-6668: Use <description> for "plugin ls" when <name> is missing.

Plugin listing looks like the output below. The last column is now
plugin.name || plugin.description

$ cordova plugin ls
com.test.plugman 0.1.1 "plug_test"
org.apache.cordova.file 1.1.0 "File"
org.apache.cordova.statusbar 0.1.3 "StatusBar"

8 years agoAdd --noregstry flag for disabling plugin lookup in the registry
Mark Koudritsky [Fri, 16 May 2014 01:02:03 +0000 (21:02 -0400)] 
Add --noregstry flag for disabling plugin lookup in the registry

8 years agoadded dev to version number
Steven Gill [Wed, 14 May 2014 23:15:49 +0000 (16:15 -0700)] 
added dev to version number

8 years agoRemove --force from default npm settings for plugin registry
Mark Koudritsky [Wed, 14 May 2014 20:36:26 +0000 (16:36 -0400)] 
Remove --force from default npm settings for plugin registry

Changed to setting --force specifically for (un)publish where it's needed
and removed it from the default settings.

For publish --force is needed when overwriting an already published version.
Otherwise the registry will reply with a 409 HTTP response.

For unpublishing the registry only allows to unpublish specific versions,
if you want to remove the entire thing with all the published version
--force is needed.

8 years agoUse "npm info" for fetching plugin metadata
Mark Koudritsky [Wed, 14 May 2014 04:16:42 +0000 (00:16 -0400)] 
Use "npm info" for fetching plugin metadata

npm info is an alias for npm view.

By default npm view won't call the registry if there is a recent .cache.json
file for this package.
Forcing npm to ignore the cache by setting cache timeouts to 0
via npm settings cache-min = cache-max = 0.

8 years agoUse "npm cache add" for downloading plugins
Mark Koudritsky [Wed, 14 May 2014 02:13:26 +0000 (22:13 -0400)] 
Use "npm cache add" for downloading plugins

Plugins were downloaded using the request library. Changing the registry.js
code to use "npm cache add" as the main fetching mechanism. This results in
considerably less code to maintain.

Npm's default proxy settings are used automatically (unless overridden in
~/.plugman/config).

Platform fetching done by cordova/fetch should eventually use npm as well, but
this will require publishing the platforms as npm package tarballs.

8 years agoCB-6691: Change some instances of Error() to CordovaError()
Mark Koudritsky [Wed, 14 May 2014 15:28:46 +0000 (11:28 -0400)] 
CB-6691: Change some instances of Error() to CordovaError()

Full stack is printed out when Error is thrown, but only the message for
CordovaError. Left it as Error in several paces I wasn't sure about.

8 years agoupdate version for republish cordova-lib-0.21.3
Steven Gill [Mon, 12 May 2014 22:46:07 +0000 (15:46 -0700)] 
update version for republish

8 years agoupdate version for republish
Steven Gill [Mon, 12 May 2014 22:46:07 +0000 (15:46 -0700)] 
update version for republish

8 years agoMerge branch 'master' of https://github.com/AxelNennker/cordova-lib
Steven Gill [Mon, 12 May 2014 21:46:17 +0000 (14:46 -0700)] 
Merge branch 'master' of https://github.com/AxelNennker/cordova-lib

8 years agoMerge branch 'cb_6674' of https://github.com/jsoref/cordova-lib
Steven Gill [Mon, 12 May 2014 21:42:11 +0000 (14:42 -0700)] 
Merge branch 'cb_6674' of https://github.com/jsoref/cordova-lib

8 years ago[CB-6675][amazon-fireos]Adding amazon-fireos platform fails with an error in amazon_f...
Archana Naik [Mon, 12 May 2014 19:49:06 +0000 (12:49 -0700)] 
[CB-6675][amazon-fireos]Adding amazon-fireos platform fails with an error in amazon_fireos_parser.js
Fixed the error.

8 years agoCB-6674 handle missing plugins in dependencies 5/head
Josh Soref [Mon, 12 May 2014 18:59:32 +0000 (14:59 -0400)] 
CB-6674 handle missing plugins in dependencies

8 years agoCB-6415 [BlackBerry10] fix check_reqs for custom paths
Bryan Higgins [Mon, 12 May 2014 18:11:23 +0000 (14:11 -0400)] 
CB-6415 [BlackBerry10] fix check_reqs for custom paths

8 years agoCB-2606 add launcher icon support for FirefoxOS 4/head
ignisvulpis [Mon, 12 May 2014 17:33:02 +0000 (19:33 +0200)] 
CB-2606 add launcher icon support for FirefoxOS

8 years agoupdated npm shrinkwrap
Steven Gill [Fri, 9 May 2014 23:40:42 +0000 (16:40 -0700)] 
updated npm shrinkwrap

8 years agohad to update version to republish on npm 0.21.2
Steven Gill [Fri, 9 May 2014 23:10:43 +0000 (16:10 -0700)] 
had to update version to republish on npm

8 years agomoved osenv module to dev from devdependencies
Steven Gill [Fri, 9 May 2014 23:05:47 +0000 (16:05 -0700)] 
moved osenv module to dev from devdependencies

8 years agoran npm-shrinkwrap
Steven Gill [Fri, 9 May 2014 22:13:34 +0000 (15:13 -0700)] 
ran npm-shrinkwrap

8 years agoCB-6586: removed dev from version for npm publish
Steven Gill [Fri, 9 May 2014 22:12:50 +0000 (15:12 -0700)] 
CB-6586: removed dev from version for npm publish

8 years agoUse null as plugin name for plugins with no <name>
Mark Koudritsky [Fri, 9 May 2014 19:42:10 +0000 (15:42 -0400)] 
Use null as plugin name for plugins with no <name>

Apparently some plugins don't have a <name> tag. Check for this and use
set the name to null for them in PluginInfo.

8 years agoCB-4456: Remove plugins-plist bits from the tests
Mark Koudritsky [Fri, 9 May 2014 15:27:04 +0000 (11:27 -0400)] 
CB-4456: Remove plugins-plist bits from the tests

Support for plugins-plist was removed as of 3.4 in Feb 2014. It was replaced
with a deprecation warning. This change is for removal of plugins-plist
related bits in the tests.