-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
151 lines (151 loc) · 15.3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "cordova",
"version": "3.0.9",
"preferGlobal": "true",
"description": "Cordova command line interface tool",
"main": "cordova",
"engines": {
"node": ">=0.9.9"
},
"engineStrict": true,
"bin": {
"cordova": "./bin/cordova"
},
"scripts": {
"test": "jasmine-node --color spec"
},
"repository": {
"type": "git",
"url": "https://git-wip-us.apache.org/repos/asf/cordova-cli.git"
},
"bugs": {
"url": "https://issues.apache.org/jira/browse/CB",
"email": "dev@cordova.apache.org"
},
"keywords": [
"cordova",
"client",
"cli"
],
"dependencies": {
"colors": ">=0.6.0",
"elementtree": "0.1.3",
"plugman": "0.11.x",
"plist": "0.4.x",
"xcode": "0.5.1",
"express": "3.0.0",
"shelljs": "0.1.2",
"ncallbacks": "1.0.0",
"request": "2.22.0",
"ripple-emulator": "0.9.18",
"semver": "1.1.0",
"glob": "3.2.x",
"follow-redirects": "0.0.x",
"prompt": "0.2.7",
"tar": "0.1.x",
"open": "0.0.3",
"npm": "1.3.x",
"optimist": "0.6.0"
},
"devDependencies": {
"jasmine-node": "1.8.x"
},
"author": {
"name": "Anis Kadri"
},
"contributors": [
{
"name": "Brian LeRoux",
"email": "b@brian.io"
},
{
"name": "Fil Maj",
"email": "maj.fil@gmail.com"
},
{
"name": "Mike Reinstein",
"email": "reinstein.mike@gmail.com"
},
{
"name": "Darry Pogue",
"email": "darryl@dpogue.ca"
},
{
"name": "Michael Brooks",
"email": "michael@michaelbrooks.ca"
},
{
"name": "Braden Shepherdson",
"email": "braden@chromium.org"
},
{
"name": "Gord Tanner",
"email": "gtanner@gmail.com"
},
{
"name": "Tim Kim",
"email": "timk@adobe.com"
},
{
"name": "Benn Mapes",
"email": "Benn.Mapes@gmail.com"
},
{
"name": "Michael Wolf",
"email": "Michael.Wolf@Cynergy.com"
},
{
"name": "Andrew Grieve",
"email": "agrieve@chromium.org"
},
{
"name": "Bryan Higgins",
"email": "bhiggins@blackberry.com"
},
{
"name": "Don Coleman",
"email": "dcoleman@chariotsolutions.com"
},
{
"name": "Germano Gabbianelli",
"email": "tyron.mx@gmail.com"
},
{
"name": "Ian Clelland",
"email": "iclelland@chromium.org"
},
{
"name": "Lucas Holmqust",
"email": "lholmqui@redhat.com"
},
{
"name": "Matt LeGrand",
"email": "mlegrand@gmail.com"
},
{
"name": "Michal Mocny",
"email": "mmocny@gmail.com"
},
{
"name": "Sam Breed",
"email": "sam@quickleft.com"
},
{
"name": "Tommy-Carlos Williams",
"email": "tommy@devgeeks.org"
},
{
"name": "Rubén Norte",
"email": "rubennorte@gmail.com"
},
{
"name": "Germano Gabbianelli",
"email": "tyrion.mx@gmail.com"
}
],
"license": "Apache version 2.0",
"readme": "# cordova-cli\n\n> The command line tool to build, deploy and manage [Cordova](http://cordova.io)-based applications.\n\n[Apache Cordova](http://cordova.io) allows for building native mobile applications using HTML, CSS and JavaScript. This tool helps with management of multi-platform Cordova applications as well as Cordova plugin integration.\n\nCheck out the [Getting Started guides](http://cordova.apache.org/docs/en/edge/guide_getting-started_index.md.html#Getting%20Started%20Guides) for more details on how to work with Cordova sub-projects.\n\n# Supported Platforms\n\n- Android\n- BlackBerry 10\n- iOS\n- Windows Phone 7 & 8\n\n# Requirements\n\n* [nodejs](http://nodejs.org/)\n* SDKs for every platform you wish to support\n - BlackBerry 10: [BlackBerry 10 WebWorks SDK](http://developer.blackberry.com/html5/download/). Make sure you have the `dependencies/tools/bin` folder inside the SDK directory added to your path!\n - iOS: [iOS SDK](http://developer.apple.com) with the latest Xcode and Xcode Command Line Tools\n - [Android SDK](http://developer.android.com) - **NOTE** This tool\n will not work unless you have the absolute latest updates for all\n Android SDK components. Also you will need the SDK's `tools` and `platform-tools` directories on your __system path__ otherwise Android support will fail.\n - [Windows Phone SDK](http://dev.windowsphone.com/en-us/downloadsdk) - **NOTE** This tool will not work unless you have `msbuild` on your __system path__ otherwise Windows Phone support will fail (`msbuild.exe` is generally located in `C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319`).\n\ncordova-cli has been tested on Mas OS X, Linux, Windows 7 and Windows 8.\n\n# Install\n\n npm install -g cordova\n\n# Getting Started\n\ncordova-cli has a single global `create` command that creates new cordova projects into a specified directory. Once you create a project, `cd` into it and you can execute a variety of project-level commands. Completely inspired by git's interface.\n\n## Global Command\n\n- `create <directory> [<id> [<name>]]` create a new cordova project with optional name and id (package name, reverse-domain style)\n\n<a name=\"project_commands\" />\n## Project Commands\n\n- `platform [ls | list]` list all platforms the project will build to\n- `platform add <platform> [<platform> ...]` add one (or more) platforms as a build target for the project\n- `platform [rm | remove] <platform> [<platform> ...]` removes one (or more) platforms as a build target for the project\n- `plugin [ls | list]` list all plugins added to the project\n- `plugin add <path-to-plugin> [<path-to-plugin> ...]` add one (or more) plugins to the project\n- `plugin [rm | remove] <plugin-name> [<plugin-name> ...]` remove one (or more) added plugins\n- `prepare [platform...]` copies files into the specified platforms, or all platforms. it is then ready for building by Eclipse/Xcode/etc.\n- `compile [platform...]` compiles the app into a binary for each added platform. With no parameters, builds for all platforms, otherwise builds for the specified platforms.\n- `build [<platform> [<platform> [...]]]` an alias for `cordova prepare` followed by `cordova compile`\n- `emulate [<platform> [<platform> [...]]]` launch emulators and deploy app to them. With no parameters emulates for all platforms added to the project, otherwise emulates for the specified platforms\n- `serve <platform> [port]` launch a local web server for that platform's www directory on the given port (default 8000).\n\n### Optional Flags\n\n- `-d` or `--verbose` will pipe out more verbose output to your shell. You can also subscribe to `log` and `warn` events if you are consuming cordova-cli as a node module by calling `cordova.on('log', function() {})` or `cordova.on('warn', function() {})`.\n- `-v` or `--version` will print out the version of your cordova-cli install.\n\n# Project Directory Structure\nA Cordova application built with cordova-cli will have the following directory structure:\n\n myApp/\n |--.cordova/\n |-- merges/\n | | |-- android/\n | | |-- blackberry10/\n | | `-- ios/\n |-- www/\n | `-- config.xml\n |-- platforms/\n | |-- android/\n | |-- blackberry10/\n | `-- ios/\n `-- plugins/\n\n## .cordova/\nThis directory identifies a tree as a cordova project. Simple configuration information is stored in here (such as BlackBerry environment variables).\n\nCommands other than `create` operate against the project directory itself, rather than the current directory - a search up the current directory's parents is made to find the project directory. Thus, any command (other than `create`) can be used from any subdirectory whose parent is a cordova project directory (same as git).\n\n## merges/\nPlatform-specific web assets (HTML, CSS and JavaScript files) are contained within appropriate subfolders in this directory. These are deployed during a `prepare` to the appropriate native directory. Files placed under `merges/` will override matching files in the `www/` folder for the relevant platform. A quick example, assuming a project structure of:\n\n merges/\n |-- ios/\n | `-- app.js\n |-- android/\n | `-- android.js\n www/\n `-- app.js\n\nAfter building the Android and iOS projects, the Android application will contain both `app.js` and `android.js`. However, the iOS application will only contain an `app.js`, and it will be the one from `merges/ios/app.js`, overriding the \"common\" `app.js` located inside `www/`.\n\n## www/\n\nContains the project's web artifacts, such as .html, .css and .js files. These are your main application assets. They will be copied on a `cordova prepare` to each platform's www directory.\n\n### Your Blanket: config.xml\n\nThis file is what you should be editing to modify your application's metadata. Any time you run any cordova-cli commands, the tool will look at the contents of `config.xml` and use all relevant info from this file to define native application information. cordova-cli supports changing your application's data via the following elements inside the `config.xml` file:\n\n- The user-facing name can be modified via the contents of the `<name>` element.\n- The package name (AKA bundle identifier or application id) can be modified via the `id` attribute from the top-level `<widget>` element.\n- The version can be modified via the `version` attribute from the top-level `<widget>` element.\n- The whitelist can be modified using the `<access>` elements. Make sure the `origin` attribute of your `<access>` element points to a valid URL (you can use `*` as wildcard). For more information on the whitelisting syntax, see the [docs.phonegap.com](http://docs.phonegap.com/en/2.2.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide). You can use either attribute `uri` ([BlackBerry-proprietary](https://developer.blackberry.com/html5/documentation/access_element_834677_11.html)) or `origin` ([standards-compliant](http://www.w3.org/TR/widgets-access/#attributes)) to denote the domain.\n- Platform-specific preferences can be customized via `<preference>` tags. See [docs.phonegap.com](http://docs.phonegap.com/en/2.3.0/guide_project-settings_index.md.html#Project%20Settings) for a list of preferences you can use.\n- The entry/start page for your application can be defined via the `<content src>` element + attribute.\n\n## platforms/\nPlatforms added to your application will have the native application project structures laid out within this directory.\n\n## plugins/\nAny added plugins will be extracted or copied into this directory.\n\n# Hooks\n\nProjects created by cordova-cli have `before` and `after` hooks for each [project command](#project_commands).\n\nThere are two types of hooks: project-specific ones and module-level ones. Both of these types of hooks receive the project root folder as a parameter.\n\n## Project-specific Hooks\n\nThese are located under the `.cordova/hooks` directory in the root of your cordova project. Any scripts you add to these directories will be executed before and after the appropriate commands. Useful for integrating your own build systems or integrating with version control systems. __Remember__: make your scripts executable.\n\n### Examples\n\n- [`before_build` hook for jade template compiling](https://gist.github.com/4100866) courtesy of [dpogue](http://github.com/dpogue)\n\n## Module-level Hooks\n\nIf you are using cordova-cli as a module within a larger node application, you can also use the standard `EventEmitter` methods to attach to the events. The events include `before_build`, `before_compile`, `before_docs`, `before_emulate`, `before_run`, `before_platform_add`, `before_library_download`, `before_platform_ls`, `before_platform_rm`, `before_plugin_add`, `before_plugin_ls`, `before_plugin_rm` and `before_prepare`. There is also a `library_download` progress event. Additionally, there are `after_` flavours of all the above events.\n\nOnce you `require('cordova')` in your node project, you will have the usual `EventEmitter` methods available (`on`, `off` or `removeListener`, `removeAllListeners`, and `emit` or `trigger`).\n\n# Examples\n\n## Creating a new cordova project\nThis example shows how to create a project from scratch named KewlApp with iOS and Android platform support, and includes a plugin named Kewlio. The project will live in ~/KewlApp\n\n cordova create ~/KewlApp KewlApp\n cd ~/KewlApp\n cordova platform add ios android\n cordova plugin add http://example.org/Kewlio-1.2.3.tar.gz\n cordova build \n\nThe directory structure of KewlApp now looks like this:\n\n KewlApp/\n |-- .cordova/\n |-- merges/\n | |-- android/\n | `-- ios/\n |-- www/\n | `-- index.html\n |-- platforms/\n | |-- android/\n | | `-- …\n | `-- ios/\n | `-- …\n `-- plugins/\n `-- Kewlio/\n\n# Contributing\n\n## Running Tests\n\n npm test\n\n## TO-DO + Issues\n\nPlease check [Cordova issues with the CLI Component](http://issues.cordova.io). If you find issues with this tool, please be so kind as to include relevant information needed to debug issues such as:\n\n- Your operating system and version\n- The application name, directory location, and identifier used with `create`\n- Which mobile SDKs you have installed, and which version. Related to this: which Xcode version if you are submitting issues related to iOS\n- Any error stack traces you received\n\n## Contributors\n\nThanks to everyone for contributing! For a list of people involved, please see the `package.json` file.\n\n\n# Known Issues and Troubleshooting\n\n## Any OS\n\n### Proxy Settings\n\ncordova-cli will use `npm`'s proxy settings. If you downloaded cordova-cli via `npm` and are behind a proxy, chances are cordova-cli should work for you as it will use those settings in the first place. Make sure that the `https-proxy` and `proxy` npm config variables are set properly. See [npm's configuration documentation](https://npmjs.org/doc/config.html) for more information.\n\n## Windows\n\n### Trouble Adding Android as a Platform\n\nWhen trying to add a platform on a Windows machine if you run into the following error message:\n cordova library for \"android\" already exists. No need to download. Continuing.\n Checking if platform \"android\" passes minimum requirements...\n Checking Android requirements...\n Running \"android list target\" (output to follow)\n \n Error: The command `android` failed. Make sure you have the latest Android SDK installed, and the `android` command (inside the tools/ folder) added t\n o your path. Output:\n at C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\cordova\\src\\platform.js:185:42\n at C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\cordova\\src\\metadata\\android_parser.js:50:13\n at C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\shelljs\\shell.js:1707:7\n at exithandler (child_process.js:633:7)\n at ChildProcess.errorhandler (child_process.js:649:5)\n at ChildProcess.EventEmitter.emit (events.js:95:17)\n at Process.ChildProcess._handle.onexit (child_process.js:787:12)\n\nrun the command \"android list target\". If you see:\n 'xcopy' is not recognized as an internal or external command,\n operable program or batch file.\n\nat the beginning of the command output, it means you will need to update your Windows Path variable to include xcopy. This location is typically under C:\\Windows\\System32. \n\n",
"readmeFilename": "README.md",
"_id": "cordova@3.0.9",
"_from": "cordova@"
}