@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 +15 -13
- package/dist/index.js +15 -13
- package/dist/plugin.js +15 -13
- package/package.json +1 -1
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
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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) {
|