@nocobase/cli 0.21.0-alpha.6 → 0.21.0-alpha.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "0.21.0-alpha.
|
|
3
|
+
"version": "0.21.0-alpha.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"nocobase": "./bin/index.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@nocobase/app": "0.21.0-alpha.
|
|
11
|
+
"@nocobase/app": "0.21.0-alpha.8",
|
|
12
12
|
"@types/fs-extra": "^11.0.1",
|
|
13
13
|
"@umijs/utils": "3.5.20",
|
|
14
14
|
"chalk": "^4.1.1",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"tsx": "^4.6.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@nocobase/devtools": "0.21.0-alpha.
|
|
28
|
+
"@nocobase/devtools": "0.21.0-alpha.8"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
32
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
33
33
|
"directory": "packages/core/cli"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "bed69485709bc8e268285b50debfc1ebfd7a30c7"
|
|
36
36
|
}
|
package/src/commands/e2e.js
CHANGED
|
@@ -85,6 +85,7 @@ async function appReady() {
|
|
|
85
85
|
async function runApp(options = {}) {
|
|
86
86
|
console.log('installing...');
|
|
87
87
|
await run('nocobase', ['install', '-f']);
|
|
88
|
+
await run('nocobase', ['pm', 'enable-all']);
|
|
88
89
|
if (await isPortReachable(process.env.APP_PORT)) {
|
|
89
90
|
console.log('app started');
|
|
90
91
|
return;
|
|
@@ -232,6 +233,7 @@ module.exports = (cli) => {
|
|
|
232
233
|
|
|
233
234
|
e2e.command('reinstall-app').action(async (options) => {
|
|
234
235
|
await run('nocobase', ['install', '-f'], options);
|
|
236
|
+
await run('nocobase', ['pm2', 'enable-all']);
|
|
235
237
|
});
|
|
236
238
|
|
|
237
239
|
e2e.command('install-deps').action(async () => {
|
|
@@ -24,7 +24,7 @@ module.exports = (cli) => {
|
|
|
24
24
|
const packageRoots = getPackagesDir(false);
|
|
25
25
|
for (const dir of packageRoots) {
|
|
26
26
|
try {
|
|
27
|
-
await run('yarn', ['test:server', '--coverage'
|
|
27
|
+
await run('yarn', ['test:server', dir, '--coverage']);
|
|
28
28
|
} catch (e) {
|
|
29
29
|
continue;
|
|
30
30
|
}
|
|
@@ -35,7 +35,7 @@ module.exports = (cli) => {
|
|
|
35
35
|
const packageRoots = getPackagesDir(true);
|
|
36
36
|
for (const dir of packageRoots) {
|
|
37
37
|
try {
|
|
38
|
-
await run('yarn', ['test:client', '--coverage'
|
|
38
|
+
await run('yarn', ['test:client', dir, '--coverage']);
|
|
39
39
|
} catch (e) {
|
|
40
40
|
continue;
|
|
41
41
|
}
|
package/src/commands/test.js
CHANGED
|
@@ -20,7 +20,6 @@ function addTestCommand(name, cli) {
|
|
|
20
20
|
.arguments('[paths...]')
|
|
21
21
|
.allowUnknownOption()
|
|
22
22
|
.action(async (paths, opts) => {
|
|
23
|
-
process.argv.push('--disable-console-intercept');
|
|
24
23
|
if (name === 'test:server') {
|
|
25
24
|
process.env.TEST_ENV = 'server-side';
|
|
26
25
|
} else if (name === 'test:client') {
|