@cocreate/cli 1.13.14 → 1.13.16

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.13.16](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.15...v1.13.16) (2022-11-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump dependencies ([50d939e](https://github.com/CoCreate-app/CoCreate-cli/commit/50d939e79862bd5505c8e018985cb4e19822579c))
7
+
8
+ ## [1.13.15](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.14...v1.13.15) (2022-11-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * json formating on bump ([6a4f780](https://github.com/CoCreate-app/CoCreate-cli/commit/6a4f78077f85f8fca20fc71fe8c9294ee7f07678))
14
+
1
15
  ## [1.13.14](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.13...v1.13.14) (2022-11-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.13.14",
3
+ "version": "1.13.16",
4
4
  "description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",
5
5
  "keywords": [
6
6
  "cli",
@@ -73,8 +73,8 @@
73
73
  "webpack-log": "^3.0.1"
74
74
  },
75
75
  "dependencies": {
76
- "@cocreate/docs": "^1.4.4",
77
- "@cocreate/hosting": "^1.6.3",
76
+ "@cocreate/docs": "^1.4.6",
77
+ "@cocreate/hosting": "^1.6.5",
78
78
  "colors": "latest",
79
79
  "glob": "^7.1.7",
80
80
  "got": "latest",
package/repositories.js CHANGED
@@ -8,10 +8,10 @@ module.exports = [
8
8
  'path': '/home/ubuntu/CoCreateServer/CoCreateCSS',
9
9
  'repo': 'github.com/CoCreate-app/CoCreateCSS.git'
10
10
  },
11
- {
12
- 'path': '/home/ubuntu/CoCreateServer/CoCreate-admin',
13
- 'repo': 'github.com/CoCreate-app/CoCreate-admin.git'
14
- },
11
+ // {
12
+ // 'path': '/home/ubuntu/CoCreateServer/CoCreate-admin',
13
+ // 'repo': 'github.com/CoCreate-app/CoCreate-admin.git'
14
+ // },
15
15
  {
16
16
  'path': '/home/ubuntu/CoCreateServer/CoCreate-website',
17
17
  'repo': 'github.com/CoCreate-app/CoCreate-website.git'
package/src/coc.js CHANGED
@@ -99,7 +99,9 @@ let repoFullMeta = repos.map(meta => {
99
99
 
100
100
  (async() => {
101
101
  if (command == 'bump'){
102
- console.log('bumping')
102
+ console.log('bumping')
103
+ let predefined = path.resolve(__dirname, 'commands', command + '.js');
104
+ require(predefined)(repos, repos )
103
105
  }
104
106
  if (command == 'gitConfig'){
105
107
  let predefined = path.resolve(__dirname, 'commands', command + '.js');
@@ -28,6 +28,26 @@ let item = {}
28
28
 
29
29
  // })();
30
30
 
31
+ // module.exports = async function run() {
32
+ // try {
33
+ // for (let [index, name] of nameList.entries()) {
34
+ // getVersions(pathList[index] + '/package.json', `@${name}`)
35
+ // }
36
+ // console.log('bump versions', item)
37
+
38
+ // for (let [index, name] of nameList.entries()) {
39
+ // await bumpVersion(pathList[index] + '/package.json', name)
40
+ // }
41
+ // } catch (err) {
42
+ // failed.push({ name: 'GENERAL', des: err.message })
43
+ // }
44
+
45
+ // console.log('completed')
46
+ // return failed
47
+ // // process.exit()
48
+ // }
49
+
50
+
31
51
  async function run() {
32
52
  // let failed = [];
33
53
 
@@ -90,8 +110,8 @@ function bumpVersion(filePath, name) {
90
110
  }
91
111
  }
92
112
 
93
- let str = JSON.stringify(object)
94
- let formated = prettier.format(str, { semi: false, parser: "json" });
113
+ // let str = JSON.stringify(object, null, 2)
114
+ // let formated = prettier.format(str, { semi: false, parser: "json" });
95
115
 
96
116
  filePath = filePath.replace('/package.json', '')
97
117
  let Path = path.resolve(filePath, 'package.json')
@@ -99,7 +119,7 @@ function bumpVersion(filePath, name) {
99
119
  fs.unlinkSync(Path)
100
120
  }
101
121
 
102
- fs.writeFileSync(Path, formated)
122
+ fs.writeFileSync(Path, JSON.stringify(object, null, 2))
103
123
  }
104
124
  }
105
125