@corva/create-app 0.23.0-1 → 0.23.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 +38 -0
- package/index.js +12 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
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.23.0](https://github.com/corva-ai/create-corva-app/compare/v0.22.0...v0.23.0) (2022-03-16)
|
|
6
|
+
|
|
7
|
+
## [0.23.0-rc.0](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-2...v0.23.0-rc.0) (2022-03-01)
|
|
8
|
+
|
|
9
|
+
## [0.23.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-1...v0.23.0-2) (2022-02-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **DC-3051:** run release command for all app types ([5f7a2d8](https://github.com/corva-ai/create-corva-app/commit/5f7a2d850f29c903cf2c4cb6f83c63192519c192))
|
|
15
|
+
|
|
16
|
+
## [0.23.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.21.0...v0.23.0-1) (2022-02-21)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **DC-2291:** add release script to FE dc apps ([fe1bda2](https://github.com/corva-ai/create-corva-app/commit/fe1bda29aa2b68d6912894353d731e73aadeb47b))
|
|
22
|
+
* **DC-2291:** change optional chaining to lodash get ([2ab2c75](https://github.com/corva-ai/create-corva-app/commit/2ab2c755f19c760f6a098edb4b74eaa18ce3194e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **DC-2291:** fix pr comments, read auth token from .env file ([386c9ec](https://github.com/corva-ai/create-corva-app/commit/386c9ec58f4eb04f6728ca663c8c40436babdf3a))
|
|
28
|
+
|
|
29
|
+
## [0.23.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.22.0-rc.0...v0.23.0-0) (2022-02-15)
|
|
30
|
+
|
|
31
|
+
## [0.23.0-rc.0](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-2...v0.23.0-rc.0) (2022-03-01)
|
|
32
|
+
|
|
33
|
+
## [0.23.0-2](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-1...v0.23.0-2) (2022-02-21)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **DC-3051:** run release command for all app types ([5f7a2d8](https://github.com/corva-ai/create-corva-app/commit/5f7a2d850f29c903cf2c4cb6f83c63192519c192))
|
|
39
|
+
|
|
5
40
|
## [0.23.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.23.0-0...v0.23.0-1) (2022-02-17)
|
|
6
41
|
|
|
7
42
|
|
|
@@ -238,6 +273,9 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
238
273
|
## [0.6.0-0](https://github.com/facebook/create-react-app/compare/v0.5.0-0...v0.6.0-0) (2021-06-16)
|
|
239
274
|
|
|
240
275
|
## [0.5.0-0](https://github.com/facebook/create-react-app/compare/v0.2.29...v0.5.0-0) (2021-06-02)
|
|
276
|
+
## [0.4.0](https://github.com/facebook/create-react-app/compare/v0.4.0-rc.0...v0.4.0) (2021-06-16)
|
|
277
|
+
|
|
278
|
+
## [0.4.0-rc.0](https://github.com/facebook/create-react-app/compare/v0.2.29...v0.4.0-rc.0) (2021-06-02)
|
|
241
279
|
|
|
242
280
|
### [0.4.3](https://github.com/facebook/create-react-app/compare/v0.4.0...v0.4.3) (2021-05-26)
|
|
243
281
|
|
package/index.js
CHANGED
|
@@ -34,7 +34,6 @@ const shouldUseYarn = () => packageManager === YARN_EXECUTABLE;
|
|
|
34
34
|
const getLockFileName = (manager) =>
|
|
35
35
|
manager === YARN_EXECUTABLE ? 'yarn.lock' : 'package-lock.json';
|
|
36
36
|
|
|
37
|
-
|
|
38
37
|
let projectName;
|
|
39
38
|
let program;
|
|
40
39
|
|
|
@@ -52,7 +51,7 @@ function checkNodeVersion() {
|
|
|
52
51
|
console.log(
|
|
53
52
|
chalk.red(
|
|
54
53
|
`\nYou are using Node ${process.version}.\n\n` +
|
|
55
|
-
|
|
54
|
+
`Please update to Node 10 or higher for a better, fully supported experience.\n`
|
|
56
55
|
)
|
|
57
56
|
);
|
|
58
57
|
// Fall back to latest supported react-scripts on Node 4
|
|
@@ -88,7 +87,7 @@ async function initialChecks() {
|
|
|
88
87
|
projectName = name;
|
|
89
88
|
})
|
|
90
89
|
.option('-z, --zip <type>', 'zip app source')
|
|
91
|
-
.option('--release
|
|
90
|
+
.option('--release', 'release app')
|
|
92
91
|
.addOption(
|
|
93
92
|
new commander.Option(`-p, --packageManager [string]`, 'package manager to use')
|
|
94
93
|
.default(YARN_EXECUTABLE)
|
|
@@ -97,7 +96,11 @@ async function initialChecks() {
|
|
|
97
96
|
|
|
98
97
|
manifestConstants.manifestOptions(projectName).forEach((value) => {
|
|
99
98
|
const type = typeof value.default;
|
|
100
|
-
const option = new commander.Option(
|
|
99
|
+
const option = new commander.Option(
|
|
100
|
+
`${value.alias ? `-${value.alias}, ` : ''}--${value.name} [${(type !== 'undefined' && type) ||
|
|
101
|
+
'string'}]`,
|
|
102
|
+
value.message
|
|
103
|
+
);
|
|
101
104
|
|
|
102
105
|
if (value.choices) {
|
|
103
106
|
if (typeof value.choices === 'function') {
|
|
@@ -110,7 +113,7 @@ async function initialChecks() {
|
|
|
110
113
|
}
|
|
111
114
|
|
|
112
115
|
if (type === 'number') {
|
|
113
|
-
option.argParser(Number)
|
|
116
|
+
option.argParser(Number);
|
|
114
117
|
}
|
|
115
118
|
|
|
116
119
|
program.addOption(option);
|
|
@@ -130,7 +133,7 @@ async function initialChecks() {
|
|
|
130
133
|
process.exit(0);
|
|
131
134
|
}
|
|
132
135
|
if (opts.release) {
|
|
133
|
-
|
|
136
|
+
return uiScripts.releaseAppZip();
|
|
134
137
|
process.exit(0);
|
|
135
138
|
}
|
|
136
139
|
|
|
@@ -360,6 +363,9 @@ async function helpCommands() {
|
|
|
360
363
|
console.log(chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}zip`));
|
|
361
364
|
console.log(' Bundles the app into ZIP file in app root directory');
|
|
362
365
|
console.log();
|
|
366
|
+
console.log(chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}release`));
|
|
367
|
+
console.log(' Uploads the app ZIP to Corva');
|
|
368
|
+
console.log();
|
|
363
369
|
}
|
|
364
370
|
|
|
365
371
|
initialChecks();
|