@corva/create-app 0.34.0-3 → 0.34.0-6
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/common/python/Makefile +5 -4
- package/common/python/gitignore +1 -0
- package/lib/index.js +6 -6
- package/package.json +4 -9
package/common/python/Makefile
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
.DEFAULT_GOAL := default
|
|
3
3
|
|
|
4
4
|
default: install
|
|
5
|
-
install: venv
|
|
5
|
+
install: prepare-venv
|
|
6
6
|
@. venv/bin/activate && pip install -r requirements.txt
|
|
7
|
-
venv:
|
|
8
|
-
@
|
|
7
|
+
prepare-venv:
|
|
8
|
+
@which python3 > /dev/null || (echo "python3 not found, please install it first" && exit 1;)
|
|
9
|
+
@test -d venv || python3 -m venv venv
|
|
9
10
|
bundle:
|
|
10
11
|
@create-corva-app zip . --bump-version=skip
|
|
11
12
|
release:
|
|
12
13
|
@create-corva-app release . --bump-version=skip
|
|
13
|
-
test: venv
|
|
14
|
+
test: prepare-venv
|
|
14
15
|
@. venv/bin/activate && pytest
|
package/common/python/gitignore
CHANGED
package/lib/index.js
CHANGED
|
@@ -34,6 +34,7 @@ const { ZIP_FLOW } = require('./flows/zip');
|
|
|
34
34
|
const { bumpVersionOptionDeprecated, bumpVersionOption } = require('./bump-version.option');
|
|
35
35
|
const { Manifest } = require('./flows/lib/manifest');
|
|
36
36
|
const { resolveAppRuntime } = require('./helpers/resolve-app-runtime');
|
|
37
|
+
const { existsSync } = require('fs');
|
|
37
38
|
|
|
38
39
|
const writejsonOptions = {
|
|
39
40
|
spaces: 2,
|
|
@@ -54,7 +55,7 @@ function checkNodeVersion() {
|
|
|
54
55
|
console.log(
|
|
55
56
|
chalk.red(
|
|
56
57
|
`\nYou are using Node ${process.version}.\n\n` +
|
|
57
|
-
|
|
58
|
+
`Please update to Node 16 or higher for a better, fully supported experience.\n`
|
|
58
59
|
)
|
|
59
60
|
);
|
|
60
61
|
// Fall back to latest supported react-scripts on Node 4
|
|
@@ -84,7 +85,7 @@ function checkOptions(opts) {
|
|
|
84
85
|
const printDeprecationNotice = (param) =>
|
|
85
86
|
console.warn(
|
|
86
87
|
chalk.bgYellowBright`DEPRECATED OPTION: ${param}` +
|
|
87
|
-
|
|
88
|
+
` Use ${chalk.cyan(`create-corva-app ${param} .`)} instead`
|
|
88
89
|
);
|
|
89
90
|
|
|
90
91
|
async function initialChecks() {
|
|
@@ -106,8 +107,7 @@ async function initialChecks() {
|
|
|
106
107
|
manifestConstants.manifestOptions().forEach((value) => {
|
|
107
108
|
const type = typeof value.default;
|
|
108
109
|
const option = new Option(
|
|
109
|
-
`${value.alias ? `-${value.alias}, ` : ''}--${value.name} [${
|
|
110
|
-
(type !== 'undefined' && type) || 'string'
|
|
110
|
+
`${value.alias ? `-${value.alias}, ` : ''}--${value.name} [${(type !== 'undefined' && type) || 'string'
|
|
111
111
|
}]`,
|
|
112
112
|
value.message
|
|
113
113
|
);
|
|
@@ -457,8 +457,8 @@ async function installApp(root, manifest, runtime) {
|
|
|
457
457
|
const opts = { stdio: ['inherit', 'inherit', 'pipe'], cwd: root }
|
|
458
458
|
|
|
459
459
|
console.log(chalk.yellow(`Installing template dependencies using ${runtime.packageManager}...`));
|
|
460
|
-
const proc = manifest.isJs() ?
|
|
461
|
-
spawn.sync(`\\.
|
|
460
|
+
const proc = manifest.isJs() && existsSync(`${os.homedir()}/.nvm/nvm.sh`) ?
|
|
461
|
+
spawn.sync(`\\. ${os.homedir()}/.nvm/nvm.sh && nvm i && ${command} ${args.join(' ')}`, { shell: true, ...opts }) :
|
|
462
462
|
spawn.sync(command, args, opts);
|
|
463
463
|
|
|
464
464
|
if (proc.stderr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.34.0-
|
|
3
|
+
"version": "0.34.0-6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -36,28 +36,23 @@
|
|
|
36
36
|
"axios": "^0.25.0",
|
|
37
37
|
"chalk": "4.1.0",
|
|
38
38
|
"commander": "^9.1.0",
|
|
39
|
-
"conventional-changelog-cli": "^2.1.0",
|
|
40
39
|
"cross-spawn": "7.0.3",
|
|
41
40
|
"debug": "^4.3.4",
|
|
42
41
|
"dotenv": "^16.0.0",
|
|
43
|
-
"envinfo": "7.5.1",
|
|
44
42
|
"figlet": "^1.5.0",
|
|
45
43
|
"form-data": "^4.0.0",
|
|
46
44
|
"fs-extra": "9.0.1",
|
|
47
45
|
"glob": "^8.0.1",
|
|
48
|
-
"
|
|
49
|
-
"inquirer": "7.3.2",
|
|
46
|
+
"inquirer": "^8.2.3",
|
|
50
47
|
"is-glob": "^4.0.3",
|
|
51
48
|
"lodash": "^4.17.21",
|
|
52
49
|
"npm-api": "^1.0.0",
|
|
53
|
-
"semver": "7.3.2"
|
|
54
|
-
"tar-pack": "3.4.1",
|
|
55
|
-
"tmp": "0.2.1",
|
|
56
|
-
"validate-npm-package-name": "3.0.0"
|
|
50
|
+
"semver": "7.3.2"
|
|
57
51
|
},
|
|
58
52
|
"devDependencies": {
|
|
59
53
|
"@corva/eslint-config-browser": "^0.0.4",
|
|
60
54
|
"@corva/eslint-config-node": "^4.2.0",
|
|
55
|
+
"conventional-changelog-cli": "^2.1.0",
|
|
61
56
|
"prettier": "^2.4.1",
|
|
62
57
|
"standard-version": "^9.0.0"
|
|
63
58
|
},
|