vona-cli-set-api 1.0.74 → 1.0.76
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.
|
@@ -23,20 +23,19 @@
|
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"init": "pnpm install --no-frozen-lockfile && npm run prerun && pnpm install --no-frozen-lockfile",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"dev": "npm run prerun &&
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"build": "npm run prerun &&
|
|
35
|
-
"build:docker": "npm run prerun && npm run vona :bin:build -- --flavor=docker",
|
|
26
|
+
"demo": "vona :bin:demo --flavor=normal",
|
|
27
|
+
"db:reset": "npm run prerun && vona :bin:dbReset --flavor=normal",
|
|
28
|
+
"dev": "npm run prerun && vona :bin:dev --workers=2 --flavor=normal",
|
|
29
|
+
"dev:one": "npm run prerun && vona :bin:dev --workers=1 --flavor=normal",
|
|
30
|
+
"test": "npm run prerun && vona :bin:test --flavor=normal",
|
|
31
|
+
"cov": "npm run prerun && vona :bin:test --coverage --flavor=normal",
|
|
32
|
+
"tsc": "npm run prerun && vona :bin:tsc",
|
|
33
|
+
"build": "npm run prerun && vona :bin:build --flavor=normal",
|
|
34
|
+
"build:docker": "npm run prerun && vona :bin:build --flavor=docker",
|
|
36
35
|
"start": "node ./dist/normal/bootstrap.js",
|
|
37
36
|
"start:one": "cross-env SERVER_WORKERS=1 node ./dist/normal/bootstrap.js",
|
|
38
37
|
"start:docker": "cross-env SERVER_WORKERS=1 node ./dist/docker/bootstrap.js",
|
|
39
|
-
"prerun": "
|
|
38
|
+
"prerun": "vona :tools:deps",
|
|
40
39
|
"lint": "eslint",
|
|
41
40
|
"lint:fix": "eslint --fix"
|
|
42
41
|
},
|
|
@@ -9,9 +9,10 @@ export class CliBinTsc extends BeanCliBase {
|
|
|
9
9
|
await this._tsc(projectPath, force);
|
|
10
10
|
}
|
|
11
11
|
async _tsc(projectPath, force) {
|
|
12
|
+
const suiteNames = Object.keys(this.modulesMeta.suites).filter(suiteName => !this.modulesMeta.suites[suiteName].info.node_modules);
|
|
13
|
+
const modulesArray = this.modulesMeta.modulesArray.filter(item => !item.suite && !item.info.node_modules);
|
|
12
14
|
// count
|
|
13
|
-
const count = 1 +
|
|
14
|
-
Object.keys(this.modulesMeta.suites).length + this.modulesMeta.modulesArray.filter(item => !item.suite).length;
|
|
15
|
+
const count = 1 + suiteNames.length + modulesArray.length;
|
|
15
16
|
// begin
|
|
16
17
|
let counter = 0;
|
|
17
18
|
const timeBegin = new Date();
|
|
@@ -27,19 +28,17 @@ export class CliBinTsc extends BeanCliBase {
|
|
|
27
28
|
console.log(`===> ${++counter}/${count} project`);
|
|
28
29
|
await this.helper.processHelper.tsc(tscArgs, { cwd: projectPath });
|
|
29
30
|
// suites
|
|
30
|
-
for (const key
|
|
31
|
+
for (const key of suiteNames) {
|
|
31
32
|
const suite = this.modulesMeta.suites[key];
|
|
32
33
|
// eslint-disable-next-line
|
|
33
34
|
console.log(`===> ${++counter}/${count} suite: ${suite.info.originalName}`);
|
|
34
35
|
await this.helper.processHelper.tsc(tscArgs, { cwd: suite.root });
|
|
35
36
|
}
|
|
36
37
|
// modules
|
|
37
|
-
for (const module of
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
await this.helper.processHelper.tsc(tscArgs, { cwd: module.root });
|
|
42
|
-
}
|
|
38
|
+
for (const module of modulesArray) {
|
|
39
|
+
// eslint-disable-next-line
|
|
40
|
+
console.log(`===> ${++counter}/${count} module: ${module.info.originalName}`);
|
|
41
|
+
await this.helper.processHelper.tsc(tscArgs, { cwd: module.root });
|
|
43
42
|
}
|
|
44
43
|
// end
|
|
45
44
|
const timeEnd = new Date();
|