@cocreate/cli 1.48.0 → 1.50.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/.github/workflows/automated.yml +0 -1
- package/CHANGELOG.md +40 -0
- package/CoCreate.config.js +499 -420
- package/docs/index.html +250 -250
- package/package.json +5 -7
- package/prettier.config.js +18 -0
- package/src/addMeta.js +74 -67
- package/src/coc.js +129 -114
- package/src/commands/acme.js +19 -22
- package/src/commands/bump.js +149 -87
- package/src/commands/clone.js +26 -22
- package/src/commands/fs/automated.js +81 -31
- package/src/commands/fs/config.js +94 -38
- package/src/commands/fs/gitignore.js +13 -22
- package/src/commands/fs/manual.js +17 -27
- package/src/commands/fs/prettier.config.js +99 -0
- package/src/commands/fs/remove.js +7 -12
- package/src/commands/fs/replace.js +23 -31
- package/src/commands/fs/webpack.js +143 -149
- package/src/commands/install.js +18 -22
- package/src/commands/link.js +73 -60
- package/src/commands/nginx.js +19 -22
- package/src/commands/symlink.js +132 -115
- package/src/execute.js +63 -50
- package/src/index.js +3 -0
- package/src/spinner.js +85 -0
package/docs/index.html
CHANGED
|
@@ -1,262 +1,262 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-cli Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
+
<meta name="robots" content="index,follow" />
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
<link
|
|
22
|
+
rel="stylesheet"
|
|
23
|
+
href="../index.css"
|
|
24
|
+
array="files"
|
|
25
|
+
object="60888216117c640e7596303f"
|
|
26
|
+
key="src"
|
|
27
|
+
type="text/css"
|
|
28
|
+
save="true" />
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
31
|
+
</head>
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
33
|
+
<body>
|
|
34
|
+
<!-- Navbar -->
|
|
35
|
+
<nav
|
|
36
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
37
|
+
content_id="content"
|
|
38
|
+
scroll="sticky-nav,"
|
|
39
|
+
scroll-up="5"
|
|
40
|
+
scroll-down="5"
|
|
41
|
+
path="../"
|
|
42
|
+
src="../components/navbar.html"></nav>
|
|
43
|
+
<sidenav
|
|
44
|
+
id="menuL"
|
|
45
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
46
|
+
resizable
|
|
47
|
+
resize-query="[content_id='content']"
|
|
48
|
+
resize-property="margin-left"
|
|
49
|
+
resize-value="width">
|
|
50
|
+
<menu
|
|
51
|
+
array="files"
|
|
52
|
+
object="603717b07de7fb350ae9fec8"
|
|
53
|
+
key="src"></menu>
|
|
54
|
+
<div resize="right"></div>
|
|
55
|
+
</sidenav>
|
|
56
|
+
<main
|
|
57
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
58
|
+
content_id="content"
|
|
59
|
+
id="cocreate-cli">
|
|
60
|
+
<div
|
|
61
|
+
class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
|
|
62
|
+
<div class="display:flex align-items:center">
|
|
63
|
+
<h2>CoCreate-cli</h2>
|
|
64
|
+
</div>
|
|
65
|
+
<div
|
|
66
|
+
class="display:flex align-items:center font-size:20px"
|
|
67
|
+
share-height="600"
|
|
68
|
+
share-width="500"
|
|
69
|
+
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
70
|
+
<a
|
|
71
|
+
href="https://github.com/CoCreate-app/CoCreate-cli"
|
|
72
|
+
target="_blank"
|
|
73
|
+
class="margin-right:15px"
|
|
74
|
+
><i src="/assets/svg/github.svg"></i
|
|
75
|
+
></a>
|
|
76
|
+
<a
|
|
77
|
+
class="margin-right:15px share"
|
|
78
|
+
share-network="twitter"
|
|
79
|
+
title="Share on twitter"
|
|
80
|
+
><i src="/assets/svg/twitter.svg"></i
|
|
81
|
+
></a>
|
|
82
|
+
<a
|
|
83
|
+
class="margin-right:15px share"
|
|
84
|
+
share-network="facebook"
|
|
85
|
+
title="Share on Facebook"
|
|
86
|
+
><i src="/assets/svg/facebook.svg"></i
|
|
87
|
+
></a>
|
|
88
|
+
<a
|
|
89
|
+
class="margin-right:15px share"
|
|
90
|
+
share-network="instagram"
|
|
91
|
+
title="Share on instagram"
|
|
92
|
+
><i src="/assets/svg/instagram.svg"></i
|
|
93
|
+
></a>
|
|
94
|
+
<a
|
|
95
|
+
class="margin-right:15px share"
|
|
96
|
+
share-network="share"
|
|
97
|
+
title="Share on share"
|
|
98
|
+
><i src="/assets/svg/share-alt.svg"></i
|
|
99
|
+
></a>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<h1 class="max-width:500px margin:20px_10px">
|
|
103
|
+
A headless vinilla javascript micro component. Easy
|
|
104
|
+
configuration using HTML5 attributes or Javscript api.
|
|
105
|
+
</h1>
|
|
106
|
+
<div id="cli-section" class="display:flex flex-wrap:wrap">
|
|
107
|
+
<div class="flex-grow:1 width:300px padding:20px_10px">
|
|
108
|
+
<h2
|
|
109
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
110
|
+
Install
|
|
111
|
+
</h2>
|
|
112
|
+
<pre
|
|
113
|
+
class="margin-top:15px"><code class="language-javascript">npm install cocreate-cli</code></pre>
|
|
114
|
+
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
115
|
+
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-cli.min.js</code></pre>
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
<h2
|
|
118
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
119
|
+
Usage
|
|
120
|
+
</h2>
|
|
121
|
+
<p class="padding:10px_0px">cli usage content</p>
|
|
122
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
124
|
+
<h2
|
|
125
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
126
|
+
Reference
|
|
127
|
+
</h2>
|
|
128
|
+
<p class="padding:10px_0px">
|
|
129
|
+
This is cli reference content
|
|
130
|
+
</p>
|
|
131
|
+
<pre><code class="language-javascript"><div></div></code></pre>
|
|
132
|
+
<p class="padding:10px_0px">
|
|
133
|
+
This is cli reference content
|
|
134
|
+
</p>
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
136
|
+
<h2
|
|
137
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
138
|
+
Attributes
|
|
139
|
+
</h2>
|
|
140
|
+
<ul class="list-style-type:none">
|
|
141
|
+
<li
|
|
142
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
143
|
+
<h4>
|
|
144
|
+
<span>cli</span>
|
|
145
|
+
<span class="cocreate-badge success"
|
|
146
|
+
>string</span
|
|
147
|
+
>
|
|
148
|
+
<span class="cocreate-badge warning"
|
|
149
|
+
>optional</span
|
|
150
|
+
>
|
|
151
|
+
</h4>
|
|
152
|
+
<p>cli-attribute</p>
|
|
153
|
+
</li>
|
|
154
|
+
<li
|
|
155
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
156
|
+
<h4>
|
|
157
|
+
<span>cli</span>
|
|
158
|
+
<span class="cocreate-badge success"
|
|
159
|
+
>string</span
|
|
160
|
+
>
|
|
161
|
+
<span class="cocreate-badge warning"
|
|
162
|
+
>optional</span
|
|
163
|
+
>
|
|
164
|
+
</h4>
|
|
165
|
+
<p>cli-attribute</p>
|
|
166
|
+
</li>
|
|
167
|
+
</ul>
|
|
168
|
+
</div>
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
170
|
+
<div
|
|
171
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
172
|
+
<!-- SandBox -->
|
|
173
|
+
<h2
|
|
174
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
175
|
+
Demo
|
|
176
|
+
</h2>
|
|
177
|
+
<div
|
|
178
|
+
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
179
|
+
<!-- SandBox -->
|
|
180
|
+
<div
|
|
181
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
182
|
+
id="playground">
|
|
183
|
+
<div
|
|
184
|
+
id="demo-code"
|
|
185
|
+
resizable
|
|
186
|
+
class="position:relative height:50%">
|
|
187
|
+
<textarea
|
|
188
|
+
type="code"
|
|
189
|
+
lang="html"
|
|
190
|
+
array="demos"
|
|
191
|
+
object=""
|
|
192
|
+
key="demo"
|
|
193
|
+
save="false"
|
|
194
|
+
id="demo"
|
|
195
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
196
|
+
<div
|
|
197
|
+
resize="bottom"
|
|
198
|
+
class="background:lightgrey"></div>
|
|
199
|
+
</div>
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
<div
|
|
202
|
+
id="demo-preview"
|
|
203
|
+
class="position:relative overflow:auto background-color:white">
|
|
204
|
+
<div class="demopreview padding:20px"></div>
|
|
205
|
+
</div>
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
207
|
+
<div
|
|
208
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
209
|
+
<a
|
|
210
|
+
class="margin-right:10px"
|
|
211
|
+
id="eye"
|
|
212
|
+
show="#eye-slash"
|
|
213
|
+
hide="#eye, #demo-preview"
|
|
214
|
+
toggle="code-height"
|
|
215
|
+
toggle-query="#demo-code"
|
|
216
|
+
><i
|
|
217
|
+
class="height:18px"
|
|
218
|
+
src="/assets/svg/eye.svg"></i
|
|
219
|
+
></a>
|
|
220
|
+
<a
|
|
221
|
+
class="margin-right:10px"
|
|
222
|
+
hidden
|
|
223
|
+
id="eye-slash"
|
|
224
|
+
show="#eye, #demo-preview"
|
|
225
|
+
hide="#eye-slash"
|
|
226
|
+
toggle="code-height"
|
|
227
|
+
toggle-query="#demo-code"
|
|
228
|
+
><i src="/assets/svg/eye-slash.svg"></i
|
|
229
|
+
></a>
|
|
230
|
+
<a
|
|
231
|
+
class="margin-right:10px"
|
|
232
|
+
id="code"
|
|
233
|
+
show="#code-slash"
|
|
234
|
+
hide="#code, #demo-code"
|
|
235
|
+
><i src="/assets/svg/code.svg"></i
|
|
236
|
+
></a>
|
|
237
|
+
<a
|
|
238
|
+
class="margin-right:10px"
|
|
239
|
+
hidden
|
|
240
|
+
id="code-slash"
|
|
241
|
+
show="#code, #demo-code"
|
|
242
|
+
hide="#code-slash"
|
|
243
|
+
><object
|
|
244
|
+
type="image/svg+xml"
|
|
245
|
+
data="/assets/svg/code.svg"
|
|
246
|
+
class="icon"
|
|
247
|
+
height="20"></object
|
|
248
|
+
></a>
|
|
249
|
+
<a
|
|
250
|
+
class="margin-right:5px"
|
|
251
|
+
fullscreen
|
|
252
|
+
fullscreen-query="#playground"></a>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
<!-- End SandBox -->
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</main>
|
|
260
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
261
|
+
</body>
|
|
262
262
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.50.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",
|
|
@@ -55,11 +55,9 @@
|
|
|
55
55
|
"coc": "src/coc.js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@cocreate/acme": "^1.
|
|
59
|
-
"@cocreate/config": "^1.
|
|
60
|
-
"@cocreate/file": "^1.
|
|
61
|
-
"@cocreate/nginx": "^1.
|
|
62
|
-
"glob": "^7.1.7",
|
|
63
|
-
"prettier": "^2.3.2"
|
|
58
|
+
"@cocreate/acme": "^1.3.0",
|
|
59
|
+
"@cocreate/config": "^1.13.0",
|
|
60
|
+
"@cocreate/file": "^1.19.3",
|
|
61
|
+
"@cocreate/nginx": "^1.4.0"
|
|
64
62
|
}
|
|
65
63
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
tabWidth: 4,
|
|
3
|
+
endOfLine: "lf",
|
|
4
|
+
semi: true,
|
|
5
|
+
trailingComma: "none",
|
|
6
|
+
bracketSameLine: true,
|
|
7
|
+
useTabs: true,
|
|
8
|
+
endOfLine: "lf",
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: ["*.json", "*.yml", "*.yaml"],
|
|
12
|
+
options: {
|
|
13
|
+
tabWidth: 2,
|
|
14
|
+
useTabs: false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
};
|