@cocreate/cli 1.27.1 → 1.27.3

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.
@@ -8,7 +8,11 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
10
  - name: Checkout
11
- uses: actions/checkout@v2
11
+ uses: actions/checkout@v3
12
+ - name: setup nodejs
13
+ uses: actions/setup-node@v3
14
+ with:
15
+ node-version: 16
12
16
  - name: Jaid/action-sync-node-meta
13
17
  uses: jaid/action-sync-node-meta@v1.4.0
14
18
  with:
@@ -19,6 +23,10 @@ jobs:
19
23
  steps:
20
24
  - name: Checkout
21
25
  uses: actions/checkout@v3
26
+ - name: setup nodejs
27
+ uses: actions/setup-node@v3
28
+ with:
29
+ node-version: 16
22
30
  - name: Semantic Release
23
31
  uses: cycjimmy/semantic-release-action@v3
24
32
  id: semantic
@@ -37,7 +45,11 @@ jobs:
37
45
  runs-on: ubuntu-latest
38
46
  steps:
39
47
  - name: Checkout
40
- uses: actions/checkout@v2
48
+ uses: actions/checkout@v3
49
+ - name: setup nodejs
50
+ uses: actions/setup-node@v3
51
+ with:
52
+ node-version: 16
41
53
 
42
54
  - name: update documentation
43
55
  uses: CoCreate-app/CoCreate-docs@master
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [1.27.3](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.27.2...v1.27.3) (2023-05-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fullscreen target updated to fullscreen fullscreen-target ([857ec43](https://github.com/CoCreate-app/CoCreate-cli/commit/857ec434fd169cd604a92c360d2c024205992f0f))
7
+ * package-lock.json and pnpm-lock.yaml added to .gitignore ([eb5977b](https://github.com/CoCreate-app/CoCreate-cli/commit/eb5977b2481b8ec105d7ff21d73bc9f25bccb026))
8
+ * replace fontawesome with svg ([d91bada](https://github.com/CoCreate-app/CoCreate-cli/commit/d91badad896f554c416d6e67d2b1f86e7e9eccc0))
9
+ * replace mkdir with fs.mkdirSync ([8f001a0](https://github.com/CoCreate-app/CoCreate-cli/commit/8f001a004d106708382ad265b14410e630fdff5f))
10
+ * update manifest.json to manifest.webmanifest ([c89a88f](https://github.com/CoCreate-app/CoCreate-cli/commit/c89a88f72cb7e500c3341df000dc04df86731fdb))
11
+
12
+ ## [1.27.2](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.27.1...v1.27.2) (2023-04-24)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * node version 16 in build action ([7e260a8](https://github.com/CoCreate-app/CoCreate-cli/commit/7e260a8072aad0478d0ce88458bf35373a5445e0))
18
+
1
19
  ## [1.27.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.27.0...v1.27.1) (2023-04-24)
2
20
 
3
21
 
package/docs/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
14
14
 
15
- <link rel="manifest" href="/manifest.json" />
15
+ <link rel="manifest" href="/manifest.webmanifest" />
16
16
  </head>
17
17
 
18
18
  <body>
@@ -28,11 +28,11 @@
28
28
  <h2>CoCreate-cli</h2>
29
29
  </div>
30
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="fab fa-github"></i></a>
32
- <a class="margin-right:15px share" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
33
- <a class="margin-right:15px share" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
34
- <a class="margin-right:15px share" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
35
- <a class="margin-right:15px share" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
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>
36
36
  </div>
37
37
  </div>
38
38
  <p class="max-width:500px margin:20px_10px">A headless vinilla javascript micro component. Easy configuration using HTML5 attributes or Javscript api.</h1>
@@ -82,11 +82,11 @@
82
82
  </div>
83
83
 
84
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="far fa-eye"></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="fas fa-eye-slash"></i></a>
87
- <a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
88
- <a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
89
- <a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
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>
90
90
  </div>
91
91
 
92
92
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.27.1",
3
+ "version": "1.27.3",
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/src/coc.js CHANGED
File without changes
@@ -1,7 +1,6 @@
1
- // const spawn = require('child_process').spawn;
2
1
  const spawn = require('../spawn');
3
- const colors = require('colors');
4
2
  const path = require('path');
3
+ let fs = require('fs');
5
4
 
6
5
  module.exports = async function gitClone(repos, args) {
7
6
  const failed = [];
@@ -10,15 +9,12 @@ module.exports = async function gitClone(repos, args) {
10
9
  for (let i = 0; i < repos.length; i++) {
11
10
  // ToDo: Check if path exist and if git.config or package.json exist continue
12
11
  if (cwdPath !== repos[i].absolutePath) {
13
- let exitCode = await spawn('mkdir', ['-p', repos[i].directory], { stdio: 'inherit', cwd: process.cwd() })
14
- if (exitCode !== 0) {
15
- failed.push({ name: repos[i].name, des: `creating directory failed` })
16
- }
12
+ if (!fs.existsSync(repos[i].directory))
13
+ fs.mkdirSync(repos[i].directory);
17
14
 
18
- exitCode = await spawn('git', ['clone', `https://${repos[i].repo}`], { stdio: 'inherit', cwd: repos[i].directory })
15
+ let exitCode = await spawn('git', ['clone', `https://${repos[i].repo}`], { stdio: 'inherit', cwd: repos[i].directory })
19
16
  if (exitCode !== 0) {
20
17
  failed.push({ name: repos[i].name, des: `cloning failed` })
21
-
22
18
  }
23
19
 
24
20
  }
@@ -30,7 +30,11 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
32
32
  - name: Checkout
33
- uses: actions/checkout@v2
33
+ uses: actions/checkout@v3
34
+ - name: setup nodejs
35
+ uses: actions/setup-node@v3
36
+ with:
37
+ node-version: 16
34
38
  - name: Jaid/action-sync-node-meta
35
39
  uses: jaid/action-sync-node-meta@v1.4.0
36
40
  with:
@@ -41,6 +45,10 @@ jobs:
41
45
  steps:
42
46
  - name: Checkout
43
47
  uses: actions/checkout@v3
48
+ - name: setup nodejs
49
+ uses: actions/setup-node@v3
50
+ with:
51
+ node-version: 16
44
52
  - name: Semantic Release
45
53
  uses: cycjimmy/semantic-release-action@v3
46
54
  id: semantic
@@ -100,7 +108,11 @@ jobs:
100
108
  runs-on: ubuntu-latest
101
109
  steps:
102
110
  - name: Checkout
103
- uses: actions/checkout@v2
111
+ uses: actions/checkout@v3
112
+ - name: setup nodejs
113
+ uses: actions/setup-node@v3
114
+ with:
115
+ node-version: 16
104
116
 
105
117
  - name: update documentation
106
118
  uses: CoCreate-app/CoCreate-docs@master
@@ -0,0 +1,31 @@
1
+ let glob = require("glob");
2
+ let fs = require('fs');
3
+ const path = require("path")
4
+
5
+ function globUpdater(er, files) {
6
+ console.log('ggggggggggggggggggg', files, er)
7
+ if (er)
8
+ console.log(files, 'glob resolving issue')
9
+ else
10
+ files.forEach(filename => {
11
+ console.log(filename, 'glob resolving issue')
12
+ // update(filename + '/automated.yml')
13
+ })
14
+
15
+ }
16
+
17
+ function update(YmlPath) {
18
+ let name = path.basename(path.resolve(path.dirname(YmlPath), '../..')).substring(9);
19
+ let fileContent = ``;
20
+ // process.exit()
21
+ if (fs.existsSync(YmlPath))
22
+ fs.unlinkSync(YmlPath)
23
+ fs.writeFileSync(YmlPath, fileContent)
24
+
25
+ }
26
+
27
+ let pathSrc = "../../CoCreate-admin/src/**/*.html"
28
+ if (!fs.existsSync(pathSrc))
29
+ console.log('does not exist')
30
+
31
+ glob(pathSrc, globUpdater)
@@ -0,0 +1,26 @@
1
+ const fs = require('fs')
2
+
3
+ function createSymlink(dir, dest){
4
+ if (!fs.existsSync(dir)) {
5
+ console.log('does not exist')
6
+ return
7
+ }
8
+
9
+ if (fs.existsSync(dest))
10
+ fs.unlinkSync(dest)
11
+
12
+ fs.symlink( dir, dest, 'dir', (err) => {
13
+ if (err)
14
+ console.log(err);
15
+ else {
16
+ console.log("symlink added");
17
+ }
18
+ })
19
+
20
+ }
21
+
22
+
23
+ // createSymlink('./assets', '../../assets')
24
+ createSymlink('./manifest.webmanifest', '../../manifest.webmanifest')
25
+ createSymlink('./sw.js', '../../sw.js')
26
+ createSymlink('./offline.html', '../../offline.html')