@cocreate/cli 1.13.10 → 1.13.12
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 +14 -0
- package/package.json +3 -3
- package/src/coc.js +3 -3
- package/src/commands/add.js +1 -1
- package/src/commands/bump.js +2 -2
- package/src/commands/fs/bump.js +2 -2
- package/src/commands/fs/config.js +3 -3
- package/src/commands/fs/package.js +1 -1
- package/src/commands/fs/webpack.js +1 -1
- package/src/commands/other/symbolic-crdt.js +2 -2
- package/src/commands/other/symbolic-link.js +2 -2
- package/src/repoList.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.13.12](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.11...v1.13.12) (2022-11-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bumped [@cocreate](https://github.com/cocreate) dependencies ([75b96e4](https://github.com/CoCreate-app/CoCreate-cli/commit/75b96e419544f61b647985820131e73de298f35a))
|
|
7
|
+
|
|
8
|
+
## [1.13.11](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.10...v1.13.11) (2022-11-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* workflow docs ([d27cb13](https://github.com/CoCreate-app/CoCreate-cli/commit/d27cb13aa17a03f61584c18fd5ff7794e4505e42))
|
|
14
|
+
|
|
1
15
|
## [1.13.10](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.9...v1.13.10) (2022-11-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.12",
|
|
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.
|
|
77
|
-
"@cocreate/hosting": "^1.
|
|
76
|
+
"@cocreate/docs": "^1.4.2",
|
|
77
|
+
"@cocreate/hosting": "^1.6.1",
|
|
78
78
|
"colors": "latest",
|
|
79
79
|
"glob": "^7.1.7",
|
|
80
80
|
"got": "latest",
|
package/src/coc.js
CHANGED
|
@@ -48,7 +48,7 @@ if (fs.existsSync(config['c'])) {
|
|
|
48
48
|
doAllRepo = false;
|
|
49
49
|
console.warn(`using ${config['c']} configuration`.yellow);
|
|
50
50
|
}
|
|
51
|
-
else if(fs.existsSync(currentRepoPath)) {
|
|
51
|
+
else if (fs.existsSync(currentRepoPath)) {
|
|
52
52
|
repos = getRepositories(currentRepoPath);
|
|
53
53
|
repoDir = path.dirname(currentRepoPath);
|
|
54
54
|
doAllRepo = true;
|
|
@@ -98,10 +98,10 @@ let repoFullMeta = repos.map(meta => {
|
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
(async() => {
|
|
101
|
-
if(command == 'bump'){
|
|
101
|
+
if (command == 'bump'){
|
|
102
102
|
console.log('bumping')
|
|
103
103
|
}
|
|
104
|
-
if(command == 'gitConfig'){
|
|
104
|
+
if (command == 'gitConfig'){
|
|
105
105
|
let predefined = path.resolve(__dirname, 'commands', command + '.js');
|
|
106
106
|
require(predefined)(repos, repos )
|
|
107
107
|
}
|
package/src/commands/add.js
CHANGED
package/src/commands/bump.js
CHANGED
|
@@ -67,7 +67,7 @@ async function run() {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
function getVersions(path, name) {
|
|
70
|
-
if(!fs.existsSync(path))
|
|
70
|
+
if (!fs.existsSync(path))
|
|
71
71
|
return console.error('path doesn\'t exist:', path)
|
|
72
72
|
let object = require(path)
|
|
73
73
|
if (object.name && object.version) {
|
|
@@ -76,7 +76,7 @@ function getVersions(path, name) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
function bumpVersion(filePath, name) {
|
|
79
|
-
if(!fs.existsSync(filePath))
|
|
79
|
+
if (!fs.existsSync(filePath))
|
|
80
80
|
return console.error('path doesn\'t exist:', path)
|
|
81
81
|
let object = require(filePath)
|
|
82
82
|
let newObject = {...object}
|
package/src/commands/fs/bump.js
CHANGED
|
@@ -39,7 +39,7 @@ async function run() {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function getVersions(path, name) {
|
|
42
|
-
if(!fs.existsSync(path))
|
|
42
|
+
if (!fs.existsSync(path))
|
|
43
43
|
return console.error('path doesn\'t exist:', path)
|
|
44
44
|
let object = require(path)
|
|
45
45
|
if (object.name && object.version) {
|
|
@@ -48,7 +48,7 @@ function getVersions(path, name) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function bumpVersion(filePath, name) {
|
|
51
|
-
if(!fs.existsSync(filePath))
|
|
51
|
+
if (!fs.existsSync(filePath))
|
|
52
52
|
return console.error('path doesn\'t exist:', path)
|
|
53
53
|
let object = require(filePath)
|
|
54
54
|
let newObject = {...object}
|
|
@@ -4,7 +4,7 @@ const prettier = require("prettier");
|
|
|
4
4
|
const path = require("path");
|
|
5
5
|
|
|
6
6
|
function globUpdater(er, files) {
|
|
7
|
-
if(er)
|
|
7
|
+
if (er)
|
|
8
8
|
console.log(files, 'glob resolving issue');
|
|
9
9
|
else
|
|
10
10
|
files.forEach(filename => update(filename));
|
|
@@ -54,13 +54,13 @@ function update(MdPath) {
|
|
|
54
54
|
|
|
55
55
|
`;
|
|
56
56
|
|
|
57
|
-
if(!document_id.length)
|
|
57
|
+
if (!document_id.length)
|
|
58
58
|
console.log("Document_id Undefined: ", MdPath);
|
|
59
59
|
if (document_id.length != 24 && document_id.length != 0 )
|
|
60
60
|
console.log("Document_id not valid! please check your config: ", MdPath);
|
|
61
61
|
else {
|
|
62
62
|
console.log(MdPath, " -> document_id : ", document_id);
|
|
63
|
-
if(fs.existsSync(MdPath))
|
|
63
|
+
if (fs.existsSync(MdPath))
|
|
64
64
|
fs.unlinkSync(MdPath);
|
|
65
65
|
fs.writeFileSync(MdPath, fileContent);
|
|
66
66
|
|
|
@@ -58,7 +58,7 @@ let doInstall = process.argv[2];
|
|
|
58
58
|
for (let [index, name] of nameList.entries()) {
|
|
59
59
|
if (ignore.includes(name.toLowerCase()))
|
|
60
60
|
{
|
|
61
|
-
if(doInstall == "true")
|
|
61
|
+
if (doInstall == "true")
|
|
62
62
|
await updateYarnInstall(pathList[index], name)
|
|
63
63
|
}
|
|
64
64
|
else
|
|
@@ -102,7 +102,7 @@ async function updateYarnInstall(dpath, name) {
|
|
|
102
102
|
|
|
103
103
|
try {
|
|
104
104
|
let node_modules = path.resolve(dpath, 'node_modules');
|
|
105
|
-
if(fs.existsSync(node_modules))
|
|
105
|
+
if (fs.existsSync(node_modules))
|
|
106
106
|
fs.rmdirSync(node_modules,{ recursive: true })
|
|
107
107
|
console.log('yarn install inside', name);
|
|
108
108
|
res2 = await exec(`yarn install `, { cwd: dpath })
|
|
@@ -58,7 +58,7 @@ let doInstall = process.argv[2];
|
|
|
58
58
|
for (let [index, name] of nameList.entries()) {
|
|
59
59
|
if (ignore.includes(name.toLowerCase()))
|
|
60
60
|
{
|
|
61
|
-
if(doInstall == "true")
|
|
61
|
+
if (doInstall == "true")
|
|
62
62
|
await updateYarnInstall(pathList[index], name)
|
|
63
63
|
}
|
|
64
64
|
else
|
|
@@ -102,7 +102,7 @@ async function updateYarnInstall(dpath, name) {
|
|
|
102
102
|
|
|
103
103
|
try {
|
|
104
104
|
let node_modules = path.resolve(dpath, 'node_modules');
|
|
105
|
-
if(fs.existsSync(node_modules))
|
|
105
|
+
if (fs.existsSync(node_modules))
|
|
106
106
|
fs.rmdirSync(node_modules,{ recursive: true })
|
|
107
107
|
console.log('yarn install inside', name);
|
|
108
108
|
res2 = await exec(`yarn install `, { cwd: dpath })
|
package/src/repoList.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = async function getRepoList(){
|
|
|
7
7
|
|
|
8
8
|
let repos, repoDir, doAllRepo;
|
|
9
9
|
|
|
10
|
-
if(fs.existsSync(currentRepoPath)) {
|
|
10
|
+
if (fs.existsSync(currentRepoPath)) {
|
|
11
11
|
repos = getRepositories(currentRepoPath);
|
|
12
12
|
repoDir = path.dirname(currentRepoPath);
|
|
13
13
|
doAllRepo = true;
|