Import plugman history: remove files that will stay in plugman repo
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/7de64f3d Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/7de64f3d Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/7de64f3d Branch: refs/heads/master Commit: 7de64f3d671463fedc317c6fe1052c84ac4e8842 Parents: 0318d8c Author: Mark Koudritsky <[email protected]> Authored: Wed Apr 30 18:12:00 2014 -0400 Committer: Mark Koudritsky <[email protected]> Committed: Wed Apr 30 18:12:00 2014 -0400 ---------------------------------------------------------------------- .gitignore | 4 - .npmignore | 1 - README.md | 252 ----------------- RELEASENOTES.md | 163 ----------- cordova-lib/.npmignore | 1 + cordova-lib/package.json | 80 ++++++ doc/help.txt | 113 -------- npm-shrinkwrap.json | 625 ------------------------------------------ package.json | 80 ------ 9 files changed, 81 insertions(+), 1238 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7dbb168..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.DS_Store -node_modules -.gitkeep -.tmp http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/.npmignore ---------------------------------------------------------------------- diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 79c6997..0000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -spec http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md deleted file mode 100644 index 15dca3e..0000000 --- a/README.md +++ /dev/null @@ -1,252 +0,0 @@ -# plugman - -A command line tool to install and uninstall plugins for use with [Apache Cordova](http://cordova.io) projects. - -This document defines tool usage. - -## Requirements - -You must have `git` on your PATH to be able to install plugins directly from remote git URLs. - -## Plugin Specification - ---> [Available on docs.cordova.io](http://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md) <-- - -## Quickstart - - npm install -g plugman - -## Design Goals - -* Facilitate programmatic installation and manipulation of plugins -* Detail the dependencies and components of individual plugins -* Allow code reuse between different target platforms - -## Supported Platforms - -* iOS -* Amazon Fire OS -* Android -* BlackBerry 10 -* Tizen -* Windows Phone (7+8) -* Windows 8 - -## Command Line Usage - plugman help - -* Displays all available plugman commands - - - plugman install --platform <ios|amazon-fireos|android|blackberry10|wp7|wp8> --project <directory> --plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>] [--variable <name>=<value> [--variable <name>=<value> ...]] - plugman uninstall --platform <ios|amazon-fireos|android|blackberry10|wp7|wp8> --project <directory> --plugin <id> [--www <directory>] [--plugins_dir <directory>] - -* Using minimum parameters, installs a plugin into a cordova project. You must specify a platform and cordova project location for that platform. You also must specify a plugin, with the different `--plugin` parameter forms being: - * `name`: The directory name where the plugin contents exist. This must be an existing directory under the `--plugins_dir` path (see below for more info) or a plugin in the Cordova registry. - * `url`: A URL starting with https:// or git://, pointing to a valid git repository that is clonable and contains a `plugin.xml` file. The contents of this repository would be copied into the `--plugins_dir`. - * `path`: A path to a directory containing a valid plugin which includes a `plugin.xml` file. This path's contents will be copied into the `--plugins_dir`. -* `--uninstall`: Uninstalls an already-`--install`'ed plugin from a cordova project. Specify the plugin ID. - -Other parameters: - -* `--plugins_dir` defaults to `<project>/cordova/plugins`, but can be any directory containing a subdirectory for each fetched plugin. -* `--www` defaults to the project's `www` folder location, but can be any directory that is to be used as cordova project application web assets. -* `--variable` allows to specify certain variables at install time, necessary for certain plugins requiring API keys or other custom, user-defined parameters. Please see the [plugin specification](plugin_spec.md) for more information. - - - plugman search <plugin keywords> - -* Search the [Plugin registry](http://plugins.cordova.io) for plugin id's that match the given space separated list of keywords. - - - plugman config set registry <url-to-registry> - plugman config get registry - -* Get or set the URL of the current plugin registry that plugman is using. Generally you should leave this set at http://registry.cordova.io unless you want to use a third party plugin registry. - -## Node Module Usage -This section details how to consume Plugman as a node module and is only for Cordova tool authors and other hackers. You should not need to read this section if you are just using Plugman to manage a Cordova project. - - node - > require('plugman') - { install: [Function: installPlugin], - uninstall: [Function: uninstallPlugin], - fetch: [Function: fetchPlugin], - search: [Function: search], - publish: [Function: publish], - unpublish: [Function: unpublish], - adduser: [Function: adduser], - prepare: [Function: handlePrepare], - create: [Function: create], - platform: [Function: platform] } - -### `install` method - - module.exports = function installPlugin(platform, project_dir, id, plugins_dir, subdir, cli_variables, www_dir, callback) { - -Installs a plugin into a specified cordova project of a specified platform. - - * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8` - * `project_dir`: path to an instance of the above specified platform's cordova project - * `id`: a string representing the `id` of the plugin, a path to a cordova plugin with a valid `plugin.xml` file, or an `https://` or `git://` url to a git repository of a valid cordova plugin or a plugin published to the Cordova registry - * `plugins_dir`: path to directory where plugins will be stored, defaults to `<project_dir>/cordova/plugins` - * `subdir`: subdirectory within the plugin directory to consider as plugin directory root, defaults to `.` - * `cli_variables`: an object mapping cordova plugin specification variable names (see [plugin specification](plugin_spec.md)) to values - * `www_dir`: path to directory where web assets are to be copied to, defaults to the specified project directory's `www` dir (dependent on platform) - * `callback`: callback to invoke once complete. If specified, will pass in an error object as a first parameter if the action failed. If not and an error occurs, `plugman` will throw the error - -### `uninstall` method - - module.exports = function uninstallPlugin(platform, project_dir, id, plugins_dir, cli_variables, www_dir, callback) { - -Uninstalls a previously-installed cordova plugin from a specified cordova project of a specified platform. - - * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8` - * `project_dir`: path to an instance of the above specified platform's cordova project - * `id`: a string representing the `id` of the plugin - * `plugins_dir`: path to directory where plugins are stored, defaults to `<project_dir>/cordova/plugins` - * `subdir`: subdirectory within the plugin directory to consider as plugin directory root, defaults to `.` - * `cli_variables`: an object mapping cordova plugin specification variable names (see [plugin specification](plugin_spec.md)) to values - * `www_dir`: path to directory where web assets are to be copied to, defaults to the specified project directory's `www` dir (dependent on platform) - * `callback`: callback to invoke once complete. If specified, will pass in an error object as a first parameter if the action failed. If not and an error occurs, `plugman` will throw the error - -### `fetch` method - -Copies a cordova plugin into a single location that plugman uses to track which plugins are installed into a project. - - module.exports = function fetchPlugin(plugin_dir, plugins_dir, link, subdir, git_ref, callback) { - - * `plugin_dir`: path, URL to a plugin directory/repository or name of a plugin published to the Cordova registry. - * `plugins_dir`: path housing all plugins used in this project - * `link`: if `plugin_dir` points to a local path, will create a symbolic link to that folder instead of copying into `plugins_dir`, defaults to `false` - * `subdir`: subdirectory within the plugin directory to consider as plugin directory root, defaults to `.` - * `gitref`: if `plugin_dir` points to a URL, this value will be used to pass into `git checkout` after the repository is cloned, defaults to `HEAD` - * `callback`: callback to invoke once complete. If specified, will pass in an error object as a first parameter if the action failed. If not and an error occurs, `plugman` will throw the error - -### `prepare` method - -Finalizes plugin installation by making configuration file changes and setting up a JavaScript loader for js-module support. - - module.exports = function handlePrepare(project_dir, platform, plugins_dir) { - - * `project_dir`: path to an instance of the above specified platform's cordova project - * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8` - * `plugins_dir`: path housing all plugins used in this project - -## Registry related actions - -### `adduser` method - -Adds a user account to the registry. Function takes no arguments other than a an optional callback - - module.exports = function(callback) { - -### `publish` method - -Publishes plugins to the registry. `plugin_paths` is an array of plugin paths to publish to the registry. - - module.exports = function(plugin_paths, callback) { - -### `unpublish` method - -unpublishes plugins from the registry. Can unpublish a version by specifying `plugin@version` or the whole plugin by just specifying `plugin`. `plugins` is an array of `plugin[@version]` elements. - - module.exports = function(plugins, callback) { - -### `search` method - -Searches plugins in the registry. `search_opts` is an array of keywords - - module.exports = function(search_opts, callback) { - -### `config` method - -Configures registry settings. `params` is an array that describes the action - /* - * var params = ['get', 'registry']; - * var params = ['set', 'registry', 'http://registry.cordova.io']; - * module.exports = function(params, callback) { - */ - -## Create plugin related actions - -### `create` method - -Creates basic scaffolding for a new plugin - - module.exports = function create( name, id, version, pluginPath, options, callback ) {...} - -* `name` : a name for the plugin -* `id` : an id for the plugin -* `version` : a version for the plugin -* `pluginPath` : a path to create the plugin in -* `options` : an array of options -* `callback` : callback to invoke once complete. If specified, will pass in an error object as a first parameter if the action failed. If not and an error occurs, `plugman` will throw the error - -### `platform` method - -Add/Remove a platform from a newly created plugin - - module.exports = function platform( { operation: operation, platform_name: cli_opts.platform_name } ); - -* `operation` : "add or remove" -* `platform_name` : ios, android - -## Example Plugins - -- Google has a [bunch of plugins](https://github.com/MobileChromeApps/chrome-cordova/tree/master/plugins) which are maintained actively by a contributor to plugman -- Adobe maintains plugins for its Build cloud service, which are open sourced and [available on GitHub](https://github.com/phonegap-build) -- BlackBerry has a [bunch of plugins](https://github.com/blackberry/cordova-blackberry/tree/master/blackberry10/plugins) offering deep platform integration -- Core and 3rd party plugins can be found on the [Cordova Registry](http://plugins.cordova.io). - -## Development - -Basic installation: - - git clone https://git-wip-us.apache.org/repos/asf/cordova-plugman.git - cd cordova-plugman - npm install -g - -Linking the global executable to the git repo: - - git clone https://git-wip-us.apache.org/repos/asf/cordova-plugman.git - cd cordova-plugman - npm install - sudo npm link - -### Running Tests - - npm test - -## Plugin Directory Structure - -A plugin is typically a combination of some web/www code, and some native code. -However, plugins may have only one of these things - a plugin could be a single -JavaScript file, or some native code with no corresponding JavaScript. - -Here is a sample plugin named foo with android and ios platforms support, and 2 www assets. - -``` -foo-plugin/ -|- plugin.xml # xml-based manifest -|- src/ # native source for each platform -| |- android/ -| | `- Foo.java -| `- ios/ -| |- CDVFoo.h -| `- CDVFoo.m -|- README.md -`- www/ - |- foo.js - `- foo.png -``` - -This structure is suggested, but not required. - -## Contributors - -See the [package.json](package.json) file for attribution notes. - -## License - -Apache License 2.0 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/RELEASENOTES.md ---------------------------------------------------------------------- diff --git a/RELEASENOTES.md b/RELEASENOTES.md deleted file mode 100644 index 172046c..0000000 --- a/RELEASENOTES.md +++ /dev/null @@ -1,163 +0,0 @@ -<!-- -# -# 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. -# ---> -# Cordova-plugman Release Notes - -### 0.20.2 (Mar 3, 2014) -* CB-6151 Fix exception when adding a new platform to a CLI project - -### 0.20.1 (Feb 28, 2014) -* CB-6124 Make `cordova plugin remove` resilient to a missing plugin directory -* CB-6028 Protect against cyclic dependencies in install -* CB-6128 Treat windows c: absolute paths like file: -* CB-6123 Fix crash in handleUninstall introduces by recent action-stack refactoring -* CB-6122 Fix exception on uninstall due to incorrect require() path. - -### 0.20.0 (Feb 26, 2014) <-- Never released on npm due to CB-6123 -* CB-4886 Added "plugman create" command -* CB-5885 Speed-up adding multiple plugins with plugman -* CB-5647 Move <assets> copying from install to prepare -* CB-5804 Include platform tag information when publishing plugins -* CB-6076 Logging tweaks to be less verbose. -* CB-6088 FFOS: Look for config.xml in www_dir and in project_dir -* Win8/WP: Added SDKReference support via 'lib-file' tags -* Win8/WP: Remove ability to add .dll as content - it should be a framework/reference -* Win8/WP: Added ability to add+remove ref to .winmd files -* CB-6025 iOS: Do not add static libraries (.a) to source files -* CB-5017 Accept proxy config for plugman -* CB-5720 Add resource-file support on Android -* config-changes.js: Major refactor & introduced reapply_global_munge(). - -## 0.19.0 (Jan 30, 2014) -* CB-5804 Added repo & issue information into `plugman publish` -* CB-5299 Cache pbxproj to avoid re-parsing it for each plugin. -* Update node-xcode dependency to 0.6.6 - -## 0.18.0 (Jan 15, 2014) -* CB-5770 plugman prepare.js script content wrapping no longer allows ending parens/braces to be commented out from end of line comment -* CB-4871 Reduced package size significantly. -* CB-5720 Allow <resource-file> on Android -* CB-5006 Add --searchpath option for local plugin search path -* CB-5701 Reference custom frameworks using relative paths -* CB-5495, CB=5568 Fix config.xml path for ios - -## 0.17.0 (Dec 11, 2013) -* CB-5579 Add support for --www param for install, uninstall, prepare commands. - -## 0.16.0 (Dec 5, 2013) -* Added amazon-fireos platform. -* Added ubuntu platform -* CB-5034 Document registry functions in plugman -* CB-5584 Fix git clone of not working on windows. -* CB-5238 Add support for <framework src="..." custom="true" /> -* CB-5367 Reject non-whitelisted org.apache.cordova plugins -* Write plugin metadata (ID and version) into cordova_plugins.js - -## 0.15.0 (Nov 8, 2013) -* CB-4994 Update xcode dependency to parse Xcode 5 capabilities. -* CB-5091 Use cwd option rather than shell.cd when cloning plugin repos -* CB-4872 Updated default engine names to include windows scripts - -## 0.14.0 (Oct 28, 2013) - -* CB-5192 Plugman engine check fails on Windows -* [CB-5184] Fix uninstall logic being too aggressive -* CB-4872 - updated default plugin to include new bb10 script -* CB-4872 - took out custom version compare and went back to semver -* Overhaul dependency uninstallation -* [CB-4872] - adding in custom semver check for project -* [CB-4872] - updated paths to version files -* Update action-stack to avoid static platform detection + test if parseProjectFile is present instead -* Update spec to match new ios parse method name -* Update references to old ios parse method -* Rename parse method and add a write method to result + parseIOSProjectFiles --> parseProjectFile + -* updating README.rd doc -* CB-5065 remove breaking parameter -* increased version to 0.14.0 to reflect that it is newer than published version on npm -* Correctly tell plugman which object in config to remove -* [CB-5012]: No whitespace in empty plist string nodes. -* CB-4983 plugin name check -* [windows8][CB-4943] .appxmanifest should be treated like .xml, not like a plist-xml -* [CB-4809]: Check that dependencies' IDs match the <dependency> tags -* [CB-4877]: Add --silent flag and basic logging. -* Removed extra comma -* Refactor to use Q.js promises in place of callbacks everywhere. -* [CB-4837]: Version 0.12.0. Release notes updated. -* Rename CHANGELOG.md -> RELEASENOTES.md -* CB-4492 tracking which of cli or plugman is used to fetch from registry -* removed unnecessary console.logs -* add full ff support to plugman -* add firefoxos -* removed unnecessary console.logs -* add full ff support to plugman -* add firefoxos -* Fix tests broken by lazy module requiring. -* CB-4786 adding documentation -* [CB-4793] Lazily require modules in plugin.js -* CB-4786 adding owner and checking in some spec requirements -* CB-4770 dependent plugins can be fetched from registry -* Updated version to 0.11.1-dev - -## 0.12.0 - -### Features - -- Firefox OS support. -- Speed improvements (many commands ~350ms faster) -- Dependencies can now be fetched from the plugin repository. - -## 0.11.0 - -### Features - -- Windows phone support -- Track download counts from the plugin registry [CB-4492](https://issues.apache.org/jira/browse/CB-4492) -- Plugin URLs can now be specified with a hash giving a git ref and subdirectory, as in `https://github.com/foo/bar.git#gitref:sub/dir`. Both parts are optional: `.../bar.git#gitref` and `.../bar.git#:sub/dir` both work. [CB-4622](https://issues.apache.org/jira/browse/CB-4622) -- Engine data is now stored in the registry, and Plugman will not install plugins your Cordova version cannot support. [CB-4494](https://issues.apache.org/jira/browse/CB-4494) -- `<lib-file>` tags are now allowed on Android. [CB-4430](https://issues.apache.org/jira/browse/CB-4430) - -### Bugfixes - -- `plugin rm` now doesn't choke when a file is already deleted -- Fixed some trouble with filesystem paths vs. web paths; improves Windows host support. -- Projects beginning with `x`, `y`, and `z` now work. [CB-4502](https://issues.apache.org/jira/browse/CB-4502) - - -### 0.21.0 (Apr 03, 2014) -* CB-6344 Specify after which sibling to add config-changes in plugin.xml -* CB-6272 Fix subdir bug + tests & meta fetch with a src directory -* Adding spec for Tizen platform -* src/platforms.js: Adding tizen. -* Throw an error when a <dependency> tag is missing `id` attribute. -* Added org.apache.cordova.statusbar into the registry whitelist. -* CB-6160 adding plugin fails for Firefoxos. -* Fix to never remove top-level plugins that are dependencies + tests. -* Improve dependencies tests by grouping with beforeStart() Fix for dependency cycle / throw error. -* Refactoring of install & uninstall tests -* CB-6147 Enable CLI and Plugman with npm shrinkwrap -* Allow --searchpath to have a delimiter -* working uninstall for projectReferences -* projectReference.uninstall has to generate the plugin_dir because it is not passed to uninstall methods -* CB-5970 added type attribute 'projectReference' to <framework> element to signal addition of dependent project -* Separate out adding a dependent project from adding a .winmd reference in windows8 -* wip implementing reading guid from 'framework' project -* CB-6162 Show a better error message when publish fails the whitelist -* CB-6119 Fix `plugman info` command printing "undefined" always -* CB-6159 Fix incorrect "success" message when publishing fails. http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/cordova-lib/.npmignore ---------------------------------------------------------------------- diff --git a/cordova-lib/.npmignore b/cordova-lib/.npmignore new file mode 100644 index 0000000..79c6997 --- /dev/null +++ b/cordova-lib/.npmignore @@ -0,0 +1 @@ +spec http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/cordova-lib/package.json ---------------------------------------------------------------------- diff --git a/cordova-lib/package.json b/cordova-lib/package.json new file mode 100644 index 0000000..a70e882 --- /dev/null +++ b/cordova-lib/package.json @@ -0,0 +1,80 @@ +{ + "author": "Andrew Lunny <[email protected]>", + "name": "plugman", + "description": "install/uninstall Cordova plugins", + "version": "0.21.1-dev", + "repository": { + "type": "git", + "url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git" + }, + "bugs": { + "url" : "https://issues.apache.org/jira/browse/CB", + "email" : "[email protected]" + }, + "main": "plugman.js", + "engines": { + "node": ">=0.9.9" + }, + "engineStrict":true, + "dependencies": { + "nopt": "1.0.x", + "glob": "3.2.x", + "elementtree": "0.1.5", + "xcode": "0.6.6", + "plist-with-patches": "0.5.x", + "bplist-parser": "0.0.x", + "shelljs": "0.1.x", + "underscore":"1.4.4", + "dep-graph":"1.1.0", + "semver": "2.0.x", + "q": "~0.9", + "npm": "1.3.4", + "rc": "0.3.0", + "tar": "0.1.x", + "request": "2.22.0" + }, + "devDependencies": { + "temp": "0.6.x", + "jasmine-node": "~1", + "osenv": "0.0.x" + }, + "bin" : { "plugman" : "./main.js" }, + "scripts": { + "test": "jasmine-node --color spec" + }, + "contributors":[ + { + "name":"Anis Kadri" + }, + { + "name":"Tim Kim" + }, + { + "name":"Braden Shepherdson" + }, + { + "name":"Ryan Willoughby" + }, + { + "name":"Brett Rudd" + }, + { + "name":"Mike Reinstein" + }, + { + "name":"Shazron Abdullah" + }, + { + "name":"Steve Gill" + }, + { + "name":"Fil Maj" + }, + { + "name":"Michael Brooks" + }, + { + "name":"Jesse MacFadyen" + } + ] +} http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/doc/help.txt ---------------------------------------------------------------------- diff --git a/doc/help.txt b/doc/help.txt deleted file mode 100644 index a0da457..0000000 --- a/doc/help.txt +++ /dev/null @@ -1,113 +0,0 @@ -plugman manages plugin.xml-compatible cordova plugins into cordova-generated projects. - -Usage -===== - -Install a plugin ----------------- - - $ plugman install --platform <platform> --project <directory> --plugin <plugin> [--variable NAME=VALUE] - -Parameters: - - - platform <platform>: One of android, ios, blackberry10, wp7 or wp8 - - project <directory>: Path reference to a cordova-generated project of the platform you specify - - plugin <plugin>: One of a path reference to a local copy of a plugin, or a remote https: or git: URL pointing to a cordova plugin (optionally append #branch:subdir) or a plugin ID from http://plugins.cordova.io - - variable NAME=VALUE: Some plugins require install-time variables to be defined. These could be things like API keys/tokens or other app-specific variables. - -Uninstall a plugin ------------------- - - $ plugman uninstall --platform <platform> --project <directory> --plugin <plugin-id> - -Parameters: - - plugin <plugin-id>: The plugin to remove, identified by its id (see the plugin.xml's <plugin id> attribute) - -Optional parameters -------------------- - - - www <directory>: www assets for the plugin will be installed into this directory. Default is to install into the standard www directory for the platform specified - - plugins_dir <directory>: a copy of the plugin will be stored in this directory. Default is to install into the <project directory>/plugins folder - - searchpath <directory>: when looking up plugins by ID, look in this directory and each of its subdirectories for the plugin before hitting the registry. - Multiple search paths can be used by either specifying the flag multiple times, or by separating paths with a delimiter (: on 'nix, ; on Windows). - -Optional flags --------------- - - --debug|-d : Verbose mode - - --help|-h : Displays this message - - --version|-v : Displays version - -Interacting with the registry -============================= - -Add a user account ------------------- - - $ plugman adduser - -Publish a plugin ----------------- - - $ plugman publish <directory> - -Unpublish a plugin ------------------- - - $ plugman unpublish <name>@<version> - -Search for a plugin -------------------- - - $ plugman search <keyword1 keyword2 ...> - -Display plugin information ------------------------ - - $ plugman info plugin - -Manage registry configuration ------------------------------ - - $ plugman config set registry http://localhost:5984/registry/_design/app/_rewrite - $ plugman config get registry - -Manage owners -------------- - - $ plugman owner ls org.apache.cordova.core.file - $ plugman owner add username org.apache.cordova.core.file - $ plugman owner rm username org.apache.cordova.core.file - -Create A Plugin ---------------- - - $ plugman create --name <Plugin Name> --plugin_id <Plugin ID> --plugin_version <Plugin Version> [--path <Directory Path>] [--variable NAME=VALUE] - -Parameters: - - - <Plugin Name>: A Name for a Plugin - - <Plugin ID>: An ID for the plugin, ex: org.bar.foo - - <Plugin Version>: A version for the plugin, ex: 0.0.0 - - variable NAME=VALUE: Extra variables such as description or Author - -Add a Platform to a Plugin --------------------------- - - $ plugman platform add --platform_name <Platform> - -Parameters: - -- <Platform>: One of android, ios - -Remove a Platform from a Plugin -------------------------------- - - $ plugman platform remove --platform_name <Platform> - -Parameters: - -- <Platform>: One of android, ios - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/npm-shrinkwrap.json ---------------------------------------------------------------------- diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json deleted file mode 100644 index 5c38496..0000000 --- a/npm-shrinkwrap.json +++ /dev/null @@ -1,625 +0,0 @@ -{ - "name": "plugman", - "version": "0.20.3-dev", - "dependencies": { - "bplist-parser": { - "version": "0.0.5", - "from": "[email protected]" - }, - "dep-graph": { - "version": "1.1.0", - "from": "[email protected]", - "dependencies": { - "underscore": { - "version": "1.2.1", - "from": "[email protected]" - } - } - }, - "elementtree": { - "version": "0.1.5", - "from": "[email protected]", - "dependencies": { - "sax": { - "version": "0.3.5", - "from": "[email protected]" - } - } - }, - "glob": { - "version": "3.2.9", - "from": "[email protected]", - "dependencies": { - "minimatch": { - "version": "0.2.14", - "from": "minimatch@~0.2.11", - "dependencies": { - "lru-cache": { - "version": "2.5.0", - "from": "lru-cache@2" - }, - "sigmund": { - "version": "1.0.0", - "from": "sigmund@~1.0.0" - } - } - }, - "inherits": { - "version": "2.0.1", - "from": "inherits@2" - } - } - }, - "nopt": { - "version": "1.0.10", - "from": "[email protected]", - "dependencies": { - "abbrev": { - "version": "1.0.4", - "from": "abbrev@1" - } - } - }, - "npm": { - "version": "1.3.4", - "from": "[email protected]", - "dependencies": { - "semver": { - "version": "2.0.8", - "from": "semver@latest" - }, - "ini": { - "version": "1.1.0", - "from": "ini@latest" - }, - "slide": { - "version": "1.1.4", - "from": "slide@latest" - }, - "abbrev": { - "version": "1.0.4", - "from": "abbrev@latest" - }, - "graceful-fs": { - "version": "2.0.0", - "from": "graceful-fs@2" - }, - "minimatch": { - "version": "0.2.12", - "from": "minimatch@latest", - "dependencies": { - "sigmund": { - "version": "1.0.0", - "from": "sigmund@~1.0.0", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.0.tgz" - } - } - }, - "nopt": { - "version": "2.1.1", - "from": "nopt@latest" - }, - "rimraf": { - "version": "2.2.0", - "from": "[email protected]" - }, - "request": { - "version": "2.21.0", - "from": "request@latest", - "dependencies": { - "qs": { - "version": "0.6.5", - "from": "qs@~0.6.0" - }, - "json-stringify-safe": { - "version": "4.0.0", - "from": "json-stringify-safe@~4.0.0" - }, - "forever-agent": { - "version": "0.5.0", - "from": "forever-agent@~0.5.0" - }, - "tunnel-agent": { - "version": "0.3.0", - "from": "tunnel-agent@~0.3.0" - }, - "http-signature": { - "version": "0.9.11", - "from": "http-signature@~0.9.11", - "dependencies": { - "assert-plus": { - "version": "0.1.2", - "from": "[email protected]" - }, - "asn1": { - "version": "0.1.11", - "from": "[email protected]" - }, - "ctype": { - "version": "0.5.2", - "from": "[email protected]" - } - } - }, - "hawk": { - "version": "0.13.1", - "from": "hawk@~0.13.0", - "dependencies": { - "hoek": { - "version": "0.8.5", - "from": "[email protected]" - }, - "boom": { - "version": "0.4.2", - "from": "[email protected]", - "dependencies": { - "hoek": { - "version": "0.9.1", - "from": "[email protected]", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz" - } - } - }, - "cryptiles": { - "version": "0.2.1", - "from": "[email protected]" - }, - "sntp": { - "version": "0.2.4", - "from": "[email protected]", - "dependencies": { - "hoek": { - "version": "0.9.1", - "from": "[email protected]", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz" - } - } - } - } - }, - "aws-sign": { - "version": "0.3.0", - "from": "aws-sign@~0.3.0" - }, - "oauth-sign": { - "version": "0.3.0", - "from": "oauth-sign@~0.3.0" - }, - "cookie-jar": { - "version": "0.3.0", - "from": "cookie-jar@~0.3.0" - }, - "node-uuid": { - "version": "1.4.0", - "from": "node-uuid@~1.4.0" - }, - "mime": { - "version": "1.2.9", - "from": "mime@~1.2.9" - }, - "form-data": { - "version": "0.0.8", - "from": "[email protected]", - "dependencies": { - "combined-stream": { - "version": "0.0.4", - "from": "combined-stream@~0.0.4", - "dependencies": { - "delayed-stream": { - "version": "0.0.5", - "from": "[email protected]" - } - } - }, - "async": { - "version": "0.2.9", - "from": "async@~0.2.7" - } - } - } - } - }, - "which": { - "version": "1.0.5", - "from": "which@1" - }, - "tar": { - "version": "0.1.17", - "from": "[email protected]", - "resolved": "https://registry.npmjs.org/tar/-/tar-0.1.17.tgz" - }, - "fstream": { - "version": "0.1.23", - "from": "fstream@latest" - }, - "block-stream": { - "version": "0.0.6", - "from": "block-stream@*" - }, - "inherits": { - "version": "1.0.0", - "from": "git://github.com/isaacs/inherits" - }, - "mkdirp": { - "version": "0.3.5", - "from": "[email protected]", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz" - }, - "read": { - "version": "1.0.4", - "from": "read@~1.0.3", - "dependencies": { - "mute-stream": { - "version": "0.0.3", - "from": "mute-stream@~0.0.2" - } - } - }, - "lru-cache": { - "version": "2.3.0", - "from": "lru-cache@latest" - }, - "node-gyp": { - "version": "0.10.6", - "from": "node-gyp@latest" - }, - "fstream-npm": { - "version": "0.1.4", - "from": "fstream-npm@latest", - "dependencies": { - "fstream-ignore": { - "version": "0.0.6", - "from": "fstream-ignore@~0.0.5" - } - } - }, - "uid-number": { - "version": "0.0.3", - "from": "../uid-number" - }, - "archy": { - "version": "0.0.2", - "from": "[email protected]" - }, - "chownr": { - "version": "0.0.1", - "from": "../chownr" - }, - "npmlog": { - "version": "0.0.4", - "from": "npmlog@latest" - }, - "ansi": { - "version": "0.1.2", - "from": "ansi@~0.1.2" - }, - "npm-registry-client": { - "version": "0.2.27", - "from": "npm-registry-client@latest", - "dependencies": { - "couch-login": { - "version": "0.1.17", - "from": "couch-login@~0.1.15" - } - } - }, - "read-package-json": { - "version": "1.1.0", - "from": "read-package-json@1", - "dependencies": { - "normalize-package-data": { - "version": "0.2.0", - "from": "normalize-package-data@~0.2", - "dependencies": { - "github-url-from-git": { - "version": "1.1.1", - "from": "github-url-from-git@~1.1.1" - } - } - } - } - }, - "read-installed": { - "version": "0.2.2", - "from": "read-installed@latest" - }, - "glob": { - "version": "3.2.3", - "from": "glob@latest", - "dependencies": { - "inherits": { - "version": "2.0.0", - "from": "inherits@2" - } - } - }, - "init-package-json": { - "version": "0.0.10", - "from": "init-package-json@latest", - "dependencies": { - "promzard": { - "version": "0.2.0", - "from": "promzard@~0.2.0" - } - } - }, - "osenv": { - "version": "0.0.3", - "from": "osenv@latest" - }, - "lockfile": { - "version": "0.4.0", - "from": "lockfile@latest" - }, - "retry": { - "version": "0.6.0", - "from": "retry" - }, - "once": { - "version": "1.1.1", - "from": "once" - }, - "npmconf": { - "version": "0.1.1", - "from": "npmconf@latest", - "dependencies": { - "config-chain": { - "version": "1.1.7", - "from": "config-chain@~1.1.1", - "dependencies": { - "proto-list": { - "version": "1.2.2", - "from": "proto-list@~1.2.1" - } - } - } - } - }, - "opener": { - "version": "1.3.0", - "from": "opener@latest" - }, - "chmodr": { - "version": "0.1.0", - "from": "chmodr@latest" - }, - "cmd-shim": { - "version": "1.1.0", - "from": "cmd-shim@" - }, - "sha": { - "version": "1.0.1", - "from": "sha@~1.0.1" - }, - "editor": { - "version": "0.0.4", - "from": "editor@" - }, - "child-process-close": { - "version": "0.1.1", - "from": "child-process-close@", - "resolved": "https://registry.npmjs.org/child-process-close/-/child-process-close-0.1.1.tgz" - }, - "npm-user-validate": { - "version": "0.0.3", - "from": "[email protected]", - "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-0.0.3.tgz" - } - } - }, - "plist-with-patches": { - "version": "0.5.1", - "from": "[email protected]", - "dependencies": { - "xmlbuilder": { - "version": "0.4.3", - "from": "[email protected]" - }, - "xmldom": { - "version": "0.1.19", - "from": "[email protected]" - } - } - }, - "q": { - "version": "0.9.7", - "from": "q@~0.9" - }, - "rc": { - "version": "0.3.0", - "from": "[email protected]", - "dependencies": { - "optimist": { - "version": "0.3.7", - "from": "optimist@~0.3.4", - "dependencies": { - "wordwrap": { - "version": "0.0.2", - "from": "wordwrap@~0.0.2" - } - } - }, - "deep-extend": { - "version": "0.2.8", - "from": "deep-extend@~0.2.5" - }, - "ini": { - "version": "1.1.0", - "from": "ini@~1.1.0" - } - } - }, - "request": { - "version": "2.22.0", - "from": "[email protected]", - "dependencies": { - "qs": { - "version": "0.6.6", - "from": "qs@~0.6.0" - }, - "json-stringify-safe": { - "version": "4.0.0", - "from": "json-stringify-safe@~4.0.0" - }, - "forever-agent": { - "version": "0.5.2", - "from": "forever-agent@~0.5.0" - }, - "tunnel-agent": { - "version": "0.3.0", - "from": "tunnel-agent@~0.3.0" - }, - "http-signature": { - "version": "0.10.0", - "from": "http-signature@~0.10.0", - "dependencies": { - "assert-plus": { - "version": "0.1.2", - "from": "[email protected]" - }, - "asn1": { - "version": "0.1.11", - "from": "[email protected]" - }, - "ctype": { - "version": "0.5.2", - "from": "[email protected]" - } - } - }, - "hawk": { - "version": "0.13.1", - "from": "hawk@~0.13.0", - "dependencies": { - "hoek": { - "version": "0.8.5", - "from": "[email protected]" - }, - "boom": { - "version": "0.4.2", - "from": "[email protected]", - "dependencies": { - "hoek": { - "version": "0.9.1", - "from": "[email protected]" - } - } - }, - "cryptiles": { - "version": "0.2.2", - "from": "[email protected]" - }, - "sntp": { - "version": "0.2.4", - "from": "[email protected]", - "dependencies": { - "hoek": { - "version": "0.9.1", - "from": "[email protected]" - } - } - } - } - }, - "aws-sign": { - "version": "0.3.0", - "from": "aws-sign@~0.3.0" - }, - "oauth-sign": { - "version": "0.3.0", - "from": "oauth-sign@~0.3.0" - }, - "cookie-jar": { - "version": "0.3.0", - "from": "cookie-jar@~0.3.0" - }, - "node-uuid": { - "version": "1.4.1", - "from": "node-uuid@~1.4.0" - }, - "mime": { - "version": "1.2.11", - "from": "mime@~1.2.9" - }, - "form-data": { - "version": "0.0.8", - "from": "[email protected]", - "dependencies": { - "combined-stream": { - "version": "0.0.4", - "from": "combined-stream@~0.0.4", - "dependencies": { - "delayed-stream": { - "version": "0.0.5", - "from": "[email protected]" - } - } - }, - "async": { - "version": "0.2.10", - "from": "async@~0.2.7" - } - } - } - } - }, - "semver": { - "version": "2.0.11", - "from": "[email protected]" - }, - "shelljs": { - "version": "0.1.4", - "from": "[email protected]" - }, - "tar": { - "version": "0.1.19", - "from": "[email protected]", - "dependencies": { - "inherits": { - "version": "2.0.1", - "from": "inherits@2" - }, - "block-stream": { - "version": "0.0.7", - "from": "block-stream@*" - }, - "fstream": { - "version": "0.1.25", - "from": "fstream@~0.1.8", - "dependencies": { - "rimraf": { - "version": "2.2.6", - "from": "rimraf@2" - }, - "mkdirp": { - "version": "0.3.5", - "from": "[email protected]" - }, - "graceful-fs": { - "version": "2.0.2", - "from": "graceful-fs@~2.0.0" - } - } - } - } - }, - "underscore": { - "version": "1.4.4", - "from": "[email protected]" - }, - "xcode": { - "version": "0.6.6", - "from": "[email protected]", - "dependencies": { - "pegjs": { - "version": "0.6.2", - "from": "[email protected]" - }, - "node-uuid": { - "version": "1.3.3", - "from": "[email protected]" - } - } - } - } -} http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/7de64f3d/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json deleted file mode 100644 index a70e882..0000000 --- a/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "author": "Andrew Lunny <[email protected]>", - "name": "plugman", - "description": "install/uninstall Cordova plugins", - "version": "0.21.1-dev", - "repository": { - "type": "git", - "url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git" - }, - "bugs": { - "url" : "https://issues.apache.org/jira/browse/CB", - "email" : "[email protected]" - }, - "main": "plugman.js", - "engines": { - "node": ">=0.9.9" - }, - "engineStrict":true, - "dependencies": { - "nopt": "1.0.x", - "glob": "3.2.x", - "elementtree": "0.1.5", - "xcode": "0.6.6", - "plist-with-patches": "0.5.x", - "bplist-parser": "0.0.x", - "shelljs": "0.1.x", - "underscore":"1.4.4", - "dep-graph":"1.1.0", - "semver": "2.0.x", - "q": "~0.9", - "npm": "1.3.4", - "rc": "0.3.0", - "tar": "0.1.x", - "request": "2.22.0" - }, - "devDependencies": { - "temp": "0.6.x", - "jasmine-node": "~1", - "osenv": "0.0.x" - }, - "bin" : { "plugman" : "./main.js" }, - "scripts": { - "test": "jasmine-node --color spec" - }, - "contributors":[ - { - "name":"Anis Kadri" - }, - { - "name":"Tim Kim" - }, - { - "name":"Braden Shepherdson" - }, - { - "name":"Ryan Willoughby" - }, - { - "name":"Brett Rudd" - }, - { - "name":"Mike Reinstein" - }, - { - "name":"Shazron Abdullah" - }, - { - "name":"Steve Gill" - }, - { - "name":"Fil Maj" - }, - { - "name":"Michael Brooks" - }, - { - "name":"Jesse MacFadyen" - } - ] -}
