@cocreate/cli 1.28.4 → 1.29.1

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 +1 -1
  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
@@ -1,136 +1,136 @@
1
- let fs = require('fs');
2
- const prettier = require("prettier");
3
- const path = require("path")
4
- let list = require('../repositories.js');
5
-
6
-
7
-
8
- let metaYarnLink = list.map(meta => {
9
- let name = path.basename(meta.path).toLowerCase();
10
- try {
11
- let absolutePath = path.resolve(meta.path);
12
-
13
-
14
- let packagejson = path.resolve(absolutePath, 'package.json');
15
- if (!fs.existsSync(packagejson)) {
16
- console.error('package json not found for', name);
17
- return false;
18
- }
19
- let packageObj = require(packagejson);
20
-
21
- let packageName = name.startsWith('cocreate-') ?
22
- '@cocreate/' + name.substring(9) : packageObj.name;
23
-
24
- return { ...meta, name, packageName, absolutePath, packageObj }
25
- }
26
- catch (err) {
27
- console.error('error: ', name, err.message);
28
- return meta;
29
- }
30
-
31
- });
32
-
33
- (async() => {
34
- for (let meta of metaYarnLink) {
35
- await update(meta)
36
- }
37
- })();
38
-
39
-
40
- function update(param) {
41
- if (!param) return;
42
- let { packageObj, absolutePath } = param;
43
- let { name, description } = packageObj;
44
- let shortName = name.substring(10);
45
- let fileContent = `# CoCreate-${shortName}
46
- ${description} Take it for a spin in our [playground!](https://cocreate.app/docs/${shortName})
47
-
48
- ![minified](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?style=flat-square&label=minified&color=orange)
49
- ![gzip](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
50
- ![brotli](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?compression=brotli&style=flat-square&label=brotli)
51
- ![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-${shortName}?style=flat-square)
52
- ![License](https://img.shields.io/github/license/CoCreate-app/CoCreate-${shortName}?style=flat-square)
53
- ![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
54
-
55
- ![CoCreate-${shortName}](https://cdn.cocreate.app/docs/CoCreate-${shortName}.gif)
56
-
57
- ## [Docs & Demo](https://cocreate.app/docs/${shortName})
58
-
59
-
60
- For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/${shortName})
61
-
62
- ## CDN
63
- \`\`\`html
64
- <script src="https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js"></script>
65
- \`\`\`
66
- \`\`\`html
67
- <script src="https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.css"></script>
68
- \`\`\`
69
-
70
- ## NPM
71
- \`\`\`shell
72
- $ npm i @cocreate/${shortName}
73
- \`\`\`
74
-
75
- ## yarn
76
- \`\`\`shell
77
- $ yarn install @cocreate/${shortName}
78
- \`\`\`
79
-
80
- # Table of Contents
81
-
82
- - [Table of Contents](#table-of-contents)
83
- - [Announcements](#announcements)
84
- - [Roadmap](#roadmap)
85
- - [How to Contribute](#how-to-contribute)
86
- - [About](#about)
87
- - [License](#license)
88
-
89
- <a name="announcements"></a>
90
- # Announcements
91
-
92
- All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-${shortName}/releases). You may also subscribe to email for releases and breaking changes.
93
-
94
- <a name="roadmap"></a>
95
- # Roadmap
96
-
97
- If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-${shortName}/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-${shortName}/pulls). We would love to hear your feedback.
98
-
99
-
100
- <a name="about"></a>
101
- # About
102
-
103
- CoCreate-${shortName} is guided and supported by the CoCreate Developer Experience Team.
104
-
105
- Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
106
-
107
- CoCreate-${shortName} is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
108
-
109
- <a name="contribute"></a>
110
- # How to Contribute
111
-
112
- We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/CONTRIBUTING.md) guide for details.
113
-
114
- We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-${shortName}/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-${shortName}/pulls) or merely upvote or comment on existing issues or pull requests.
115
-
116
- We appreciate your continued support, thank you!
117
-
118
-
119
- <a name="license"></a>
120
- # License
121
- [The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/LICENSE)
122
-
123
-
124
- `;
125
-
126
- let MdPath = path.resolve(absolutePath, 'README.md')
127
- let formated = prettier.format(fileContent, { semi: false, parser: "markdown" });
128
- if (fs.existsSync(MdPath))
129
- fs.unlinkSync(MdPath)
130
- fs.writeFileSync(MdPath, formated)
131
-
132
-
133
- }
134
-
135
-
136
- console.log('finished')
1
+ let fs = require('fs');
2
+ const prettier = require("prettier");
3
+ const path = require("path")
4
+ let list = require('../repositories.js');
5
+
6
+
7
+
8
+ let metaYarnLink = list.map(meta => {
9
+ let name = path.basename(meta.path).toLowerCase();
10
+ try {
11
+ let absolutePath = path.resolve(meta.path);
12
+
13
+
14
+ let packagejson = path.resolve(absolutePath, 'package.json');
15
+ if (!fs.existsSync(packagejson)) {
16
+ console.error('package json not found for', name);
17
+ return false;
18
+ }
19
+ let packageObj = require(packagejson);
20
+
21
+ let packageName = name.startsWith('cocreate-') ?
22
+ '@cocreate/' + name.substring(9) : packageObj.name;
23
+
24
+ return { ...meta, name, packageName, absolutePath, packageObj }
25
+ }
26
+ catch (err) {
27
+ console.error('error: ', name, err.message);
28
+ return meta;
29
+ }
30
+
31
+ });
32
+
33
+ (async() => {
34
+ for (let meta of metaYarnLink) {
35
+ await update(meta)
36
+ }
37
+ })();
38
+
39
+
40
+ function update(param) {
41
+ if (!param) return;
42
+ let { packageObj, absolutePath } = param;
43
+ let { name, description } = packageObj;
44
+ let shortName = name.substring(10);
45
+ let fileContent = `# CoCreate-${shortName}
46
+ ${description} Take it for a spin in our [playground!](https://cocreate.app/docs/${shortName})
47
+
48
+ ![minified](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?style=flat-square&label=minified&color=orange)
49
+ ![gzip](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
50
+ ![brotli](https://img.badgesize.io/https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js?compression=brotli&style=flat-square&label=brotli)
51
+ ![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-${shortName}?style=flat-square)
52
+ ![License](https://img.shields.io/github/license/CoCreate-app/CoCreate-${shortName}?style=flat-square)
53
+ ![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
54
+
55
+ ![CoCreate-${shortName}](https://cdn.cocreate.app/docs/CoCreate-${shortName}.gif)
56
+
57
+ ## [Docs & Demo](https://cocreate.app/docs/${shortName})
58
+
59
+
60
+ For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/${shortName})
61
+
62
+ ## CDN
63
+ \`\`\`html
64
+ <script src="https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.js"></script>
65
+ \`\`\`
66
+ \`\`\`html
67
+ <script src="https://cdn.cocreate.app/${shortName}/latest/CoCreate-${shortName}.min.css"></script>
68
+ \`\`\`
69
+
70
+ ## NPM
71
+ \`\`\`shell
72
+ $ npm i @cocreate/${shortName}
73
+ \`\`\`
74
+
75
+ ## yarn
76
+ \`\`\`shell
77
+ $ yarn install @cocreate/${shortName}
78
+ \`\`\`
79
+
80
+ # Table of Contents
81
+
82
+ - [Table of Contents](#table-of-contents)
83
+ - [Announcements](#announcements)
84
+ - [Roadmap](#roadmap)
85
+ - [How to Contribute](#how-to-contribute)
86
+ - [About](#about)
87
+ - [License](#license)
88
+
89
+ <a name="announcements"></a>
90
+ # Announcements
91
+
92
+ All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-${shortName}/releases). You may also subscribe to email for releases and breaking changes.
93
+
94
+ <a name="roadmap"></a>
95
+ # Roadmap
96
+
97
+ If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-${shortName}/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-${shortName}/pulls). We would love to hear your feedback.
98
+
99
+
100
+ <a name="about"></a>
101
+ # About
102
+
103
+ CoCreate-${shortName} is guided and supported by the CoCreate Developer Experience Team.
104
+
105
+ Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
106
+
107
+ CoCreate-${shortName} is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
108
+
109
+ <a name="contribute"></a>
110
+ # How to Contribute
111
+
112
+ We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/CONTRIBUTING.md) guide for details.
113
+
114
+ We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-${shortName}/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-${shortName}/pulls) or merely upvote or comment on existing issues or pull requests.
115
+
116
+ We appreciate your continued support, thank you!
117
+
118
+
119
+ <a name="license"></a>
120
+ # License
121
+ [The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-${shortName}/blob/master/LICENSE)
122
+
123
+
124
+ `;
125
+
126
+ let MdPath = path.resolve(absolutePath, 'README.md')
127
+ let formated = prettier.format(fileContent, { semi: false, parser: "markdown" });
128
+ if (fs.existsSync(MdPath))
129
+ fs.unlinkSync(MdPath)
130
+ fs.writeFileSync(MdPath, formated)
131
+
132
+
133
+ }
134
+
135
+
136
+ console.log('finished')
@@ -1,41 +1,41 @@
1
- let glob = require("glob");
2
- let fs = require('fs');
3
- const path = require("path")
4
-
5
- function globUpdater(er, files) {
6
- if (er)
7
- console.log(files, 'glob resolving issue')
8
- else
9
- files.forEach(filename => update(filename))
10
- }
11
-
12
-
13
-
14
-
15
- function update(Path) {
16
- let fileContent = `# ignore
17
- node_modules
18
- dist
19
- .npmrc
20
-
21
- `;
22
- if (fs.existsSync(Path))
23
- fs.unlinkSync(Path)
24
- fs.writeFileSync(Path, fileContent)
25
-
26
- }
27
-
28
-
29
-
30
- // glob("../CoCreate-components/CoCreate-action/.gitignore", globUpdater)
31
- // glob("./.gitignore", globUpdater)
32
- // glob("../CoCreate-adminUI/.gitignore", globUpdater)
33
- glob("../CoCreate-components/*/.gitignore", globUpdater)
34
- glob("../CoCreate-apps/*/.gitignore", globUpdater)
35
- glob("../CoCreate-plugins/*/.gitignore", globUpdater)
36
- // glob("../CoCreate-website/.gitignore", globUpdater)
37
- // glob("../CoCreate-website-template/.gitignore", globUpdater)
38
- glob("../CoCreateCSS/.gitignore", globUpdater)
39
- // glob("../CoCreateJS/.gitignore", globUpdater)
40
-
1
+ let glob = require("glob");
2
+ let fs = require('fs');
3
+ const path = require("path")
4
+
5
+ function globUpdater(er, files) {
6
+ if (er)
7
+ console.log(files, 'glob resolving issue')
8
+ else
9
+ files.forEach(filename => update(filename))
10
+ }
11
+
12
+
13
+
14
+
15
+ function update(Path) {
16
+ let fileContent = `# ignore
17
+ node_modules
18
+ dist
19
+ .npmrc
20
+
21
+ `;
22
+ if (fs.existsSync(Path))
23
+ fs.unlinkSync(Path)
24
+ fs.writeFileSync(Path, fileContent)
25
+
26
+ }
27
+
28
+
29
+
30
+ // glob("../CoCreate-components/CoCreate-action/.gitignore", globUpdater)
31
+ // glob("./.gitignore", globUpdater)
32
+ // glob("../CoCreate-adminUI/.gitignore", globUpdater)
33
+ glob("../CoCreate-components/*/.gitignore", globUpdater)
34
+ glob("../CoCreate-apps/*/.gitignore", globUpdater)
35
+ glob("../CoCreate-plugins/*/.gitignore", globUpdater)
36
+ // glob("../CoCreate-website/.gitignore", globUpdater)
37
+ // glob("../CoCreate-website-template/.gitignore", globUpdater)
38
+ glob("../CoCreateCSS/.gitignore", globUpdater)
39
+ // glob("../CoCreateJS/.gitignore", globUpdater)
40
+
41
41
  console.log('finished')
@@ -1,31 +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)
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)
@@ -1,91 +1,91 @@
1
- let glob = require("glob");
2
- let fs = require('fs');
3
- const path = require("path")
4
-
5
- function globUpdater(er, files) {
6
-
7
- if (er)
8
- console.log(files, 'glob resolving issue')
9
- else
10
- files.forEach(filename => {
11
-
12
- console.log(filename + '/manual.yml', 'glob resolving issue')
13
- update(filename + '/manual.yml')
14
- })
15
-
16
- }
17
-
18
-
19
-
20
-
21
- function update(Path) {
22
- // component name
23
- let name = path.basename(path.resolve(path.dirname(Path), '../..')).substring(9);
24
- let fileContent = `name: Manual Workflow
25
- on:
26
- workflow_dispatch:
27
- inputs:
28
- invalidations:
29
- description: |
30
- If set to 'true', invalidates previous upload.
31
- default: 'true'
32
- required: true
33
-
34
- jobs:
35
- cdn:
36
- runs-on: ubuntu-latest
37
- env:
38
- DRY_RUN: \${{ github.event.inputs.dry_run }}
39
- GITHUB_TOKEN: '\${{ secrets.GITHUB_TOKEN }}'
40
- NPM_TOKEN: '\${{ secrets.NPM_TOKEN }}'
41
-
42
- steps:
43
- - name: Checkout
44
- uses: actions/checkout@v3
45
- - name: setup nodejs
46
- uses: actions/setup-node@v3
47
- with:
48
- node-version: 16
49
- - name: yarn install
50
- run: >
51
- echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" >
52
- .npmrc
53
-
54
- yarn install
55
- - name: yarn build
56
- run: yarn build
57
- - name: upload latest bundle
58
- uses: CoCreate-app/CoCreate-s3@master
59
- with:
60
- aws-key-id: '\${{ secrets.AWSACCESSKEYID }}'
61
- aws-access-key: '\${{ secrets.AWSSECERTACCESSKEY }}'
62
- distributionId: '\${{ secrets.DISTRIBUTION_ID }}'
63
- bucket: testcrudbucket
64
- source: ./dist
65
- destination: /${name}/latest
66
- acl: public-read
67
- invalidations: \${{ github.event.inputs.invalidations }}
68
-
69
- `;
70
-
71
-
72
- if (fs.existsSync(Path))
73
- fs.unlinkSync(Path)
74
- fs.writeFileSync(Path, fileContent)
75
-
76
- }
77
-
78
-
79
-
80
- // glob("../CoCreate-components/CoCreate-action/.github/workflows", globUpdater)
81
- glob("../CoCreate-components/*/.github/workflows/", globUpdater)
82
- glob("../CoCreate-apps/*/.github/workflows/", globUpdater)
83
- glob("../CoCreate-plugins/*/.github/workflows/", globUpdater)
84
-
85
- // substrin (9) removes CoCreateC leving namme as SS
86
- // glob("../CoCreateCSS/.github/workflows/", globUpdater)
87
-
88
- // does not need to add name... will require for name to be removed from destination
89
- // glob("../CoCreateJS/.github/workflows/", globUpdater)
90
-
91
- console.log('finished')
1
+ let glob = require("glob");
2
+ let fs = require('fs');
3
+ const path = require("path")
4
+
5
+ function globUpdater(er, files) {
6
+
7
+ if (er)
8
+ console.log(files, 'glob resolving issue')
9
+ else
10
+ files.forEach(filename => {
11
+
12
+ console.log(filename + '/manual.yml', 'glob resolving issue')
13
+ update(filename + '/manual.yml')
14
+ })
15
+
16
+ }
17
+
18
+
19
+
20
+
21
+ function update(Path) {
22
+ // component name
23
+ let name = path.basename(path.resolve(path.dirname(Path), '../..')).substring(9);
24
+ let fileContent = `name: Manual Workflow
25
+ on:
26
+ workflow_dispatch:
27
+ inputs:
28
+ invalidations:
29
+ description: |
30
+ If set to 'true', invalidates previous upload.
31
+ default: 'true'
32
+ required: true
33
+
34
+ jobs:
35
+ cdn:
36
+ runs-on: ubuntu-latest
37
+ env:
38
+ DRY_RUN: \${{ github.event.inputs.dry_run }}
39
+ GITHUB_TOKEN: '\${{ secrets.GITHUB_TOKEN }}'
40
+ NPM_TOKEN: '\${{ secrets.NPM_TOKEN }}'
41
+
42
+ steps:
43
+ - name: Checkout
44
+ uses: actions/checkout@v3
45
+ - name: setup nodejs
46
+ uses: actions/setup-node@v3
47
+ with:
48
+ node-version: 16
49
+ - name: yarn install
50
+ run: >
51
+ echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" >
52
+ .npmrc
53
+
54
+ yarn install
55
+ - name: yarn build
56
+ run: yarn build
57
+ - name: upload latest bundle
58
+ uses: CoCreate-app/CoCreate-s3@master
59
+ with:
60
+ aws-key-id: '\${{ secrets.AWSACCESSKEYID }}'
61
+ aws-access-key: '\${{ secrets.AWSSECERTACCESSKEY }}'
62
+ distributionId: '\${{ secrets.DISTRIBUTION_ID }}'
63
+ bucket: testcrudbucket
64
+ source: ./dist
65
+ destination: /${name}/latest
66
+ acl: public-read
67
+ invalidations: \${{ github.event.inputs.invalidations }}
68
+
69
+ `;
70
+
71
+
72
+ if (fs.existsSync(Path))
73
+ fs.unlinkSync(Path)
74
+ fs.writeFileSync(Path, fileContent)
75
+
76
+ }
77
+
78
+
79
+
80
+ // glob("../CoCreate-components/CoCreate-action/.github/workflows", globUpdater)
81
+ glob("../CoCreate-components/*/.github/workflows/", globUpdater)
82
+ glob("../CoCreate-apps/*/.github/workflows/", globUpdater)
83
+ glob("../CoCreate-plugins/*/.github/workflows/", globUpdater)
84
+
85
+ // substrin (9) removes CoCreateC leving namme as SS
86
+ // glob("../CoCreateCSS/.github/workflows/", globUpdater)
87
+
88
+ // does not need to add name... will require for name to be removed from destination
89
+ // glob("../CoCreateJS/.github/workflows/", globUpdater)
90
+
91
+ console.log('finished')