create-nocobase-app 0.17.0-alpha.7 → 0.18.0-alpha.2

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": "create-nocobase-app",
3
- "version": "0.17.0-alpha.7",
3
+ "version": "0.18.0-alpha.2",
4
4
  "main": "src/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
@@ -18,5 +18,5 @@
18
18
  "url": "git+https://github.com/nocobase/nocobase.git",
19
19
  "directory": "packages/core/create-nocobase-app"
20
20
  },
21
- "gitHead": "91377a3abd1124f79fb3819f2d0e80905e091a32"
21
+ "gitHead": "92611d2eec3110bcb5ac599054e5191591df055a"
22
22
  }
@@ -0,0 +1,40 @@
1
+ ################# NOCOBASE APPLICATION #################
2
+
3
+ # !!! When `APP_ENV=production`, opening http://localhost:13000/ will show "Not Found".
4
+ # !!! It is recommended to use nginx to proxy static files. For example https://github.com/nocobase/nocobase/blob/main/docker/nocobase/nocobase.conf
5
+ APP_ENV=development
6
+ APP_PORT=20000
7
+ APP_KEY=test-key-e2e
8
+ SOCKET_PATH=storage/gateway-e2e.sock
9
+ __E2E__=true
10
+
11
+ APPEND_PRESET_BUILT_IN_PLUGINS=mock-collections
12
+
13
+ API_BASE_PATH=/api/
14
+ API_BASE_URL=
15
+
16
+ PROXY_TARGET_URL=
17
+
18
+ LOGGER_TRANSPORT=
19
+ LOGGER_LEVEL=
20
+ LOGGER_BASE_PATH=storage/logs-e2e
21
+
22
+ ################# DATABASE #################
23
+
24
+ DB_DIALECT=sqlite
25
+ DB_STORAGE=storage/db/nocobase-e2e.sqlite
26
+ DB_TABLE_PREFIX=
27
+ # DB_HOST=localhost
28
+ # DB_PORT=5432
29
+ # DB_DATABASE=nocobase-e2e
30
+ # DB_USER=nocobase
31
+ # DB_PASSWORD=nocobase
32
+ # DB_LOGGING=on
33
+ # DB_UNDERSCORED=false
34
+
35
+ ################# STORAGE (Initialization only) #################
36
+
37
+ INIT_ROOT_EMAIL=admin@nocobase.com
38
+ INIT_ROOT_PASSWORD=admin123
39
+ INIT_ROOT_NICKNAME=Super Admin
40
+ INIT_ROOT_USERNAME=nocobase
@@ -0,0 +1,22 @@
1
+ APP_ENV=development
2
+ APP_PORT=13000
3
+ APP_KEY=test-key
4
+
5
+ API_BASE_PATH=/api/
6
+ API_BASE_URL=
7
+
8
+ ################# DATABASE #################
9
+
10
+ DB_DIALECT=sqlite
11
+ DB_STORAGE=storage/db/nocobase-test.sqlite
12
+ # DB_HOST=localhost
13
+ # DB_PORT=5432
14
+ # DB_DATABASE=nocobase-test
15
+ # DB_USER=nocobase
16
+ # DB_PASSWORD=nocobase
17
+ # DB_LOGGING=on
18
+
19
+ INIT_ROOT_EMAIL=admin@nocobase.com
20
+ INIT_ROOT_PASSWORD=admin123
21
+ INIT_ROOT_NICKNAME=Super Admin
22
+ INIT_ROOT_USERNAME=nocobase
@@ -3,6 +3,8 @@ lib/
3
3
  esm/
4
4
  es/
5
5
  .env
6
+ .env.test
7
+ .env.e2e
6
8
  .DS_Store
7
9
  yarn-error.log
8
10
  lerna-debug.log
@@ -16,5 +18,5 @@ coverage
16
18
  docs-dist/
17
19
  .npmrc
18
20
  dist/
19
- docker/**/storage
21
+ /docker/**/storage
20
22
  /storage/.app-dev
@@ -16,6 +16,7 @@
16
16
  "clean": "nocobase clean",
17
17
  "build": "nocobase build",
18
18
  "test": "nocobase test",
19
+ "e2e": "nocobase e2e",
19
20
  "postinstall": "nocobase postinstall",
20
21
  "lint": "eslint ."
21
22
  },
@@ -0,0 +1,3 @@
1
+ import { defineConfig } from '@nocobase/test/e2e';
2
+
3
+ export default defineConfig();
@@ -0,0 +1,3 @@
1
+ import { defineConfig } from '@nocobase/test';
2
+
3
+ export default defineConfig();