Skip to content

Commit

Permalink
chore(): update to latest stencil
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 31, 2018
1 parent 7a6bebe commit 1b5bb67
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
5 changes: 3 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
"ionicons": "4.2.6"
},
"devDependencies": {
"@stencil/core": "0.11.0-0",
"@stencil/core": "0.11.0",
"@stencil/dev-server": "latest",
"@stencil/sass": "latest",
"@stencil/sass": "0.1.0",
"@stencil/utils": "latest",
"@types/jest": "^23.3.1",
"autoprefixer": "^9.0.2",
"chromedriver": "^2.38.3",
"clean-css-cli": "^4.1.11",
"jest": "^23.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class TranslucentPageTab {
@Element() element!: HTMLElement;

getTabs() {
return this.element.closest('ion-tabs');
return this.element.closest('ion-tabs')!;
}

setLayout(value: string) {
Expand Down
16 changes: 6 additions & 10 deletions core/stencil.config.js → core/stencil.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const sass = require('@stencil/sass');
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';

exports.config = {
export const config: Config = {
namespace: 'Ionic',
bundles: [
{ components: ['ion-action-sheet', 'ion-action-sheet-controller'] },
Expand Down Expand Up @@ -29,8 +30,8 @@ exports.config = {
{ components: ['ion-note', 'ion-img', 'ion-text'] },
{ components: ['ion-popover', 'ion-popover-controller'] },
{ components: ['ion-radio', 'ion-radio-group'] },
{ components: ['ion-range', 'ion-range-knob']},
{ components: ['ion-refresher', 'ion-refresher-content']},
{ components: ['ion-range', 'ion-range-knob'] },
{ components: ['ion-refresher', 'ion-refresher-content'] },
{ components: ['ion-reorder', 'ion-reorder-group'] },
{ components: ['ion-ripple-effect'] },
{ components: ['ion-router', 'ion-route', 'ion-route-redirect', 'ion-router-outlet'] },
Expand All @@ -46,7 +47,7 @@ exports.config = {
{ components: ['ion-virtual-scroll'] },
],
plugins: [
sass(),
sass()
],
outputTargets: [
{
Expand All @@ -62,8 +63,3 @@ exports.config = {
globalScript: 'src/global/ionic-global.ts',
enableCache: true,
};

exports.devServer = {
root: '.',
watchGlob: ['dist/*.*', 'dist/ionic/**/**', 'src/**/*.html']
};
3 changes: 2 additions & 1 deletion core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
"src/**/*.tsx",
"stencil.config.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 1b5bb67

Please sign in to comment.