@cerema/cadriciel 1.4.36 → 1.4.37
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/cli/global/init.js +9 -3
- package/cli/global/load.js +8 -3
- package/package.json +1 -1
package/cli/global/init.js
CHANGED
|
@@ -103,9 +103,15 @@ Host cadriciel
|
|
|
103
103
|
const step1 = ora('📥 Téléchargement du projet en cours...').start();
|
|
104
104
|
try {
|
|
105
105
|
await updatePK();
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
try {
|
|
107
|
+
const git = await execPromise('git clone ' + response.prj.uri, {
|
|
108
|
+
cwd: process.cwd(),
|
|
109
|
+
});
|
|
110
|
+
} catch (e) {
|
|
111
|
+
step1.fail(chalk.red.bold(e.message.split('fatal :')[1]));
|
|
112
|
+
process.exit(1);
|
|
113
|
+
}
|
|
114
|
+
|
|
109
115
|
step1.succeed(chalk.bold('Téléchargement OK.'));
|
|
110
116
|
console.log(' ');
|
|
111
117
|
const step2 = ora('📦 Installation des dépendances...').start();
|
package/cli/global/load.js
CHANGED
|
@@ -61,9 +61,14 @@ Host cadriciel
|
|
|
61
61
|
const load = async (uri, title) => {
|
|
62
62
|
console.log(' ');
|
|
63
63
|
const step1 = ora('📥 Téléchargement du projet en cours...').start();
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
try {
|
|
65
|
+
const git = await execPromise('git clone ' + uri, {
|
|
66
|
+
cwd: process.cwd(),
|
|
67
|
+
});
|
|
68
|
+
} catch (e) {
|
|
69
|
+
step1.fail(chalk.red.bold(e.message.split('fatal :')[1]));
|
|
70
|
+
process.exit(1);
|
|
71
|
+
}
|
|
67
72
|
step1.succeed(chalk.bold('Téléchargement OK.'));
|
|
68
73
|
console.log(' ');
|
|
69
74
|
const step2 = ora('📦 Installation des dépendances...').start();
|