@utrecht/web-component-library-stencil 1.0.0-alpha.246 → 1.0.0-alpha.247

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,6 @@ import { angularOutputTarget } from '@stencil/angular-output-target';
2
2
  import { reactOutputTarget } from '@stencil/react-output-target';
3
3
  import { sass } from '@stencil/sass';
4
4
  import { vueOutputTarget } from '@stencil/vue-output-target';
5
- import { patchVueOutputTarget } from './patch-vue';
6
- import { sequentialOutputTargets } from './sequential-output-targets';
7
5
  const valueAccessorConfigs = [
8
6
  {
9
7
  elementSelectors: [
@@ -67,13 +65,11 @@ export const config = {
67
65
  directivesArrayFile: '../web-component-library-angular/src/directives/index.ts',
68
66
  valueAccessorConfigs: valueAccessorConfigs,
69
67
  }),
70
- sequentialOutputTargets(vueOutputTarget({
68
+ vueOutputTarget({
71
69
  componentCorePackage: '@utrecht/web-component-library-stencil',
72
70
  proxiesFile: '../web-component-library-vue/src/components.ts',
73
71
  componentModels: vueComponentModels,
74
- }), patchVueOutputTarget({
75
- proxiesFile: '../web-component-library-vue/src/components.ts',
76
- })),
72
+ }),
77
73
  ],
78
74
  plugins: [sass()],
79
75
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.246",
2
+ "version": "1.0.0-alpha.247",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -55,5 +55,5 @@
55
55
  "watch:stencil": "chokidar --follow-symlinks --initial --command \"npm run build:stencil\" \"../../components/**/*.(js|jsx|ts|tsx)\"",
56
56
  "generate": "stencil generate"
57
57
  },
58
- "gitHead": "105c5d9bb12c42ca72a5511ce3615032711b593b"
58
+ "gitHead": "1ab3863d0965c7e3e6ee92b4992ec4ff6b8966bf"
59
59
  }
@@ -1,5 +0,0 @@
1
- import type { OutputTargetCustom } from '@stencil/core/internal';
2
- export interface OutputTargetPatchVue {
3
- proxiesFile: string;
4
- }
5
- export declare const patchVueOutputTarget: (outputTarget: OutputTargetPatchVue) => OutputTargetCustom;
@@ -1,16 +0,0 @@
1
- import { dirname, join } from 'path';
2
- export const patchVueOutputTarget = (outputTarget) => ({
3
- type: 'custom',
4
- name: 'vue-library-patch',
5
- validate() {
6
- return true;
7
- },
8
- async generator(_config, compilerCtx, buildCtx) {
9
- const timespan = buildCtx.createTimeSpan(`generate Vue.js patch started`, true);
10
- const utilsFilePath = join(dirname(outputTarget.proxiesFile), './vue-component-lib/utils.ts');
11
- const utilsFile = compilerCtx.fs.readFileSync(utilsFilePath).toString('utf8');
12
- const patchedUtilsFile = utilsFile.replace('eventName.toLowerCase()', 'eventName');
13
- await compilerCtx.fs.writeFile(utilsFilePath, patchedUtilsFile);
14
- timespan.finish(`generate Vue.js patch finished`);
15
- },
16
- });
@@ -1,5 +0,0 @@
1
- import type { OutputTargetCustom } from '../../../../../../../../../../stencil-public-runtime';
2
- export interface OutputTargetPatchVue {
3
- proxiesFile: string;
4
- }
5
- export declare const patchVueOutputTarget: (outputTarget: OutputTargetPatchVue) => OutputTargetCustom;