tnp 16.5.11 → 16.5.12
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/assets/shared/shared_folder_info.txt +1 -1
- package/cli.js +106 -63
- package/client/package.json +34 -34
- package/lib/project/abstract/project/lib-project.backend.js +28 -15
- package/lib/project/abstract/project/lib-project.backend.js.map +1 -1
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js +37 -13
- package/lib/project/features/copy-manager/copy-manager-organization-angular-files.backend.js.map +1 -1
- package/lib/project/features/environment-config/environment-config.d.ts +4 -2
- package/lib/project/features/environment-config/environment-config.js +15 -5
- package/lib/project/features/environment-config/environment-config.js.map +1 -1
- package/lib/project/features/files-recreation/files-templates/index.js +3 -3
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js +8 -4
- package/lib/project/features/inside-structures/structs/inside-struct-angular13-app.js.map +1 -1
- package/lib/project/project-specyfic/project-isomorphic-lib.js +1 -1
- package/lib/project/project-specyfic/project-isomorphic-lib.js.map +1 -1
- package/package.json +18 -18
- package/package.json_tnp.json5 +16 -16
- package/tmp-environment.json +38 -38
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
2
2
|
|
|
3
|
-
Assets from this folder are being shipped with this npm package (tnp@16.5.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (tnp@16.5.12)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
package/cli.js
CHANGED
|
@@ -275265,30 +275265,24 @@ exports["default"] = lib_1.default;
|
|
|
275265
275265
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
275266
275266
|
exports.StripBlockLoader = void 0;
|
|
275267
275267
|
var tslib_1 = __nccwpck_require__(93011);
|
|
275268
|
-
|
|
275269
|
-
var region_remover_backend_1 = __nccwpck_require__(64541);
|
|
275270
|
-
//#endregion
|
|
275268
|
+
var region_remover_1 = __nccwpck_require__(5230);
|
|
275271
275269
|
function StripBrowserCode(content) {
|
|
275272
|
-
//#region @backend
|
|
275273
275270
|
// @ts-ignore
|
|
275274
|
-
content =
|
|
275271
|
+
content = region_remover_1.RegionRemover.from(this.resourcePath, content, ['@browser']).output + '\n';
|
|
275275
275272
|
if (this.cacheable) {
|
|
275276
275273
|
this.cacheable(true);
|
|
275277
275274
|
}
|
|
275278
275275
|
return content;
|
|
275279
|
-
//#endregion
|
|
275280
275276
|
}
|
|
275281
275277
|
exports.StripBlockLoader = StripBrowserCode;
|
|
275282
|
-
|
|
275283
|
-
tslib_1.__exportStar(__nccwpck_require__(
|
|
275284
|
-
tslib_1.__exportStar(__nccwpck_require__(62458), exports);
|
|
275285
|
-
//#endregion
|
|
275278
|
+
tslib_1.__exportStar(__nccwpck_require__(5230), exports);
|
|
275279
|
+
tslib_1.__exportStar(__nccwpck_require__(91892), exports);
|
|
275286
275280
|
exports["default"] = StripBrowserCode;
|
|
275287
275281
|
//# sourceMappingURL=index.js.map
|
|
275288
275282
|
|
|
275289
275283
|
/***/ }),
|
|
275290
275284
|
|
|
275291
|
-
/***/
|
|
275285
|
+
/***/ 5230:
|
|
275292
275286
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
275293
275287
|
|
|
275294
275288
|
"use strict";
|
|
@@ -275296,7 +275290,7 @@ exports["default"] = StripBrowserCode;
|
|
|
275296
275290
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
275297
275291
|
exports.RegionRemover = void 0;
|
|
275298
275292
|
var tnp_core_1 = __nccwpck_require__(76776);
|
|
275299
|
-
var
|
|
275293
|
+
var region_1 = __nccwpck_require__(91892);
|
|
275300
275294
|
var tnp_config_1 = __nccwpck_require__(85997);
|
|
275301
275295
|
var RegionRemover = /** @class */ (function () {
|
|
275302
275296
|
function RegionRemover(realtiveOrAbsFilePAth, fileExtension, content, replacementss, // Models.dev.Replacement[],
|
|
@@ -275319,7 +275313,7 @@ var RegionRemover = /** @class */ (function () {
|
|
|
275319
275313
|
this.END_REGION.push(tnp_config_1.REGEX_REGION.CSS.END);
|
|
275320
275314
|
}
|
|
275321
275315
|
var lines = this.content.split('\n');
|
|
275322
|
-
this.root = new
|
|
275316
|
+
this.root = new region_1.Region(this, replacementss, void 0, 0, (lines.length - 1), tnp_core_1._.first(lines), tnp_core_1._.last(lines), lines);
|
|
275323
275317
|
this.tree(this.root);
|
|
275324
275318
|
}
|
|
275325
275319
|
RegionRemover.from = function (realtiveOrAbsFilePAth, content, replacementss, // Models.dev.Replacement[],
|
|
@@ -275417,11 +275411,11 @@ var RegionRemover = /** @class */ (function () {
|
|
|
275417
275411
|
return RegionRemover;
|
|
275418
275412
|
}());
|
|
275419
275413
|
exports.RegionRemover = RegionRemover;
|
|
275420
|
-
//# sourceMappingURL=region-remover.
|
|
275414
|
+
//# sourceMappingURL=region-remover.js.map
|
|
275421
275415
|
|
|
275422
275416
|
/***/ }),
|
|
275423
275417
|
|
|
275424
|
-
/***/
|
|
275418
|
+
/***/ 91892:
|
|
275425
275419
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
275426
275420
|
|
|
275427
275421
|
"use strict";
|
|
@@ -275616,7 +275610,7 @@ var Region = /** @class */ (function () {
|
|
|
275616
275610
|
return Region;
|
|
275617
275611
|
}());
|
|
275618
275612
|
exports.Region = Region;
|
|
275619
|
-
//# sourceMappingURL=region.
|
|
275613
|
+
//# sourceMappingURL=region.js.map
|
|
275620
275614
|
|
|
275621
275615
|
/***/ }),
|
|
275622
275616
|
|
|
@@ -388383,7 +388377,7 @@ tslib_1.__exportStar(__nccwpck_require__(33841), exports);
|
|
|
388383
388377
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
388384
388378
|
var tslib_1 = __nccwpck_require__(93011);
|
|
388385
388379
|
tslib_1.__exportStar(__nccwpck_require__(5563), exports);
|
|
388386
|
-
//# sourceMappingURL=
|
|
388380
|
+
//# sourceMappingURL=index.js.map
|
|
388387
388381
|
|
|
388388
388382
|
/***/ }),
|
|
388389
388383
|
|
|
@@ -389073,7 +389067,7 @@ exports.config = {
|
|
|
389073
389067
|
// // }
|
|
389074
389068
|
// ] as { name: string; website: string }[]
|
|
389075
389069
|
// };
|
|
389076
|
-
//# sourceMappingURL=
|
|
389070
|
+
//# sourceMappingURL=config.js.map
|
|
389077
389071
|
|
|
389078
389072
|
/***/ }),
|
|
389079
389073
|
|
|
@@ -389184,7 +389178,7 @@ exports.PREFIXES = {
|
|
|
389184
389178
|
ORIGINAL: '____ORIGINAL____',
|
|
389185
389179
|
RESTORE_NPM: '____',
|
|
389186
389180
|
};
|
|
389187
|
-
//# sourceMappingURL=
|
|
389181
|
+
//# sourceMappingURL=constants.js.map
|
|
389188
389182
|
|
|
389189
389183
|
/***/ }),
|
|
389190
389184
|
|
|
@@ -389195,11 +389189,9 @@ exports.PREFIXES = {
|
|
|
389195
389189
|
|
|
389196
389190
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
389197
389191
|
var tslib_1 = __nccwpck_require__(93011);
|
|
389198
|
-
//#region @websql
|
|
389199
389192
|
tslib_1.__exportStar(__nccwpck_require__(78773), exports);
|
|
389200
|
-
//#endregion
|
|
389201
389193
|
tslib_1.__exportStar(__nccwpck_require__(52685), exports);
|
|
389202
|
-
//# sourceMappingURL=
|
|
389194
|
+
//# sourceMappingURL=index.js.map
|
|
389203
389195
|
|
|
389204
389196
|
/***/ }),
|
|
389205
389197
|
|
|
@@ -392446,9 +392438,9 @@ var Utils;
|
|
|
392446
392438
|
* @returns
|
|
392447
392439
|
*/
|
|
392448
392440
|
function numValue(pixelsCss) {
|
|
392441
|
+
var _a;
|
|
392449
392442
|
// tslint:disable-next-line:radix
|
|
392450
|
-
return parseInt(pixelsCss
|
|
392451
|
-
.replace('px', '')
|
|
392443
|
+
return parseInt((_a = pixelsCss === null || pixelsCss === void 0 ? void 0 : pixelsCss.toString()) === null || _a === void 0 ? void 0 : _a.replace('px', '')
|
|
392452
392444
|
// .replace('pt', '') TOOD handle other types
|
|
392453
392445
|
// .replace('1rem', '') // to
|
|
392454
392446
|
);
|
|
@@ -414353,8 +414345,8 @@ var LibProject = /** @class */ (function () {
|
|
|
414353
414345
|
}
|
|
414354
414346
|
baseFolder = tnp_core_2.path.join(this.location, 'tmp-bundle-release');
|
|
414355
414347
|
absolutePathReleaseProject = tnp_core_2.path.join(baseFolder, 'bundle', 'project', this.name);
|
|
414356
|
-
if (!(this.isStandaloneProject || this.isSmartContainer)) return [3 /*break*/,
|
|
414357
|
-
if (!releaseOptions.useTempFolder) return [3 /*break*/,
|
|
414348
|
+
if (!(this.isStandaloneProject || this.isSmartContainer)) return [3 /*break*/, 9];
|
|
414349
|
+
if (!releaseOptions.useTempFolder) return [3 /*break*/, 9];
|
|
414358
414350
|
tnp_helpers_1.Helpers.removeFolderIfExists(baseFolder);
|
|
414359
414351
|
browserFolder = tnp_core_2.path.join(this.location, tnp_config_1.config.folder.browser);
|
|
414360
414352
|
if (!tnp_helpers_1.Helpers.exists(browserFolder)) {
|
|
@@ -414374,16 +414366,29 @@ var LibProject = /** @class */ (function () {
|
|
|
414374
414366
|
regenerateProjectChilds: this.isSmartContainer,
|
|
414375
414367
|
});
|
|
414376
414368
|
this.packageJson.linkTo(absolutePathReleaseProject);
|
|
414377
|
-
if (this.isStandaloneProject)
|
|
414378
|
-
|
|
414379
|
-
|
|
414380
|
-
|
|
414381
|
-
|
|
414382
|
-
|
|
414383
|
-
|
|
414384
|
-
|
|
414385
|
-
|
|
414386
|
-
|
|
414369
|
+
if (!this.isStandaloneProject) return [3 /*break*/, 2];
|
|
414370
|
+
return [4 /*yield*/, this.env.init()];
|
|
414371
|
+
case 1:
|
|
414372
|
+
_a.sent();
|
|
414373
|
+
this.env.coptyTo(absolutePathReleaseProject);
|
|
414374
|
+
_a.label = 2;
|
|
414375
|
+
case 2:
|
|
414376
|
+
if (!this.isSmartContainer) return [3 /*break*/, 6];
|
|
414377
|
+
children = this.children;
|
|
414378
|
+
index = 0;
|
|
414379
|
+
_a.label = 3;
|
|
414380
|
+
case 3:
|
|
414381
|
+
if (!(index < children.length)) return [3 /*break*/, 6];
|
|
414382
|
+
child = children[index];
|
|
414383
|
+
return [4 /*yield*/, child.env.init()];
|
|
414384
|
+
case 4:
|
|
414385
|
+
_a.sent();
|
|
414386
|
+
child.env.coptyTo((0, tnp_core_1.crossPlatformPath)([absolutePathReleaseProject, child.name]));
|
|
414387
|
+
_a.label = 5;
|
|
414388
|
+
case 5:
|
|
414389
|
+
index++;
|
|
414390
|
+
return [3 /*break*/, 3];
|
|
414391
|
+
case 6:
|
|
414387
414392
|
generatedProject = project_1.Project.From(absolutePathReleaseProject);
|
|
414388
414393
|
this.allResources.forEach(function (relPathResource) {
|
|
414389
414394
|
var source = tnp_core_2.path.join(_this.location, relPathResource);
|
|
@@ -414403,13 +414408,13 @@ var LibProject = /** @class */ (function () {
|
|
|
414403
414408
|
vscodeFolder = tnp_core_2.path.join(generatedProject.location, tnp_config_1.config.folder._vscode);
|
|
414404
414409
|
tnp_helpers_1.Helpers.removeFolderIfExists(vscodeFolder);
|
|
414405
414410
|
return [4 /*yield*/, generatedProject.insideStructure.recrate('bundle')];
|
|
414406
|
-
case
|
|
414411
|
+
case 7:
|
|
414407
414412
|
_a.sent();
|
|
414408
414413
|
return [4 /*yield*/, generatedProject.release(releaseOptions)];
|
|
414409
|
-
case
|
|
414414
|
+
case 8:
|
|
414410
414415
|
_a.sent();
|
|
414411
414416
|
return [2 /*return*/, true];
|
|
414412
|
-
case
|
|
414417
|
+
case 9: return [2 /*return*/];
|
|
414413
414418
|
}
|
|
414414
414419
|
});
|
|
414415
414420
|
});
|
|
@@ -420899,27 +420904,51 @@ var CopyMangerOrganizationAngularFiles = /** @class */ (function () {
|
|
|
420899
420904
|
*
|
|
420900
420905
|
*/
|
|
420901
420906
|
CopyMangerOrganizationAngularFiles.prototype.handleCopyOfSingleFile = function (specyficFileRelativePath, destination, isTempLocalProj, wasRecrusive) {
|
|
420902
|
-
var currentBrowserFolder = tnp_core_1._.first(specyficFileRelativePath.split('/'));
|
|
420903
420907
|
var angularCompilationFolderOrLibs = tnp_core_1._.first(specyficFileRelativePath.split('/').slice(1));
|
|
420904
420908
|
if (copy_manager_helpers_backend_1.CopyMangerHelpers.angularBrowserComiplationFoldersArr.includes(angularCompilationFolderOrLibs)) {
|
|
420909
|
+
var currentBrowserFolder = tnp_core_1._.first(specyficFileRelativePath.split('/'));
|
|
420905
420910
|
this.actionForFolder(destination, isTempLocalProj, currentBrowserFolder, angularCompilationFolderOrLibs, {
|
|
420906
420911
|
specyficFileRelativePathForBrowserModule: specyficFileRelativePath.split('/').slice(2).join('/')
|
|
420907
420912
|
});
|
|
420908
420913
|
}
|
|
420909
420914
|
else if (angularCompilationFolderOrLibs === tnp_config_1.config.folder.libs) {
|
|
420910
|
-
var
|
|
420911
|
-
|
|
420912
|
-
|
|
420913
|
-
|
|
420914
|
-
|
|
420915
|
-
|
|
420916
|
-
|
|
420917
|
-
|
|
420918
|
-
|
|
420919
|
-
content =
|
|
420920
|
-
|
|
420921
|
-
|
|
420922
|
-
|
|
420915
|
+
var _loop_1 = function (index) {
|
|
420916
|
+
var browserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
|
|
420917
|
+
var childName = tnp_core_1._.first(specyficFileRelativePath.split('/').slice(2));
|
|
420918
|
+
var child = this_1.children.find(function (c) { return c.name === childName; });
|
|
420919
|
+
var rootPackageNameForChildBrowser = this_1.rootPackageNameForChildBrowser(child, browserFolder);
|
|
420920
|
+
var relativePath = specyficFileRelativePath.split('/').splice(3).join('/');
|
|
420921
|
+
var absSourcePath = isTempLocalProj
|
|
420922
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this_1.monitoredOutDir, specyficFileRelativePath))
|
|
420923
|
+
: (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this_1.localTempProj.node_modules.pathFor(rootPackageNameForChildBrowser), relativePath));
|
|
420924
|
+
var content = tnp_helpers_1.Helpers.readFile(absSourcePath);
|
|
420925
|
+
if (isTempLocalProj && relativePath.endsWith('.d.ts')) {
|
|
420926
|
+
content = this_1.dtsFixer.forContent(content, browserFolder);
|
|
420927
|
+
}
|
|
420928
|
+
var detinationFilePath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.node_modules.pathFor(rootPackageNameForChildBrowser), relativePath));
|
|
420929
|
+
tnp_helpers_1.Helpers.writeFile(detinationFilePath, content);
|
|
420930
|
+
};
|
|
420931
|
+
var this_1 = this;
|
|
420932
|
+
for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
|
|
420933
|
+
_loop_1(index);
|
|
420934
|
+
}
|
|
420935
|
+
}
|
|
420936
|
+
else if (angularCompilationFolderOrLibs === tnp_config_1.config.folder.lib) {
|
|
420937
|
+
var child = this.targetProj; // @ts-ignore
|
|
420938
|
+
for (var index = 0; index < copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders.length; index++) {
|
|
420939
|
+
var browserFolder = copy_manager_helpers_backend_1.CopyMangerHelpers.browserwebsqlFolders[index];
|
|
420940
|
+
var rootPackageNameForChildBrowser = this.rootPackageNameForChildBrowser(child, browserFolder);
|
|
420941
|
+
var relativePath = specyficFileRelativePath.split('/').splice(2).join('/');
|
|
420942
|
+
var absSourcePath = isTempLocalProj
|
|
420943
|
+
? (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.monitoredOutDir, specyficFileRelativePath))
|
|
420944
|
+
: (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.localTempProj.node_modules.pathFor(rootPackageNameForChildBrowser), relativePath));
|
|
420945
|
+
var content = tnp_helpers_1.Helpers.readFile(absSourcePath);
|
|
420946
|
+
if (isTempLocalProj && relativePath.endsWith('.d.ts')) {
|
|
420947
|
+
content = this.dtsFixer.forContent(content, browserFolder);
|
|
420948
|
+
}
|
|
420949
|
+
var detinationFilePath = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(destination.node_modules.pathFor(rootPackageNameForChildBrowser), relativePath));
|
|
420950
|
+
tnp_helpers_1.Helpers.writeFile(detinationFilePath, content);
|
|
420951
|
+
}
|
|
420923
420952
|
}
|
|
420924
420953
|
else {
|
|
420925
420954
|
// console.log('should be something here?')
|
|
@@ -422930,9 +422959,17 @@ var EnvironmentConfig = /** @class */ (function (_super) {
|
|
|
422930
422959
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
422931
422960
|
}
|
|
422932
422961
|
EnvironmentConfig.prototype.coptyTo = function (destination) {
|
|
422933
|
-
var
|
|
422934
|
-
|
|
422935
|
-
|
|
422962
|
+
var _this = this;
|
|
422963
|
+
(function () {
|
|
422964
|
+
var source = tnp_core_2.path.join(_this.project.location, tnp_config_1.config.file.environment_js);
|
|
422965
|
+
var dest = tnp_core_2.path.join(destination, tnp_config_1.config.file.environment_js);
|
|
422966
|
+
tnp_helpers_1.Helpers.copyFile(source, dest);
|
|
422967
|
+
})();
|
|
422968
|
+
(function () {
|
|
422969
|
+
var source = tnp_core_2.path.join(_this.project.location, tnp_config_1.config.file.tnpEnvironment_json);
|
|
422970
|
+
var dest = tnp_core_2.path.join(destination, tnp_config_1.config.file.tnpEnvironment_json);
|
|
422971
|
+
tnp_helpers_1.Helpers.copyFile(source, dest);
|
|
422972
|
+
})();
|
|
422936
422973
|
};
|
|
422937
422974
|
//#region @backend
|
|
422938
422975
|
EnvironmentConfig.prototype.updateData = function (configEn) {
|
|
@@ -422997,8 +423034,10 @@ var EnvironmentConfig = /** @class */ (function (_super) {
|
|
|
422997
423034
|
Object.defineProperty(EnvironmentConfig.prototype, "config", {
|
|
422998
423035
|
//#endregion
|
|
422999
423036
|
/**
|
|
423000
|
-
*
|
|
423001
|
-
|
|
423037
|
+
* TODO @LAST
|
|
423038
|
+
* IMPORTANT
|
|
423039
|
+
* Can be accesed only after project.env.init()
|
|
423040
|
+
*/
|
|
423002
423041
|
get: function () {
|
|
423003
423042
|
//#region @backend
|
|
423004
423043
|
var configPath = (0, tnp_core_1.crossPlatformPath)([this.project.location, tnp_config_1.config.file.tnpEnvironment_json]);
|
|
@@ -425479,20 +425518,20 @@ var InsideStructAngular13App = exports.InsideStructAngular13App = /** @class */
|
|
|
425479
425518
|
//#endregion
|
|
425480
425519
|
//#region LOADERS & BACKGROUNDS REPLACEMENT / replace index.html body background color & loader
|
|
425481
425520
|
(function () {
|
|
425482
|
-
var _a, _b, _c, _d, _e, _f;
|
|
425521
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
425483
425522
|
var appModuleFilePath = tnp_core_1.path.join(project.location, replacement(project.isStandaloneProject ? tmpProjectsStandalone : tmpProjects), "/src/index.html");
|
|
425484
425523
|
var indexHtmlFile = tnp_helpers_1.Helpers.readFile(appModuleFilePath);
|
|
425485
425524
|
var loaderData = (_c = (_b = (_a = projectTargetOrStandalone.env.config) === null || _a === void 0 ? void 0 : _a.loading) === null || _b === void 0 ? void 0 : _b.preAngularBootstrap) === null || _c === void 0 ? void 0 : _c.loader;
|
|
425486
425525
|
var loaderIsImage = tnp_core_1._.isString(loaderData);
|
|
425487
425526
|
if (loaderIsImage) {
|
|
425488
|
-
var pathToAsset = basename + (0, inside_struct_helpers_1.resolvePathToAsset)(projectTargetOrStandalone, loaderData, outFolder, websql);
|
|
425527
|
+
var pathToAsset = ((_d = projectTargetOrStandalone.env.config) === null || _d === void 0 ? void 0 : _d.useDomain) ? '' : basename + (0, inside_struct_helpers_1.resolvePathToAsset)(projectTargetOrStandalone, loaderData, outFolder, websql);
|
|
425489
425528
|
indexHtmlFile = indexHtmlFile.replace('<!-- <<<TO_REPLACE_LOADER>>> -->', (0, image_loader_1.imageLoader)(pathToAsset, true));
|
|
425490
425529
|
}
|
|
425491
425530
|
else {
|
|
425492
425531
|
var loaderToReplace = (0, loaders_1.getLoader)((loaderData === null || loaderData === void 0 ? void 0 : loaderData.name), loaderData === null || loaderData === void 0 ? void 0 : loaderData.color, true);
|
|
425493
425532
|
indexHtmlFile = indexHtmlFile.replace('<!-- <<<TO_REPLACE_LOADER>>> -->', loaderToReplace);
|
|
425494
425533
|
}
|
|
425495
|
-
var bgColor = (
|
|
425534
|
+
var bgColor = (_g = (_f = (_e = projectTargetOrStandalone.env.config) === null || _e === void 0 ? void 0 : _e.loading) === null || _f === void 0 ? void 0 : _f.preAngularBootstrap) === null || _g === void 0 ? void 0 : _g.background;
|
|
425496
425535
|
var bgColorStyle = bgColor ? "style=\"background-color: ".concat(bgColor, ";\"") : '';
|
|
425497
425536
|
indexHtmlFile = indexHtmlFile.replace('FIREDEV_TO_REPLACE_COLOR', bgColorStyle);
|
|
425498
425537
|
tnp_helpers_1.Helpers.writeFile(appModuleFilePath, indexHtmlFile);
|
|
@@ -425506,7 +425545,11 @@ var InsideStructAngular13App = exports.InsideStructAngular13App = /** @class */
|
|
|
425506
425545
|
var indexHtmlFilePath = tnp_core_1.path.join(project.location, replacement(project.isStandaloneProject ? tmpProjectsStandalone : tmpProjects), "/src/index.html");
|
|
425507
425546
|
var indexHtmlFile = tnp_helpers_1.Helpers.readFile(indexHtmlFilePath);
|
|
425508
425547
|
var title = (_a = _this.project.env.config) === null || _a === void 0 ? void 0 : _a.title;
|
|
425509
|
-
|
|
425548
|
+
var titleToReplace = title ? title : tnp_core_1._.startCase(_this.project.name);
|
|
425549
|
+
// console.log({
|
|
425550
|
+
// titleToReplace
|
|
425551
|
+
// })
|
|
425552
|
+
indexHtmlFile = indexHtmlFile.replace('<title>App</title>', "<title>".concat(titleToReplace, "</title>"));
|
|
425510
425553
|
tnp_helpers_1.Helpers.writeFile(indexHtmlFilePath, indexHtmlFile);
|
|
425511
425554
|
})();
|
|
425512
425555
|
//#endregion
|
|
@@ -432263,7 +432306,7 @@ var ProjectIsomorphicLib = exports.ProjectIsomorphicLib = /** @class */ (functio
|
|
|
432263
432306
|
if (this.frameworkVersionAtLeast('v3')) {
|
|
432264
432307
|
portToServe = tnp_core_4._.isNumber(port) ? "--port=".concat(port) : '';
|
|
432265
432308
|
aot = flags.includes('aot');
|
|
432266
|
-
ngBuildCmd = "npm-run ng build "
|
|
432309
|
+
ngBuildCmd = "npm-run ng build app"
|
|
432267
432310
|
+ "".concat(aot ? '--aot=true' : '', " ")
|
|
432268
432311
|
+ "".concat(prod ? '--configuration production' : '', " ")
|
|
432269
432312
|
+ "".concat(watch ? '--watch' : '')
|
package/client/package.json
CHANGED
|
@@ -254,24 +254,24 @@
|
|
|
254
254
|
"vscode"
|
|
255
255
|
],
|
|
256
256
|
"common": {
|
|
257
|
-
"tnp-config": "16.5.
|
|
258
|
-
"tnp-models": "16.5.
|
|
259
|
-
"tnp-helpers": "16.5.
|
|
260
|
-
"tnp-db": "16.5.
|
|
257
|
+
"tnp-config": "16.5.4",
|
|
258
|
+
"tnp-models": "16.5.4",
|
|
259
|
+
"tnp-helpers": "16.5.4",
|
|
260
|
+
"tnp-db": "16.5.4",
|
|
261
261
|
"firedev-type-sql": "16.5.3",
|
|
262
262
|
"firedev-typeorm": "16.5.4",
|
|
263
|
-
"firedev-crud": "16.5.
|
|
264
|
-
"firedev-ports": "16.5.
|
|
265
|
-
"firedev-crud-deamon": "16.5.
|
|
263
|
+
"firedev-crud": "16.5.4",
|
|
264
|
+
"firedev-ports": "16.5.4",
|
|
265
|
+
"firedev-crud-deamon": "16.5.4",
|
|
266
266
|
"firedev-ui": "16.5.3",
|
|
267
|
-
"tnp-core": "16.5.
|
|
267
|
+
"tnp-core": "16.5.9",
|
|
268
268
|
"tnp-cli": "16.5.3",
|
|
269
269
|
"tnp-tools": "0.0.58",
|
|
270
|
-
"any-project-cli": "16.5.
|
|
270
|
+
"any-project-cli": "16.5.4",
|
|
271
271
|
"@types/node": "10.12.30",
|
|
272
272
|
"morphi": "16.5.3",
|
|
273
273
|
"gulp": "^3.9.1",
|
|
274
|
-
"ng2-logger": "16.5.
|
|
274
|
+
"ng2-logger": "16.5.4",
|
|
275
275
|
"ng2-rest": "16.5.3",
|
|
276
276
|
"record-replay-req-res-scenario": "16.5.3",
|
|
277
277
|
"randomcolor": "^0.5.3",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"content-type": "^1.0.4",
|
|
281
281
|
"axios": "^0.17.1",
|
|
282
282
|
"ng-talkback": "16.5.3",
|
|
283
|
-
"magic-renamer": "16.5.
|
|
283
|
+
"magic-renamer": "16.5.4",
|
|
284
284
|
"vpn-split": "16.5.3",
|
|
285
285
|
"node-cli-tester": "16.5.3",
|
|
286
286
|
"strings": {
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"json": {
|
|
315
315
|
"underscore": "^1.9.1",
|
|
316
316
|
"json10": "16.5.3",
|
|
317
|
-
"json10-writer": "16.5.
|
|
317
|
+
"json10-writer": "16.5.4",
|
|
318
318
|
"lodash-walk-object": "16.5.3",
|
|
319
319
|
"json-stringify-safe": "^5.0.1",
|
|
320
320
|
"@types/json-stringify-safe": "^5.0.0",
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
"jscodeshift": "^0.6.3",
|
|
342
342
|
"@types/fs-extra": "^7.0.0",
|
|
343
343
|
"@types/rimraf": "^2.0.2",
|
|
344
|
-
"incremental-compiler": "16.5.
|
|
344
|
+
"incremental-compiler": "16.5.14",
|
|
345
345
|
"open": "7.2.1"
|
|
346
346
|
},
|
|
347
347
|
"sockets": {
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"node-cli-test": "0.0.2",
|
|
361
361
|
"reflect-metadata": "^0.1.10",
|
|
362
362
|
"ts-loader": "^2.3.1",
|
|
363
|
-
"typescript-class-helpers": "16.5.
|
|
363
|
+
"typescript-class-helpers": "16.5.4",
|
|
364
364
|
"tslib": "2.2.0",
|
|
365
365
|
"ts-node": "^7.0.1",
|
|
366
366
|
"typescript": "4.1.5",
|
|
@@ -453,13 +453,13 @@
|
|
|
453
453
|
"url-loader": "^0.6.2",
|
|
454
454
|
"@ngtools/webpack": "^1.9.3",
|
|
455
455
|
"sass-variable-loader": "^0.1.2",
|
|
456
|
-
"isomorphic-region-loader": "16.5.
|
|
456
|
+
"isomorphic-region-loader": "16.5.4"
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
"isomorphic-lib": {
|
|
460
460
|
"callsite-record": "4.1.3",
|
|
461
461
|
"@types/vinyl": "^2.0.2",
|
|
462
|
-
"background-worker-process": "16.5.
|
|
462
|
+
"background-worker-process": "16.5.4",
|
|
463
463
|
"terminal-ui": {
|
|
464
464
|
"progress": "^2.0.3",
|
|
465
465
|
"@types/progress": "^2.0.3",
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"private": false
|
|
559
559
|
},
|
|
560
560
|
"name": "tnp",
|
|
561
|
-
"version": "16.5.
|
|
561
|
+
"version": "16.5.12",
|
|
562
562
|
"bin": {
|
|
563
563
|
"tnp": "bin/tnp",
|
|
564
564
|
"tnp-debug": "bin/tnp-debug",
|
|
@@ -566,14 +566,14 @@
|
|
|
566
566
|
},
|
|
567
567
|
"dependencies": {
|
|
568
568
|
"@parcel/watcher": "2.3.0",
|
|
569
|
-
"isomorphic-region-loader": "~16.5.
|
|
570
|
-
"magic-renamer": "~16.5.
|
|
569
|
+
"isomorphic-region-loader": "~16.5.4",
|
|
570
|
+
"magic-renamer": "~16.5.4",
|
|
571
571
|
"open": "7.2.1",
|
|
572
572
|
"ora": "3.4.0",
|
|
573
573
|
"progress": "2.0.3",
|
|
574
|
-
"tnp-db": "~16.5.
|
|
574
|
+
"tnp-db": "~16.5.4"
|
|
575
575
|
},
|
|
576
|
-
"lastBuildTagHash": "
|
|
576
|
+
"lastBuildTagHash": "d3f6905b4e7e71713e1b5409fd1efbe38f5d6ae5",
|
|
577
577
|
"scripts": {
|
|
578
578
|
"activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
|
|
579
579
|
},
|
|
@@ -657,9 +657,9 @@
|
|
|
657
657
|
"angular-material-css-vars": "5.0.2",
|
|
658
658
|
"angular-resize-event": "3.2.0",
|
|
659
659
|
"animate.css": "4.1.1 ",
|
|
660
|
-
"any-project-cli": "~16.5.
|
|
660
|
+
"any-project-cli": "~16.5.4",
|
|
661
661
|
"axios": "1.3.5",
|
|
662
|
-
"background-worker-process": "~16.5.
|
|
662
|
+
"background-worker-process": "~16.5.4",
|
|
663
663
|
"base32": "0.0.7",
|
|
664
664
|
"bcryptjs": "2.4.3",
|
|
665
665
|
"better-sqlite3": "7.6.2",
|
|
@@ -707,9 +707,9 @@
|
|
|
707
707
|
"file-saver": "2.0.5",
|
|
708
708
|
"file-type": "18.5.0",
|
|
709
709
|
"firedev": "^16",
|
|
710
|
-
"firedev-crud": "~16.5.
|
|
711
|
-
"firedev-crud-deamon": "~16.5.
|
|
712
|
-
"firedev-ports": "~16.5.
|
|
710
|
+
"firedev-crud": "~16.5.4",
|
|
711
|
+
"firedev-crud-deamon": "~16.5.4",
|
|
712
|
+
"firedev-ports": "~16.5.4",
|
|
713
713
|
"firedev-storage": "~16.5.3",
|
|
714
714
|
"firedev-type-sql": "~16.5.3",
|
|
715
715
|
"firedev-typeorm": "~16.5.4",
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
"image-focus": "1.2.1",
|
|
731
731
|
"immer": "10.0.2",
|
|
732
732
|
"immutable": "4.3.0",
|
|
733
|
-
"incremental-compiler": "~16.5.
|
|
733
|
+
"incremental-compiler": "~16.5.14",
|
|
734
734
|
"inquirer": "7.3.3",
|
|
735
735
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
736
736
|
"is-elevated": "3.0.0",
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
"jscodeshift": "0.6.3",
|
|
746
746
|
"json-stringify-safe": "5.0.1",
|
|
747
747
|
"json10": "~16.5.3",
|
|
748
|
-
"json10-writer": "~16.5.
|
|
748
|
+
"json10-writer": "~16.5.4",
|
|
749
749
|
"json5": "2.2.1",
|
|
750
750
|
"json5-writer": "0.2.0",
|
|
751
751
|
"jszip": "3.10.1",
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
"ng-lock": "16.0.1",
|
|
769
769
|
"ng-packagr": "16.0.1",
|
|
770
770
|
"ng-talkback": "~16.5.3",
|
|
771
|
-
"ng2-logger": "~16.5.
|
|
771
|
+
"ng2-logger": "~16.5.4",
|
|
772
772
|
"ng2-rest": "~16.5.3",
|
|
773
773
|
"ngx-ace-wrapper": "14.0.0",
|
|
774
774
|
"ngx-editor": "15.3.0",
|
|
@@ -826,10 +826,10 @@
|
|
|
826
826
|
"task.js": "0.1.5",
|
|
827
827
|
"threads": "1.7.0",
|
|
828
828
|
"tnp-cli": "~16.5.3",
|
|
829
|
-
"tnp-config": "~16.5.
|
|
830
|
-
"tnp-core": "~16.5.
|
|
831
|
-
"tnp-helpers": "~16.5.
|
|
832
|
-
"tnp-models": "~16.5.
|
|
829
|
+
"tnp-config": "~16.5.4",
|
|
830
|
+
"tnp-core": "~16.5.9",
|
|
831
|
+
"tnp-helpers": "~16.5.4",
|
|
832
|
+
"tnp-models": "~16.5.4",
|
|
833
833
|
"ts-debug": "1.3.0",
|
|
834
834
|
"ts-loader": "2.3.1",
|
|
835
835
|
"ts-node": "10.9.1",
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
"turndown": "7.1.2",
|
|
839
839
|
"typeorm": "~0.3.10",
|
|
840
840
|
"typescript": "~5.0.2",
|
|
841
|
-
"typescript-class-helpers": "~16.5.
|
|
841
|
+
"typescript-class-helpers": "~16.5.4",
|
|
842
842
|
"typescript-formatter": "~7.2.2",
|
|
843
843
|
"underscore": "1.9.1",
|
|
844
844
|
"uuid": "8.3.2",
|
|
@@ -330,8 +330,8 @@ var LibProject = /** @class */ (function () {
|
|
|
330
330
|
}
|
|
331
331
|
baseFolder = tnp_core_2.path.join(this.location, 'tmp-bundle-release');
|
|
332
332
|
absolutePathReleaseProject = tnp_core_2.path.join(baseFolder, 'bundle', 'project', this.name);
|
|
333
|
-
if (!(this.isStandaloneProject || this.isSmartContainer)) return [3 /*break*/,
|
|
334
|
-
if (!releaseOptions.useTempFolder) return [3 /*break*/,
|
|
333
|
+
if (!(this.isStandaloneProject || this.isSmartContainer)) return [3 /*break*/, 9];
|
|
334
|
+
if (!releaseOptions.useTempFolder) return [3 /*break*/, 9];
|
|
335
335
|
tnp_helpers_1.Helpers.removeFolderIfExists(baseFolder);
|
|
336
336
|
browserFolder = tnp_core_2.path.join(this.location, tnp_config_1.config.folder.browser);
|
|
337
337
|
if (!tnp_helpers_1.Helpers.exists(browserFolder)) {
|
|
@@ -351,16 +351,29 @@ var LibProject = /** @class */ (function () {
|
|
|
351
351
|
regenerateProjectChilds: this.isSmartContainer,
|
|
352
352
|
});
|
|
353
353
|
this.packageJson.linkTo(absolutePathReleaseProject);
|
|
354
|
-
if (this.isStandaloneProject)
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
354
|
+
if (!this.isStandaloneProject) return [3 /*break*/, 2];
|
|
355
|
+
return [4 /*yield*/, this.env.init()];
|
|
356
|
+
case 1:
|
|
357
|
+
_a.sent();
|
|
358
|
+
this.env.coptyTo(absolutePathReleaseProject);
|
|
359
|
+
_a.label = 2;
|
|
360
|
+
case 2:
|
|
361
|
+
if (!this.isSmartContainer) return [3 /*break*/, 6];
|
|
362
|
+
children = this.children;
|
|
363
|
+
index = 0;
|
|
364
|
+
_a.label = 3;
|
|
365
|
+
case 3:
|
|
366
|
+
if (!(index < children.length)) return [3 /*break*/, 6];
|
|
367
|
+
child = children[index];
|
|
368
|
+
return [4 /*yield*/, child.env.init()];
|
|
369
|
+
case 4:
|
|
370
|
+
_a.sent();
|
|
371
|
+
child.env.coptyTo((0, tnp_core_1.crossPlatformPath)([absolutePathReleaseProject, child.name]));
|
|
372
|
+
_a.label = 5;
|
|
373
|
+
case 5:
|
|
374
|
+
index++;
|
|
375
|
+
return [3 /*break*/, 3];
|
|
376
|
+
case 6:
|
|
364
377
|
generatedProject = project_1.Project.From(absolutePathReleaseProject);
|
|
365
378
|
this.allResources.forEach(function (relPathResource) {
|
|
366
379
|
var source = tnp_core_2.path.join(_this.location, relPathResource);
|
|
@@ -380,13 +393,13 @@ var LibProject = /** @class */ (function () {
|
|
|
380
393
|
vscodeFolder = tnp_core_2.path.join(generatedProject.location, tnp_config_1.config.folder._vscode);
|
|
381
394
|
tnp_helpers_1.Helpers.removeFolderIfExists(vscodeFolder);
|
|
382
395
|
return [4 /*yield*/, generatedProject.insideStructure.recrate('bundle')];
|
|
383
|
-
case
|
|
396
|
+
case 7:
|
|
384
397
|
_a.sent();
|
|
385
398
|
return [4 /*yield*/, generatedProject.release(releaseOptions)];
|
|
386
|
-
case
|
|
399
|
+
case 8:
|
|
387
400
|
_a.sent();
|
|
388
401
|
return [2 /*return*/, true];
|
|
389
|
-
case
|
|
402
|
+
case 9: return [2 /*return*/];
|
|
390
403
|
}
|
|
391
404
|
});
|
|
392
405
|
});
|