@nocobase/cli 2.0.0-alpha.19 → 2.0.0-alpha.20
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/nocobase.conf.tpl +20 -0
- package/package.json +4 -4
- package/src/commands/test.js +1 -1
package/nocobase.conf.tpl
CHANGED
|
@@ -50,6 +50,26 @@ server {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
location = /docs {
|
|
54
|
+
return 301 /docs/;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
location /docs/ {
|
|
58
|
+
alias {{cwd}}/docs/;
|
|
59
|
+
try_files $uri $uri/ /docs/index.html;
|
|
60
|
+
add_header Last-Modified $date_gmt;
|
|
61
|
+
add_header Cache-Control 'no-store, no-cache';
|
|
62
|
+
add_header X-Robots-Tag "noindex, nofollow";
|
|
63
|
+
if_modified_since off;
|
|
64
|
+
expires off;
|
|
65
|
+
etag off;
|
|
66
|
+
location ~* \.(js|css)$ {
|
|
67
|
+
expires 365d;
|
|
68
|
+
add_header Cache-Control "public";
|
|
69
|
+
}
|
|
70
|
+
error_page 404 /docs/404.html;
|
|
71
|
+
}
|
|
72
|
+
|
|
53
73
|
location {{publicPath}} {
|
|
54
74
|
alias {{cwd}}/node_modules/@nocobase/app/dist/client/;
|
|
55
75
|
try_files $uri $uri/ /index.html;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.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": "2.0.0-alpha.
|
|
11
|
+
"@nocobase/app": "2.0.0-alpha.20",
|
|
12
12
|
"@nocobase/license-kit": "^0.2.17",
|
|
13
13
|
"@types/fs-extra": "^11.0.1",
|
|
14
14
|
"@umijs/utils": "3.5.20",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"tsx": "^4.19.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nocobase/devtools": "2.0.0-alpha.
|
|
30
|
+
"@nocobase/devtools": "2.0.0-alpha.20"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
35
35
|
"directory": "packages/core/cli"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "af5ff4eaa490349420135405128da466d72ac74c"
|
|
38
38
|
}
|
package/src/commands/test.js
CHANGED
|
@@ -54,7 +54,7 @@ function addTestCommand(name, cli) {
|
|
|
54
54
|
const first = paths?.[0];
|
|
55
55
|
if (!process.env.TEST_ENV && first) {
|
|
56
56
|
const key = first.split(path.sep).join('/');
|
|
57
|
-
if (key.includes('/client/') || key.includes('/flow-engine/')) {
|
|
57
|
+
if (key.includes('/client/') || key.includes('/client-v2/') || key.includes('/flow-engine/')) {
|
|
58
58
|
process.env.TEST_ENV = 'client-side';
|
|
59
59
|
} else {
|
|
60
60
|
process.env.TEST_ENV = 'server-side';
|