tnp-config 13.1.50 → 13.1.52
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/browser/esm2020/lib/config.mjs +375 -272
- package/browser/fesm2015/tnp-config.mjs +376 -248
- package/browser/fesm2020/tnp-config.mjs +374 -271
- package/browser/lib/config.d.ts +19 -167
- package/client/esm2020/lib/config.mjs +375 -272
- package/client/fesm2015/tnp-config.mjs +376 -248
- package/client/fesm2020/tnp-config.mjs +374 -271
- package/client/lib/config.d.ts +19 -167
- package/lib/config.js +95 -33
- package/package.json +3 -3
- package/tmp-environment.json +27 -27
- package/websql/esm2020/lib/config.mjs +375 -272
- package/websql/fesm2015/tnp-config.mjs +376 -248
- package/websql/fesm2020/tnp-config.mjs +374 -271
- package/websql/lib/config.d.ts +19 -167
package/client/lib/config.d.ts
CHANGED
@@ -45,34 +45,16 @@ export declare namespace ConfigModels {
|
|
45
45
|
type FormlyInputType = 'input' | 'switch' | 'datepicker' | 'repeat' | 'group';
|
46
46
|
type DatabaseType = 'better-sqlite3' | 'sqlite' | 'mysql';
|
47
47
|
}
|
48
|
-
export declare const GlobalLibTypeName: {
|
49
|
-
isomorphicLib: string;
|
50
|
-
angularLib: string;
|
51
|
-
electronClient: string;
|
52
|
-
ionicLib: string;
|
53
|
-
angularClient: string;
|
54
|
-
ionicClient: string;
|
55
|
-
workspace: string;
|
56
|
-
container: string;
|
57
|
-
docker: string;
|
58
|
-
unknowNpmProject: string;
|
59
|
-
vscodeExt: string;
|
60
|
-
chromeExt: string;
|
61
|
-
singleFileProject: string;
|
62
|
-
navi: string;
|
63
|
-
scenario: string;
|
64
|
-
};
|
48
|
+
export declare const GlobalLibTypeName: {};
|
65
49
|
export declare const LibTypeArr: ConfigModels.LibType[];
|
66
50
|
export declare const CoreLibCategoryArr: ConfigModels.CoreLibCategory[];
|
67
51
|
export declare const config: {
|
68
52
|
packagesThat: {
|
69
|
-
areTrustedForPatchUpdate:
|
53
|
+
areTrustedForPatchUpdate: any[];
|
70
54
|
};
|
71
55
|
coreProjectVersions: string[];
|
72
|
-
quickFixes: {
|
73
|
-
|
74
|
-
};
|
75
|
-
packageJsonSplit: string[];
|
56
|
+
quickFixes: {};
|
57
|
+
packageJsonSplit: any[];
|
76
58
|
regexString: {
|
77
59
|
pathPartStringRegex: string;
|
78
60
|
};
|
@@ -83,18 +65,9 @@ export declare const config: {
|
|
83
65
|
isomorphicPackages: string;
|
84
66
|
};
|
85
67
|
defaultFrameworkVersion: ConfigModels.FrameworkVersion;
|
86
|
-
CONST: {
|
87
|
-
|
88
|
-
|
89
|
-
BACKEND_HTTP_REQUEST_TIMEOUT: number;
|
90
|
-
};
|
91
|
-
debug: {
|
92
|
-
sourceModifier: any[];
|
93
|
-
baselineSiteJoin: {
|
94
|
-
DEBUG_PATHES: any[];
|
95
|
-
DEBUG_MERGE_PATHES: any[];
|
96
|
-
};
|
97
|
-
};
|
68
|
+
CONST: {};
|
69
|
+
debug: {};
|
70
|
+
frameworkName: "firedev" | "tnp";
|
98
71
|
frameworkNames: {
|
99
72
|
tnp: string;
|
100
73
|
firedev: string;
|
@@ -102,56 +75,7 @@ export declare const config: {
|
|
102
75
|
startPort: number;
|
103
76
|
frameworks: ConfigModels.UIFramework[];
|
104
77
|
allowedEnvironments: ConfigModels.EnvironmentName[];
|
105
|
-
folder: {
|
106
|
-
bundle: string;
|
107
|
-
vendor: string;
|
108
|
-
docs: string;
|
109
|
-
dist: string;
|
110
|
-
tmp: string;
|
111
|
-
tmpBundleRelease: string;
|
112
|
-
tempSrc: string;
|
113
|
-
tempSrcDist: string;
|
114
|
-
previewDistApp: string;
|
115
|
-
preview: string;
|
116
|
-
browser: string;
|
117
|
-
websql: string;
|
118
|
-
_browser: string;
|
119
|
-
module: string;
|
120
|
-
backup: string;
|
121
|
-
node_modules: string;
|
122
|
-
client: string;
|
123
|
-
tnp_tests_context: string;
|
124
|
-
tmpPackage: string;
|
125
|
-
tmpScenarios: string;
|
126
|
-
tmpTestsEnvironments: string;
|
127
|
-
testsEnvironments: string;
|
128
|
-
scripts: string;
|
129
|
-
scenarios: string;
|
130
|
-
bower: string;
|
131
|
-
src: string;
|
132
|
-
out: string;
|
133
|
-
app: string;
|
134
|
-
lib: string;
|
135
|
-
libs: string;
|
136
|
-
source: string;
|
137
|
-
custom: string;
|
138
|
-
components: string;
|
139
|
-
assets: string;
|
140
|
-
apps: string;
|
141
|
-
workspace: string;
|
142
|
-
container: string;
|
143
|
-
bin: string;
|
144
|
-
_bin: string;
|
145
|
-
_vscode: string;
|
146
|
-
project: string;
|
147
|
-
external: string;
|
148
|
-
tmpDist: string;
|
149
|
-
tmpFor(d: ConfigModels.OutFolder): string;
|
150
|
-
targetProjects: {
|
151
|
-
DEFAULT_PATH_GENERATED: string;
|
152
|
-
DEFAULT_PATH_ORIGINS: string;
|
153
|
-
};
|
154
|
-
};
|
78
|
+
folder: {};
|
155
79
|
tempFolders: {
|
156
80
|
bundle: string;
|
157
81
|
vendor: string;
|
@@ -178,13 +102,6 @@ export declare const config: {
|
|
178
102
|
};
|
179
103
|
filesNotAllowedToClean: string[];
|
180
104
|
file: {
|
181
|
-
_gitignore: string;
|
182
|
-
_npmrc: string;
|
183
|
-
_npmignore: string;
|
184
|
-
tslint_json: string;
|
185
|
-
_editorconfig: string;
|
186
|
-
_angularCli_json: string;
|
187
|
-
_vscode_launch_json: string;
|
188
105
|
_bowerrc: string;
|
189
106
|
bower_json: string;
|
190
107
|
controllers_ts: string;
|
@@ -229,13 +146,7 @@ export declare const config: {
|
|
229
146
|
server_chain_cert: string;
|
230
147
|
meta_config_md: string;
|
231
148
|
};
|
232
|
-
default: {
|
233
|
-
cloud: {
|
234
|
-
environment: {
|
235
|
-
name: ConfigModels.EnvironmentName;
|
236
|
-
};
|
237
|
-
};
|
238
|
-
};
|
149
|
+
default: {};
|
239
150
|
SUBERIZED_PREFIX: string;
|
240
151
|
names: {
|
241
152
|
env: {};
|
@@ -243,83 +154,24 @@ export declare const config: {
|
|
243
154
|
defaultServer: string;
|
244
155
|
};
|
245
156
|
reservedArgumentsNamesUglify: string[];
|
246
|
-
extensions: {
|
247
|
-
/**
|
248
|
-
* Modify source: import,export, requires
|
249
|
-
*/
|
250
|
-
readonly modificableByReplaceFn: string[];
|
251
|
-
};
|
157
|
+
extensions: {};
|
252
158
|
notFiredevProjects: ConfigModels.LibType[];
|
253
159
|
/**
|
254
160
|
* Build allowed types
|
255
161
|
*/
|
256
|
-
allowedTypes: {
|
257
|
-
|
258
|
-
|
259
|
-
*/
|
260
|
-
app: ConfigModels.LibType[];
|
261
|
-
/**
|
262
|
-
* Projects for build:(dist|bundle):(watch) command
|
263
|
-
*/
|
264
|
-
libs: ConfigModels.LibType[];
|
265
|
-
};
|
266
|
-
moduleNameAngularLib: string[];
|
267
|
-
moduleNameIsomorphicLib: string[];
|
162
|
+
allowedTypes: {};
|
163
|
+
moduleNameAngularLib: any[];
|
164
|
+
moduleNameIsomorphicLib: any[];
|
268
165
|
filesExtensions: {
|
269
166
|
filetemplate: string;
|
270
|
-
styles:
|
271
|
-
};
|
272
|
-
projectTypes: {
|
273
|
-
forNpmLibs: string[];
|
274
|
-
with: {
|
275
|
-
angularAsCore: string[];
|
276
|
-
componetsAsSrc: string[];
|
277
|
-
};
|
167
|
+
styles: any[];
|
278
168
|
};
|
279
|
-
|
169
|
+
projectTypes: {};
|
170
|
+
localLibs: any[];
|
280
171
|
helpAlias: string[];
|
281
172
|
required: {
|
282
|
-
npm:
|
283
|
-
|
284
|
-
|
285
|
-
installName?: undefined;
|
286
|
-
} | {
|
287
|
-
name: string;
|
288
|
-
version: string;
|
289
|
-
installName: string;
|
290
|
-
} | {
|
291
|
-
name: string;
|
292
|
-
version?: undefined;
|
293
|
-
installName?: undefined;
|
294
|
-
} | {
|
295
|
-
name: string;
|
296
|
-
installName: string;
|
297
|
-
version?: undefined;
|
298
|
-
})[];
|
299
|
-
niceTools: ({
|
300
|
-
name: string;
|
301
|
-
platform?: undefined;
|
302
|
-
installName?: undefined;
|
303
|
-
isNotCli?: undefined;
|
304
|
-
} | {
|
305
|
-
name: string;
|
306
|
-
platform: string;
|
307
|
-
installName?: undefined;
|
308
|
-
isNotCli?: undefined;
|
309
|
-
} | {
|
310
|
-
name: string;
|
311
|
-
installName: string;
|
312
|
-
platform?: undefined;
|
313
|
-
isNotCli?: undefined;
|
314
|
-
} | {
|
315
|
-
name: string;
|
316
|
-
isNotCli: boolean;
|
317
|
-
platform?: undefined;
|
318
|
-
installName?: undefined;
|
319
|
-
})[];
|
320
|
-
programs: {
|
321
|
-
name: string;
|
322
|
-
website: string;
|
323
|
-
}[];
|
173
|
+
npm: any[];
|
174
|
+
niceTools: any[];
|
175
|
+
programs: any[];
|
324
176
|
};
|
325
177
|
};
|
package/lib/config.js
CHANGED
@@ -9,7 +9,15 @@ if (global && !global['ENV']) {
|
|
9
9
|
//#endregion
|
10
10
|
var tnp_core_2 = require("tnp-core");
|
11
11
|
Object.defineProperty(exports, "Helpers", { enumerable: true, get: function () { return tnp_core_2.CoreHelpers; } });
|
12
|
+
var tnp_core_3 = require("tnp-core");
|
13
|
+
var frameworkNameBe = (''
|
14
|
+
//#region @backend
|
15
|
+
|| (global['frameworkName'] ? global['frameworkName'] : 'tnp')
|
16
|
+
//#endregion
|
17
|
+
);
|
18
|
+
var frameworkName = tnp_core_3.Helpers.isBrowser ? 'firedev' : frameworkNameBe;
|
12
19
|
exports.GlobalLibTypeName = {
|
20
|
+
//#region @backend
|
13
21
|
isomorphicLib: 'isomorphic-lib',
|
14
22
|
angularLib: 'angular-lib',
|
15
23
|
electronClient: 'electron-client',
|
@@ -24,9 +32,11 @@ exports.GlobalLibTypeName = {
|
|
24
32
|
chromeExt: 'chrome-ext',
|
25
33
|
singleFileProject: 'single-file-project',
|
26
34
|
navi: 'navi',
|
27
|
-
scenario: 'scenario'
|
35
|
+
scenario: 'scenario',
|
36
|
+
//#endregion
|
28
37
|
};
|
29
38
|
exports.LibTypeArr = [
|
39
|
+
//#region @backend
|
30
40
|
exports.GlobalLibTypeName.angularLib,
|
31
41
|
exports.GlobalLibTypeName.isomorphicLib,
|
32
42
|
exports.GlobalLibTypeName.angularClient,
|
@@ -40,8 +50,10 @@ exports.LibTypeArr = [
|
|
40
50
|
exports.GlobalLibTypeName.chromeExt,
|
41
51
|
exports.GlobalLibTypeName.navi,
|
42
52
|
exports.GlobalLibTypeName.scenario,
|
53
|
+
//#endregion
|
43
54
|
];
|
44
55
|
exports.CoreLibCategoryArr = [
|
56
|
+
//#region @backend
|
45
57
|
exports.GlobalLibTypeName.angularLib,
|
46
58
|
exports.GlobalLibTypeName.isomorphicLib,
|
47
59
|
exports.GlobalLibTypeName.angularClient,
|
@@ -49,9 +61,14 @@ exports.CoreLibCategoryArr = [
|
|
49
61
|
exports.GlobalLibTypeName.ionicClient,
|
50
62
|
exports.GlobalLibTypeName.docker,
|
51
63
|
'common'
|
64
|
+
//#endregion
|
52
65
|
];
|
53
66
|
//#endregion
|
54
|
-
var allowedEnvironments = [
|
67
|
+
var allowedEnvironments = [
|
68
|
+
//#region @backend
|
69
|
+
'static', 'dev', 'prod', 'stage', 'online', 'test', 'qa', 'custom'
|
70
|
+
//#endregion
|
71
|
+
];
|
55
72
|
var allowedEnvironmentsObj = {};
|
56
73
|
allowedEnvironments.forEach(function (s) {
|
57
74
|
// @ts-ignore
|
@@ -64,6 +81,7 @@ var morphiPathUserInUserDir = tnp_core_1.path.join((0, tnp_core_1.crossPlatformP
|
|
64
81
|
//#endregion
|
65
82
|
var urlMorphi = 'https://github.com/darekf77/morphi.git';
|
66
83
|
var filesNotAllowedToClean = {
|
84
|
+
//#region @backend
|
67
85
|
_gitignore: '.gitignore',
|
68
86
|
_npmrc: '.npmrc',
|
69
87
|
_npmignore: '.npmignore',
|
@@ -71,12 +89,15 @@ var filesNotAllowedToClean = {
|
|
71
89
|
_editorconfig: '.editorconfig',
|
72
90
|
_angularCli_json: '.angular-cli.json',
|
73
91
|
_vscode_launch_json: '.vscode/launch.json',
|
92
|
+
//#endregion
|
74
93
|
};
|
75
94
|
var file = tslib_1.__assign({ _bowerrc: '.bowerrc', bower_json: 'bower.json', controllers_ts: 'controllers.ts', entities_ts: 'entities.ts', angular_json: 'angular.json', autob_actions_js: 'auto-actions.js', local_config_js: 'local-config.js', build_config_js: 'build-config.js', local_config: 'local-config', start_backend_ts: 'start.backend.ts', package_json: 'package.json', result_packages_json: 'result-packages.json', package_json5: 'package.json5', package_json__tnp_json: 'package.json_tnp.json', package_json__tnp_json5: 'package.json_tnp.json5', package_json__devDependencies_json: 'package.json_devDependencies.json', yarn_lock: 'yarn.lock', package_lock_json: 'package-lock.json', tnpEnvironment_json: 'tmp-environment.json', environment: 'environment', environment_js: 'environment.js', tmp_transaction_pid_txt: 'tmp-transaction-pid.txt', manifest_webmanifest: 'manifest.webmanifest', public_api_d_ts: 'public-api.d.ts', public_api_ts: 'public-api.ts', public_api: 'public-api', _babelrc: '.babelrc', index: 'index', index_d_ts: 'index.d.ts', index_ts: 'index.ts', index_js: 'index.js', index_js_map: 'index.js.map', db_json: 'db.json', db_for_tests_json: 'db-for-tests.json', tmpDockerImageId: 'tmp-docker-image-id', tmp_recent_json: 'recent.json', tmpIsomorphicPackagesJson: 'tmp-isomorphic-packages.json', tsconfig_json: 'tsconfig.json', README_MD: 'README.md', server_key: 'server.key', server_cert: 'server.cert', server_chain_cert: 'server-chain.cert', meta_config_md: 'meta-content.md' }, filesNotAllowedToClean);
|
76
95
|
var packageJsonSplit = [
|
96
|
+
//#region @backend
|
77
97
|
file.package_json__tnp_json,
|
78
98
|
file.package_json__tnp_json5,
|
79
99
|
file.package_json__devDependencies_json,
|
100
|
+
//#endregion
|
80
101
|
];
|
81
102
|
var tempFolders = {
|
82
103
|
bundle: 'bundle',
|
@@ -103,12 +124,16 @@ var tempFolders = {
|
|
103
124
|
testsEnvironments: 'tests-environments',
|
104
125
|
};
|
105
126
|
var stylesFilesExtension = [
|
127
|
+
//#region @backend
|
106
128
|
'css',
|
107
129
|
'sass',
|
108
130
|
'scss',
|
109
131
|
'less',
|
132
|
+
//#endregion
|
110
133
|
];
|
111
|
-
var folder = tslib_1.__assign({
|
134
|
+
var folder = tslib_1.__assign({
|
135
|
+
//#region @backend
|
136
|
+
scripts: 'scripts', scenarios: 'scenarios', bower: 'bower', src: 'src', out: 'out', app: 'app', lib: 'lib', libs: 'libs', source: 'source', custom: 'custom', components: 'components', assets: 'assets', apps: 'apps',
|
112
137
|
// entities: 'entities',
|
113
138
|
// controllers: 'controllers',
|
114
139
|
// projects: 'projects',
|
@@ -117,7 +142,9 @@ var folder = tslib_1.__assign({ scripts: 'scripts', scenarios: 'scenarios', bowe
|
|
117
142
|
}, targetProjects: {
|
118
143
|
DEFAULT_PATH_GENERATED: 'tmp-target-projects/generated',
|
119
144
|
DEFAULT_PATH_ORIGINS: 'tmp-target-projects/origins',
|
120
|
-
} }, tempFolders
|
145
|
+
} }, tempFolders
|
146
|
+
//#endregion
|
147
|
+
);
|
121
148
|
// @LAST RESOLVE TNP LOCATION !!! for each context and RELEASE TNP-CONFIG
|
122
149
|
var dirnameForTnp;
|
123
150
|
//#region @backend
|
@@ -143,8 +170,11 @@ else {
|
|
143
170
|
global.dirnameForFiredev = dirnameForTnp;
|
144
171
|
// console.log('dirnameForTnp after', dirnameForTnp)
|
145
172
|
// process.exit(0)
|
146
|
-
|
147
|
-
|
173
|
+
if (tnp_core_1.path.basename(dirnameForTnp) === 'node_modules') {
|
174
|
+
dirnameForTnp = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(dirnameForTnp, 'tnp'));
|
175
|
+
}
|
176
|
+
// TOD0
|
177
|
+
// console.log(`[tnp-config] dirnameForTnp : ${dirnameForTnp}`);
|
148
178
|
// process.exit(0)
|
149
179
|
//#endregion
|
150
180
|
//#region @backend
|
@@ -163,35 +193,35 @@ function pathResolved() {
|
|
163
193
|
// console.info(`Firedev base projects in are ok.`);
|
164
194
|
}
|
165
195
|
else {
|
166
|
-
|
196
|
+
var morhiVscode = tnp_core_1.path.join(tnp_core_1.path.dirname(morphiPathUserInUserDir), 'morphi/.vscode');
|
197
|
+
if (!tnp_core_1.fse.existsSync(morphiPathUserInUserDir) && !global.skipCoreCheck) {
|
167
198
|
if (!tnp_core_1.fse.existsSync(tnp_core_1.path.dirname(morphiPathUserInUserDir))) {
|
168
199
|
tnp_core_1.fse.mkdirpSync(tnp_core_1.path.dirname(morphiPathUserInUserDir));
|
169
200
|
}
|
201
|
+
try {
|
202
|
+
tnp_core_1.child_process.execSync("".concat(frameworkName, " env:install --skipCoreCheck"), { stdio: [0, 1, 2] });
|
203
|
+
}
|
204
|
+
catch (error) {
|
205
|
+
tnp_core_3.Helpers.error("[".concat(frameworkName, "][config] Not able to install local global environment"), false, true);
|
206
|
+
}
|
170
207
|
try {
|
171
208
|
tnp_core_1.child_process.execSync("git clone ".concat(urlMorphi), {
|
172
|
-
cwd: tnp_core_1.path.dirname(morphiPathUserInUserDir)
|
209
|
+
cwd: tnp_core_1.path.dirname(morphiPathUserInUserDir),
|
210
|
+
stdio: [0, 1, 2],
|
173
211
|
});
|
174
|
-
|
212
|
+
tnp_core_3.Helpers.remove(morhiVscode);
|
175
213
|
}
|
176
214
|
catch (error) {
|
177
|
-
|
215
|
+
tnp_core_3.Helpers.error("[".concat(frameworkName, "][config] Not able to clone repository: ").concat(urlMorphi, " in:\n ").concat(morphiPathUserInUserDir), false, true);
|
216
|
+
}
|
217
|
+
try {
|
218
|
+
tnp_core_1.child_process.execSync("".concat(frameworkName, " init:core --skipCoreCheck"), {
|
219
|
+
stdio: [0, 1, 2]
|
220
|
+
});
|
221
|
+
}
|
222
|
+
catch (error) {
|
223
|
+
tnp_core_3.Helpers.error("[".concat(frameworkName, "][config] Not able init core project"), false, true);
|
178
224
|
}
|
179
|
-
}
|
180
|
-
else {
|
181
|
-
// const upgradeFiredev = global['firedev-upgrade-process'];
|
182
|
-
// console.info(`upgrade firedev: ${upgradeFiredev}`)
|
183
|
-
// if (global['firedev-upgrade-process']) {
|
184
|
-
// try {
|
185
|
-
// // child_process.execSync(`git reset --hard && git pull origin master`,
|
186
|
-
// // { cwd: morphiPathUserInUserDir });
|
187
|
-
// // fse.removeSync(path.join(path.dirname(morphiPathUserInUserDir), 'morphi/.vscode'));
|
188
|
-
// } catch (error) {
|
189
|
-
// console.error(`[config] Not pull origin of morphi: ${urlMorphi} in:
|
190
|
-
// ${morphiPathUserInUserDir}`);
|
191
|
-
// }
|
192
|
-
// } else {
|
193
|
-
// console.log(`Ommiting firedev upgrade process..`)
|
194
|
-
// }
|
195
225
|
}
|
196
226
|
pathResolved.prototype.resolved = true;
|
197
227
|
}
|
@@ -201,17 +231,22 @@ function pathResolved() {
|
|
201
231
|
}
|
202
232
|
//#endregion
|
203
233
|
var moduleNameAngularLib = [
|
234
|
+
//#region @backend
|
204
235
|
folder.components,
|
205
236
|
folder.module,
|
206
237
|
folder.dist,
|
207
238
|
folder.browser,
|
239
|
+
//#endregion
|
208
240
|
];
|
209
241
|
var moduleNameIsomorphicLib = [
|
242
|
+
//#region @backend
|
210
243
|
folder.src,
|
211
244
|
folder.dist,
|
212
245
|
folder.browser,
|
246
|
+
//#endregion
|
213
247
|
];
|
214
248
|
var argsReplacementsBuild = {
|
249
|
+
//#region @backend
|
215
250
|
// SHORTCUTS
|
216
251
|
'ba': 'build:app',
|
217
252
|
'baw': 'build:app:watch',
|
@@ -248,8 +283,10 @@ var argsReplacementsBuild = {
|
|
248
283
|
// 'sbl': 'static:build:lib',
|
249
284
|
// 'sba': 'static:build:app',
|
250
285
|
// 'cb': 'clean:build'
|
286
|
+
//#endregion
|
251
287
|
};
|
252
288
|
var argsReplacementsOther = {
|
289
|
+
//#region @backend
|
253
290
|
// github docs
|
254
291
|
'ghpush': 'githubpush',
|
255
292
|
'ghpull': 'githubpull',
|
@@ -296,8 +333,10 @@ var argsReplacementsOther = {
|
|
296
333
|
'ud': 'update:deps',
|
297
334
|
'dgl': 'detect:global:libs',
|
298
335
|
'pr': 'print:relatives',
|
336
|
+
//#endregion
|
299
337
|
};
|
300
338
|
var areTrustedForPatchUpdate = [
|
339
|
+
//#region @backend
|
301
340
|
'@angular',
|
302
341
|
'@ngrx',
|
303
342
|
'rxjs',
|
@@ -305,6 +344,7 @@ var areTrustedForPatchUpdate = [
|
|
305
344
|
'tslib',
|
306
345
|
'typescript',
|
307
346
|
'webpack'
|
347
|
+
//#endregion
|
308
348
|
];
|
309
349
|
exports.config = {
|
310
350
|
packagesThat: {
|
@@ -316,15 +356,17 @@ exports.config = {
|
|
316
356
|
if (global.testMode) {
|
317
357
|
dbFileName = exports.config.file.db_for_tests_json;
|
318
358
|
}
|
319
|
-
var location = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join((0, tnp_core_1.crossPlatformPath)(tnp_core_1.os.homedir()), ".".concat(
|
359
|
+
var location = (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join((0, tnp_core_1.crossPlatformPath)(tnp_core_1.os.homedir()), ".".concat(frameworkName), dbFileName));
|
320
360
|
return location;
|
321
361
|
},
|
322
362
|
//#endregion
|
323
363
|
coreProjectVersions: ['v1', 'v2', 'v3'],
|
324
364
|
quickFixes: {
|
365
|
+
//#region @backend
|
325
366
|
missingLibs: [
|
326
367
|
'react-native-sqlite-storage'
|
327
368
|
]
|
369
|
+
//#endregion
|
328
370
|
},
|
329
371
|
packageJsonSplit: packageJsonSplit,
|
330
372
|
regexString: {
|
@@ -338,11 +380,14 @@ exports.config = {
|
|
338
380
|
},
|
339
381
|
defaultFrameworkVersion: 'v3',
|
340
382
|
CONST: {
|
383
|
+
//#region @backend
|
341
384
|
UNIT_TEST_TIMEOUT: 30000,
|
342
385
|
INTEGRATION_TEST: 30000,
|
343
386
|
BACKEND_HTTP_REQUEST_TIMEOUT: 3000,
|
387
|
+
//#endregion
|
344
388
|
},
|
345
389
|
debug: {
|
390
|
+
//#region @backend
|
346
391
|
sourceModifier: [],
|
347
392
|
baselineSiteJoin: {
|
348
393
|
DEBUG_PATHES: [
|
@@ -358,10 +403,9 @@ exports.config = {
|
|
358
403
|
// '/src/app/+preview-components/components/+preview-buildtnpprocess/preview-buildtnpprocess.component.ts'
|
359
404
|
]
|
360
405
|
}
|
406
|
+
//#endregion
|
361
407
|
},
|
362
|
-
|
363
|
-
frameworkName: (global['frameworkName'] ? global['frameworkName'] : 'tnp'),
|
364
|
-
//#endregion
|
408
|
+
frameworkName: frameworkName,
|
365
409
|
frameworkNames: {
|
366
410
|
tnp: 'tnp',
|
367
411
|
firedev: 'firedev'
|
@@ -451,7 +495,7 @@ exports.config = {
|
|
451
495
|
}
|
452
496
|
return pathResolved(dirnameForTnp, "".concat(firedevProjectsRelative, "/container").concat(version, "/").concat(libType).concat(version));
|
453
497
|
}
|
454
|
-
return pathResolved(dirnameForTnp, "".concat(firedevProjectsRelative, "/container").concat(version, "/
|
498
|
+
return pathResolved(dirnameForTnp, "".concat(firedevProjectsRelative, "/container").concat(version, "/").concat(libType).concat(version));
|
455
499
|
},
|
456
500
|
singlefileproject: pathResolved(dirnameForTnp, "".concat(firedevProjectsRelative, "/container").concat(version, "/single-file-project").concat(version))
|
457
501
|
};
|
@@ -466,11 +510,13 @@ exports.config = {
|
|
466
510
|
filesNotAllowedToClean: Object.keys(filesNotAllowedToClean).map(function (key) { return filesNotAllowedToClean[key]; }),
|
467
511
|
file: file,
|
468
512
|
default: {
|
513
|
+
//#region @backend
|
469
514
|
cloud: {
|
470
515
|
environment: {
|
471
516
|
name: 'online'
|
472
517
|
}
|
473
518
|
}
|
519
|
+
//#endregion
|
474
520
|
},
|
475
521
|
SUBERIZED_PREFIX: "---stuberized",
|
476
522
|
names: {
|
@@ -483,6 +529,7 @@ exports.config = {
|
|
483
529
|
'reservedExpSec'
|
484
530
|
],
|
485
531
|
extensions: {
|
532
|
+
//#region @backend
|
486
533
|
/**
|
487
534
|
* Modify source: import,export, requires
|
488
535
|
*/
|
@@ -492,14 +539,18 @@ exports.config = {
|
|
492
539
|
'js'
|
493
540
|
], tslib_1.__read(stylesFilesExtension), false).map(function (f) { return ".".concat(f); });
|
494
541
|
},
|
542
|
+
//#endregion
|
495
543
|
},
|
496
544
|
notFiredevProjects: [
|
545
|
+
//#region @backend
|
497
546
|
'unknow', 'unknow-npm-project', 'scenario', 'navi'
|
547
|
+
//#endregion
|
498
548
|
],
|
499
549
|
/**
|
500
550
|
* Build allowed types
|
501
551
|
*/
|
502
552
|
allowedTypes: {
|
553
|
+
//#region @backend
|
503
554
|
/**
|
504
555
|
* Projects for build:app:watch command
|
505
556
|
*/
|
@@ -523,6 +574,7 @@ exports.config = {
|
|
523
574
|
exports.GlobalLibTypeName.docker,
|
524
575
|
exports.GlobalLibTypeName.vscodeExt,
|
525
576
|
]
|
577
|
+
//#endregion
|
526
578
|
},
|
527
579
|
moduleNameAngularLib: moduleNameAngularLib,
|
528
580
|
moduleNameIsomorphicLib: moduleNameIsomorphicLib,
|
@@ -531,6 +583,7 @@ exports.config = {
|
|
531
583
|
styles: stylesFilesExtension,
|
532
584
|
},
|
533
585
|
projectTypes: {
|
586
|
+
//#region @backend
|
534
587
|
forNpmLibs: [
|
535
588
|
exports.GlobalLibTypeName.angularLib,
|
536
589
|
exports.GlobalLibTypeName.isomorphicLib,
|
@@ -545,9 +598,11 @@ exports.config = {
|
|
545
598
|
exports.GlobalLibTypeName.angularLib,
|
546
599
|
],
|
547
600
|
}
|
601
|
+
//#endregion
|
548
602
|
},
|
549
603
|
// environmentName,
|
550
604
|
localLibs: [
|
605
|
+
//#region @backend
|
551
606
|
'eslint',
|
552
607
|
'mkdirp',
|
553
608
|
'gulp',
|
@@ -563,6 +618,7 @@ exports.config = {
|
|
563
618
|
'concurrently',
|
564
619
|
'sloc',
|
565
620
|
'morphi'
|
621
|
+
//#endregion
|
566
622
|
],
|
567
623
|
helpAlias: [
|
568
624
|
'-h',
|
@@ -572,6 +628,7 @@ exports.config = {
|
|
572
628
|
],
|
573
629
|
required: {
|
574
630
|
npm: [
|
631
|
+
//#region @backend
|
575
632
|
{ name: '@angular/cli', version: '13' },
|
576
633
|
{ name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
|
577
634
|
{ name: 'extract-zip', version: '1.6.7' },
|
@@ -585,7 +642,7 @@ exports.config = {
|
|
585
642
|
{ name: 'nodemon' },
|
586
643
|
{ name: 'madge' },
|
587
644
|
{ name: 'yarn' },
|
588
|
-
{ name: 'http-server' },
|
645
|
+
{ name: 'firedev-http-server' },
|
589
646
|
{ name: 'increase-memory-limit' },
|
590
647
|
{ name: 'bower' },
|
591
648
|
{ name: 'fkill', installName: 'fkill-cli' },
|
@@ -593,7 +650,7 @@ exports.config = {
|
|
593
650
|
{ name: 'mocha' },
|
594
651
|
// { name: 'chai' },
|
595
652
|
{ name: 'ts-node' },
|
596
|
-
{ name: 'vsce' },
|
653
|
+
{ name: 'firedev-vsce' },
|
597
654
|
// { name: 'stmux' },
|
598
655
|
{ name: 'webpack-bundle-analyzer' },
|
599
656
|
// { name: 'ng', installName: '@angular/cli' },
|
@@ -602,8 +659,10 @@ exports.config = {
|
|
602
659
|
{ name: 'babel', installName: 'babel-cli' },
|
603
660
|
{ name: 'javascript-obfuscator', version: '4' },
|
604
661
|
{ name: 'uglifyjs', installName: 'uglify-js' },
|
662
|
+
//#endregion
|
605
663
|
],
|
606
664
|
niceTools: [
|
665
|
+
//#region @backend
|
607
666
|
{ name: 'speed-test' },
|
608
667
|
{ name: 'npm-name' },
|
609
668
|
{ name: 'vantage', platform: 'linux' },
|
@@ -626,12 +685,15 @@ exports.config = {
|
|
626
685
|
{ name: 'columnify', isNotCli: true },
|
627
686
|
{ name: 'multispinner', isNotCli: true },
|
628
687
|
{ name: 'cfonts' }, // draw super nice fonts in console
|
688
|
+
//#endregion
|
629
689
|
],
|
630
690
|
programs: [,
|
691
|
+
//#region @backend
|
631
692
|
{
|
632
693
|
name: 'code',
|
633
694
|
website: 'https://code.visualstudio.com/'
|
634
695
|
}
|
696
|
+
//#endregion
|
635
697
|
]
|
636
698
|
}
|
637
699
|
};
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"tnp-core": "~13.1.
|
3
|
+
"tnp-core": "~13.1.58"
|
4
4
|
},
|
5
5
|
"devDependencies": {},
|
6
6
|
"license": "MIT",
|
7
7
|
"private": false,
|
8
8
|
"main": "index.js",
|
9
9
|
"name": "tnp-config",
|
10
|
-
"version": "13.1.
|
11
|
-
"lastBuildTagHash": "
|
10
|
+
"version": "13.1.52",
|
11
|
+
"lastBuildTagHash": "dab1aa93a2137e18b6bdc041fe818798ddf15080"
|
12
12
|
}
|