create-nocobase-app 0.7.0-alpha.22 → 0.7.0-alpha.23

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.7.0-alpha.22",
3
+ "version": "0.7.0-alpha.23",
4
4
  "main": "src/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "licenses": [
@@ -26,5 +26,5 @@
26
26
  "url": "git+https://github.com/nocobase/nocobase.git",
27
27
  "directory": "packages/core/create-nocobase-app"
28
28
  },
29
- "gitHead": "dc5e9c80ed57ffd9b2f652f68a9444bfb79647db"
29
+ "gitHead": "32ce4ea85201140eeb78f33f443038dfffb02083"
30
30
  }
package/src/create-app.js CHANGED
@@ -54,7 +54,7 @@ const getDatabaseOptionsFromCommandOptions = (commandOptions) => {
54
54
  if (!commandOptions.dbDialect || commandOptions.dbDialect === 'sqlite' || envs['DB_STORAGE']) {
55
55
  return {
56
56
  dialect: 'sqlite',
57
- storage: envs['DB_STORAGE'] || 'db.sqlite',
57
+ storage: envs['DB_STORAGE'] || 'storage/db/nocobase.sqlite',
58
58
  };
59
59
  }
60
60
 
@@ -0,0 +1,2 @@
1
+ *
2
+ !.gitignore
@@ -0,0 +1,2 @@
1
+ *
2
+ !.gitignore
@@ -1,26 +1,31 @@
1
+ ################# NOCOBASE APPLICATION #################
2
+
1
3
  NOCOBASE_ENV=development
4
+ JWT_SECRET=<%= jwtSecret %>
2
5
 
3
6
  SERVER_HOST=0.0.0.0
4
7
  SERVER_PORT=3000
5
8
 
6
- JWT_SECRET=<%= jwtSecret %>
7
-
8
9
  # api base path endpoint for app(web)
9
10
  SERVER_BASE_PATH=/api/
10
11
 
11
12
  # api server access point for app(web when build)
12
13
  SERVER_BASE_URL=
13
14
 
15
+ ################# DATABASE #################
16
+
14
17
  DB_LOG_SQL=off
15
18
  <%= dbEnvs %>
16
19
 
20
+ ################# STORAGE (Initialization only) #################
21
+
17
22
  # local or ali-oss
18
23
  DEFAULT_STORAGE_TYPE=local
19
- STORAGE_TYPE=local
20
24
 
21
25
  # LOCAL STORAGE
22
26
  LOCAL_STORAGE_USE_STATIC_SERVER=true
23
27
  LOCAL_STORAGE_BASE_URL=
28
+ LOCAL_STORAGE_DEST=storage/uploads
24
29
 
25
30
  # ALI OSS STORAGE
26
31
  ALI_OSS_STORAGE_BASE_URL=
@@ -7,14 +7,14 @@ module.exports = (opts) => {
7
7
  workspaces: ['packages/app/*', 'packages/plugins/*'],
8
8
  license: 'MIT',
9
9
  scripts: {
10
- start: 'concurrently --kill-others "npm run start-server" "npm run start-client"',
10
+ start: 'concurrently --kill-others "yarn start-server -s" "yarn start-client"',
11
11
  bootstrap: 'lerna bootstrap',
12
12
  clean: 'rimraf -rf packages/{app,plugins}/*/{lib,esm,dist} && lerna clean',
13
13
  nocobase:
14
14
  'cross-env DOTENV_CONFIG_PATH=.env ts-node-dev -r dotenv/config -r tsconfig-paths/register ./packages/app/server/src/index.ts',
15
15
  'nocobase-prod': 'cross-env DOTENV_CONFIG_PATH=.env node -r dotenv/config packages/app/server/lib/index.js',
16
- 'start-client': 'cd packages/app/client && npm run start',
17
- 'start-server': 'npm run nocobase start',
16
+ 'start-client': 'cd packages/app/client && yarn start',
17
+ 'start-server': 'yarn nocobase start',
18
18
  'start-pm2': 'pm2-runtime start --node-args="-r dotenv/config" packages/app/server/lib/index.js -- start',
19
19
  build: 'lerna run build',
20
20
  'build-docs': 'dumi build',