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