Skip to content

Commit 57c489d

Browse files
committed
feat: Initial Release
0 parents  commit 57c489d

File tree

14 files changed

+935
-0
lines changed

14 files changed

+935
-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/automated.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Automated Workflow
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@v3
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- name: Jaid/action-sync-node-meta
17+
uses: jaid/action-sync-node-meta@v1.4.0
18+
with:
19+
direction: overwrite-github
20+
githubToken: "${{ secrets.GITHUB }}"
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 14
30+
- name: Semantic Release
31+
uses: cycjimmy/semantic-release-action@v3
32+
id: semantic
33+
with:
34+
extra_plugins: |
35+
@semantic-release/changelog
36+
@semantic-release/git
37+
@semantic-release/github
38+
env:
39+
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
40+
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
41+
outputs:
42+
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
43+
new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
44+

.github/workflows/manual.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Manual Workflow
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
invalidations:
6+
description: |
7+
If set to 'true', invalidates previous upload.
8+
default: "true"
9+
required: true
10+
11+
jobs:
12+
cdn:
13+
runs-on: ubuntu-latest
14+
env:
15+
DRY_RUN: ${{ github.event.inputs.dry_run }}
16+
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
17+
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
- name: setup nodejs
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 16
26+
- name: yarn install
27+
run: >
28+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
29+
.npmrc
30+
31+
yarn install
32+
- name: yarn build
33+
run: yarn build
34+
- name: upload latest bundle
35+
uses: CoCreate-app/CoCreate-s3@master
36+
with:
37+
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
38+
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
39+
distributionId: "${{ secrets.DISTRIBUTION_ID }}"
40+
bucket: testcrudbucket
41+
source: ./dist
42+
destination: /webpack/latest
43+
acl: public-read
44+
invalidations: ${{ github.event.inputs.invalidations }}

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ignore
2+
node_modules
3+
dist
4+
package-lock.json
5+
yarn.lock
6+
pnpm-lock.yaml
7+
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
.pnpm-debug.log*

CHANGELOG.md

Whitespace-only changes.

CONTRIBUTING.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Contributing to CoCreate-webpack
2+
3+
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-webpack/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-webpack/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-webpack/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/CoCreate-webpack) and check out your copy.
12+
13+
```
14+
git clone https://github.com/contributor/CoCreate-webpack.git
15+
cd CoCreate-webpack
16+
git remote add upstream https://github.com/CoCreate-app/CoCreate-webpack.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.
22+
23+
```
24+
git checkout master
25+
git pull upstream master
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+
Add to [spec](spec).
33+
34+
We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
35+
36+
## Write Code
37+
38+
Implement your feature or bug fix.
39+
40+
## Write Documentation
41+
42+
Document any external behavior in the [README](README.md).
43+
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+
49+
## Commit Changes
50+
51+
Make sure git knows your name and email address:
52+
53+
```
54+
git config --global user.name "Your Name"
55+
git config --global user.email "contributor@example.com"
56+
```
57+
58+
Writing good commit logs is important. A commit log should describe what changed and why.
59+
60+
```
61+
git add ...
62+
git commit
63+
```
64+
65+
## Push
66+
67+
```
68+
git push origin my-feature-branch
69+
```
70+
71+
## Make a Pull Request
72+
73+
Go to [https://github.com/CoCreate-app/CoCreate-webpack](https://github.com/CoCreate-app/CoCreate-webpack) and select your feature branch.
74+
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
75+
76+
## Rebase
77+
78+
If you've been working on a change for a while, rebase with upstream/master.
79+
80+
```
81+
git fetch upstream
82+
git rebase upstream/master
83+
git push origin my-feature-branch -f
84+
```
85+
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+
105+
## Be Patient
106+
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!
108+
109+
## Thank You
110+
111+
Please do know that we really appreciate and value your time and work. We love you, really.

CoCreate.config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
"organization_id": "",
3+
"key": "",
4+
"host": "",
5+
"directories": [
6+
{
7+
"entry": "./demo",
8+
"array": "files",
9+
"object": {
10+
"name": "{{name}}",
11+
"src": "{{source}}",
12+
"host": [
13+
"*"
14+
],
15+
"directory": "/demo/webpack/{{directory}}",
16+
"path": "{{path}}",
17+
"pathname": "{{pathname}}",
18+
"content-type": "{{content-type}}",
19+
"public": "true"
20+
}
21+
}
22+
],
23+
"sources": [
24+
{
25+
"array": "files",
26+
"object": {
27+
"_id": "61a12db2a8b6b4001a9f5a2e",
28+
"name": "index.html",
29+
"path": "/docs/webpack",
30+
"pathname": "/docs/webpack/index.html",
31+
"src": "{{./docs/index.html}}",
32+
"host": [
33+
"*"
34+
],
35+
"directory": "webpack",
36+
"content-type": "{{content-type}}",
37+
"public": "true"
38+
}
39+
}
40+
]
41+
};

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) 2021 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: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# CoCreate-webpack
2+
3+
A convenient chain handler allows user to chain multiple CoCreate components together. When one action is complete next one will start. The sequence goes untill all webpack completed. Grounded on Vanilla javascript, easily configured using HTML5 attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/webpack)
4+
5+
![minified](https://img.badgesize.io/https://cdn.cocreate.app/webpack/latest/CoCreate-webpack.min.js?style=flat-square&label=minified&color=orange)
6+
![gzip](https://img.badgesize.io/https://cdn.cocreate.app/webpack/latest/CoCreate-webpack.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
7+
![brotli](https://img.badgesize.io/https://cdn.cocreate.app/webpack/latest/CoCreate-webpack.min.js?compression=brotli&style=flat-square&label=brotli)
8+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-action?style=flat-square)
9+
![License](https://img.shields.io/github/license/CoCreate-app/CoCreate-action?style=flat-square)
10+
![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
11+
12+
![CoCreate-webpack](https://cdn.cocreate.app/docs/CoCreate-webpack.gif)
13+
14+
## [Docs & Demo](https://cocreate.app/docs/webpack)
15+
16+
For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/webpack)
17+
18+
## CDN
19+
20+
```html
21+
<script src="https://cdn.cocreate.app/webpack/latest/CoCreate-webpack.min.js"></script>
22+
```
23+
24+
```html
25+
<script src="https://cdn.cocreate.app/webpack/latest/CoCreate-webpack.min.css"></script>
26+
```
27+
28+
## NPM
29+
30+
```shell
31+
$ npm i @cocreate/webpack
32+
```
33+
34+
## yarn
35+
36+
```shell
37+
$ yarn install @cocreate/webpack
38+
```
39+
40+
# Table of Contents
41+
42+
- [Table of Contents](#table-of-contents)
43+
- [Announcements](#announcements)
44+
- [Roadmap](#roadmap)
45+
- [How to Contribute](#how-to-contribute)
46+
- [About](#about)
47+
- [License](#license)
48+
49+
<a name="announcements"></a>
50+
51+
# Announcements
52+
53+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-webpack/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-webpack/releases). You may also subscribe to email for releases and breaking changes.
54+
55+
<a name="roadmap"></a>
56+
57+
# Roadmap
58+
59+
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-webpack/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-webpack/pulls). We would love to hear your feedback.
60+
61+
<a name="about"></a>
62+
63+
# About
64+
65+
CoCreate-webpack is guided and supported by the CoCreate Developer Experience Team.
66+
67+
Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
68+
69+
CoCreate-webpack is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
70+
71+
<a name="contribute"></a>
72+
73+
# How to Contribute
74+
75+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-webpack/blob/master/CONTRIBUTING.md) guide for details.
76+
77+
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-webpack/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-webpack/pulls) or merely upvote or comment on existing issues or pull requests.
78+
79+
We appreciate your continued support, thank you!
80+
81+
<a name="license"></a>
82+
83+
# License
84+
85+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-webpack/blob/master/LICENSE)

0 commit comments

Comments
 (0)