Skip to content

Commit dc22271

Browse files
committed
chore(): update to stencil one
1 parent 76da589 commit dc22271

File tree

3 files changed

+19
-48
lines changed

3 files changed

+19
-48
lines changed

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,22 @@
2020
"test.watch": "jest --watch"
2121
},
2222
"dependencies": {
23-
"postcss": "6.0.20"
23+
"postcss": "~7.0.17"
24+
},
25+
"peerDependencies": {
26+
"@stencil/core": "^1.0.2"
2427
},
2528
"devDependencies": {
26-
"@types/jest": "^22.2.0",
27-
"@types/node": "^8.5.1",
28-
"jest": "^22.4.2",
29-
"np": "^2.20.1",
29+
"@stencil/core": "^1.0.2",
30+
"@types/jest": "^24.0.13",
31+
"@types/node": "^12.0.7",
32+
"jest": "^24.8.0",
33+
"np": "^5.0.3",
3034
"rimraf": "^2.6.2",
31-
"rollup": "^0.57.1",
35+
"rollup": "^1.14.1",
3236
"tslint": "^5.9.1",
33-
"tslint-ionic-rules": "0.0.14",
34-
"typescript": "^2.7.2"
37+
"tslint-ionic-rules": "0.0.21",
38+
"typescript": "^3.5.1"
3539
},
3640
"repository": {
3741
"type": "git",

src/declarations.ts

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,11 @@
1+
export * from '@stencil/core/internal';
2+
13
export interface PluginOptions {
24
injectGlobalPaths?: string[];
3-
plugins?: Array<any>;
4-
}
5-
6-
export interface PluginTransformResults {
7-
code?: string;
8-
id?: string;
5+
plugins?: any[];
96
}
107

118
export interface RendererOptions {
129
data: string;
13-
plugins: Array<any>;
14-
}
15-
16-
export interface PluginCtx {
17-
config: {
18-
rootDir?: string;
19-
srcDir?: string;
20-
};
21-
fs: any;
22-
diagnostics: Diagnostic[];
23-
}
24-
25-
export interface Diagnostic {
26-
level: 'error' | 'warn' | 'info' | 'log' | 'debug';
27-
type: 'typescript' | 'bundling' | 'build' | 'runtime' | 'hydrate' | 'css';
28-
header?: string;
29-
language?: string;
30-
messageText: string;
31-
code?: string;
32-
absFilePath?: string;
33-
relFilePath?: string;
34-
lineNumber?: number;
35-
columnNumber?: number;
36-
lines?: PrintLine[];
37-
}
38-
39-
export interface PrintLine {
40-
lineIndex: number;
41-
lineNumber: number;
42-
text?: string;
43-
errorCharStart: number;
44-
errorLength?: number;
10+
plugins: any[];
4511
}

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"declaration": true,
77
"forceConsistentCasingInFileNames": true,
88
"lib": [
9-
"es2017"
9+
"es2017",
10+
"dom"
1011
],
1112
"module": "es2015",
1213
"moduleResolution": "node",
@@ -17,7 +18,7 @@
1718
"outDir": "dist",
1819
"pretty": true,
1920
"removeComments": false,
20-
"target": "es2015"
21+
"target": "es2017"
2122
},
2223
"files": [
2324
"src/index.ts"

0 commit comments

Comments
 (0)