CB-11260 Updated version and RELEASENOTES.md for cordova-fetch release 1.0.0
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/d392430b Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/d392430b Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/d392430b Branch: refs/heads/master Commit: d392430b4dc67797e2c5cda37bd75ed88892c131 Parents: 619ed5c Author: Steve Gill <stevengil...@gmail.com> Authored: Thu May 12 17:47:01 2016 -0700 Committer: Steve Gill <stevengil...@gmail.com> Committed: Thu May 12 17:47:01 2016 -0700 ---------------------------------------------------------------------- cordova-fetch/README.md | 18 ++++++++++++++++-- cordova-fetch/RELEASENOTES.md | 4 ++++ cordova-fetch/package.json | 4 ++-- 3 files changed, 22 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d392430b/cordova-fetch/README.md ---------------------------------------------------------------------- diff --git a/cordova-fetch/README.md b/cordova-fetch/README.md index 5cc75e9..b6a2d33 100644 --- a/cordova-fetch/README.md +++ b/cordova-fetch/README.md @@ -21,9 +21,11 @@ # cordova-fetch -This module is used for fetching modules from npm and gitURLs. It fetches the modules via `npm install`. +This module is used for fetching modules from npm and gitURLs. It fetches the modules via `npm install`. It can also `npm uninstall` modules from a project. -Usage: +## Usage: + +### Fetching: ``` var fetch = require('cordova-fetch'); @@ -34,3 +36,15 @@ fetch(spec, dest, opts); `dest` is string of the directory location you wish to `npm install` these modules. `opts` is an Object of options cordova fetch handles. Currently, fetch only support the `save` option. eg. `{'save':true}` + +### Removing: +``` +var npmUninstall = require('cordova-fetch').uninstall; + +npmUninstall(spec, dest, opts); +``` + +`spec` can be a string containg a npm `packageID`. +`dest` is string of the directory location you wish to `npm uninstall` these modules. +`opts` is an Object of options cordova fetch handles. Currently, fetch only support the `save` option. + eg. `{'save':true}` http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d392430b/cordova-fetch/RELEASENOTES.md ---------------------------------------------------------------------- diff --git a/cordova-fetch/RELEASENOTES.md b/cordova-fetch/RELEASENOTES.md index 305cdc6..22573fc 100644 --- a/cordova-fetch/RELEASENOTES.md +++ b/cordova-fetch/RELEASENOTES.md @@ -20,3 +20,7 @@ --> # Cordova-fetch Release Notes +### 1.0.0 (May 12, 2016) +* CB-9858 Added jasmine tests +* CB-9858 Added `npm uninstall` method to cordova-fetch +* CB-9858 Initial implementation of `cordova-fetch` module http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d392430b/cordova-fetch/package.json ---------------------------------------------------------------------- diff --git a/cordova-fetch/package.json b/cordova-fetch/package.json index 2e7e330..6c61df4 100644 --- a/cordova-fetch/package.json +++ b/cordova-fetch/package.json @@ -1,6 +1,6 @@ { "name": "cordova-fetch", - "version": "1.0.0-dev", + "version": "1.0.0", "description": "Apache Cordova fetch module. Fetches from git and npm.", "main": "index.js", "repository": { @@ -21,7 +21,7 @@ "email": "d...@cordova.apache.org" }, "dependencies": { - "cordova-common": "^1.0.0", + "cordova-common": "^1.3.0", "dependency-ls": "^1.0.0", "is-url": "^1.2.1", "q": "^1.4.1", --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org