@cocreate/cli 1.16.0 → 1.17.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 +16 -0
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/repositories.js +170 -170
- package/src/addMeta.js +0 -1
- package/src/commands/fs/contribution.js +5 -5
- package/src/commands/fs/readme.js +5 -6
- package/src/commands/link.js +16 -12
- package/src/commands/other/add.js +1 -1
- package/src/execute.js +7 -4
- package/src/commands/other/symbolic-crdt.js +0 -116
- package/src/commands/other/symbolic.js +0 -107
- package/src/commands/other/yarnInstall.js +0 -54
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [1.17.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.16.1...v1.17.0) (2023-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* replaced get-value and set-value with a super charged version of CoCreate-events ([0c46dfa](https://github.com/CoCreate-app/CoCreate-cli/commit/0c46dfafa8a73e9a27d636c654ebcabc83f5b1b0))
|
|
7
|
+
* replaced get-value and set-value with a super charged version of CoCreate-events' ([5d0bc0b](https://github.com/CoCreate-app/CoCreate-cli/commit/5d0bc0b64247bd21b8eb1b8610e4f327a8af7810))
|
|
8
|
+
|
|
9
|
+
## [1.16.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.16.0...v1.16.1) (2023-03-15)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* replaced ppath with absolutePath ([4bf6e35](https://github.com/CoCreate-app/CoCreate-cli/commit/4bf6e35895f08d085f27d7159e95e2a62aa420e0))
|
|
15
|
+
* replaced ppath with absolutePath ([b563d48](https://github.com/CoCreate-app/CoCreate-cli/commit/b563d48867d52e28467a6839d6991aeba2c4406d))
|
|
16
|
+
|
|
1
17
|
# [1.16.0](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.15.0...v1.16.0) (2023-02-21)
|
|
2
18
|
|
|
3
19
|
|
package/docs/index.html
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
|
|
80
|
-
<div
|
|
80
|
+
<div class="demopreview" class="padding:20px"></div>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
83
|
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.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",
|
package/repositories.js
CHANGED
|
@@ -1,475 +1,475 @@
|
|
|
1
1
|
module.exports = [
|
|
2
2
|
|
|
3
3
|
// {
|
|
4
|
-
// 'path': '
|
|
4
|
+
// 'path': '../CoCreateJS',
|
|
5
5
|
// 'repo': 'github.com/CoCreate-app/CoCreateJS.git'
|
|
6
6
|
// },
|
|
7
7
|
{
|
|
8
|
-
'path': '
|
|
8
|
+
'path': '../../CoCreateCSS',
|
|
9
9
|
'repo': 'github.com/CoCreate-app/CoCreateCSS.git'
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
'path': '
|
|
12
|
+
'path': '../../CoCreate-admin',
|
|
13
13
|
'repo': 'github.com/CoCreate-app/CoCreate-admin.git'
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
'path': '
|
|
16
|
+
'path': '../../CoCreate-website',
|
|
17
17
|
'repo': 'github.com/CoCreate-app/CoCreate-website.git'
|
|
18
18
|
},
|
|
19
19
|
// {
|
|
20
|
-
// 'path': '
|
|
20
|
+
// 'path': '../CoCreate-website-template',
|
|
21
21
|
// 'repo': 'github.com/CoCreate-app/CoCreate-website-template.git'
|
|
22
22
|
// },
|
|
23
23
|
|
|
24
24
|
// Components
|
|
25
25
|
{
|
|
26
|
-
'path': '
|
|
26
|
+
'path': '../CoCreate-actions',
|
|
27
27
|
'repo': 'github.com/CoCreate-app/CoCreate-actions.git'
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
'path': '
|
|
30
|
+
'path': '../CoCreate-api',
|
|
31
31
|
'repo': 'github.com/CoCreate-app/CoCreate-api.git'
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
'path': '
|
|
34
|
+
'path': '../CoCreate-attributes',
|
|
35
35
|
'repo': 'github.com/CoCreate-app/CoCreate-attributes.git'
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
'path': '
|
|
38
|
+
'path': '../CoCreate-calculation',
|
|
39
39
|
'repo': 'github.com/CoCreate-app/CoCreate-calculation.git'
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
'path': '
|
|
42
|
+
'path': '../CoCreate-cli',
|
|
43
43
|
'repo': 'github.com/CoCreate-app/CoCreate-cli.git'
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
'path': '
|
|
46
|
+
'path': '../CoCreate-codearea',
|
|
47
47
|
'repo': 'github.com/CoCreate-app/CoCreate-codearea.git'
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
'path': '
|
|
50
|
+
'path': '../CoCreate-conditional-logic',
|
|
51
51
|
'repo': 'github.com/CoCreate-app/CoCreate-conditional-logic.git'
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
'path': '
|
|
54
|
+
'path': '../CoCreate-crdt',
|
|
55
55
|
'repo': 'github.com/CoCreate-app/CoCreate-crdt.git',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
'path': '
|
|
58
|
+
'path': '../CoCreate-crud-client',
|
|
59
59
|
'repo': 'github.com/CoCreate-app/CoCreate-crud-client.git'
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
'path': '
|
|
62
|
+
'path': '../CoCreate-css-parser',
|
|
63
63
|
'repo': 'github.com/CoCreate-app/CoCreate-css-parser.git'
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
'path': '
|
|
66
|
+
'path': '../CoCreate-cursors',
|
|
67
67
|
'repo': 'github.com/CoCreate-app/CoCreate-cursors.git'
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
'path': '
|
|
70
|
+
'path': '../CoCreate-dnd',
|
|
71
71
|
'repo': 'github.com/CoCreate-app/CoCreate-dnd.git'
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
'path': '
|
|
74
|
+
'path': '../CoCreate-docs',
|
|
75
75
|
'repo': 'github.com/CoCreate-app/CoCreate-docs.git'
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
'path': '
|
|
78
|
+
'path': '../CoCreate-element-config',
|
|
79
79
|
'repo': 'github.com/CoCreate-app/CoCreate-element-config.git'
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
'path': '
|
|
82
|
+
'path': '../CoCreate-element-prototype',
|
|
83
83
|
'repo': 'github.com/CoCreate-app/CoCreate-element-prototype.git'
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
'path': '
|
|
86
|
+
'path': '../CoCreate-elements',
|
|
87
87
|
'repo': 'github.com/CoCreate-app/CoCreate-elements.git'
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
'path': '
|
|
90
|
+
'path': '../CoCreate-events',
|
|
91
91
|
'repo': 'github.com/CoCreate-app/CoCreate-events.git'
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
'path': '
|
|
94
|
+
'path': '../CoCreate-fetch',
|
|
95
95
|
'repo': 'github.com/CoCreate-app/CoCreate-fetch.git'
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
'path': '
|
|
98
|
+
'path': '../CoCreate-filter',
|
|
99
99
|
'repo': 'github.com/CoCreate-app/CoCreate-filter.git'
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
'path': '
|
|
102
|
+
'path': '../CoCreate-floating-label',
|
|
103
103
|
'repo': 'github.com/CoCreate-app/CoCreate-floating-label.git'
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
'path': '
|
|
106
|
+
'path': '../CoCreate-form',
|
|
107
107
|
'repo': 'github.com/CoCreate-app/CoCreate-form.git'
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
'path': '
|
|
110
|
+
'path': '../CoCreate-fullscreen',
|
|
111
111
|
'repo': 'github.com/CoCreate-app/CoCreate-fullscreen.git'
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
'path': '
|
|
114
|
+
'path': '../CoCreate-hosting',
|
|
115
115
|
'repo': 'github.com/CoCreate-app/CoCreate-hosting.git'
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
'path': '
|
|
118
|
+
'path': '../CoCreate-indexeddb',
|
|
119
119
|
'repo': 'github.com/CoCreate-app/CoCreate-indexeddb.git'
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
'path': '
|
|
122
|
+
'path': '../CoCreate-industry',
|
|
123
123
|
'repo': 'github.com/CoCreate-app/CoCreate-industry.git'
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
'path': '
|
|
126
|
+
'path': '../CoCreate-lazy-loader',
|
|
127
127
|
'repo': 'github.com/CoCreate-app/CoCreate-lazy-loader.git'
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
'path': '
|
|
130
|
+
'path': '../CoCreate-local-storage',
|
|
131
131
|
'repo': 'github.com/CoCreate-app/CoCreate-local-storage.git'
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
'path': '
|
|
134
|
+
'path': '../CoCreate-link',
|
|
135
135
|
'repo': 'github.com/CoCreate-app/CoCreate-link.git'
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
'path': '
|
|
138
|
+
'path': '../CoCreate-message-client',
|
|
139
139
|
'repo': 'github.com/CoCreate-app/CoCreate-message-client.git'
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
'path': '
|
|
142
|
+
'path': '../CoCreate-modal',
|
|
143
143
|
'repo': 'github.com/CoCreate-app/CoCreate-modal.git'
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
'path': '
|
|
146
|
+
'path': '../CoCreate-observer',
|
|
147
147
|
'repo': 'github.com/CoCreate-app/CoCreate-observer.git'
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
'path': '
|
|
150
|
+
'path': '../CoCreate-organizations',
|
|
151
151
|
'repo': 'github.com/CoCreate-app/CoCreate-organizations.git'
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
'path': '
|
|
154
|
+
'path': '../CoCreate-overlay-scroll',
|
|
155
155
|
'repo': 'github.com/CoCreate-app/CoCreate-overlay-scroll.git'
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
'path': '
|
|
158
|
+
'path': '../CoCreate-parallax',
|
|
159
159
|
'repo': 'github.com/CoCreate-app/CoCreate-parallax.git'
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
'path': '
|
|
162
|
+
'path': '../CoCreate-pass',
|
|
163
163
|
'repo': 'github.com/CoCreate-app/CoCreate-pass.git'
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
'path': '
|
|
166
|
+
'path': '../CoCreate-position',
|
|
167
167
|
'repo': 'github.com/CoCreate-app/CoCreate-position.git'
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
'path': '
|
|
170
|
+
'path': '../CoCreate-progress',
|
|
171
171
|
'repo': 'github.com/CoCreate-app/CoCreate-progress.git'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
'path': '
|
|
174
|
+
'path': '../CoCreate-pwa',
|
|
175
175
|
'repo': 'github.com/CoCreate-app/CoCreate-pwa.git'
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
'path': '
|
|
178
|
+
'path': '../CoCreate-random-color',
|
|
179
179
|
'repo': 'github.com/CoCreate-app/CoCreate-random-color.git'
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
'path': '
|
|
182
|
+
'path': '../CoCreate-remove',
|
|
183
183
|
'repo': 'github.com/CoCreate-app/CoCreate-remove.git'
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
'path': '
|
|
186
|
+
'path': '../CoCreate-render',
|
|
187
187
|
'repo': 'github.com/CoCreate-app/CoCreate-render.git'
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
'path': '
|
|
190
|
+
'path': '../CoCreate-render-json',
|
|
191
191
|
'repo': 'github.com/CoCreate-app/CoCreate-render-json.git'
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
'path': '
|
|
194
|
+
'path': '../CoCreate-resize',
|
|
195
195
|
'repo': 'github.com/CoCreate-app/CoCreate-resize.git'
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
'path': '
|
|
198
|
+
'path': '../CoCreate-resize-observer',
|
|
199
199
|
'repo': 'github.com/CoCreate-app/CoCreate-resize-observer.git'
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
'path': '
|
|
202
|
+
'path': '../CoCreate-rich-text',
|
|
203
203
|
'repo': 'github.com/CoCreate-app/CoCreate-rich-text.git'
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
'path': '
|
|
206
|
+
'path': '../CoCreate-scroll',
|
|
207
207
|
'repo': 'github.com/CoCreate-app/CoCreate-scroll.git'
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
'path': '
|
|
210
|
+
'path': '../CoCreate-search',
|
|
211
211
|
'repo': 'github.com/CoCreate-app/CoCreate-search.git'
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
'path': '
|
|
214
|
+
'path': '../CoCreate-select',
|
|
215
215
|
'repo': 'github.com/CoCreate-app/CoCreate-select.git'
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
'path': '
|
|
218
|
+
'path': '../CoCreate-selection',
|
|
219
219
|
'repo': 'github.com/CoCreate-app/CoCreate-selection.git'
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
'path': '
|
|
222
|
+
'path': '../CoCreate-signup-animation',
|
|
223
223
|
'repo': 'github.com/CoCreate-app/CoCreate-signup-animation.git'
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
'path': '
|
|
226
|
+
'path': '../CoCreate-socket-client',
|
|
227
227
|
'repo': 'github.com/CoCreate-app/CoCreate-socket-client.git'
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
'path': '
|
|
230
|
+
'path': '../CoCreate-social-share',
|
|
231
231
|
'repo': 'github.com/CoCreate-app/CoCreate-social-share.git'
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
'path': '
|
|
234
|
+
'path': '../CoCreate-text',
|
|
235
235
|
'repo': 'github.com/CoCreate-app/CoCreate-text.git'
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
'path': '
|
|
238
|
+
'path': '../CoCreate-toolbar',
|
|
239
239
|
'repo': 'github.com/CoCreate-app/CoCreate-toolbar.git'
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
'path': '
|
|
242
|
+
'path': '../CoCreate-unique',
|
|
243
243
|
'repo': 'github.com/CoCreate-app/CoCreate-unique.git'
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
'path': '
|
|
246
|
+
'path': '../CoCreate-users',
|
|
247
247
|
'repo': 'github.com/CoCreate-app/CoCreate-users.git'
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
'path': '
|
|
250
|
+
'path': '../CoCreate-utils',
|
|
251
251
|
'repo': 'github.com/CoCreate-app/CoCreate-utils.git'
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
'path': '
|
|
254
|
+
'path': '../CoCreate-uuid',
|
|
255
255
|
'repo': 'github.com/CoCreate-app/CoCreate-uuid.git'
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
'path': '
|
|
258
|
+
'path': '../CoCreate-validation',
|
|
259
259
|
'repo': 'github.com/CoCreate-app/CoCreate-validation.git'
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
'path': '
|
|
262
|
+
'path': '../CoCreate-vdom',
|
|
263
263
|
'repo': 'github.com/CoCreate-app/CoCreate-vdom.git'
|
|
264
264
|
},
|
|
265
265
|
|
|
266
266
|
// Modules
|
|
267
267
|
{
|
|
268
|
-
'path': '
|
|
268
|
+
'path': '../../CoCreate-apps/CoCreate-builder',
|
|
269
269
|
'repo': 'github.com/CoCreate-app/CoCreate-builder.git'
|
|
270
270
|
},
|
|
271
271
|
// {
|
|
272
|
-
// 'path':'
|
|
272
|
+
// 'path':'../../CoCreate-apps/CoCreate-calendar',
|
|
273
273
|
// 'repo' : 'github.com/CoCreate-app/CoCreate-calendar.git'
|
|
274
274
|
// },
|
|
275
275
|
// {
|
|
276
|
-
// 'path':'
|
|
276
|
+
// 'path':'../../CoCreate-apps/CoCreate-checkout',
|
|
277
277
|
// 'repo' : 'github.com/CoCreate-app/CoCreate-checkout.git'
|
|
278
278
|
// },
|
|
279
279
|
{
|
|
280
|
-
'path': '
|
|
280
|
+
'path': '../../CoCreate-apps/CoCreate-dashboard',
|
|
281
281
|
'repo': 'github.com/CoCreate-app/CoCreate-dashboard.git'
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
|
-
'path': '
|
|
284
|
+
'path': '../../CoCreate-apps/CoCreate-datatable',
|
|
285
285
|
'repo': 'github.com/CoCreate-app/CoCreate-datatable.git'
|
|
286
286
|
},
|
|
287
287
|
// {
|
|
288
|
-
// 'path':'
|
|
288
|
+
// 'path':'../../CoCreate-apps/CoCreate-email',
|
|
289
289
|
// 'repo' : 'github.com/CoCreate-app/CoCreate-email.git'
|
|
290
290
|
// },
|
|
291
291
|
{
|
|
292
|
-
'path': '
|
|
292
|
+
'path': '../../CoCreate-apps/CoCreate-kanban',
|
|
293
293
|
'repo': 'github.com/CoCreate-app/CoCreate-kanban.git'
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
'path': '
|
|
296
|
+
'path': '../../CoCreate-apps/CoCreate-sandbox',
|
|
297
297
|
'repo': 'github.com/CoCreate-app/CoCreate-sandbox.git'
|
|
298
298
|
},
|
|
299
299
|
|
|
300
300
|
// Plugins
|
|
301
301
|
{
|
|
302
|
-
'path': '
|
|
302
|
+
'path': '../../CoCreate-plugins/CoCreate-charts',
|
|
303
303
|
'repo': 'github.com/CoCreate-app/CoCreate-charts.git'
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
|
-
'path': '
|
|
306
|
+
'path': '../../CoCreate-plugins/CoCreate-croppie',
|
|
307
307
|
'repo': 'github.com/CoCreate-app/CoCreate-croppie.git'
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
|
-
'path': '
|
|
310
|
+
'path': '../../CoCreate-plugins/CoCreate-domain',
|
|
311
311
|
'repo': 'github.com/CoCreate-app/CoCreate-domain.git'
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
'path': '
|
|
314
|
+
'path': '../../CoCreate-plugins/CoCreate-fullcalendar',
|
|
315
315
|
'repo': 'github.com/CoCreate-app/CoCreate-fullcalendar.git'
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
'path': '
|
|
318
|
+
'path': '../../CoCreate-plugins/CoCreate-facebook',
|
|
319
319
|
'repo': 'github.com/CoCreate-app/CoCreate-facebook.git'
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
|
-
'path': '
|
|
322
|
+
'path': '../../CoCreate-plugins/CoCreate-font-awesome',
|
|
323
323
|
'repo': 'github.com/CoCreate-app/CoCreate-font-awesome.git'
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
-
'path': '
|
|
326
|
+
'path': '../../CoCreate-plugins/CoCreate-google-maps',
|
|
327
327
|
'repo': 'github.com/CoCreate-app/CoCreate-google-maps.git'
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
'path': '
|
|
330
|
+
'path': '../../CoCreate-plugins/CoCreate-google-auth',
|
|
331
331
|
'repo': 'github.com/CoCreate-app/CoCreate-google-auth.git'
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
|
-
'path': '
|
|
334
|
+
'path': '../../CoCreate-plugins/CoCreate-instagram',
|
|
335
335
|
'repo': 'github.com/CoCreate-app/CoCreate-instagram.git'
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
|
-
'path': '
|
|
338
|
+
'path': '../../CoCreate-plugins/CoCreate-lighthouse',
|
|
339
339
|
'repo': 'github.com/CoCreate-app/CoCreate-lighthouse.git'
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
|
-
'path': '
|
|
342
|
+
'path': '../../CoCreate-plugins/CoCreate-linkedin',
|
|
343
343
|
'repo': 'github.com/CoCreate-app/CoCreate-linkedin.git'
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
'path': '
|
|
346
|
+
'path': '../../CoCreate-plugins/CoCreate-pickr',
|
|
347
347
|
'repo': 'github.com/CoCreate-app/CoCreate-pickr.git'
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
|
-
'path': '
|
|
350
|
+
'path': '../../CoCreate-plugins/CoCreate-pinterest',
|
|
351
351
|
'repo': 'github.com/CoCreate-app/CoCreate-pinterest.git'
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
|
-
'path': '
|
|
354
|
+
'path': '../../CoCreate-plugins/CoCreate-plaid',
|
|
355
355
|
'repo': 'github.com/CoCreate-app/CoCreate-plaid.git'
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
'path': '
|
|
358
|
+
'path': '../../CoCreate-plugins/CoCreate-prism',
|
|
359
359
|
'repo': 'github.com/CoCreate-app/CoCreate-prism.git'
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
'path': '
|
|
362
|
+
'path': '../../CoCreate-plugins/CoCreate-s3',
|
|
363
363
|
'repo': 'github.com/CoCreate-app/CoCreate-s3.git'
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
'path': '
|
|
366
|
+
'path': '../../CoCreate-plugins/CoCreate-sendgrid',
|
|
367
367
|
'repo': 'github.com/CoCreate-app/CoCreate-sendgrid.git'
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
'path': '
|
|
370
|
+
'path': '../../CoCreate-plugins/CoCreate-shipengine',
|
|
371
371
|
'repo': 'github.com/CoCreate-app/CoCreate-shipengine.git'
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
|
-
'path': '
|
|
374
|
+
'path': '../../CoCreate-plugins/CoCreate-stripe',
|
|
375
375
|
'repo': 'github.com/CoCreate-app/CoCreate-stripe.git'
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
|
-
'path': '
|
|
378
|
+
'path': '../../CoCreate-plugins/CoCreate-tui-image-editor',
|
|
379
379
|
'repo': 'github.com/CoCreate-app/CoCreate-tui-image-editor.git'
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
|
-
'path': '
|
|
382
|
+
'path': '../../CoCreate-plugins/CoCreate-twilio',
|
|
383
383
|
'repo': 'github.com/CoCreate-app/CoCreate-twilio.git'
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
|
-
'path': '
|
|
386
|
+
'path': '../../CoCreate-plugins/CoCreate-twitter',
|
|
387
387
|
'repo': 'github.com/CoCreate-app/CoCreate-twitter.git'
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
|
-
'path': '
|
|
390
|
+
'path': '../../CoCreate-plugins/CoCreate-uppy',
|
|
391
391
|
'repo': 'github.com/CoCreate-app/CoCreate-uppy.git'
|
|
392
392
|
},
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
396
|
+
// {
|
|
397
|
+
// 'path': '../CoCreateWS',
|
|
398
|
+
// 'repo': 'github.com/CoCreate-app/CoCreateWS.git'
|
|
399
|
+
// },
|
|
400
|
+
// {
|
|
401
|
+
// 'path': '../CoCreateApi',
|
|
402
|
+
// 'repo': 'github.com/CoCreate-app/CoCreateApi.git'
|
|
403
|
+
// },
|
|
404
404
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
405
|
+
// {
|
|
406
|
+
// 'path': '../CoCreateLB',
|
|
407
|
+
// 'repo': 'github.com/CoCreate-app/CoCreateLB.git'
|
|
408
|
+
// },
|
|
409
409
|
|
|
410
410
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
411
|
+
// // Components
|
|
412
|
+
// {
|
|
413
|
+
// 'path': '../CoCreate-auth',
|
|
414
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-auth.git'
|
|
415
|
+
// },
|
|
416
|
+
// {
|
|
417
|
+
// 'path': '../CoCreate-crud-server',
|
|
418
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-crud-server.git'
|
|
419
|
+
// },
|
|
420
|
+
// // {
|
|
421
|
+
// // 'path': '../CoCreate-crdt-server',
|
|
422
|
+
// // 'repo': 'github.com/CoCreate-app/CoCreate-crdt-server.git'
|
|
423
|
+
// // },
|
|
424
|
+
// {
|
|
425
|
+
// 'path': '../CoCreate-file-server',
|
|
426
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-file-server.git'
|
|
427
|
+
// },
|
|
428
|
+
// {
|
|
429
|
+
// 'path': '../CoCreate-loadtest',
|
|
430
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-loadtest.git'
|
|
431
|
+
// },
|
|
432
|
+
// {
|
|
433
|
+
// 'path': '../CoCreate-message-server',
|
|
434
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-message-server.git'
|
|
435
|
+
// },
|
|
436
|
+
// {
|
|
437
|
+
// 'path': '../CoCreate-metrics-server',
|
|
438
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-metrics-server.git'
|
|
439
|
+
// },
|
|
440
|
+
// {
|
|
441
|
+
// 'path': '../CoCreate-mongodb',
|
|
442
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-mongodb.git'
|
|
443
|
+
// },
|
|
444
|
+
// {
|
|
445
|
+
// 'path': '../CoCreate-node-autoscaler',
|
|
446
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-node-autoscaler.git'
|
|
447
|
+
// },
|
|
448
|
+
// {
|
|
449
|
+
// 'path': '../CoCreate-permissions',
|
|
450
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-permissions.git'
|
|
451
|
+
// },
|
|
452
|
+
// {
|
|
453
|
+
// 'path': '../CoCreate-server-side-render',
|
|
454
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-server-side-render.git'
|
|
455
|
+
// },
|
|
456
|
+
// {
|
|
457
|
+
// 'path': '../CoCreate-socket-server',
|
|
458
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-socket-server.git'
|
|
459
|
+
// },
|
|
460
460
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
461
|
+
// // Maybe depreciated
|
|
462
|
+
// {
|
|
463
|
+
// 'path': '../CoCreate-keepalived',
|
|
464
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-keepalived.git'
|
|
465
|
+
// },
|
|
466
|
+
// {
|
|
467
|
+
// 'path': '../CoCreate-ide',
|
|
468
|
+
// 'repo': 'github.com/CoCreate-app/CoCreate-ide.git'
|
|
469
|
+
// },
|
|
470
|
+
// // {
|
|
471
|
+
// // 'path': '../CoCreateEmail',
|
|
472
|
+
// // 'repo': 'github.com/CoCreate-app/CoCreateEmail.git'
|
|
473
|
+
// // },
|
|
474
474
|
|
|
475
475
|
];
|
package/src/addMeta.js
CHANGED
|
@@ -10,7 +10,6 @@ module.exports = async function addMeta(repos, failed, directory) {
|
|
|
10
10
|
repos[i].plainName = repos[i].name.substr(9);
|
|
11
11
|
|
|
12
12
|
if (directory) {
|
|
13
|
-
repos[i].ppath = path.resolve(directory, repos[i].path);
|
|
14
13
|
repos[i].absolutePath = path.resolve(directory, repos[i].path);
|
|
15
14
|
repos[i].directory = directory;
|
|
16
15
|
}
|
|
@@ -10,10 +10,10 @@ let list = require('../repositories.js');
|
|
|
10
10
|
let metaYarnLink = list.map(meta => {
|
|
11
11
|
let name = path.basename(meta.path).toLowerCase();
|
|
12
12
|
try {
|
|
13
|
-
let
|
|
13
|
+
let absolutePath = path.resolve(meta.path);
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
let packagejson = path.resolve(
|
|
16
|
+
let packagejson = path.resolve(absolutePath, 'package.json');
|
|
17
17
|
if (!fs.existsSync(packagejson)) {
|
|
18
18
|
console.error('package json not found for', name);
|
|
19
19
|
return false;
|
|
@@ -23,7 +23,7 @@ let metaYarnLink = list.map(meta => {
|
|
|
23
23
|
let packageName = name.startsWith('cocreate-') ?
|
|
24
24
|
'@cocreate/' + name.substr(9) : packageObj.name;
|
|
25
25
|
|
|
26
|
-
return { ...meta, name, packageName,
|
|
26
|
+
return { ...meta, name, packageName, absolutePath, packageObj }
|
|
27
27
|
}
|
|
28
28
|
catch (err) {
|
|
29
29
|
console.error('error: ', name, err.message);
|
|
@@ -43,7 +43,7 @@ let metaYarnLink = list.map(meta => {
|
|
|
43
43
|
function update(param) {
|
|
44
44
|
// component name
|
|
45
45
|
if (!param) return;
|
|
46
|
-
let { packageObj,
|
|
46
|
+
let { packageObj, absolutePath } = param;
|
|
47
47
|
let { name, description } = packageObj;
|
|
48
48
|
let shortName = name.substr(10);
|
|
49
49
|
let fileContent = `# CoCreate-${shortName}
|
|
@@ -127,7 +127,7 @@ We appreciate your continued support, thank you!
|
|
|
127
127
|
|
|
128
128
|
`;
|
|
129
129
|
|
|
130
|
-
let MdPath = path.resolve(
|
|
130
|
+
let MdPath = path.resolve(absolutePath, 'README.md')
|
|
131
131
|
let formated = prettier.format(fileContent, { semi: false, parser: "markdown" });
|
|
132
132
|
if (fs.existsSync(MdPath))
|
|
133
133
|
fs.unlinkSync(MdPath)
|
|
@@ -10,10 +10,10 @@ let list = require('../repositories.js');
|
|
|
10
10
|
let metaYarnLink = list.map(meta => {
|
|
11
11
|
let name = path.basename(meta.path).toLowerCase();
|
|
12
12
|
try {
|
|
13
|
-
let
|
|
13
|
+
let absolutePath = path.resolve(meta.path);
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
let packagejson = path.resolve(
|
|
16
|
+
let packagejson = path.resolve(absolutePath, 'package.json');
|
|
17
17
|
if (!fs.existsSync(packagejson)) {
|
|
18
18
|
console.error('package json not found for', name);
|
|
19
19
|
return false;
|
|
@@ -23,7 +23,7 @@ let metaYarnLink = list.map(meta => {
|
|
|
23
23
|
let packageName = name.startsWith('cocreate-') ?
|
|
24
24
|
'@cocreate/' + name.substr(9) : packageObj.name;
|
|
25
25
|
|
|
26
|
-
return { ...meta, name, packageName,
|
|
26
|
+
return { ...meta, name, packageName, absolutePath, packageObj }
|
|
27
27
|
}
|
|
28
28
|
catch (err) {
|
|
29
29
|
console.error('error: ', name, err.message);
|
|
@@ -35,7 +35,6 @@ let metaYarnLink = list.map(meta => {
|
|
|
35
35
|
(async() => {
|
|
36
36
|
for (let meta of metaYarnLink) {
|
|
37
37
|
await update(meta)
|
|
38
|
-
// await updateYarnLink(metaYarnLink[0])
|
|
39
38
|
}
|
|
40
39
|
})();
|
|
41
40
|
|
|
@@ -43,7 +42,7 @@ let metaYarnLink = list.map(meta => {
|
|
|
43
42
|
function update(param) {
|
|
44
43
|
// component name
|
|
45
44
|
if (!param) return;
|
|
46
|
-
let { packageObj,
|
|
45
|
+
let { packageObj, absolutePath } = param;
|
|
47
46
|
let { name, description } = packageObj;
|
|
48
47
|
let shortName = name.substr(10);
|
|
49
48
|
let fileContent = `# CoCreate-${shortName}
|
|
@@ -127,7 +126,7 @@ We appreciate your continued support, thank you!
|
|
|
127
126
|
|
|
128
127
|
`;
|
|
129
128
|
|
|
130
|
-
let MdPath = path.resolve(
|
|
129
|
+
let MdPath = path.resolve(absolutePath, 'README.md')
|
|
131
130
|
let formated = prettier.format(fileContent, { semi: false, parser: "markdown" });
|
|
132
131
|
if (fs.existsSync(MdPath))
|
|
133
132
|
fs.unlinkSync(MdPath)
|
package/src/commands/link.js
CHANGED
|
@@ -28,23 +28,24 @@ async function doLink(deps, repo, repos, failed, isLinked) {
|
|
|
28
28
|
for (let dep of deps) {
|
|
29
29
|
let depMeta = repos.find(meta => meta.packageName === dep);
|
|
30
30
|
try {
|
|
31
|
-
if (!depMeta) {
|
|
32
|
-
|
|
33
|
-
failed.push({
|
|
34
|
-
name: repo.name,
|
|
35
|
-
des: `"${dep}" component can not be found in repositories.js`
|
|
36
|
-
})
|
|
37
|
-
console.error(`${repo.name}: "${dep}" component can not be found in repositories.js`.red)
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
31
|
+
// if (!depMeta) {
|
|
32
|
+
// // ToDo: search file system for a package.json containing the package.name
|
|
40
33
|
|
|
34
|
+
// failed.push({
|
|
35
|
+
// name: repo.name,
|
|
36
|
+
// des: `"${dep}" component can not be found in repositories.js`
|
|
37
|
+
// })
|
|
38
|
+
// console.error(`${repo.name}: "${dep}" component can not be found in repositories.js`.red)
|
|
39
|
+
// continue;
|
|
40
|
+
// }
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
if (depMeta && !isLinked[depMeta.packageName]) {
|
|
44
45
|
|
|
45
46
|
isLinked[depMeta.packageName] = true;
|
|
46
47
|
let exitCode = await spawn(packageManager, ['link'], {
|
|
47
|
-
cwd: depMeta.
|
|
48
|
+
cwd: depMeta.absolutePath,
|
|
48
49
|
shell: true,
|
|
49
50
|
stdio: 'inherit'
|
|
50
51
|
});
|
|
@@ -57,10 +58,13 @@ async function doLink(deps, repo, repos, failed, isLinked) {
|
|
|
57
58
|
console.error(`${depMeta.name}: ${packageManager} link failed`.red)
|
|
58
59
|
}
|
|
59
60
|
}
|
|
61
|
+
|
|
62
|
+
if (!depMeta)
|
|
63
|
+
depMeta = {packageName: dep}
|
|
60
64
|
console.log(repo.packageName, 'linking', depMeta.packageName, '...')
|
|
61
65
|
|
|
62
66
|
let exitCode = await spawn(packageManager, ['link', depMeta.packageName], {
|
|
63
|
-
cwd: repo.
|
|
67
|
+
cwd: repo.absolutePath,
|
|
64
68
|
shell: true,
|
|
65
69
|
stdio: 'inherit'
|
|
66
70
|
})
|
|
@@ -41,7 +41,7 @@ async function reAdd(deps, repo, failed, param = '') {
|
|
|
41
41
|
console.log(`${repo.name}: `.green, `yarn ${packageListLog}`);
|
|
42
42
|
// let exitCode = await spawn(`yarn`, ['add', ...param && [param], packageList], {
|
|
43
43
|
let exitCode = await spawn( 'yarn', packageList, {
|
|
44
|
-
cwd: repo.
|
|
44
|
+
cwd: repo.absolutePath, stdio: 'inherit',
|
|
45
45
|
});
|
|
46
46
|
if (exitCode !== 0) {
|
|
47
47
|
failed.push({
|
package/src/execute.js
CHANGED
|
@@ -22,6 +22,8 @@ module.exports = async function execute(command, repos, config) {
|
|
|
22
22
|
|
|
23
23
|
} else {
|
|
24
24
|
let type = command.split(' ')[0]
|
|
25
|
+
let args = command.replace(type, '').replace("'", '"').trim()
|
|
26
|
+
|
|
25
27
|
for (let repo of repos) {
|
|
26
28
|
try {
|
|
27
29
|
if (repo.exclude && repo.exclude.includes(type))
|
|
@@ -30,17 +32,18 @@ module.exports = async function execute(command, repos, config) {
|
|
|
30
32
|
let exitCode;
|
|
31
33
|
if (config.hideMessage) {
|
|
32
34
|
const { error } = await exec(command, {
|
|
33
|
-
cwd: repo.
|
|
35
|
+
cwd: repo.absolutePath,
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
if (error)
|
|
37
39
|
exitCode = 1
|
|
38
|
-
} else
|
|
39
|
-
exitCode = await spawn(
|
|
40
|
-
cwd: repo.
|
|
40
|
+
} else {
|
|
41
|
+
exitCode = await spawn(type, [`${args}`], {
|
|
42
|
+
cwd: repo.absolutePath,
|
|
41
43
|
shell: true,
|
|
42
44
|
stdio: 'inherit'
|
|
43
45
|
})
|
|
46
|
+
}
|
|
44
47
|
|
|
45
48
|
if (exitCode !== 0)
|
|
46
49
|
failed.push({
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
// install nodejs 14 from: https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
|
|
2
|
-
// install yarn from https://classic.yarnpkg.com/en/docs/install/#debian-stable
|
|
3
|
-
// -> alternatives -> debian/ununtu -> run the 3 commands there consecutively
|
|
4
|
-
|
|
5
|
-
// both node and nodejs --version should be the same and > then v12
|
|
6
|
-
const fs = require('fs')
|
|
7
|
-
const path = require("path")
|
|
8
|
-
const { promisify } = require('util');
|
|
9
|
-
const exec = promisify(require('child_process').exec)
|
|
10
|
-
let list = require('../repositories.js');
|
|
11
|
-
|
|
12
|
-
let pathList = list.map(o => o.path);
|
|
13
|
-
let nameList = pathList.map(fn => path.basename(fn).toLowerCase());
|
|
14
|
-
|
|
15
|
-
let CoCreateJsPath = path.resolve('../CoCreate-components/CoCreate-crdt');
|
|
16
|
-
// console.log(syarnInstall);
|
|
17
|
-
// process.exit()
|
|
18
|
-
|
|
19
|
-
const ignore = [
|
|
20
|
-
'CoCreateJS',
|
|
21
|
-
'CoCreate-repositories',
|
|
22
|
-
'CoCreate-charts',
|
|
23
|
-
'CoCreate-codemirror',
|
|
24
|
-
'CoCreate-crdt',
|
|
25
|
-
'CoCreate-croppie',
|
|
26
|
-
'CoCreate-docs',
|
|
27
|
-
'CoCreate-domain',
|
|
28
|
-
'CoCreate-facebook',
|
|
29
|
-
'CoCreate-fullcalendar',
|
|
30
|
-
'CoCreate-google-auth',
|
|
31
|
-
'CoCreate-instagram',
|
|
32
|
-
'CoCreate-lighthouse',
|
|
33
|
-
'CoCreate-linkedin',
|
|
34
|
-
'CoCreate-monaco',
|
|
35
|
-
'CoCreate-pinterest',
|
|
36
|
-
'CoCreate-pickr',
|
|
37
|
-
'CoCreate-progress-bar',
|
|
38
|
-
'CoCreate-quill',
|
|
39
|
-
'CoCreate-s3',
|
|
40
|
-
'CoCreate-sengrid',
|
|
41
|
-
'CoCreate-shipengine',
|
|
42
|
-
'CoCreate-stripe',
|
|
43
|
-
'CoCreate-twilio',
|
|
44
|
-
'CoCreate-twitter',
|
|
45
|
-
'CoCreate-uppy',
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
let doInstall = process.argv[2];
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
(async() => {
|
|
55
|
-
for (let i = 0; i < ignore.length; i++) {
|
|
56
|
-
ignore[i] = ignore[i].toLowerCase();
|
|
57
|
-
}
|
|
58
|
-
for (let [index, name] of nameList.entries()) {
|
|
59
|
-
if (ignore.includes(name.toLowerCase()))
|
|
60
|
-
{
|
|
61
|
-
if (doInstall == "true")
|
|
62
|
-
await updateYarnInstall(pathList[index], name)
|
|
63
|
-
}
|
|
64
|
-
else
|
|
65
|
-
await updateSymbolic(pathList[index], name)
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
})()
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
async function updateSymbolic(dpath, name) {
|
|
73
|
-
// let packageName = path.basename(dpath);
|
|
74
|
-
let res1, res2;
|
|
75
|
-
dpath = path.resolve(dpath);
|
|
76
|
-
if (!fs.existsSync(dpath))
|
|
77
|
-
return console.error(dpath, 'not exist')
|
|
78
|
-
|
|
79
|
-
try {
|
|
80
|
-
let dest = path.resolve(dpath, 'node_modules');
|
|
81
|
-
if (fs.existsSync(dest))
|
|
82
|
-
fs.rmdirSync(dest, { recursive: true })
|
|
83
|
-
console.log('copying node_modules to', name);
|
|
84
|
-
res2 = await exec(`ln -sf ${CoCreateJsPath}/node_modules ${dest} `, { cwd: CoCreateJsPath })
|
|
85
|
-
|
|
86
|
-
console.log(name, 'is finished')
|
|
87
|
-
}
|
|
88
|
-
catch (err) {
|
|
89
|
-
console.error(name, 'had error for command', err.cmd, 'with response:', res1, res2, err)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
async function updateYarnInstall(dpath, name) {
|
|
97
|
-
// let packageName = path.basename(dpath);
|
|
98
|
-
let res1, res2;
|
|
99
|
-
dpath = path.resolve(dpath);
|
|
100
|
-
if (!fs.existsSync(dpath))
|
|
101
|
-
return console.error(dpath, 'not exist')
|
|
102
|
-
|
|
103
|
-
try {
|
|
104
|
-
let node_modules = path.resolve(dpath, 'node_modules');
|
|
105
|
-
if (fs.existsSync(node_modules))
|
|
106
|
-
fs.rmdirSync(node_modules,{ recursive: true })
|
|
107
|
-
console.log('yarn install inside', name);
|
|
108
|
-
res2 = await exec(`yarn install `, { cwd: dpath })
|
|
109
|
-
|
|
110
|
-
console.log(name, 'is finished', '\n')
|
|
111
|
-
}
|
|
112
|
-
catch (err) {
|
|
113
|
-
console.error(name, 'had error for command', err.cmd, 'with response:', res1, res2, err)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
const path = require("path")
|
|
3
|
-
const {
|
|
4
|
-
promisify
|
|
5
|
-
} = require('util');
|
|
6
|
-
const spawn = require('../../spawn');
|
|
7
|
-
const colors = require('colors');
|
|
8
|
-
const addMeta = require('../../addMeta');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
module.exports = async function updateYarnInstall(repos, allrepo) {
|
|
15
|
-
|
|
16
|
-
const failed = [],
|
|
17
|
-
isLinked = {};
|
|
18
|
-
try {
|
|
19
|
-
repos = addMeta(repos, failed)
|
|
20
|
-
allrepo = addMeta(allrepo, failed)
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
catch (err) {
|
|
24
|
-
failed.push({
|
|
25
|
-
name: 'GENERAL',
|
|
26
|
-
des: err.message
|
|
27
|
-
})
|
|
28
|
-
console.log(err)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
// console.log(repos)
|
|
33
|
-
|
|
34
|
-
for (let repo of repos) {
|
|
35
|
-
|
|
36
|
-
if (!repo)
|
|
37
|
-
continue;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
let {
|
|
41
|
-
ppath,
|
|
42
|
-
packageName,
|
|
43
|
-
deps,
|
|
44
|
-
devDeps,
|
|
45
|
-
name
|
|
46
|
-
} = repo;
|
|
47
|
-
|
|
48
|
-
console.log(packageName, 'configuring ...')
|
|
49
|
-
await doLink(deps, repo, allrepo, failed, isLinked)
|
|
50
|
-
await doLink(devDeps, repo, allrepo, failed, isLinked)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
catch (err) {
|
|
54
|
-
failed.push({ name: 'GENERAL', des: err.message })
|
|
55
|
-
console.error(err.red)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return failed;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
async function doLink(deps, repo, allrepo, failed, isLinked) {
|
|
63
|
-
for (let dep of deps) {
|
|
64
|
-
let depMeta = allrepo.find(meta => meta.packageName === dep);
|
|
65
|
-
// console.log(depMeta)
|
|
66
|
-
// return failed;
|
|
67
|
-
try {
|
|
68
|
-
if (!depMeta) {
|
|
69
|
-
failed.push({
|
|
70
|
-
name: repo.name,
|
|
71
|
-
des: `"${dep}" component can not be found in repositories.js`
|
|
72
|
-
})
|
|
73
|
-
console.error(`${repo.name}: "${dep}" component can not be found in repositories.js`.red)
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
let exitCode;
|
|
79
|
-
if (depMeta.packageName === '@cocreate/crdt') {
|
|
80
|
-
|
|
81
|
-
console.log('creating symbolic link')
|
|
82
|
-
let linkPath = path.resolve(repo.ppath, 'node_modules/@cocreate', depMeta.plainName)
|
|
83
|
-
if (fs.existsSync(linkPath))
|
|
84
|
-
fs.unlinkSync(linkPath)
|
|
85
|
-
exitCode = await spawn('ln', ['-s', '-f', depMeta.ppath, linkPath], {
|
|
86
|
-
cwd: repo.ppath,
|
|
87
|
-
stdio: 'inherit',
|
|
88
|
-
})
|
|
89
|
-
if (exitCode !== 0) {
|
|
90
|
-
failed.push({
|
|
91
|
-
name: repo.name,
|
|
92
|
-
des: `ln failed`
|
|
93
|
-
});
|
|
94
|
-
console.error(`${repo.name}:ln failed`.red)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
catch (err) {
|
|
102
|
-
failed.push({ name: repo.packageName, des: err.message })
|
|
103
|
-
console.error(err)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const spawn = require('../../spawn');
|
|
4
|
-
const colors = require('colors');
|
|
5
|
-
const addMeta = require('../../addMeta');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
module.exports = async function updateYarnLink(repos) {
|
|
9
|
-
let failed = [];
|
|
10
|
-
|
|
11
|
-
try {
|
|
12
|
-
repos = addMeta(repos, failed);
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
catch (err) {
|
|
16
|
-
failed.push({
|
|
17
|
-
name: 'GENERAL',
|
|
18
|
-
des: err.message
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
for (let repo of repos) {
|
|
24
|
-
await yarnInstall(repo, failed, '');
|
|
25
|
-
}
|
|
26
|
-
return failed;
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
async function yarnInstall(repo, failed, param = '') {
|
|
32
|
-
try {
|
|
33
|
-
console.log(`${repo.name}: `.green, `yarn install`);
|
|
34
|
-
let exitCode = await spawn( 'yarn', ['install'], {
|
|
35
|
-
cwd: repo.ppath, stdio: 'inherit',
|
|
36
|
-
});
|
|
37
|
-
if (exitCode !== 0) {
|
|
38
|
-
failed.push({
|
|
39
|
-
name: repo.name,
|
|
40
|
-
des: `yarn ${param}`
|
|
41
|
-
})
|
|
42
|
-
console.error(`${repo.name}: yarn ${param}`.red)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
catch (err) {
|
|
46
|
-
failed.push({
|
|
47
|
-
name: repo.name,
|
|
48
|
-
des: err.message
|
|
49
|
-
})
|
|
50
|
-
console.error(`${repo.name}: ${err.message}`.red)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|