@omnia/tooling-composers 8.0.257-dev → 8.0.259-dev

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.
@@ -16,7 +16,7 @@ export declare abstract class ComposerBase<TType extends IComposerBase<any>> imp
16
16
  withNoDependency(): TType;
17
17
  withDependency(manifestId: guid): DependencyComposer<TType>;
18
18
  withExternalDependency(omniaServiceId: guid, manifestId: guid): DependencyComposer<TType>;
19
- registerApi: (exp: (extend: IExtend) => Promise<any>, configuration?: RegiterApiConfiguration) => any;
20
- extendApi: (exp: (extend: IExtendApiManifest) => ApiPath, expRules?: (builder: ICombinableRuleComposer<TType>) => void) => any;
19
+ registerApi: (exp: ((extend: IExtend) => Promise<any>), configuration?: RegiterApiConfiguration) => any;
20
+ extendApi: (exp: ((extend: IExtendApiManifest) => ApiPath), expRules?: (builder: ICombinableRuleComposer<TType>) => void) => any;
21
21
  disableAuth: () => any;
22
22
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DevelopmentHostingEnvironment = exports.getHosting = void 0;
3
+ exports.DevelopmentHostingEnvironment = void 0;
4
+ exports.getHosting = getHosting;
4
5
  const ManifestRegistry_1 = require("./ManifestRegistry");
5
6
  var devHosting = null;
6
7
  //export class DevelopmentHosting {
@@ -31,7 +32,6 @@ function getHosting() {
31
32
  port: 44330
32
33
  }, devHosting.data);
33
34
  }
34
- exports.getHosting = getHosting;
35
35
  class LocalOverrideable {
36
36
  constructor(data, isOverridden, writtenByManifest) {
37
37
  this.data = data;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalizationNamespaceComposer = exports.Localization = exports.getLocalizationPath = exports.getLocalizations = void 0;
3
+ exports.LocalizationNamespaceComposer = exports.Localization = void 0;
4
+ exports.getLocalizations = getLocalizations;
5
+ exports.getLocalizationPath = getLocalizationPath;
4
6
  const tslib_1 = require("tslib");
5
7
  const Utils_1 = require("./Utils");
6
8
  const ManifestRegistry_1 = require("./ManifestRegistry");
@@ -10,14 +12,12 @@ let _localizations = {};
10
12
  function getLocalizations() {
11
13
  return _localizations;
12
14
  }
13
- exports.getLocalizations = getLocalizations;
14
15
  function getLocalizationPath(exp, ns) {
15
16
  const propertyPaths = Utils_1.Utils.getPropertyPathInExpression(exp);
16
17
  let result = ns && ns.length > 0 ? ns + "." + propertyPaths[0] : propertyPaths[0];
17
18
  result = `$Localize:${result};`;
18
19
  return result;
19
20
  }
20
- exports.getLocalizationPath = getLocalizationPath;
21
21
  class Localization {
22
22
  static { this.localizationRegistrations = []; }
23
23
  constructor(localizationOptions, manifestId) {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ServerOptions } from 'https';
3
2
  import { UserConfig } from 'vite';
4
3
  export interface DevelopmentHostingInfo {
@@ -1,6 +1,18 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuildStage = exports.OmniaOutput = exports.buildLocalizationFiles = exports.bundleManifestsByWebpackEntries = exports.build = exports.buildManifestEntries = exports.processManifests = exports.getManifestsPaths = exports.scanManifests = exports.updateManifestData = exports.getManifestJsonByTarget = exports.getManifestsJson = exports.getManifestById = exports.getServiceId = void 0;
3
+ exports.BuildStage = exports.OmniaOutput = void 0;
4
+ exports.getServiceId = getServiceId;
5
+ exports.getManifestById = getManifestById;
6
+ exports.getManifestsJson = getManifestsJson;
7
+ exports.getManifestJsonByTarget = getManifestJsonByTarget;
8
+ exports.updateManifestData = updateManifestData;
9
+ exports.scanManifests = scanManifests;
10
+ exports.getManifestsPaths = getManifestsPaths;
11
+ exports.processManifests = processManifests;
12
+ exports.buildManifestEntries = buildManifestEntries;
13
+ exports.build = build;
14
+ exports.bundleManifestsByWebpackEntries = bundleManifestsByWebpackEntries;
15
+ exports.buildLocalizationFiles = buildLocalizationFiles;
4
16
  const tslib_1 = require("tslib");
5
17
  const globby_1 = require("globby");
6
18
  const fs_1 = tslib_1.__importDefault(require("fs"));
@@ -88,7 +100,6 @@ function buildManifestEntries(scanFolders, cleanOutputBeforeBuild) {
88
100
  }
89
101
  });
90
102
  }
91
- exports.buildManifestEntries = buildManifestEntries;
92
103
  function beforeCreateServer() {
93
104
  return new Promise((resolve, reject) => {
94
105
  isServing = true;
@@ -196,7 +207,6 @@ function build(scanFolders, cleanOutputBeforeBuild) {
196
207
  }
197
208
  });
198
209
  }
199
- exports.build = build;
200
210
  function bundleManifestsByWebpackEntries(entries) {
201
211
  return new Promise(function (resolve, reject) {
202
212
  try {
@@ -216,7 +226,6 @@ function bundleManifestsByWebpackEntries(entries) {
216
226
  }
217
227
  });
218
228
  }
219
- exports.bundleManifestsByWebpackEntries = bundleManifestsByWebpackEntries;
220
229
  function scanManifestsPromise(scanFolders) {
221
230
  return new Promise(function (resolve, reject) {
222
231
  try {
@@ -268,7 +277,6 @@ function scanManifests(scanFolders) {
268
277
  processManifests(manifests);
269
278
  tooling_1.utils.logTime('Scan manifest finished', startTime);
270
279
  }
271
- exports.scanManifests = scanManifests;
272
280
  function afterScanManifest() {
273
281
  return new Promise(function (resolve, reject) {
274
282
  if (composers.ServiceManifestRegistry.getServiceInfo().serviceType === index_1.ServiceTypes.WebApp) {
@@ -421,7 +429,6 @@ function getManifestsPaths(urlsToSearch, options) {
421
429
  manifestsPaths = (0, globby_1.globbySync)(searchPatterns, options);
422
430
  return manifestsPaths;
423
431
  }
424
- exports.getManifestsPaths = getManifestsPaths;
425
432
  function processManifests(manifestPaths) {
426
433
  for (let p of manifestPaths) {
427
434
  composers.ManifestRegistry.setCurrentManifestPath(p);
@@ -449,7 +456,6 @@ function processManifests(manifestPaths) {
449
456
  }
450
457
  });
451
458
  }
452
- exports.processManifests = processManifests;
453
459
  function buildLocalizationFiles() {
454
460
  var localizeObject = composers.getLocalizations();
455
461
  Object.keys(localizeObject).forEach((target) => {
@@ -461,7 +467,6 @@ function buildLocalizationFiles() {
461
467
  });
462
468
  });
463
469
  }
464
- exports.buildLocalizationFiles = buildLocalizationFiles;
465
470
  function getLocalizationFileName(target, language) {
466
471
  switch (target.toString()) {
467
472
  case fx_models_1.LocalizationTargetTypes.public.toString():
@@ -484,7 +489,6 @@ function getServiceId() {
484
489
  serviceId = serviceInfo.id.toLowerCase();
485
490
  return serviceId;
486
491
  }
487
- exports.getServiceId = getServiceId;
488
492
  function ensureFolder(folderPath) {
489
493
  if (!fs_1.default.existsSync(folderPath)) {
490
494
  fsExtra.ensureDirSync(folderPath);
@@ -504,7 +508,6 @@ function getManifestJsonByTarget(target = fx_models_1.ClientManifestTargetTypes.
504
508
  }
505
509
  return _manifestJsonObject[target];
506
510
  }
507
- exports.getManifestJsonByTarget = getManifestJsonByTarget;
508
511
  function getManifestsJson() {
509
512
  if (!_allManifestsJsonObject) {
510
513
  _allManifestsJsonObject = {
@@ -545,14 +548,12 @@ function getManifestsJson() {
545
548
  }
546
549
  return _allManifestsJsonObject;
547
550
  }
548
- exports.getManifestsJson = getManifestsJson;
549
551
  function updateManifestData(manifest) {
550
552
  let manifestFilePath = tooling_1.utils.root("").replace(/\\/g, "/") + `/${OmniaOutput.ManifestOutputPath}/${ServiceManifestRegistry_1.ServiceManifestRegistry.getServiceInfo().id.toLowerCase()}_manifests.json`;
551
553
  fsExtra.writeJsonSync(manifestFilePath, manifest);
552
554
  _manifestJsonObject = null;
553
555
  _manifestDict = null;
554
556
  }
555
- exports.updateManifestData = updateManifestData;
556
557
  function getManifestById(id) {
557
558
  if (!_manifestDict) {
558
559
  _manifestDict = {};
@@ -564,4 +565,3 @@ function getManifestById(id) {
564
565
  }
565
566
  return _manifestDict[id.toString()];
566
567
  }
567
- exports.getManifestById = getManifestById;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-composers",
3
3
  "license": "MIT",
4
- "version": "8.0.257-dev",
4
+ "version": "8.0.259-dev",
5
5
  "description": "Provide tooling to work with manifest things.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.257-dev",
23
- "@omnia/tooling": "8.0.257-dev",
22
+ "@omnia/fx-models": "8.0.259-dev",
23
+ "@omnia/tooling": "8.0.259-dev",
24
24
  "deep-extend": "0.6.0",
25
25
  "fs-extra": "11.1.0",
26
26
  "del": "6.0.0",