Skip to content

Commit cb4055e

Browse files
author
Ubuntu
committed
feat: set timeout, listen to events and chain togeter multiple actions
1 parent 8f312c4 commit cb4055e

26 files changed

+3370
-1727
lines changed

.github/workflows/automation.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77
pull_request:
88
branches:
9-
- master
9+
- master
1010
create:
1111
branches:
12-
- master
12+
- master
1313

1414
jobs:
1515
about:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
20-
20+
2121
- name: Jaid/action-sync-node-meta
2222
uses: jaid/[email protected]
2323
with:
2424
direction: overwrite-github # default is overwrite-file
2525
githubToken: ${{ secrets.GITHUB }}
26-
26+
2727
release:
2828
runs-on: ubuntu-latest
2929
steps:
@@ -41,14 +41,26 @@ jobs:
4141
@semantic-release/github
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Auto Changog generator
45-
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Auto Changog generator
45+
4646
docs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
5050
uses: actions/checkout@v2
51-
51+
5252
- name: update documentation
5353
uses: CoCreate-app/CoCreate-docs@master
54-
54+
55+
cdn:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v2
60+
61+
- name: upload cdn
62+
uses: CoCreate-app/CoCreate-s3@master
63+
with:
64+
aws-key-id: ${{ secrets.AWSACCESSKEYID }}
65+
aws-access-key: ${{ secrets.AWSSECERTACCESSKEY }}
66+
source: "./dist/CoCreate-action.min.js"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# ignore
12
node_modules

CHANGELOG.md

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
1-
# [1.1.0](https://github.com/CoCreate-app/CoCreate-repositories/compare/v1.0.0...v1.1.0) (2021-04-06)
1+
## [1.0.5](https://github.com/CoCreate-app/CoCreate-action/compare/v1.0.4...v1.0.5) (2021-04-04)
22

33

4-
### Features
4+
### Bug Fixes
5+
6+
* update socket to socket-lient and crud to crud client" ([d08614b](https://github.com/CoCreate-app/CoCreate-action/commit/d08614befb63262679b9c01d3fbdaa7f235cbc27))
7+
8+
## [1.0.4](https://github.com/CoCreate-app/CoCreate-action/compare/v1.0.3...v1.0.4) (2021-03-29)
9+
10+
11+
### Bug Fixes
12+
13+
* Package Paths ([718a875](https://github.com/CoCreate-app/CoCreate-action/commit/718a8750eac5979b459ea50807a600aa437eb912))
14+
15+
## [1.0.3](https://github.com/CoCreate-app/CoCreate-action/compare/v1.0.2...v1.0.3) (2021-01-25)
16+
17+
18+
### Bug Fixes
519

6-
* Initial Release ([b2d09b2](https://github.com/CoCreate-app/CoCreate-repositories/commit/b2d09b22b7551cfefac52609ef0b400ad4f9c45d))
20+
* init by observer and upadte git workflow ([3e1bd72](https://github.com/CoCreate-app/CoCreate-action/commit/3e1bd7271a98dcf6b4559b765d1c77f20c649a87))
721

8-
# 1.0.0 (2021-04-06)
22+
## [1.0.2](https://github.com/CoCreate-app/CoCreate-action/compare/v1.0.1...v1.0.2) (2021-01-22)
23+
24+
25+
### Bug Fixes
26+
27+
* (improved chaining events) ([1a4f61f](https://github.com/CoCreate-app/CoCreate-action/commit/1a4f61fa534857fe653f9130373501894155b732))
28+
29+
## [1.0.1](https://github.com/CoCreate-app/CoCreate-action/compare/v1.0.0...v1.0.1) (2021-01-22)
30+
31+
32+
### Bug Fixes
33+
34+
* (init using observer) ([28e2b8e](https://github.com/CoCreate-app/CoCreate-action/commit/28e2b8e5ce5ab8933fbec49f2f99f94c68e8d70b))
35+
36+
# 1.0.0 (2021-01-22)
937

1038

1139
### Features
1240

13-
* Initial Release ([aa22ac3](https://github.com/CoCreate-app/CoCreate-repositories/commit/aa22ac379e4d02ec159c45600466e7c720195193))
41+
* (Intial Release) ([d9ffa84](https://github.com/CoCreate-app/CoCreate-action/commit/d9ffa842962cbd3176e14377b0467d0396285251))
42+
43+
# CHANGELOG

CONTRIBUTING.md

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
# Contributing to CoCreate-repositories
1+
# Contributing to CoCreate-action
22

3-
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-repositories/graphs/contributors).
4-
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-repositories/pulls),
5-
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-repositories/issues).
3+
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-action/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-action/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-action/issues).
66

77
In the examples below, substitute your Github username for `contributor` in URLs.
88

99
## Fork the Project
1010

11-
Fork the [project on Github](https://github.com/CoCreate-app/CoCreate-repositories) and check out your copy.
11+
Fork the [project on Github](https://github.com/CoCreate-app/CoCreate-action) and check out your copy.
1212

1313
```
14-
git repositories https://github.com/contributor/CoCreate-repositories.git
15-
cd CoCreate-repositories
16-
git remote add upstream https://github.com/CoCreate-app/CoCreate-repositories.git
14+
git clone https://github.com/contributor/CoCreate-action.git
15+
cd CoCreate-action
16+
git remote add upstream https://github.com/CoCreate-app/CoCreate-action.git
1717
```
1818

1919
## Create a Topic Branch
2020

21-
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix on dev branch.
21+
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
2222

2323
```
24-
git checkout dev
25-
git pull upstream dev
24+
git checkout master
25+
git pull upstream master
2626
git checkout -b my-feature-branch
2727
```
2828

2929
## Write Tests
3030

3131
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
32+
Add to [spec](spec).
3233

3334
We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
3435

@@ -40,6 +41,11 @@ Implement your feature or bug fix.
4041

4142
Document any external behavior in the [README](README.md).
4243

44+
## Update Changelog
45+
46+
Add a line to [CHANGELOG](CHANGELOG.md) under *Next Release*.
47+
Make it look like every other line, including your name and link to your Github account.
48+
4349
## Commit Changes
4450

4551
Make sure git knows your name and email address:
@@ -49,24 +55,13 @@ git config --global user.name "Your Name"
4955
git config --global user.email "[email protected]"
5056
```
5157

52-
We use [semantic-release](https://github.com/semantic-release/semantic-release) as process to generate changelog
53-
and to release. Write meaningful commits according to
54-
[Commit Message Formats](https://github.com/semantic-release/semantic-release#commit-message-format) is important.
58+
Writing good commit logs is important. A commit log should describe what changed and why.
5559

5660
```
5761
git add ...
58-
git commit -am "commit-type(optional topic): a meaningful message"
62+
git commit
5963
```
6064

61-
Here is an example of the release type that should be done based on a [semantic-release](https://github.com/semantic-release/semantic-release):
62-
63-
| Commit message | Release type |
64-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
65-
| `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release |
66-
| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
67-
| `perf(pencil): remove graphiteWidth option`<br><br>`BREAKING CHANGE: The graphiteWidth option has been removed.`<br>`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |
68-
69-
7065
## Push
7166

7267
```
@@ -75,22 +70,41 @@ git push origin my-feature-branch
7570

7671
## Make a Pull Request
7772

78-
Go to [https://github.com/CoCreate-app/CoCreate-repositories](https://github.com/CoCreate-app/CoCreate-repositories) and select your feature branch.
73+
Go to [https://github.com/CoCreate-app/CoCreate-action](https://github.com/CoCreate-app/CoCreate-action) and select your feature branch.
7974
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
8075

8176
## Rebase
8277

83-
If you've been working on a change for a while, rebase with upstream/dev.
78+
If you've been working on a change for a while, rebase with upstream/master.
8479

8580
```
8681
git fetch upstream
87-
git rebase upstream/dev
82+
git rebase upstream/master
8883
git push origin my-feature-branch -f
8984
```
9085

86+
## Update CHANGELOG Again
87+
88+
Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
89+
90+
```
91+
* [#123](https://github.com/CoCreate-app/CoCreate-industry/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
92+
```
93+
94+
Amend your previous commit and force push the changes.
95+
96+
```
97+
git commit --amend
98+
git push origin my-feature-branch -f
99+
```
100+
101+
## Check on Your Pull Request
102+
103+
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
104+
91105
## Be Patient
92106

93-
It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang in there!
107+
It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
94108

95109
## Thank You
96110

CoCreate.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ module.exports = {
99
sources: [{
1010
path: "./docs/index.html",
1111
collection: "files",
12-
document_id: "603c3588d8b57f4783b4ed6e",
12+
document_id: "60145dc49f64ba1680b86693",
1313
key: "html",
1414
data:{
15-
name: "Repositories Doc",
15+
name: "Action Doc",
1616
}
1717
},
1818
],
1919

2020
crud: [{
2121
collection: "routes",
22-
document_id: "603c3588d8b57f4783b4ed6d",
22+
document_id: "60145dc49f64ba1680b86692",
2323
data:{
2424
collection: "files",
25-
document_id: "603c3588d8b57f4783b4ed6e",
25+
document_id: "60145dc49f64ba1680b86693",
2626
name: "html",
2727
domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
28-
route: "/docs/repositories",
28+
route: "/docs/action",
2929
}
3030
}
3131
],

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# CoCreate-repositories
2-
A simple repositories component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/repositories)
1+
# CoCreate-action
2+
A simple action component in vanilla javascript. Chain multiple functions and execute in a specified order. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/action)
33

4-
![GitHub file size in bytes](https://img.shields.io/github/size/CoCreate-app/CoCreate-repositories/dist/CoCreate-repositories.min.js?label=minified%20size&style=for-the-badge)
5-
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-repositories?style=for-the-badge)
6-
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-repositories?style=for-the-badge)
7-
![GitHub labels](https://img.shields.io/github/labels/CoCreate-app/CoCreate-repositories/help%20wanted?style=for-the-badge)
4+
![GitHub file size in bytes](https://img.shields.io/github/size/CoCreate-app/CoCreate-action/dist/CoCreate-action.min.js?label=minified%20size&style=for-the-badge)
5+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-action?style=for-the-badge)
6+
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-action?style=for-the-badge)
7+
![GitHub labels](https://img.shields.io/github/labels/CoCreate-app/CoCreate-action/help%20wanted?style=for-the-badge)
88

99
![CoCreate](https://cdn.cocreate.app/logo.png)
1010

11-
[CoCreate Docs](https://cocreate.app/docs/repositories)
11+
[CoCreate Docs](https://cocreate.app/docs/action)
1212

1313
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/Realtime_Admin_CRM_and_CMS/issues) and [pull requests](https://github.com/CoCreate-app/Realtime_Admin_CRM_and_CMS/pulls) or merely upvote or comment on existing issues or pull requests.
1414

@@ -26,28 +26,27 @@ We appreciate your continued support, thank you!
2626
<a name="announcements"></a>
2727
# Announcements
2828

29-
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-repositories/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-repositories/releases). You may also subscribe to email for releases and breaking changes.
29+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-action/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-action/releases). You may also subscribe to email for releases and breaking changes.
3030

3131
<a name="roadmap"></a>
3232
# Roadmap
3333

34-
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-repositories/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-repositories/pulls). We would love to hear your feedback.
34+
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-action/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-action/pulls). We would love to hear your feedback.
3535

3636

3737
<a name="about"></a>
3838
# About
3939

40-
CoCreate-repositories is guided and supported by the CoCreate Developer Experience Team.
40+
CoCreate-action is guided and supported by the CoCreate Developer Experience Team.
4141

4242
Please Email the Developer Experience Team [here](mailto:[email protected]) in case of any queries.
4343

44-
CoCreate-repositories is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
44+
CoCreate-action is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
4545

4646
<a name="contribute"></a>
4747
# How to Contribute
4848

49-
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-repositories/blob/master/CONTRIBUTING.md) guide for details.
49+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-action/blob/master/CONTRIBUTING.md) guide for details.
5050

5151
# License
52-
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-repositories/blob/master/LICENSE)
53-
52+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-action/blob/master/LICENSE)

0 commit comments

Comments
 (0)