Skip to content

Commit eb0f4c9

Browse files
committed
+stencil
1 parent f471c9d commit eb0f4c9

21 files changed

+140
-528
lines changed

libraries/stencil/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist/
2+
build/
23
www/
34
loader/
45
.stencil/

libraries/stencil/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
6+
<meta charset="utf-8" />
7+
</head>
8+
9+
<body>
10+
<component-without-children></component-without-children>
11+
<component-with-children></component-with-children>
12+
<component-with-children-rerender></component-with-children-rerender>
13+
<component-with-different-views></component-with-different-views>
14+
<component-with-properties></component-with-properties>
15+
<component-with-declarative-event></component-with-declarative-event>
16+
<component-with-imperative-event></component-with-imperative-event>
17+
<script type="module" src="./src/index.js"></script>
18+
</body>
19+
</html>

libraries/stencil/karma.conf.js

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

libraries/stencil/package.json

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,61 @@
11
{
22
"scripts": {
3+
"compile": "wireit",
34
"test": "wireit",
45
"build": "wireit",
56
"build:stencil": "wireit"
67
},
78
"library_repo": "ionic-team/stencil",
89
"devDependencies": {
9-
"babel-core": "6.26.3",
10-
"babel-loader": "9.2.1",
11-
"chai": "4.5.0",
12-
"cross-env": "7.0.3",
13-
"karma": "6.4.4",
14-
"karma-chrome-launcher": "3.2.0",
15-
"karma-firefox-launcher": "2.1.3",
16-
"karma-sourcemap-loader": "0.4.0",
17-
"karma-webpack": "5.0.1",
18-
"webpack": "5.101.0"
10+
"vite": "^7.2.2"
1911
},
2012
"dependencies": {
21-
"@stencil/core": "4.36.2"
13+
"@stencil/core": "4.36.2",
14+
"wc": "workspace:*"
2215
},
2316
"wireit": {
24-
"test": {
25-
"dependencies": [
26-
"../..:karma-plugins",
27-
"build:stencil"
28-
],
17+
"build:stencil": {
2918
"files": [
30-
"karma.conf.js",
3119
"stencil.config.ts",
32-
"tests.webpack.js",
3320
"tsconfig.json",
21+
"src"
22+
],
23+
"output": [
24+
"build"
25+
],
26+
"command": "stencil build"
27+
},
28+
"compile": {
29+
"dependencies": ["build:stencil"],
30+
"files": [
31+
"index.html",
32+
"build",
3433
"src",
35-
"dist",
36-
"meta"
34+
"vite.config.js"
3735
],
36+
"output": [
37+
"dist"
38+
],
39+
"command": "vite build"
40+
},
41+
"test": {
42+
"files": ["dist"],
43+
"dependencies": [
44+
"compile",
45+
"../__shared__/tests:test-files"
46+
],
47+
"command": "pnpm run --filter tests test",
3848
"output": [
3949
"results"
4050
],
41-
"command": "cross-env LIBRARY_NAME=@stencil/core karma start"
51+
"env": {
52+
"CEE_WORKSPACE": "stencil"
53+
}
4254
},
4355
"build": {
4456
"dependencies": [
4557
"test"
4658
]
47-
},
48-
"build:stencil": {
49-
"files": [
50-
"stencil.config.ts",
51-
"tsconfig.json",
52-
"src"
53-
],
54-
"output": [
55-
"dist"
56-
],
57-
"command": "stencil build"
5859
}
5960
}
6061
}

libraries/stencil/src/advanced-tests.js

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

0 commit comments

Comments
 (0)