cordova-lib.git
4 years agoeslint and gitattributes to ensure LF, run eslint on integration tests
Jarrad Whitaker [Sat, 21 Oct 2017 00:25:36 +0000 (11:25 +1100)] 
eslint and gitattributes to ensure LF, run eslint on integration tests

4 years agoCB-13463 : prevent package.json update plugins with --nosave 599/head
Audrey So [Fri, 20 Oct 2017 21:10:26 +0000 (14:10 -0700)] 
CB-13463 : prevent package.json update plugins with --nosave

4 years agoUndo accidental commit to qs/.eslintrc
Roland [Fri, 20 Oct 2017 21:45:04 +0000 (22:45 +0100)] 
Undo accidental commit to qs/.eslintrc

 This closes #597

4 years agoMore targeted eslintignore
Roland [Fri, 20 Oct 2017 21:42:26 +0000 (22:42 +0100)] 
More targeted eslintignore

4 years agoRemoved redundant eslint-disable/enable directives, now that we're excluding the...
Roland [Fri, 20 Oct 2017 19:43:53 +0000 (20:43 +0100)] 
Removed redundant eslint-disable/enable directives, now that we're excluding the whole file.

4 years agoRe-instated (and fixed?) glob patterns for excluded spec folders
Roland [Fri, 20 Oct 2017 19:41:55 +0000 (20:41 +0100)] 
Re-instated (and fixed?) glob patterns for excluded spec folders

4 years agoMake eslint ignore init-defaults.js file(s) as it will fail otherwise on 'package...
Roland [Fri, 20 Oct 2017 07:00:32 +0000 (08:00 +0100)] 
Make eslint ignore init-defaults.js file(s) as it will fail otherwise on 'package' keword that PromZard injects

4 years agoSecond attempt at fix for CB-13451
Roland [Thu, 19 Oct 2017 20:45:23 +0000 (21:45 +0100)] 
Second attempt at fix for CB-13451

4 years agoRevert "Fix for 'pkg is not defined' exception"
Roland [Wed, 18 Oct 2017 19:45:23 +0000 (20:45 +0100)] 
Revert "Fix for 'pkg is not defined' exception"

This reverts commit e321bc319b94c86b77d993981491f99bac6f27f9.

4 years agoFix for 'pkg is not defined' exception
Roland [Mon, 16 Oct 2017 20:57:59 +0000 (21:57 +0100)] 
Fix for 'pkg is not defined' exception
A global js-lint pass on the cordova-lib codebase on the 30/8/2017 caused references to the global 'package' variable in init-default.js to be renamed to 'pkg’, presumably because the cordova-lib source doesn’t declare a global variable called ‘package’ but _does_ declare a global variable called ‘pkg’ (in cordova/info.js). However in this case, the ‘package’ variable refers to the one declared in the plugman source, specifically main.js, so it should have stayed as 'package’. To test the fix, run:

plugman createpackagejson .

Without the fix, this will trigger the following exception: 'pkg is not defined'. Having patched in the fix, running the command line should work as expected, prompting the user with questions and then spitting out a package.json file.

4 years agocommented out flakey test
Steve Gill [Fri, 20 Oct 2017 23:44:10 +0000 (16:44 -0700)] 
commented out flakey test

4 years agoadded appveyor to ratignore
Steve Gill [Mon, 9 Oct 2017 21:56:11 +0000 (14:56 -0700)] 
added appveyor to ratignore

4 years agoCB-13380 Incremented package version to -dev
Steve Gill [Fri, 6 Oct 2017 22:28:29 +0000 (15:28 -0700)] 
CB-13380 Incremented package version to -dev

4 years agoCB-13380: updated integration tests to work with new pinned platforms 7.1.x 7.1.0 rel/7.1.0
Steve Gill [Fri, 6 Oct 2017 22:16:13 +0000 (15:16 -0700)] 
CB-13380: updated integration tests to work with new pinned platforms

4 years agoCB-13380 Updated version and RELEASENOTES.md for release 7.1.0
Steve Gill [Thu, 5 Oct 2017 19:18:29 +0000 (12:18 -0700)] 
CB-13380 Updated version and RELEASENOTES.md for release 7.1.0

4 years agoCB-12361 : updated and added unit tests for add.spec.js
Audrey So [Mon, 18 Sep 2017 20:37:45 +0000 (13:37 -0700)] 
CB-12361 : updated and added unit tests for add.spec.js

 This closes #595

4 years agoCB-12361 : added plugin tests for plugin list
Audrey So [Fri, 15 Sep 2017 16:32:55 +0000 (09:32 -0700)] 
CB-12361 : added plugin tests for plugin list

 This closes #593

4 years agoCB-13303 : added save_exact and production opts
Audrey So [Tue, 3 Oct 2017 22:57:52 +0000 (15:57 -0700)] 
CB-13303 : added save_exact and production opts

 This closes #596

4 years agoCB-13274 : removed references to jshint
Audrey So [Wed, 13 Sep 2017 22:41:26 +0000 (15:41 -0700)] 
CB-13274 : removed references to jshint

 This closes #591

5 years agoCB-12361 : added tests for plugin/save.js 584/head
Audrey So [Wed, 26 Jul 2017 22:51:44 +0000 (15:51 -0700)] 
CB-12361 : added tests for plugin/save.js

5 years agoCB-13288 : updated index.js and test to fix cordova plugin search 594/head
Audrey So [Fri, 15 Sep 2017 20:34:44 +0000 (13:34 -0700)] 
CB-13288 : updated index.js and test to fix cordova plugin search

5 years agoCB-12361: added comment for plugin add tests
Steve Gill [Wed, 6 Sep 2017 07:32:42 +0000 (00:32 -0700)] 
CB-12361: added comment for plugin add tests

 This closes #569

5 years agoCB-13206: fixed incorrect target being passed in to plugin add from restore-util.js
Steve Gill [Wed, 6 Sep 2017 07:29:34 +0000 (00:29 -0700)] 
CB-13206: fixed incorrect target being passed in to plugin add from restore-util.js

5 years agoCB-12361: added more unit tests for plugin add.spec.js
Steve Gill [Thu, 29 Jun 2017 18:01:03 +0000 (12:01 -0600)] 
CB-12361: added more unit tests for plugin add.spec.js

5 years agoCB-12361: added main function unit tests for plugin add.spec.js
Steve Gill [Mon, 26 Jun 2017 18:32:45 +0000 (12:32 -0600)] 
CB-12361: added main function unit tests for plugin add.spec.js

5 years agoupdated cordova-common dep
Steve Gill [Tue, 5 Sep 2017 21:35:06 +0000 (14:35 -0700)] 
updated cordova-common dep

5 years agofixed failing e2e-test due to browser release
Steve Gill [Wed, 30 Aug 2017 06:10:02 +0000 (23:10 -0700)] 
fixed failing e2e-test due to browser release

5 years agoCB-13145 : added unit tests for mergeVariables from util.js and variable-merge.js...
Audrey So [Thu, 24 Aug 2017 21:54:22 +0000 (14:54 -0700)] 
CB-13145 : added unit tests for mergeVariables from util.js and variable-merge.js and updated after review

5 years agoCB-13145 : added variable-merge.js to deal with plugin.xml variables for uninstall
Audrey So [Wed, 23 Aug 2017 20:27:45 +0000 (13:27 -0700)] 
CB-13145 : added variable-merge.js to deal with plugin.xml variables for uninstall

5 years agoCB-13145: pass full options to plugman uninstall
Steve Gill [Wed, 23 Aug 2017 04:39:24 +0000 (21:39 -0700)] 
CB-13145: pass full options to plugman uninstall

5 years agoCB-12870 : rebased and updated paths 561/head
Audrey So [Thu, 10 Aug 2017 18:25:39 +0000 (11:25 -0700)] 
CB-12870 : rebased and updated paths

5 years agoCB-12870 : catch all use cases for getPlatformApiFunc and update tests accordingly
Audrey So [Wed, 31 May 2017 17:41:22 +0000 (10:41 -0700)] 
CB-12870 : catch all use cases for getPlatformApiFunc and update tests accordingly

5 years agoupdated .gitignore
Steve Gill [Wed, 23 Aug 2017 01:05:36 +0000 (18:05 -0700)] 
updated .gitignore

5 years agoCB-12944: Platform's spec is ignored in config.xml if package.json doesn't contain...
Nikita Matrosov [Tue, 15 Aug 2017 09:47:35 +0000 (12:47 +0300)] 
CB-12944: Platform's spec is ignored in config.xml if package.json doesn't contain dependency for platform

 This closes #565

5 years agoCB-12838 : prevented sorting and aphabetizing platforms and plugins in pkgjson and... 574/head
Audrey So [Wed, 12 Jul 2017 00:21:41 +0000 (17:21 -0700)] 
CB-12838 : prevented sorting and aphabetizing platforms and plugins in pkgjson and config

5 years agoCB-12361 : added plugin remove tests 581/head
Audrey So [Thu, 20 Jul 2017 23:19:07 +0000 (16:19 -0700)] 
CB-12361 : added plugin remove tests

5 years agoCB-12361 : added tests for plugin/index.js 583/head
Audrey So [Wed, 26 Jul 2017 18:36:21 +0000 (11:36 -0700)] 
CB-12361 : added tests for plugin/index.js

5 years agoCB-12361 : added tests for list platform 577/head
Audrey So [Mon, 17 Jul 2017 23:06:37 +0000 (16:06 -0700)] 
CB-12361 : added tests for list platform

5 years agoCB-12361 : added tests for plugin/search.js and rebased 582/head
Audrey So [Thu, 20 Jul 2017 20:23:11 +0000 (13:23 -0700)] 
CB-12361 : added tests for plugin/search.js and rebased

5 years agoremoved .jscs.json
Remco Haszing [Mon, 7 Aug 2017 20:50:50 +0000 (22:50 +0200)] 
removed .jscs.json

It is no longer used

5 years agoMerge branch 'master' of https://github.com/wildabeast/cordova-lib
Audrey So [Tue, 8 Aug 2017 20:51:58 +0000 (13:51 -0700)] 
Merge branch 'master' of https://github.com/wildabeast/cordova-lib

5 years agoCB-13056 : added deprecation notice for webos 587/head
Audrey So [Tue, 1 Aug 2017 23:05:24 +0000 (16:05 -0700)] 
CB-13056 : added deprecation notice for webos

5 years agoCB-13057 : added deprecation warning for cordova platform save 585/head
Audrey So [Tue, 1 Aug 2017 20:46:59 +0000 (13:46 -0700)] 
CB-13057 : added deprecation warning for cordova platform save

5 years agoCB-12361 : added tests for save.js and rebased 579/head
Audrey So [Tue, 18 Jul 2017 21:32:51 +0000 (14:32 -0700)] 
CB-12361 : added tests for save.js and rebased

5 years agoCB-12895 : updated integration tests with eslint format and rebased 580/head
Audrey So [Tue, 25 Jul 2017 17:59:31 +0000 (10:59 -0700)] 
CB-12895 : updated integration tests with eslint format and rebased

5 years agoCB-12895 : ran eslint --fix on cordova-lib
Audrey So [Wed, 19 Jul 2017 16:54:49 +0000 (09:54 -0700)] 
CB-12895 : ran eslint --fix on cordova-lib

5 years agoCB-12895 : set up eslint
Audrey So [Wed, 19 Jul 2017 16:51:05 +0000 (09:51 -0700)] 
CB-12895 : set up eslint

5 years agoCB-12361 : rebased and revised get platform details test 578/head
Audrey So [Thu, 27 Jul 2017 21:56:48 +0000 (14:56 -0700)] 
CB-12361 : rebased and revised get platform details test

5 years agoCB-12361 : added unit-tests for getPlatformDetailsFromDir
Audrey So [Tue, 18 Jul 2017 17:35:28 +0000 (10:35 -0700)] 
CB-12361 : added unit-tests for getPlatformDetailsFromDir

5 years agoCB-12361 : added tests for remove platform 576/head
Audrey So [Mon, 17 Jul 2017 19:01:20 +0000 (12:01 -0700)] 
CB-12361 : added tests for remove platform

5 years agoCB-13020: (plugman) install filters out nohooks 575/head
Ryan Willoughby [Thu, 13 Jul 2017 19:10:04 +0000 (12:10 -0700)] 
CB-13020: (plugman) install filters out nohooks

5 years agoCB-12361 : made revisions after review and feedback 573/head
Audrey So [Wed, 12 Jul 2017 16:38:17 +0000 (09:38 -0700)] 
CB-12361 : made revisions after review and feedback

5 years agoCB-12361 : updated addHelper spec tests
Audrey So [Thu, 29 Jun 2017 20:57:51 +0000 (13:57 -0700)] 
CB-12361 : updated addHelper spec tests

5 years agoCB-12361 : updated addHelper tests
Audrey So [Thu, 29 Jun 2017 16:46:57 +0000 (09:46 -0700)] 
CB-12361 : updated addHelper tests

5 years agoCB-11980 Update readme to reflect new repos
Jesse MacFadyen [Tue, 27 Jun 2017 23:21:55 +0000 (16:21 -0700)] 
CB-11980 Update readme to reflect new repos

5 years agoCB-6143: Change plugman.emit() to events.emit() 572/head
Alexander Sorokin [Wed, 28 Jun 2017 07:28:58 +0000 (10:28 +0300)] 
CB-6143: Change plugman.emit() to events.emit()

5 years agoEmpty commit to trigger github sync
Alexander Sorokin [Wed, 28 Jun 2017 08:33:52 +0000 (11:33 +0300)] 
Empty commit to trigger github sync

5 years agoReorganized unit test directory. Changes include: 568/head
filmaj [Thu, 22 Jun 2017 20:29:57 +0000 (15:29 -0500)] 
Reorganized unit test directory. Changes include:
- consolidate spec-cordova/ and spec-plugman/ into a single spec/ dir.
- put jasmine config and helper modules in top-level spec dir.
- changed package.json npm run scripts to reflect purposes of tasks. remove "npm run ci" (dosnt fit in new tasks layout)
- updated readme to reflect package.json npm run script changes.
- update appveyor and travis to just run "npm test" - just like a dev would on their local machine.

5 years agoCB-12361: updated prepare tests based on feedback 567/head
Steve Gill [Thu, 22 Jun 2017 07:33:54 +0000 (00:33 -0700)] 
CB-12361: updated prepare tests based on feedback

5 years agoCB-12361: wrapped up prepare.js unit tests
Steve Gill [Wed, 21 Jun 2017 18:52:07 +0000 (11:52 -0700)] 
CB-12361: wrapped up prepare.js unit tests

5 years agoCB-12361: added unit tests for prepare.spec.js
Steve Gill [Tue, 20 Jun 2017 07:52:57 +0000 (00:52 -0700)] 
CB-12361: added unit tests for prepare.spec.js

5 years agoremoved restoring platforms+plugins save.spec from prepare. rewrote structure of...
filmaj [Mon, 19 Jun 2017 21:04:25 +0000 (16:04 -0500)] 
removed restoring platforms+plugins save.spec from prepare. rewrote structure of prepare unit tests, and included coverage for restoring platforms+plugins. slight changes to prepare.js so it leverages its own helper methods via its own export (helpful for testing).

5 years agofirst unit test in each plugin submodule, jshint fixes 566/head
filmaj [Wed, 21 Jun 2017 15:17:18 +0000 (10:17 -0500)] 
first unit test in each plugin submodule, jshint fixes

5 years agoplugin util specs implemented
filmaj [Wed, 21 Jun 2017 14:39:51 +0000 (09:39 -0500)] 
plugin util specs implemented

5 years agopending tests for plugin specs. small refactor tweaks, mostly TODOs
filmaj [Tue, 20 Jun 2017 23:36:47 +0000 (18:36 -0500)] 
pending tests for plugin specs. small refactor tweaks, mostly TODOs
being dropped. remove old platform-add tests. fixes for jshint.

5 years agonest certain plugin-remove-save tests into a describe to better reflect structure
filmaj [Tue, 20 Jun 2017 19:43:22 +0000 (14:43 -0500)] 
nest certain plugin-remove-save tests into a describe to better reflect structure

5 years agofixes to integration test refrences so they run, bye bye save integration specs.
filmaj [Tue, 20 Jun 2017 19:20:54 +0000 (14:20 -0500)] 
fixes to integration test refrences so they run, bye bye save integration specs.

5 years agostart of unit tests for cordova.plugin commands
filmaj [Tue, 20 Jun 2017 19:20:20 +0000 (14:20 -0500)] 
start of unit tests for cordova.plugin commands

5 years agoremoving unnecessary else from plugin remove. moved plugin-package-parse to plugin...
filmaj [Tue, 20 Jun 2017 04:56:02 +0000 (23:56 -0500)] 
removing unnecessary else from plugin remove. moved plugin-package-parse to plugin subdir and renamed to plugin_spec_parser (to reflect name of module under test).

5 years agoplugin_fetch.spec.js, hooks runner and plugman fetch specs are all integration tests...
filmaj [Tue, 20 Jun 2017 04:23:18 +0000 (23:23 -0500)] 
plugin_fetch.spec.js, hooks runner and plugman fetch specs are all integration tests - moving to integration-tests dir

5 years agoeslint fixes for plugin specs
filmaj [Tue, 20 Jun 2017 04:10:13 +0000 (23:10 -0500)] 
eslint fixes for plugin specs

5 years agodeprecate anything related to plugin_parser class.
filmaj [Tue, 20 Jun 2017 04:02:29 +0000 (23:02 -0500)] 
deprecate anything related to plugin_parser class.

5 years agofirst pass at plugin command refactor
filmaj [Mon, 19 Jun 2017 23:45:31 +0000 (18:45 -0500)] 
first pass at plugin command refactor

5 years agothe existing plugin specs are all e2e tests... moving them to relevant directory...
filmaj [Mon, 19 Jun 2017 22:18:17 +0000 (17:18 -0500)] 
the existing plugin specs are all e2e tests... moving them to relevant directory. plugin e2e test changes to account for dir move

5 years agoremoved some circular deps, got some tests passing 564/head
Steve Gill [Mon, 19 Jun 2017 18:21:06 +0000 (11:21 -0700)] 
removed some circular deps, got some tests passing

5 years agoremove use of backticks in logging.
filmaj [Thu, 15 Jun 2017 23:17:51 +0000 (18:17 -0500)] 
remove use of backticks in logging.

 This closes #562

5 years agoremoved integration test for testing ios plugin framework additions with competing...
filmaj [Tue, 13 Jun 2017 23:17:31 +0000 (18:17 -0500)] 
removed integration test for testing ios plugin framework additions with competing cocoapod-based specs. that test coverage has instead moved over to cordova-ios, see https://github.com/apache/cordova-ios/pull/319 for details.

5 years agoSmall reference fixes for getting integration tests at least running.
filmaj [Mon, 12 Jun 2017 22:20:50 +0000 (17:20 -0500)] 
Small reference fixes for getting integration tests at least running.

5 years agocordova/platform/index unit tests complete.
filmaj [Mon, 12 Jun 2017 19:30:36 +0000 (14:30 -0500)] 
cordova/platform/index unit tests complete.

5 years agolay out unit tests for the top-level platform module and for the addHelper module.
filmaj [Mon, 12 Jun 2017 14:51:20 +0000 (09:51 -0500)] 
lay out unit tests for the top-level platform module and for the addHelper module.

5 years agodropped TODOs/observations inside addhelper, dropped todo to merge platform add error...
filmaj [Mon, 12 Jun 2017 14:39:10 +0000 (09:39 -0500)] 
dropped TODOs/observations inside addhelper, dropped todo to merge platform add error checking tests.

5 years agominor testing fixes:
filmaj [Sat, 10 Jun 2017 16:34:06 +0000 (11:34 -0500)] 
minor testing fixes:
- eslint fixes for platform spec.s

- some test fixes.

5 years agocordova save specs moved to integration tests - all of these are end to end.
filmaj [Sat, 10 Jun 2017 16:28:59 +0000 (11:28 -0500)] 
cordova save specs moved to integration tests - all of these are end to end.

5 years agosplitting out cordova.platform into smaller modules. factored a few small helper...
filmaj [Sat, 10 Jun 2017 01:40:18 +0000 (20:40 -0500)] 
splitting out cordova.platform into smaller modules. factored a few small helper functions that will be used in multiple modules into the util module.

5 years agosalvage real unit tests:
filmaj [Fri, 9 Jun 2017 23:26:17 +0000 (18:26 -0500)] 
salvage real unit tests:
- move actual unit tests from the old (mostly integration-test-heavy) platform.spec to new spec-cordova/platform.spec.js.

- moved the actual unit tests for cordova.platform out of the integration tests folder and back into the spec folder.

5 years agomove platform module exports to the top, so clear what is exported.
filmaj [Fri, 9 Jun 2017 23:25:46 +0000 (18:25 -0500)] 
move platform module exports to the top, so clear what is exported.

5 years agomoving i/o heavy tests to intgration-tests folder.
filmaj [Fri, 9 Jun 2017 22:31:09 +0000 (17:31 -0500)] 
moving i/o heavy tests to intgration-tests folder.
move cocoapod plugin test to integration tests, rename for clarity

move platform specs to integration tests directory

5 years agoKeep `raw` object around, alias to module directly, but drop in a deprecation warning...
filmaj [Fri, 9 Jun 2017 19:04:17 +0000 (14:04 -0500)] 
Keep `raw` object around, alias to module directly, but drop in a deprecation warning if it is used. Update all code and specs to stop using the `raw` object.

5 years agotweaks to existing tests to get closer to having tests pass after
filmaj [Thu, 8 Jun 2017 23:06:48 +0000 (18:06 -0500)] 
tweaks to existing tests to get closer to having tests pass after
removing lazy loading, including:
- bump timeout on test that fetches/unpacks tarballs. also ensure failure cases invoke done so we dont wait in case error conditions get hit.

- remove wrapper specs, leave todo on how to properly unit test.

5 years agoRevert lazy loading of modules.
filmaj [Wed, 7 Jun 2017 19:43:29 +0000 (14:43 -0500)] 
Revert lazy loading of modules.

5 years agoCB-11980: updated travis and appveyor
Steve Gill [Wed, 7 Jun 2017 21:56:36 +0000 (14:56 -0700)] 
CB-11980: updated travis and appveyor

5 years agoCB-11980: updated travis and appveyor
Steve Gill [Wed, 7 Jun 2017 20:57:28 +0000 (13:57 -0700)] 
CB-11980: updated travis and appveyor

5 years agoCB-11980: added missing node modules for test fixtures
Steve Gill [Wed, 7 Jun 2017 05:46:56 +0000 (22:46 -0700)] 
CB-11980: added missing node modules for test fixtures

5 years agoCB-11980: updated appveyor file
Steve Gill [Wed, 7 Jun 2017 05:29:10 +0000 (22:29 -0700)] 
CB-11980: updated appveyor file

5 years agoCB-11980: removed fetch, common and serve into their own repos
Steve Gill [Wed, 7 Jun 2017 04:51:57 +0000 (21:51 -0700)] 
CB-11980: removed fetch, common and serve into their own repos

5 years agoCB-12786: Improve logic for searching plugin id in case of module already exists...
Nikita Matrosov [Mon, 5 Jun 2017 07:48:38 +0000 (10:48 +0300)] 
CB-12786: Improve logic for searching plugin id in case of module already exists in node_modules

 This closes #555

5 years agoCB-12250 CB-12409 iOS: Fix bug with escaping properties from plist file
Nikita Matrosov [Wed, 29 Mar 2017 13:51:08 +0000 (16:51 +0300)] 
CB-12250 CB-12409 iOS: Fix bug with escaping properties from plist file

 This closes #533

5 years agoCB-12762 : updated common, fetch, and serve pkgJson to point pkgJson repo items to...
Audrey So [Fri, 2 Jun 2017 22:00:01 +0000 (15:00 -0700)] 
CB-12762 : updated common, fetch, and serve pkgJson to point pkgJson repo items to github mirrors

 This closes #560

5 years agoCB-12762 : point package.json repo items to github mirrors instead of apache repos...
Audrey So [Thu, 1 Jun 2017 19:57:53 +0000 (12:57 -0700)] 
CB-12762 : point package.json repo items to github mirrors instead of apache repos site

5 years agoCB-12777 : removed android, ios, and windows projects fixtures
Audrey So [Tue, 9 May 2017 23:56:30 +0000 (16:56 -0700)] 
CB-12777 : removed android, ios, and windows projects fixtures

 This closes #556