Merge pull request #96 from driftyco/add-custom-install

chore(docs): ability to add custom install command for a plugin
This commit is contained in:
Ibrahim Hadeed 2016-03-29 05:38:25 -04:00
commit 5525d2f232
2 changed files with 4 additions and 2 deletions

View File

@ -116,8 +116,9 @@ docType: "<$ doc.docType $>"
<!-- decorators -->
<@- if doc.decorators @>
<@ for prop in doc.decorators[0].argumentInfo @>
<pre><code>$ cordova plugin add <$ prop.plugin $></code></pre>
<pre><code>$ <@ if prop.install @><$ prop.install $><@ else @>cordova plugin add <$ prop.plugin $><@ endif -@></code></pre>
<p>Repo:
<a href="<$ prop.repo $>">
<$ prop.repo $>

View File

@ -80,7 +80,8 @@ import {Plugin, Cordova} from './plugin';
@Plugin({
plugin: 'cordova-plugin-facebook4',
pluginRef: 'facebookConnectPlugin',
repo: 'https://github.com/jeduan/cordova-plugin-facebook4'
repo: 'https://github.com/jeduan/cordova-plugin-facebook4',
install: 'cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"'
})
export class Facebook {