Skip to content

Commit dbaf7d7

Browse files
michaeltintiucgrgur
authored andcommitted
General QOF improvements (#98)
* QOF improvements * Fix lint, add cleaning
1 parent 31d1c8b commit dbaf7d7

16 files changed

+19
-136
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Apart from minor improvements and further testing of various mixes of Ionic comp
4141
| MS Edge Fix | :heavy_check_mark: | :heavy_check_mark: | Fully implemented |
4242
| Router keep-alive | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/18561) | - |
4343
| Functional Inputs | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/19087) | - |
44-
| Import controllers directly | :soon: | :x: | Improve treeshaking and sync with react and angular implementations |
44+
| Import controllers directly | :heavy_check_mark: | [Pending](https://github.com/ionic-team/ionic/pull/19573) | Improve treeshaking and sync with react and angular implementations |
4545
| Unit tests | :x: | :x: | Outdated as were originally written in plain JS, need to be updated for TS |
4646

4747
## Installing / Getting started
@@ -92,13 +92,16 @@ IonicVueRouter requires `ion-vue-router` element in order to render Ionic transi
9292

9393
### IonicVue
9494

95-
`IonicVue` abstracts DOM interaction of Ionic UI components inside a Vue application and can be used via `this.$ionic`.
95+
`IonicVue` abstracts DOM interaction of Ionic UI components inside a Vue application.
96+
:warning: Use of `this.$ionic` or `Vue.$ionic` is deprecated and will be removed in the near future. Please use the example below instead:
9697

9798
```js
99+
import { alertController } from '@ionic/vue';
100+
98101
Vue.component('Foo', {
99102
methods: {
100103
notify() {
101-
this.$ionic.alertController
104+
alertController
102105
.create({
103106
header: 'Notification',
104107
subHeader: null,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"scripts": {
5050
"dev": "rollup -c ./build/rollup.config.js",
5151
"watch": "rollup -w -c ./build/rollup.config.js",
52-
"prod": "NODE_ENV=production rollup -c ./build/rollup.config.js --configProd",
52+
"prod": "npm run clean && NODE_ENV=production rollup -c ./build/rollup.config.js --configProd",
5353
"lint": "tslint --project .",
5454
"lint.fix": "tslint --project . --fix",
5555
"test": "jest --coverage --verbose",

scripts/clean.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const fs = require('fs-extra')
2+
const path = require('path')
3+
4+
const cleanDirs = ['dist']
5+
6+
cleanDirs.forEach(dir => {
7+
const cleanDir = path.join(__dirname, '../', dir)
8+
fs.removeSync(cleanDir)
9+
})

src/components/navigation/ion-tabs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Vue, { CreateElement, RenderContext, VNode } from 'vue';
22
import { Route } from 'vue-router';
33

4+
45
interface EventListeners {
6+
// tslint:disable-next-line:ban-types
57
[key: string]: Function | Function[];
68
}
79

@@ -158,6 +160,7 @@ function parseTabBar(vnode: VNode, tab: string, listeners: EventListeners): VNod
158160
if (Array.isArray(child.data.on.click)) {
159161
child.data.on.click.push(clickHandler);
160162
} else {
163+
// tslint:disable-next-line:ban-types
161164
child.data.on.click = [child.data.on.click as Function, clickHandler];
162165
}
163166
}

types/api-utils.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

types/components/ion-vue-router-transitionless.vue.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

types/components/ion-vue-router.vue.d.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

types/components/navigation/IonTabs.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

types/controllers/action-sheet-controller.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/controllers/alert-controller.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/controllers/loading-controller.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/controllers/menu-controller.d.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

types/controllers/picker-controller.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/controllers/toast-controller.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/mixins/catch-ionic-go-back.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

types/util.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)