Skip to content

Commit d758362

Browse files
Merge pull request #8 from Mobiletainment/chore/stencil-2-update
chore(workspace): update to Stencil v2
2 parents f41b142 + d788295 commit d758362

File tree

5 files changed

+23
-27
lines changed

5 files changed

+23
-27
lines changed

libs/ui-components/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"keywords": ["web components", "custom elements", "stencil", "ui", "components"],
66
"version": "1.0.0",
77
"license": "MIT",
8-
"main": "dist/index.js",
9-
"module": "dist/index.mjs",
8+
"main": "dist/index.cjs.js",
9+
"module": "dist/index.js",
1010
"es2015": "dist/esm/index.mjs",
1111
"es2017": "dist/esm/index.mjs",
1212
"types": "dist/types/index.d.ts",

libs/ui-components/stencil.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const config: Config = {
1010
reactOutputTarget({
1111
componentCorePackage: 'ui-components',
1212
proxiesFile: '../generated/ui-components-react/src/components.ts',
13+
includeDefineCustomElements: true,
14+
includePolyfills: false
1315
}),
1416
{
1517
type: 'dist',

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"author": "David Pertiller",
55
"license": "MIT",
66
"scripts": {
7+
"postinstall": "nx run ui-components:build",
78
"nx": "nx",
89
"start": "nx run-many --target=serve --all=true --parallel=true --with-deps=true --open=true",
910
"build": "nx build",
@@ -49,9 +50,9 @@
4950
"@nrwl/web": "11.1.5",
5051
"@nrwl/workspace": "11.1.5",
5152
"@nxext/stencil": "11.0.0",
52-
"@stencil/core": "1.16.4",
53-
"@stencil/react-output-target": "^0.0.7",
54-
"@stencil/sass": "1.3.1",
53+
"@stencil/core": "^2.3.0",
54+
"@stencil/react-output-target": "^0.0.9",
55+
"@stencil/sass": "^1.4.1",
5556
"@testing-library/react": "11.1.2",
5657
"@types/jest": "26.0.8",
5758
"@types/node": "12.12.38",

tsconfig.base.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"compilerOptions": {
44
"baseUrl": ".",
55
"paths": {
6-
"ui-components": ["dist/libs/ui-components/"],
7-
"ui-components/loader": ["dist/libs/ui-components/loader/index.cjs.js"],
8-
"ui-components-react": ["dist/libs/generated/ui-components-react/src/index.ts"]
6+
"ui-components": ["dist/libs/ui-components"],
7+
"ui-components/loader": ["dist/libs/ui-components/loader"],
8+
"ui-components-react": ["dist/libs/generated/ui-components-react/src/components.ts"]
99
},
1010
"rootDir": ".",
1111
"sourceMap": true,

yarn.lock

+12-19
Original file line numberDiff line numberDiff line change
@@ -2678,22 +2678,20 @@
26782678
dependencies:
26792679
"@sinonjs/commons" "^1.7.0"
26802680

2681-
"@stencil/[email protected]":
2682-
version "1.16.4"
2683-
resolved "https://registry.yarnpkg.com/@stencil/core/-/core-1.16.4.tgz#132fcee3bc6c6c0db5af799c8279b42b559877d9"
2684-
integrity sha512-RN1xoGyzNCXAAzN8HHDDoGEbGrms1YpEnfp86kd37ZHOOwX500GwxjsTOpzFcBOfkUoiuBjKVnONTqWO04H8/Q==
2685-
dependencies:
2686-
typescript "3.9.7"
2681+
"@stencil/core@^2.3.0":
2682+
version "2.3.0"
2683+
resolved "https://registry.yarnpkg.com/@stencil/core/-/core-2.3.0.tgz#9190df3a0064537730be1546545e13531d701da8"
2684+
integrity sha512-VZ/Ox0E1kngcmHbJhHUufuLELi+xG3of3LuRI3X2AMWyE82JUVYlOEsQci/YBZWpfc9BS9I36R88prBew22oew==
26872685

2688-
"@stencil/react-output-target@^0.0.7":
2689-
version "0.0.7"
2690-
resolved "https://registry.yarnpkg.com/@stencil/react-output-target/-/react-output-target-0.0.7.tgz#47e0b52336bdebd8e74680dd4b49c80b557c173a"
2691-
integrity sha512-Z3w+Mj3cyNutltrkEs1FMW0ABWTWQXJn1nxmFmvDmMknAtAgKl0qrazdVS5+uQ0XneiCp5lfYgqMcKfP5CM9Yw==
2686+
"@stencil/react-output-target@^0.0.9":
2687+
version "0.0.9"
2688+
resolved "https://registry.yarnpkg.com/@stencil/react-output-target/-/react-output-target-0.0.9.tgz#b225611c5743f0285c37d92bb47d9369ba462c54"
2689+
integrity sha512-t2sSkm/VGftBqewK47eZonaHIXW7CYWlsDy6Ln4jqNVpr93CuPWkg7rsnPiZrJrU1NBuTgA0hC2xoRcAJVm7Sw==
26922690

2693-
"@stencil/sass@1.3.1":
2694-
version "1.3.1"
2695-
resolved "https://registry.yarnpkg.com/@stencil/sass/-/sass-1.3.1.tgz#d49f09b4e720eafea13a77e0940cc86039370644"
2696-
integrity sha512-5qsEyhLGTywpG4zlWv6eBhhj/z2Z37nbUGa87Ak0KqfsEiclJCYRA/AMM9FiN1jHfBvr968G4zE8rNlYmiPLsQ==
2691+
"@stencil/sass@^1.4.1":
2692+
version "1.4.1"
2693+
resolved "https://registry.yarnpkg.com/@stencil/sass/-/sass-1.4.1.tgz#ef5a1dd1b56c024ed08e80475e8a6f8d1c25bb10"
2694+
integrity sha512-aFKoqtxZ/8BRbvNFiWRycGiqvMI22Ifn5qsKfq0U23j43XD81jT6d7K0WQd55ejNpoSpdxJcbOuFgQy3mXizfA==
26972695

26982696
"@svgr/babel-plugin-add-jsx-attribute@^5.4.0":
26992697
version "5.4.0"
@@ -13102,11 +13100,6 @@ typedarray@^0.0.6:
1310213100
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1310313101
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1310413102

13105-
13106-
version "3.9.7"
13107-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
13108-
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
13109-
1311013103
1311113104
version "4.0.5"
1311213105
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"

0 commit comments

Comments
 (0)