@cerema/cadriciel 1.0.3 → 1.0.4
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/cmd/init.js +32 -0
- package/package.json +1 -1
package/cmd/init.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module.exports = function (program) {
|
|
2
2
|
var UID = require('shortid').generate();
|
|
3
3
|
const inquirer = require('inquirer');
|
|
4
|
+
const chalk = require('chalk-v2');
|
|
4
5
|
const path = require('path');
|
|
5
6
|
const AdmZip = require('adm-zip');
|
|
6
7
|
const ora = require('ora');
|
|
@@ -108,6 +109,34 @@ module.exports = function (program) {
|
|
|
108
109
|
gitIgnore
|
|
109
110
|
);
|
|
110
111
|
spinner.succeed(`projet ${o.project} crée avec succès.`);
|
|
112
|
+
console.log(' ');
|
|
113
|
+
console.log(
|
|
114
|
+
'______________________________________________________________'
|
|
115
|
+
);
|
|
116
|
+
console.log(chalk.bold('Prochaines étapes :'));
|
|
117
|
+
console.log(' ');
|
|
118
|
+
console.log('cd ' + o.project);
|
|
119
|
+
console.log('npm i ' + '(ou yarn)');
|
|
120
|
+
console.log(' ');
|
|
121
|
+
console.log(
|
|
122
|
+
chalk.bold("Pour lancer l'environnement local de développement :")
|
|
123
|
+
);
|
|
124
|
+
console.log(chalk.green('✳️ nécessite docker et docker-compose\n'));
|
|
125
|
+
console.log('npm run start (ou yarn start)');
|
|
126
|
+
console.log('---\n');
|
|
127
|
+
console.log(
|
|
128
|
+
chalk.bold(
|
|
129
|
+
"Pour arrêter l'environnement local de développement :\n"
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
console.log('npm run stop (ou yarn stop)');
|
|
133
|
+
console.log('---\n');
|
|
134
|
+
console.log(chalk.bold('Pour lancer le projet :\n'));
|
|
135
|
+
console.log('npm run dev (or yarn dev)\n');
|
|
136
|
+
console.log(
|
|
137
|
+
'______________________________________________________________'
|
|
138
|
+
);
|
|
139
|
+
|
|
111
140
|
console.log('\n🚀 Happy coding !\n');
|
|
112
141
|
});
|
|
113
142
|
});
|
|
@@ -118,6 +147,9 @@ module.exports = function (program) {
|
|
|
118
147
|
const templates = await getTemplates();
|
|
119
148
|
var tpl = [];
|
|
120
149
|
for (let i = 0; i < templates.length; i++) tpl.push(templates[i].title);
|
|
150
|
+
console.log(
|
|
151
|
+
'\n😃 ' + chalk.bold('Tout grand projet commence par un nom !\n')
|
|
152
|
+
);
|
|
121
153
|
const questions = [
|
|
122
154
|
{
|
|
123
155
|
type: 'input',
|