@cocreate/cli 1.24.0 → 1.25.0
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 +7 -0
- package/package.json +1 -16
- package/src/commands/install.js +5 -0
- package/src/commands/link.js +4 -5
- package/src/commands/symlink.js +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.25.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.24.0...v1.25.0) (2023-04-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* removed dev dependencies, run link.js during install.js ([14fe135](https://github.com/CoCreate-app/CoCreate-cli/commit/14fe135578205e840127e76062e8b27c28d14553))
|
|
7
|
+
|
|
1
8
|
# [1.24.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.23.0...v1.24.0) (2023-04-23)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
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",
|
|
@@ -58,26 +58,11 @@
|
|
|
58
58
|
"bin": {
|
|
59
59
|
"coc": "src/coc.js"
|
|
60
60
|
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@babel/core": "^7.9.6",
|
|
63
|
-
"@babel/preset-env": "^7.9.6",
|
|
64
|
-
"babel-loader": "^8.1.0",
|
|
65
|
-
"clean-webpack-plugin": "^3.0.0",
|
|
66
|
-
"file-loader": "^6.2.0",
|
|
67
|
-
"mini-css-extract-plugin": "^1.5.0",
|
|
68
|
-
"style-loader": "^3.3.1",
|
|
69
|
-
"terser-webpack-plugin": "^5.1.1",
|
|
70
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
71
|
-
"webpack": "^5.24.4",
|
|
72
|
-
"webpack-cli": "^4.5.0",
|
|
73
|
-
"webpack-log": "^3.0.1"
|
|
74
|
-
},
|
|
75
61
|
"dependencies": {
|
|
76
62
|
"@cocreate/docs": "^1.6.5",
|
|
77
63
|
"@cocreate/hosting": "^1.8.5",
|
|
78
64
|
"colors": "latest",
|
|
79
65
|
"glob": "^7.1.7",
|
|
80
|
-
"got": "latest",
|
|
81
66
|
"prettier": "^2.3.2",
|
|
82
67
|
"prompt": "^1.2.0"
|
|
83
68
|
}
|
package/src/commands/install.js
CHANGED
|
@@ -12,6 +12,11 @@ module.exports = async function(repos, args) {
|
|
|
12
12
|
let symlinkFailed = await require('./symlink.js')(repos, args)
|
|
13
13
|
if (symlinkFailed)
|
|
14
14
|
failed.push(symlinkFailed)
|
|
15
|
+
|
|
16
|
+
let linkFailed = await require('./link.js')(repos, args)
|
|
17
|
+
if (linkFailed)
|
|
18
|
+
failed.push(linkFailed)
|
|
19
|
+
|
|
15
20
|
} catch (err) {
|
|
16
21
|
console.error(err);
|
|
17
22
|
failed.push({ name: 'general', des: err.message })
|
package/src/commands/link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const spawn = require('../spawn');
|
|
2
2
|
const colors = require('colors');
|
|
3
3
|
|
|
4
|
-
module.exports = async function linkPackages(repos,
|
|
4
|
+
module.exports = async function linkPackages(repos, args) {
|
|
5
5
|
const failed = [], isLinked = {};
|
|
6
6
|
|
|
7
7
|
try {
|
|
@@ -11,10 +11,9 @@ module.exports = async function linkPackages(repos, repoList) {
|
|
|
11
11
|
continue
|
|
12
12
|
|
|
13
13
|
console.log(repo.packageName, 'configuring ...')
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
await doLink(repo.
|
|
17
|
-
await doLink(repo.devDeps, repo, repoList, failed, isLinked)
|
|
14
|
+
|
|
15
|
+
await doLink(repo.deps, repo, repos, failed, isLinked)
|
|
16
|
+
await doLink(repo.devDeps, repo, repos, failed, isLinked)
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
catch (err) {
|
package/src/commands/symlink.js
CHANGED
|
@@ -99,9 +99,7 @@ async function install(repo, repos) {
|
|
|
99
99
|
})
|
|
100
100
|
console.error(`${repo.name}: ${repo.packageManager} install failed`.red)
|
|
101
101
|
} else {
|
|
102
|
-
|
|
103
|
-
if (linkFailed)
|
|
104
|
-
failed.push(linkFailed)
|
|
102
|
+
console.log(`${repo.name}: ${repo.packageManager} install succesful`.green)
|
|
105
103
|
|
|
106
104
|
}
|
|
107
105
|
|