easy-soft-develop 2.0.186 → 2.0.188

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.0.186",
3
+ "version": "2.0.188",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -1,3 +1,4 @@
1
+ const { promptEmptyLine } = require('../tools/meta');
1
2
  const {
2
3
  createDevelopFiles,
3
4
  createCommitlintConfigFile,
@@ -12,6 +13,8 @@ exports.run = function () {
12
13
  'develop files update finish',
13
14
  );
14
15
 
16
+ promptEmptyLine();
17
+
15
18
  createCommitlintConfigFile();
16
19
  createBabelConfigFile();
17
20
  createNcuConfigFile();
@@ -224,6 +224,8 @@ function initialEnvironment() {
224
224
 
225
225
  createDevelopFiles();
226
226
 
227
+ promptEmptyLine();
228
+
227
229
  promptInfo('add global dev packages');
228
230
 
229
231
  exec('npx ncu -u --packageFile ./**/package.json');
@@ -258,12 +260,16 @@ function createLernaProject(name) {
258
260
  if (!existDirectorySync(`./.git`)) {
259
261
  promptSuccess(`step *: init git(branch main) success`);
260
262
 
263
+ promptInfo('git init -b main');
261
264
  exec('git init -b main');
262
265
 
266
+ promptInfo('create README.md');
263
267
  writeFileSync('./README.md', '', { coverFile: false });
264
268
 
269
+ promptInfo('git add -A');
265
270
  exec('git add -A');
266
271
 
272
+ promptInfo('git commit -m "first commit"');
267
273
  exec('git commit -m "first commit"');
268
274
 
269
275
  promptEmptyLine();
@@ -562,7 +562,10 @@ initialEnvironment({
562
562
  }
563
563
  }
564
564
 
565
- function createDevelopFiles(waitMessage = '', successMessage = '') {
565
+ function createDevelopFiles(
566
+ waitMessage = 'will create develop assist file, please wait a moment',
567
+ successMessage = '',
568
+ ) {
566
569
  if (!checkStringIsEmpty(waitMessage)) {
567
570
  promptInfo(waitMessage);
568
571
  }
@@ -685,7 +688,6 @@ function createDevelopFiles(waitMessage = '', successMessage = '') {
685
688
 
686
689
  if (!checkStringIsEmpty(successMessage)) {
687
690
  promptSuccess(successMessage);
688
- promptEmptyLine();
689
691
  }
690
692
  }
691
693