Skip to content

Commit 52d5468

Browse files
committed
feat: Initial Release
0 parents  commit 52d5468

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6785
-0
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: CoCreate-app

.github/workflows/automation.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
about:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Jaid/action-sync-node-meta
13+
uses: jaid/[email protected]
14+
with:
15+
direction: overwrite-github
16+
githubToken: '${{ secrets.GITHUB }}'
17+
18+
release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Semantic Release
24+
uses: cycjimmy/semantic-release-action@v2
25+
id: semantic
26+
with:
27+
extra_plugins: |
28+
@semantic-release/changelog
29+
@semantic-release/npm
30+
@semantic-release/git
31+
@semantic-release/github
32+
env:
33+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
34+
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
35+
outputs:
36+
new_release_published: '${{ steps.semantic.outputs.new_release_published }}'
37+
new_release_version: '${{ steps.semantic.outputs.new_release_version }}'
38+
39+
cdn:
40+
runs-on: ubuntu-latest
41+
needs: release
42+
if: needs.release.outputs.new_release_published == 'true'
43+
env:
44+
VERSION: '${{ needs.release.outputs.new_release_version }}'
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v2
48+
- name: setup nodejs
49+
uses: actions/setup-node@v2
50+
with:
51+
node-version: 14.15.4
52+
- run: yarn install --frozen-lockfile
53+
- run: yarn build
54+
- name: upload cdn
55+
uses: CoCreate-app/CoCreate-s3@master
56+
with:
57+
aws-key-id: '${{ secrets.AWSACCESSKEYID }}'
58+
aws-access-key: '${{ secrets.AWSSECERTACCESSKEY }}'
59+
bucket: testcrudbucket
60+
source: ./dist
61+
destination: '/${{env.VERSION}}'
62+
acl: 'public-read'
63+

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ignore
2+
node_modules
3+
prod
4+
dist

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

CONTRIBUTING.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Contributing to CoCreateJS
2+
3+
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreateJS/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreateJS/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreateJS/issues).
6+
7+
In the examples below, substitute your Github username for `contributor` in URLs.
8+
9+
## Fork the Project
10+
11+
Fork the [project on Github](https://github.com/CoCreate-app/CoCreateJS) and check out your copy.
12+
13+
```
14+
git CoCreateJS https://github.com/contributor/CoCreateJS.git
15+
cd CoCreateJS
16+
git remote add upstream https://github.com/CoCreate-app/CoCreateJS.git
17+
```
18+
19+
## Create a Topic Branch
20+
21+
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix on dev branch.
22+
23+
```
24+
git checkout dev
25+
git pull upstream dev
26+
git checkout -b my-feature-branch
27+
```
28+
29+
## Write Tests
30+
31+
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
32+
33+
We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
34+
35+
## Write Code
36+
37+
Implement your feature or bug fix.
38+
39+
## Write Documentation
40+
41+
Document any external behavior in the [README](README.md).
42+
43+
## Commit Changes
44+
45+
Make sure git knows your name and email address:
46+
47+
```
48+
git config --global user.name "Your Name"
49+
git config --global user.email "[email protected]"
50+
```
51+
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.
55+
56+
```
57+
git add ...
58+
git commit -am "commit-type(optional topic): a meaningful message"
59+
```
60+
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+
70+
## Push
71+
72+
```
73+
git push origin my-feature-branch
74+
```
75+
76+
## Make a Pull Request
77+
78+
Go to [https://github.com/CoCreate-app/CoCreateJS](https://github.com/CoCreate-app/CoCreateJS) and select your feature branch.
79+
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
80+
81+
## Rebase
82+
83+
If you've been working on a change for a while, rebase with upstream/dev.
84+
85+
```
86+
git fetch upstream
87+
git rebase upstream/dev
88+
git push origin my-feature-branch -f
89+
```
90+
91+
## Be Patient
92+
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!
94+
95+
## Thank You
96+
97+
Please do know that we really appreciate and value your time and work. We love you, really.

CoCreate.config.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
module.exports = {
2+
config: {
3+
apiKey: "c2b08663-06e3-440c-ef6f-13978b42883a",
4+
securityKey: "f26baf68-e3a9-45fc-effe-502e47116265",
5+
organization_Id: "5de0387b12e200ea63204d6c",
6+
host: "server.cocreate.app:8088"
7+
},
8+
9+
sources: [{
10+
path: "./docs/index.html",
11+
collection: "files",
12+
document_id: "602726f95e697f4f26a98a57",
13+
key: "html",
14+
data:{
15+
name: "CoCreateJS Doc",
16+
}
17+
},
18+
{
19+
path: "./docs/menu.html",
20+
collection: "components",
21+
document_id: "603717b07de7fb350ae9fec8",
22+
key: "html",
23+
data:{
24+
name: "CoCreateJS Doc Menu",
25+
}
26+
},
27+
{
28+
path: "./docs/navbar.html",
29+
collection: "components",
30+
document_id: "60395ef42b3ac232657040fd",
31+
key: "html",
32+
data:{
33+
name: "CoCreateJS Doc Navbar",
34+
}
35+
},
36+
],
37+
38+
crud: [{
39+
collection: "routes",
40+
document_id: "602726f95e697f4f26a98a56",
41+
data:{
42+
collection: "files",
43+
document_id: "602726f95e697f4f26a98a57",
44+
name: "html",
45+
domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
46+
route: "/docs/CoCreateJS",
47+
}
48+
}
49+
],
50+
51+
extract: {
52+
directory: "./src/",
53+
extensions: [
54+
"js",
55+
"css",
56+
"html"
57+
],
58+
ignores: [
59+
"node_modules",
60+
"vendor",
61+
"bower_components",
62+
"archive"
63+
],
64+
}
65+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 CoCreate LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# CoCreateJS
2+
A simple CoCreateJS 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/CoCreateJS)
3+
4+
![GitHub file size in bytes](https://img.shields.io/github/size/CoCreate-app/CoCreateJS/dist/CoCreateJS.min.js?label=minified%20size&style=for-the-badge)
5+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreateJS?style=for-the-badge)
6+
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreateJS?style=for-the-badge)
7+
![GitHub labels](https://img.shields.io/github/labels/CoCreate-app/CoCreateJS/help%20wanted?style=for-the-badge)
8+
9+
![CoCreate](https://cdn.cocreate.app/logo.png)
10+
11+
[CoCreate Docs](https://cocreate.app/docs/CoCreateJS)
12+
13+
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.
14+
15+
We appreciate your continued support, thank you!
16+
17+
# Table of Contents
18+
19+
- [Table of Contents](#table-of-contents)
20+
- [Announcements](#announcements)
21+
- [Roadmap](#roadmap)
22+
- [How to Contribute](#how-to-contribute)
23+
- [About](#about)
24+
- [License](#license)
25+
26+
<a name="announcements"></a>
27+
# Announcements
28+
29+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreateJS/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreateJS/releases). You may also subscribe to email for releases and breaking changes.
30+
31+
<a name="roadmap"></a>
32+
# Roadmap
33+
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/CoCreateJS/issues) and [pull requests](https://github.com/CoCreate-app/CoCreateJS/pulls). We would love to hear your feedback.
35+
36+
37+
<a name="about"></a>
38+
# About
39+
40+
CoCreateJS is guided and supported by the CoCreate Developer Experience Team.
41+
42+
Please Email the Developer Experience Team [here](mailto:[email protected]) in case of any queries.
43+
44+
CoCreateJS is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
45+
46+
<a name="contribute"></a>
47+
# How to Contribute
48+
49+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreateJS/blob/master/CONTRIBUTING.md) guide for details.
50+
51+
# License
52+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreateJS/blob/master/LICENSE)
53+

babel

Whitespace-only changes.

0 commit comments

Comments
 (0)