chore(build): update build process, commands, and packages

* chore(build): change build commands + tools

* refactor(sqlite): tslint

* chore(tsconfig): update tsconfig & change build command

* chore(build): change build commands
This commit is contained in:
Ibrahim Hadeed 2016-06-26 12:54:14 -04:00 committed by GitHub
parent ade3edace4
commit 3936f81d8f
5 changed files with 31 additions and 206 deletions

View File

@ -1,174 +0,0 @@
<a name="1.3.0"></a>
# [1.3.0](https://github.com/driftyco/ionic-native/compare/v1.2.4...v1.3.0) (2016-06-13)
### Breaking Changes
* **contacts** plugin has been fully rewritten
### Bug Fixes
* **barcodescanner:** add missing options param ([4fdcbb5](https://github.com/driftyco/ionic-native/commit/4fdcbb5)), closes [#180](https://github.com/driftyco/ionic-native/issues/180)
* **base64togallery:** method is now static ([be7b9e2](https://github.com/driftyco/ionic-native/commit/be7b9e2)), closes [#212](https://github.com/driftyco/ionic-native/issues/212)
* **batterystatus:** correct plugin name on npm ([66b7fa6](https://github.com/driftyco/ionic-native/commit/66b7fa6))
* **calendar:** fix some functionality and add missing ones ([a15fb01](https://github.com/driftyco/ionic-native/commit/a15fb01)), closes [#184](https://github.com/driftyco/ionic-native/issues/184)
* **deeplinks:** new result type ([11226d7](https://github.com/driftyco/ionic-native/commit/11226d7))
* **deviceorientation:** cancelFunction renamed to clearFunction ([8dee02e](https://github.com/driftyco/ionic-native/commit/8dee02e))
* **geolocation:** fix watchPosition() ([4a8650e](https://github.com/driftyco/ionic-native/commit/4a8650e)), closes [#164](https://github.com/driftyco/ionic-native/issues/164)
* **googlemaps:** isAvailable() returns boolean, not an instance of GoogleMap ([a53ae8f](https://github.com/driftyco/ionic-native/commit/a53ae8f))
### Features
* **angular1:** Support Angular 1 ([af8fbde](https://github.com/driftyco/ionic-native/commit/af8fbde))
* **barcodescanner:** add encode function ([e73f57f](https://github.com/driftyco/ionic-native/commit/e73f57f)), closes [#115](https://github.com/driftyco/ionic-native/issues/115)
* **deeplinks:** Add Ionic Deeplinks Plugin ([c93cbed](https://github.com/driftyco/ionic-native/commit/c93cbed))
* **brightntess:** Add brightness plugin
<a name="1.2.2"></a>
## [1.2.2](https://github.com/driftyco/ionic-native/compare/v1.2.1...v1.2.2) (2016-05-20)
### Bug Fixes
* **Bluetooth:** make connect function an observable to maintain full functionality ([58e3f0b](https://github.com/driftyco/ionic-native/commit/58e3f0b)), closes [#154](https://github.com/driftyco/ionic-native/issues/154)
* **calendar:** add new permissions functions for Android 6 (M) devices ([ddbd64d](https://github.com/driftyco/ionic-native/commit/ddbd64d)), closes [#156](https://github.com/driftyco/ionic-native/issues/156)
* **emailcomposer:** fix isAvailable function ([2a568d2](https://github.com/driftyco/ionic-native/commit/2a568d2)), closes [#168](https://github.com/driftyco/ionic-native/issues/168)
<a name="1.2.1"></a>
## [1.2.1](https://github.com/driftyco/ionic-native/compare/v1.2.0...v1.2.1) (2016-05-11)
### Bug Fixes
* **contacts:** plugin rewrite ([aada893](https://github.com/driftyco/ionic-native/commit/aada893))
### Features
* **plugin:** add wrapper for instance properties ([28d7d5c](https://github.com/driftyco/ionic-native/commit/28d7d5c))
### Bug Fixes
* **BluetoohSerial:** add missing plugin reference ([317437b](https://github.com/driftyco/ionic-native/commit/317437b))
* **GoogleAnalytics:** addCustomDimension() key param is number ([3865ea4](https://github.com/driftyco/ionic-native/commit/3865ea4)), closes [#131](https://github.com/driftyco/ionic-native/issues/131)
* **keyboard:** remove hideKeyboardAccessoryBar method for now ([292c80c](https://github.com/driftyco/ionic-native/commit/292c80c))
* **launchnavigator:** bug fix ([4ead1ae](https://github.com/driftyco/ionic-native/commit/4ead1ae))
* **launchnavigator:** start parameter is optional ([5e7378a](https://github.com/driftyco/ionic-native/commit/5e7378a))
* **localnotifications:** options can be an array ([e10d744](https://github.com/driftyco/ionic-native/commit/e10d744))
* **plugin:** handle rejection when Cordova is undefined ([db07768](https://github.com/driftyco/ionic-native/commit/db07768))
* **plugin:** remove unecessary code ([4070991](https://github.com/driftyco/ionic-native/commit/4070991))
* **push plugin:** senderId is optional in iosPushOptions ([48bf837](https://github.com/driftyco/ionic-native/commit/48bf837))
* **spinnerdialog:** fix functionality ([66f0e03](https://github.com/driftyco/ionic-native/commit/66f0e03))
* **vibration:** fix plugin reference ([beeb075](https://github.com/driftyco/ionic-native/commit/beeb075)), closes [#106](https://github.com/driftyco/ionic-native/issues/106)
### Features
* **camera:** add camera constants ([ce02d82](https://github.com/driftyco/ionic-native/commit/ce02d82)), closes [#129](https://github.com/driftyco/ionic-native/issues/129)
* **ionicnative:** add instance wrapper ([0ec737a](https://github.com/driftyco/ionic-native/commit/0ec737a))
* **keyboard:** add event listeners for keyboard show/hide events ([c947437](https://github.com/driftyco/ionic-native/commit/c947437))
* **media:** add media plugin ([1105b57](https://github.com/driftyco/ionic-native/commit/1105b57)), closes [#88](https://github.com/driftyco/ionic-native/issues/88)
* **plugin:** add admob pro plugin ([d9b847b](https://github.com/driftyco/ionic-native/commit/d9b847b)), closes [#146](https://github.com/driftyco/ionic-native/issues/146)
* **plugin:** add Bluetooth Serial plugin ([837fb95](https://github.com/driftyco/ionic-native/commit/837fb95)), closes [#136](https://github.com/driftyco/ionic-native/issues/136)
* **plugin:** add email composer plugin ([804c9ee](https://github.com/driftyco/ionic-native/commit/804c9ee))
* **plugin:** add InAppBrowser plugin ([b8d2cfd](https://github.com/driftyco/ionic-native/commit/b8d2cfd))
* **plugin:** add social sharing plugin ([efc8231](https://github.com/driftyco/ionic-native/commit/efc8231))
* **plugin:** add spinner dialog plugin ([812653c](https://github.com/driftyco/ionic-native/commit/812653c))
* **plugin:** add web intent plugin ([e2fc9a0](https://github.com/driftyco/ionic-native/commit/e2fc9a0))
* **toast:** add new features to toast plugin ([ed7e783](https://github.com/driftyco/ionic-native/commit/ed7e783))
* **webintent:** add plugin to index ([f357b56](https://github.com/driftyco/ionic-native/commit/f357b56))
### Performance Improvements
* **ionicnative:** instance wrapper cleanup and optimization ([5a8d48e](https://github.com/driftyco/ionic-native/commit/5a8d48e))
<a name="1.1.0"></a>
# [1.1.0](https://github.com/driftyco/ionic-native/compare/v1.0.9...v1.1.0) (2016-03-17)
### Bug Fixes
* **datepicker:** datepicker options are optional ([c3cfd14](https://github.com/driftyco/ionic-native/commit/c3cfd14))
* **datepicker:** dates are Dates ([ce6adcc](https://github.com/driftyco/ionic-native/commit/ce6adcc))
* **datepicker:** fix plugin functionality ([91de971](https://github.com/driftyco/ionic-native/commit/91de971))
* **datepicker:** fix plugin functionality ([1a778e7](https://github.com/driftyco/ionic-native/commit/1a778e7))
* **devicemotion:** combine watch and clear into one function ([d17f62d](https://github.com/driftyco/ionic-native/commit/d17f62d))
* **geolocation:** set callback order to reverse on getCurrentPosition ([1fac387](https://github.com/driftyco/ionic-native/commit/1fac387))
* **imagepicker:** pluginRef ([01d7972](https://github.com/driftyco/ionic-native/commit/01d7972))
* **interface:** params are optional ([e708bc6](https://github.com/driftyco/ionic-native/commit/e708bc6))
* **launchnavigator:** fix Plugin decorator property value ([9e17e25](https://github.com/driftyco/ionic-native/commit/9e17e25))
* **plugin:** combine watch and clearwatch functions ([8855359](https://github.com/driftyco/ionic-native/commit/8855359))
* **plugin:** don't call reject when sync ([1334f60](https://github.com/driftyco/ionic-native/commit/1334f60))
* **plugin:** export interfaces ([1e259da](https://github.com/driftyco/ionic-native/commit/1e259da))
* **plugin:** fix options properties ([44365f4](https://github.com/driftyco/ionic-native/commit/44365f4))
* **plugin:** fix types ([c86e135](https://github.com/driftyco/ionic-native/commit/c86e135))
* **plugins:** cleanup and add new plugins to index ([1771f7b](https://github.com/driftyco/ionic-native/commit/1771f7b))
* **plugins:** fix optional options ([9ef850c](https://github.com/driftyco/ionic-native/commit/9ef850c))
* added dummy boolean ([2caa151](https://github.com/driftyco/ionic-native/commit/2caa151))
* fix callback order ([5fda6d4](https://github.com/driftyco/ionic-native/commit/5fda6d4))
* fix callback order ([5944bd1](https://github.com/driftyco/ionic-native/commit/5944bd1))
* fix options params ([c71f8d4](https://github.com/driftyco/ionic-native/commit/c71f8d4))
* remove confirm callback, not needed. ([662d8ce](https://github.com/driftyco/ionic-native/commit/662d8ce))
### Features
* **batterystatus:** complete functionality ([e7a09d9](https://github.com/driftyco/ionic-native/commit/e7a09d9))
* **localnotification:** complete functionality ([5d5bae3](https://github.com/driftyco/ionic-native/commit/5d5bae3))
* **package:** expose decorators and wrapper functions ([848d706](https://github.com/driftyco/ionic-native/commit/848d706))
* **plugin:** add android hotspot plugin ([e1dc606](https://github.com/driftyco/ionic-native/commit/e1dc606))
* **plugin:** add app availability plugin ([3d188e1](https://github.com/driftyco/ionic-native/commit/3d188e1))
* **plugin:** add base64 to gallery ([8c17a2a](https://github.com/driftyco/ionic-native/commit/8c17a2a))
* **plugin:** add DB Meter ([22bb218](https://github.com/driftyco/ionic-native/commit/22bb218))
* **plugin:** add device motion plugin ([a4df21e](https://github.com/driftyco/ionic-native/commit/a4df21e))
* **plugin:** add device orientation plugin ([9766aab](https://github.com/driftyco/ionic-native/commit/9766aab))
* **plugin:** add dialogs plugin ([b5f9267](https://github.com/driftyco/ionic-native/commit/b5f9267))
* **plugin:** add event wrapper ([0d1bd13](https://github.com/driftyco/ionic-native/commit/0d1bd13))
* **plugin:** add flashlight plugin ([3ec25fa](https://github.com/driftyco/ionic-native/commit/3ec25fa))
* **plugin:** add functionality to app-availablity plugin ([bc4dcaa](https://github.com/driftyco/ionic-native/commit/bc4dcaa))
* **plugin:** add functionality to device motion plugin ([7f7ba3b](https://github.com/driftyco/ionic-native/commit/7f7ba3b))
* **plugin:** add globalization ([90cc36b](https://github.com/driftyco/ionic-native/commit/90cc36b))
* **plugin:** add imagePicker plugin ([287d129](https://github.com/driftyco/ionic-native/commit/287d129))
* **plugin:** add keyboard ([a80c4ee](https://github.com/driftyco/ionic-native/commit/a80c4ee))
* **plugin:** add launch navigator ([984e7fc](https://github.com/driftyco/ionic-native/commit/984e7fc))
* **plugin:** add launch navigator ([18df9a5](https://github.com/driftyco/ionic-native/commit/18df9a5))
* **plugin:** add local notifications ([66df0a6](https://github.com/driftyco/ionic-native/commit/66df0a6))
* **plugin:** add sms ([6843177](https://github.com/driftyco/ionic-native/commit/6843177))
* **plugin:** add sms plugin ([aa7e04c](https://github.com/driftyco/ionic-native/commit/aa7e04c))
* **plugin:** add splashscreen ([0f3c188](https://github.com/driftyco/ionic-native/commit/0f3c188))
* **plugin:** add vibration ([3cc4ee4](https://github.com/driftyco/ionic-native/commit/3cc4ee4))
* **plugin:** proxy plugin properties ([fc54fef](https://github.com/driftyco/ionic-native/commit/fc54fef))
* **plugin:** show instructions if plugin not installed ([c48a851](https://github.com/driftyco/ionic-native/commit/c48a851))
* **plugins:** add new plugins to index ([4d8dc1b](https://github.com/driftyco/ionic-native/commit/4d8dc1b))
* **plugins:** add platforms info ([9826dfd](https://github.com/driftyco/ionic-native/commit/9826dfd))
<a name="1.0.9"></a>
## [1.0.9](https://github.com/driftyco/ionic-native/compare/8f27fc9...v1.0.9) (2016-02-18)
### Bug Fixes
* **calendar:** make getCalendarOptions sync ([78c5408](https://github.com/driftyco/ionic-native/commit/78c5408))
* **geolocation:** call correct clearFunction ([9e86a40](https://github.com/driftyco/ionic-native/commit/9e86a40))
* **plugin:** return originalMethod return value ([240f0f8](https://github.com/driftyco/ionic-native/commit/240f0f8))
* **plugin:** use call for id based clearFunction ([c2fdf39](https://github.com/driftyco/ionic-native/commit/c2fdf39))
* datepicker plugin, pluginref, and @Cordova wrapper ([499ead3](https://github.com/driftyco/ionic-native/commit/499ead3))
### Features
* **DatePicker:** Added DatePicker ([5afa58f](https://github.com/driftyco/ionic-native/commit/5afa58f))
* **plugin:** add sync option to @Cordova for sync functions ([17e3827](https://github.com/driftyco/ionic-native/commit/17e3827))
* **plugin:** call clearFunction with original fn args ([8f27fc9](https://github.com/driftyco/ionic-native/commit/8f27fc9))
* add app version plugin ([20cb01f](https://github.com/driftyco/ionic-native/commit/20cb01f))
* add app version plugin ([8b78521](https://github.com/driftyco/ionic-native/commit/8b78521))
* add apprate ([0dd4fec](https://github.com/driftyco/ionic-native/commit/0dd4fec))
* add badge plugin ([7f01fb2](https://github.com/driftyco/ionic-native/commit/7f01fb2))
* add badge plugin ([3088df4](https://github.com/driftyco/ionic-native/commit/3088df4))
* add clipboard plugin ([0b6cca7](https://github.com/driftyco/ionic-native/commit/0b6cca7))
* add clipboard plugin ([fa4c266](https://github.com/driftyco/ionic-native/commit/fa4c266))

View File

@ -94,11 +94,11 @@ The `@Cordova` decorator has a few more options now.
### Testing your changes
You need to run `npm run build_bundle` in the `ionic-native` project, this will create a `dist` directory. Then, you must go to your ionic application folder and replace your current `node_modules/ionic-native/dist/` with the newly generated one.
You need to run `npm run build` in the `ionic-native` project, this will create a `dist` directory. Then, you must go to your ionic application folder and replace your current `node_modules/ionic-native/dist/` with the newly generated one.
### Cleaning the code
You need to run `gulp tslint` to analyze the code and ensure it's consitency with the repository style. Fix any errors before submitting a PR.
You need to run `npm run tslint` to analyze the code and ensure it's consistency with the repository style. Fix any errors before submitting a PR.
### 'Wrapping' Up

View File

@ -10,18 +10,19 @@
"rxjs": "^5.0.0-beta.6"
},
"devDependencies": {
"browserify": "^13.0.0",
"browserify": "^13.0.1",
"canonical-path": "0.0.2",
"conventional-changelog": "^1.1.0",
"conventional-changelog-cli": "^1.2.0",
"conventional-github-releaser": "^1.1.3",
"cpr": "^1.0.0",
"cz-conventional-changelog": "^1.1.5",
"cz-conventional-changelog": "^1.1.6",
"dgeni": "^0.4.2",
"dgeni-packages": "^0.10.18",
"glob": "^6.0.4",
"gulp": "~3.9.0",
"gulp": "^3.9.1",
"gulp-rename": "^1.2.2",
"gulp-tslint": "^5.0.0",
"gulp-uglify": "^1.5.3",
"gulp-uglify": "^1.5.4",
"lodash": "3.10.1",
"minimist": "^1.1.3",
"mkdirp": "^0.5.1",
@ -34,8 +35,14 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc --module commonjs --sourcemap --outDir dist/ --experimentalDecorators -d typings/es6-shim/es6-shim.d.ts src/index.ts --target ES5",
"build_bundle": "npm run-script build && browserify dist/index.js > dist/ionic.native.js && gulp minify:dist"
"tslint": "./node_modules/.bin/gulp tslint",
"watch": "./node_modules/.bin/tsc -w",
"build": "npm run tslint && npm run build:js && npm run build:bundle && npm run build:minify",
"build:js": "./node_modules/.bin/tsc",
"build:bundle": "./node_modules/.bin/browserify dist/index.js > dist/ionic.native.js",
"build:minify": "./node_modules/.bin/gulp minify:dist",
"changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -p angular -v",
"github-release": "./node_modules/.bin/conventional-github-releaser -p angular"
},
"repository": {
"type": "git",

View File

@ -67,13 +67,13 @@ export class SQLite {
* });
* ```
*/
openDatabase (config: any) : Promise<any> {
openDatabase (config: any): Promise<any> {
return new Promise((resolve, reject) => {
sqlitePlugin.openDatabase(config, db => {
this._objectInstance = db;
resolve(db);
}, error => {
console.warn(error)
console.warn(error);
reject(error);
});
});

View File

@ -1,23 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"rootDir": ".",
"sourceMap": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"filesGlob": [
"**/*.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"buildOnSave": false,
"atom": {
"rewriteTsconfig": false
}
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"sourceMap": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "dist"
},
"files": [
"typings/es6-shim/es6-shim.d.ts",
"src/index.ts"
]
}