@stencil/angular-output-target 0.8.0 → 0.8.1

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.
package/dist/index.cjs.js CHANGED
@@ -508,19 +508,21 @@ ${createImportStatement(componentLibImports, './angular-component-lib/utils')}\n
508
508
  const GENERATED_DTS = 'components.d.ts';
509
509
  const IMPORT_TYPES = 'Components';
510
510
 
511
- let validatedOutputTarget;
512
- const angularOutputTarget = (outputTarget) => ({
513
- type: 'custom',
514
- name: 'angular-library',
515
- validate(config) {
516
- validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
517
- },
518
- async generator(config, compilerCtx, buildCtx) {
519
- const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
520
- await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
521
- timespan.finish(`generate angular proxies finished`);
522
- },
523
- });
511
+ const angularOutputTarget = (outputTarget) => {
512
+ let validatedOutputTarget;
513
+ return {
514
+ type: 'custom',
515
+ name: 'angular-library',
516
+ validate(config) {
517
+ validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
518
+ },
519
+ async generator(config, compilerCtx, buildCtx) {
520
+ const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
521
+ await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
522
+ timespan.finish(`generate angular proxies finished`);
523
+ },
524
+ };
525
+ };
524
526
  function normalizeOutputTarget(config, outputTarget) {
525
527
  const results = Object.assign(Object.assign({}, outputTarget), { excludeComponents: outputTarget.excludeComponents || [], valueAccessorConfigs: outputTarget.valueAccessorConfigs || [], customElementsDir: outputTarget.customElementsDir || 'components', outputType: outputTarget.outputType || OutputTypes.Component });
526
528
  if (config.rootDir == null) {
package/dist/index.js CHANGED
@@ -500,19 +500,21 @@ ${createImportStatement(componentLibImports, './angular-component-lib/utils')}\n
500
500
  const GENERATED_DTS = 'components.d.ts';
501
501
  const IMPORT_TYPES = 'Components';
502
502
 
503
- let validatedOutputTarget;
504
- const angularOutputTarget = (outputTarget) => ({
505
- type: 'custom',
506
- name: 'angular-library',
507
- validate(config) {
508
- validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
509
- },
510
- async generator(config, compilerCtx, buildCtx) {
511
- const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
512
- await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
513
- timespan.finish(`generate angular proxies finished`);
514
- },
515
- });
503
+ const angularOutputTarget = (outputTarget) => {
504
+ let validatedOutputTarget;
505
+ return {
506
+ type: 'custom',
507
+ name: 'angular-library',
508
+ validate(config) {
509
+ validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
510
+ },
511
+ async generator(config, compilerCtx, buildCtx) {
512
+ const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
513
+ await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
514
+ timespan.finish(`generate angular proxies finished`);
515
+ },
516
+ };
517
+ };
516
518
  function normalizeOutputTarget(config, outputTarget) {
517
519
  const results = Object.assign(Object.assign({}, outputTarget), { excludeComponents: outputTarget.excludeComponents || [], valueAccessorConfigs: outputTarget.valueAccessorConfigs || [], customElementsDir: outputTarget.customElementsDir || 'components', outputType: outputTarget.outputType || OutputTypes.Component });
518
520
  if (config.rootDir == null) {
package/dist/plugin.js CHANGED
@@ -1,19 +1,21 @@
1
1
  import { OutputTypes, normalizePath } from './utils';
2
2
  import { angularDirectiveProxyOutput } from './output-angular';
3
3
  import path from 'path';
4
- let validatedOutputTarget;
5
- export const angularOutputTarget = (outputTarget) => ({
6
- type: 'custom',
7
- name: 'angular-library',
8
- validate(config) {
9
- validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
10
- },
11
- async generator(config, compilerCtx, buildCtx) {
12
- const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
13
- await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
14
- timespan.finish(`generate angular proxies finished`);
15
- },
16
- });
4
+ export const angularOutputTarget = (outputTarget) => {
5
+ let validatedOutputTarget;
6
+ return {
7
+ type: 'custom',
8
+ name: 'angular-library',
9
+ validate(config) {
10
+ validatedOutputTarget = normalizeOutputTarget(config, outputTarget);
11
+ },
12
+ async generator(config, compilerCtx, buildCtx) {
13
+ const timespan = buildCtx.createTimeSpan(`generate angular proxies started`, true);
14
+ await angularDirectiveProxyOutput(compilerCtx, validatedOutputTarget, buildCtx.components, config);
15
+ timespan.finish(`generate angular proxies finished`);
16
+ },
17
+ };
18
+ };
17
19
  export function normalizeOutputTarget(config, outputTarget) {
18
20
  const results = Object.assign(Object.assign({}, outputTarget), { excludeComponents: outputTarget.excludeComponents || [], valueAccessorConfigs: outputTarget.valueAccessorConfigs || [], customElementsDir: outputTarget.customElementsDir || 'components', outputType: outputTarget.outputType || OutputTypes.Component });
19
21
  if (config.rootDir == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/angular-output-target",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Angular output target for @stencil/core components.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",