chore(): update stencil

* feat(): upgrade to new stencil and add plugins

* chore() add back bundles for cdn

* chore(): update stencil

* chore(): update stencil
This commit is contained in:
Mike Hartington
2018-02-16 15:00:27 -05:00
committed by GitHub
parent 07448d3f45
commit 8a92c7d090
5 changed files with 28 additions and 10 deletions

View File

@ -9,10 +9,13 @@
"dist/"
],
"devDependencies": {
"@stencil/core": "0.5.2",
"@stencil/core": "0.6.0",
"@stencil/dev-server": "latest",
"@stencil/postcss": "0.0.2",
"@stencil/sass": "0.0.2",
"@stencil/utils": "latest",
"@types/jest": "^21.1.6",
"autoprefixer": "^8.0.0",
"chai": "^4.1.2",
"chromedriver": "^2.33.2",
"glob": "^7.1.2",

View File

@ -4,8 +4,6 @@
* and imports for stencil collections that might be configured in your stencil.config.js file
*/
import 'ionicons';
import {
ActionSheetButton,
} from './components/action-sheet/action-sheet';

View File

@ -1,3 +1,4 @@
import 'ionicons';
import { createConfigController } from './config-controller';
import { PLATFORM_CONFIGS, detectPlatforms } from './platform-configs';
import { createDomControllerClient } from './dom-controller';

View File

@ -1,5 +1,8 @@
const sass = require('@stencil/sass');
const postcss = require('@stencil/postcss');
const autoprefixer = require('autoprefixer');
exports.config = {
enableCache: false,
namespace: 'Ionic',
generateDistribution: true,
generateWWW: false,
@ -46,12 +49,24 @@ exports.config = {
{ components: ['ion-cordova-platform'] },
{ components: ['ion-nav-pop'] },
],
collections: [
'ionicons'
],
copy: [
{ src: '**/*.scss' }
plugins: [
sass(),
postcss({
plugins: [
autoprefixer({
browsers: [
'last 2 versions',
'iOS >= 8',
'Android >= 4.4',
'Explorer >= 11',
'ExplorerMobile >= 11'
],
cascade: false
})
]
})
],
copy: [{ src: '**/*.scss' }],
preamble: '(C) Ionic http://ionicframework.com - MIT License',
globalScript: 'src/global/ionic-global.ts',
buildStats: true

View File

@ -3,6 +3,7 @@
"rules": {
"no-conditional-assignment": false,
"no-unnecessary-type-assertion": false,
"prefer-for-of": false
"prefer-for-of": false,
"no-import-side-effect": false,
}
}