@corva/create-app 0.19.0-rc.0 → 0.20.0-rc.0
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/CHANGELOG.md +17 -1
- package/constants/manifest.js +15 -4
- package/helpers/manifest.js +2 -1
- package/package.json +2 -2
- package/template/ui/js/.env +2 -0
- package/template/ui/js/.env.sample +6 -0
- package/template/ui/ts/.env +2 -0
- package/template/ui/ts/.env.sample +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## [0.
|
|
5
|
+
## [0.20.0-rc.0](https://github.com/corva-ai/create-corva-app/compare/v0.20.0-2...v0.20.0-rc.0) (2022-01-18)
|
|
6
|
+
|
|
7
|
+
## [0.20.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.20.0-1...v0.20.0-2) (2022-01-17)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **DC-2798:** add .env file ([42eb6fb](https://github.com/corva-ai/create-corva-app/commit/42eb6fb256c6b5238b449fa0d81bafa930dbbd91))
|
|
13
|
+
|
|
14
|
+
## [0.20.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.20.0-0...v0.20.0-1) (2022-01-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* allow to specify depth_milestone ([833d570](https://github.com/corva-ai/create-corva-app/commit/833d570ef11bc73605524d479db43e293bf2e31f))
|
|
20
|
+
|
|
21
|
+
## [0.20.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.19.0-0...v0.20.0-0) (2022-01-04)
|
|
6
22
|
|
|
7
23
|
## [0.19.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.18.0-1...v0.19.0-0) (2021-12-21)
|
|
8
24
|
|
package/constants/manifest.js
CHANGED
|
@@ -86,7 +86,7 @@ const getManifestMandatoryKeys = (opts) => {
|
|
|
86
86
|
return acc;
|
|
87
87
|
}, []);
|
|
88
88
|
|
|
89
|
-
const { appType } = opts;
|
|
89
|
+
const { appType, schedulerType } = opts;
|
|
90
90
|
|
|
91
91
|
if (appType) {
|
|
92
92
|
if (appType !== APP_TYPES.UI) {
|
|
@@ -94,8 +94,13 @@ const getManifestMandatoryKeys = (opts) => {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
if (appType === APP_TYPES.SCHEDULER) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
if (!schedulerType) {
|
|
98
|
+
keys.push('schedulerType');
|
|
99
|
+
} else if (schedulerType === SCHEDULER_TYPE_DEPTH.value) {
|
|
100
|
+
keys.push('depthMilestone');
|
|
101
|
+
} else {
|
|
102
|
+
keys.push('cronString');
|
|
103
|
+
}
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
|
|
@@ -129,7 +134,13 @@ const manifestOptions = (projectName) => [
|
|
|
129
134
|
name: 'cronString',
|
|
130
135
|
message: 'Provide CRON string for the scheduler',
|
|
131
136
|
default: '*/5 * * * *',
|
|
132
|
-
when: (answers) => answers.
|
|
137
|
+
when: (answers) => answers.schedulerType && answers.schedulerType !== SCHEDULER_TYPE_DEPTH.value,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'depthMilestone',
|
|
141
|
+
message: 'Provide depth milestone for the scheduler',
|
|
142
|
+
default: 1,
|
|
143
|
+
when: (answers) => answers.schedulerType === SCHEDULER_TYPE_DEPTH.value,
|
|
133
144
|
},
|
|
134
145
|
{
|
|
135
146
|
name: 'appKey',
|
package/helpers/manifest.js
CHANGED
|
@@ -57,7 +57,7 @@ function _defaultManifestProperties({ type, runtime }) {
|
|
|
57
57
|
return manifestConstants.defaultDataAppNodeManifest;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
function defaultAppSettings({ type, schedulerType, cronString }) {
|
|
60
|
+
function defaultAppSettings({ type, schedulerType, cronString, depthMilestone }) {
|
|
61
61
|
if (!schedulerType) {
|
|
62
62
|
return {};
|
|
63
63
|
}
|
|
@@ -72,6 +72,7 @@ function defaultAppSettings({ type, schedulerType, cronString }) {
|
|
|
72
72
|
...schedulerAppSettings,
|
|
73
73
|
scheduler_type: schedulerType,
|
|
74
74
|
cron_string: cronString,
|
|
75
|
+
depth_milestone: depthMilestone
|
|
75
76
|
},
|
|
76
77
|
};
|
|
77
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"release": "git add -A && standard-version -a"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"archiver": "^5.
|
|
35
|
+
"archiver": "^5.3.0",
|
|
36
36
|
"chalk": "4.1.0",
|
|
37
37
|
"commander": "^8.2.0",
|
|
38
38
|
"conventional-changelog-cli": "^2.1.0",
|