Skip to content

Commit

Permalink
chore(index): update index
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Apr 25, 2016
2 parents 2afd415 + f5b52bf commit 584312e
Show file tree
Hide file tree
Showing 19 changed files with 528 additions and 25 deletions.
40 changes: 40 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build_bundle' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild_bundle', 'build_bundle', 'postbuild_bundle' ]
5 info prebuild_bundle [email protected]
6 info build_bundle [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec build_bundle script
9 verbose stack Error: [email protected] build_bundle: `npm run-script build && browserify dist/index.js > dist/ionic.native.js`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:818:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd C:\Users\Ibrahim\WebstormProjects\ionic-native
12 error Windows_NT 10.0.10586
13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build_bundle"
14 error node v4.2.4
15 error npm v2.14.12
16 error code ELIFECYCLE
17 error [email protected] build_bundle: `npm run-script build && browserify dist/index.js > dist/ionic.native.js`
17 error Exit status 1
18 error Failed at the [email protected] build_bundle script 'npm run-script build && browserify dist/index.js > dist/ionic.native.js'.
18 error This is most likely a problem with the ionic-native package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error npm run-script build && browserify dist/index.js > dist/ionic.native.js
18 error You can get their info via:
18 error npm owner ls ionic-native
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
"version": "1.1.0",
"version": "1.1.1",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"main": "dist/index.js",
"directories": {
Expand Down
3 changes: 2 additions & 1 deletion scripts/docs/templates/common.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ <h1 class="api-title">

<!-- 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 @>ionic plugin add <$ prop.plugin $><@ endif -@></code></pre>
<p>Repo:
<a href="<$ prop.repo $>">
<$ prop.repo $>
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function run {
git config --global user.email "[email protected]"
git config --global user.name "Ionitron"
git add -A
git commit -am "Automated build of platform docs driftyco/$CIRCLE_PROJECT_REPONAME@$CIRCLE_SHA1"
git commit -am "Automated build of native docs driftyco/$CIRCLE_PROJECT_REPONAME@$CIRCLE_SHA1"
git push origin master

echo "-- Updated docs for $VERSION_NAME succesfully!"
Expand Down
16 changes: 14 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ import {DBMeter} from './plugins/dbmeter';
import {Device} from './plugins/device';
import {DeviceMotion} from './plugins/devicemotion';
import {DeviceOrientation} from './plugins/deviceorientation';
import {Diagnostic} from './plugins/diagnostic';
import {Dialogs} from './plugins/dialogs';
import {EmailComposer} from './plugins/emailcomposer';
import {Facebook} from './plugins/facebook';
import {File} from './plugins/file';
import {Flashlight} from './plugins/flashlight';
import {Geolocation} from './plugins/geolocation';
import {Globalization} from './plugins/globalization';
import {GoogleMaps} from './plugins/googlemaps';
import {GoogleAnalytics} from './plugins/googleanalytics';
import {Hotspot} from './plugins/hotspot';
import {ImagePicker} from './plugins/imagepicker';
import {InAppBrowser} from './plugins/inappbrowser';
Expand All @@ -48,6 +51,7 @@ import {StatusBar} from './plugins/statusbar';
import {Toast} from './plugins/toast';
import {TouchID} from './plugins/touchid';
import {Vibration} from './plugins/vibration';
import {WebIntent} from './plugins/webintent';

export {
ActionSheet,
Expand All @@ -70,12 +74,15 @@ export {
DeviceMotion,
DeviceOrientation,
Dialogs,
Diagnostic,
EmailComposer,
Facebook,
File,
Flashlight,
Geolocation,
Globalization,
GoogleMaps,
GoogleAnalytics,
Hotspot,
ImagePicker,
InAppBrowser,
Expand All @@ -93,7 +100,8 @@ export {
StatusBar,
Toast,
TouchID,
Vibration
Vibration,
WebIntent
}

export * from './plugins/plugin';
Expand All @@ -120,12 +128,15 @@ window['IonicNative'] = {
DeviceMotion: DeviceMotion,
DeviceOrientation: DeviceOrientation,
Dialogs: Dialogs,
Diagnostic: Diagnostic,
EmailComposer: EmailComposer,
Facebook: Facebook,
File: File,
Flashlight: Flashlight,
Geolocation: Geolocation,
Globalization: Globalization,
GoogleMaps : GoogleMaps,
GoogleAnalytics: GoogleAnalytics,
Hotspot: Hotspot,
ImagePicker: ImagePicker,
InAppBrowser: InAppBrowser,
Expand All @@ -143,7 +154,8 @@ window['IonicNative'] = {
StatusBar: StatusBar,
Toast: Toast,
TouchID: TouchID,
Vibration: Vibration
Vibration: Vibration,
WebIntent: WebIntent
};

// To help developers using cordova, we listen for the device ready event and
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/actionsheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export class ActionSheet {
* |-------------------------------|-----------|----------------------------------------------|
* | title |`string` | The title for the actionsheet |
* | buttonLabels |`string[]` | the labels for the buttons. Uses the index x |
* | androidTheme |`number` | Theme to bue used on Android |
* | androidTheme |`number` | Theme to be used on Android |
* | androidEnableCancelButton |`boolean` | Enable a cancel on Android |
* | winphoneEnableCancelButton |`boolean` | Enable a cancel on Android |
* | addCancelButtonWithLabel |`string` | Add a cancle button with text |
* | winphoneEnableCancelButton |`boolean` | Enable a cancel on Windows Phone |
* | addCancelButtonWithLabel |`string` | Add a cancel button with text |
* | addDestructiveButtonWithLabel |`string` | Add a destructive button with text |
* | position |`number[]` | On an iPad, set the X,Y position |
*
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/barcodescanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {Plugin, Cordova} from './plugin';
plugin: 'phonegap-plugin-barcodescanner',
pluginRef: 'cordova.plugins.barcodeScanner',
repo: 'https://github.com/phonegap/phonegap-plugin-barcodescanner',
pltaforms: ['Android','iOS','Windows Phone 8','Windows 10','Windows 8','BlackBerry 10', 'Browser']
platforms: ['Android','iOS','Windows Phone 8','Windows 10','Windows 8','BlackBerry 10', 'Browser']
})
export class BarcodeScanner {

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/batterystatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class BatteryStatus {
*/
@Cordova({
eventObservable: true,
event: 'batterylevel'
event: 'batterystatus'
})
static onChange () : Observable<StatusObject> {return}

Expand Down Expand Up @@ -73,4 +73,4 @@ export interface StatusObject {
* A boolean that indicates whether the device is plugged in
*/
isPlugged : boolean
}
}
5 changes: 2 additions & 3 deletions src/plugins/contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ declare var ContactFindOptions: {

declare var Contact: {
new(): Contact
}
};

/**
* @name Contacts
Expand All @@ -202,12 +202,11 @@ declare var Contact: {
*
*
*
* Contacts.save({
* Contacts.create({
* displayName: "Mr. Ionitron"
* }).then((contact) => {}, (err) => {})
* ```
*
* See the `save()` docs for a full list of fields.
*
*/
@Plugin({
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/devicemotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface accelerometerOptions {
* );
*
* // Watch device acceleration
* var subscription = DeviceMotion.watchPosition().subscribe(acceleration => {
* var subscription = DeviceMotion.watchAcceleration().subscribe(acceleration => {
* console.log(acceleration);
* });
*
Expand Down
Loading

0 comments on commit 584312e

Please sign in to comment.