Skip to content

Commit 0202811

Browse files
committed
feat: intial release
1 parent 8fdca63 commit 0202811

File tree

15 files changed

+106
-430
lines changed

15 files changed

+106
-430
lines changed

.github/workflows/automated.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
6262
bucket: testcrudbucket
6363
source: ./dist
64-
destination: "/boilerplate/${{env.VERSION}}"
64+
destination: "/lazy-loader/${{env.VERSION}}"
6565
acl: public-read
6666
- name: upload bundle as latest
6767
uses: CoCreate-app/CoCreate-s3@master
@@ -70,7 +70,7 @@ jobs:
7070
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
7171
bucket: testcrudbucket
7272
source: ./dist
73-
destination: /boilerplate/latest
73+
destination: /lazy-loader/latest
7474
acl: public-read
7575
invalidations: true
7676
docs:

.github/workflows/manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
distributionId: "${{ secrets.DISTRIBUTION_ID }}"
4040
bucket: testcrudbucket
4141
source: ./dist
42-
destination: /boilerplate/latest
42+
destination: /lazy-loader/latest
4343
acl: public-read
4444
invalidations: ${{ github.event.inputs.invalidations }}

CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
# [1.2.0](https://github.com/CoCreate-app/CoCreate-boilerplate/compare/v1.1.1...v1.2.0) (2021-10-06)
2-
3-
4-
### Features
5-
6-
* Initial Release ([a9eb97a](https://github.com/CoCreate-app/CoCreate-boilerplate/commit/a9eb97a8adc059a5c51416cce1ef13add5ec736a))

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Contributing to CoCreate-boilerplate
1+
# Contributing to CoCreate-lazy-loader
22

3-
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-boilerplate/graphs/contributors).
4-
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-boilerplate/pulls),
5-
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-boilerplate/issues).
3+
This project is work of [many contributors](https://github.com/CoCreate-app/CoCreate-lazy-loader/graphs/contributors).
4+
You're encouraged to submit [pull requests](https://github.com/CoCreate-app/CoCreate-lazy-loader/pulls),
5+
[propose features and discuss issues](https://github.com/CoCreate-app/CoCreate-lazy-loader/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-boilerplate) and check out your copy.
11+
Fork the [project on Github](https://github.com/CoCreate-app/CoCreate-lazy-loader) and check out your copy.
1212

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

1919
## Create a Topic Branch
@@ -75,7 +75,7 @@ git push origin my-feature-branch
7575

7676
## Make a Pull Request
7777

78-
Go to [https://github.com/CoCreate-app/CoCreate-boilerplate](https://github.com/CoCreate-app/CoCreate-boilerplate) and select your feature branch.
78+
Go to [https://github.com/CoCreate-app/CoCreate-lazy-loader](https://github.com/CoCreate-app/CoCreate-lazy-loader) and select your feature branch.
7979
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
8080

8181
## Rebase

CoCreate.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = {
1212
"key": "src",
1313
"data":{
1414
"name": "index.html",
15-
"path": "/docs/boilerplate/index.html",
15+
"path": "/docs/lazy-loader/index.html",
1616
"domains": [
1717
"cocreate.app",
1818
"general.cocreate.app"
1919
],
20-
"directory": "/docs/boilerplate",
20+
"directory": "/docs/lazy-loader",
2121
"content-type": "text/html",
2222
"public": "true",
2323
"website_id": "5ffbceb7f11d2d00103c4535"

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
# CoCreate-boilerplate
1+
# CoCreate-lazy-loader
22

3-
A simple boilerplate 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/boilerplate)
3+
A simple lazy-loader 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/lazy-loader)
44

5-
![min file size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.js?style=flat-square&label=minified&color=orange)
6-
![gzip file size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
7-
![brotlifile size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.js?compression=brotli&style=flat-square&label=brotli)
8-
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-boilerplate?style=flat-square)
9-
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-boilerplate?style=flat-square)
5+
![min file size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.js?style=flat-square&label=minified&color=orange)
6+
![gzip file size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow)
7+
![brotlifile size in bytes](https://img.badgesize.io/https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.js?compression=brotli&style=flat-square&label=brotli)
8+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-lazy-loader?style=flat-square)
9+
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-lazy-loader?style=flat-square)
1010
![GitHub](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet)
1111

1212

13-
![CoCreate-boilerplate](https://cdn.cocreate.app/docs/CoCreate-boilerplate.gif)
13+
![CoCreate-lazy-loader](https://cdn.cocreate.app/docs/CoCreate-lazy-loader.gif)
1414

15-
## [Docs & Demo](https://cocreate.app/docs/boilerplate)
15+
## [Docs & Demo](https://cocreate.app/docs/lazy-loader)
1616

17-
For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/boilerplate)
17+
For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/lazy-loader)
1818

1919
## CDN
2020

2121
```html
22-
<script src="https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.js"></script>
22+
<script src="https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.js"></script>
2323
```
2424

2525
```html
26-
<script src="https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.css"></script>
26+
<script src="https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.css"></script>
2727
```
2828

2929
## NPM
3030

3131
```shell
32-
$ npm i @cocreate/boilerplate
32+
$ npm i @cocreate/lazy-loader
3333
```
3434

3535
## yarn
3636

3737
```shell
38-
$ yarn install @cocreate/boilerplate
38+
$ yarn install @cocreate/lazy-loader
3939
```
4040

4141
# Table of Contents
@@ -51,34 +51,34 @@ $ yarn install @cocreate/boilerplate
5151

5252
# Announcements
5353

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

5656
<a name="roadmap"></a>
5757

5858
# Roadmap
5959

60-
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-boilerplate/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-boilerplate/pulls). We would love to hear your feedback.
60+
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-lazy-loader/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-lazy-loader/pulls). We would love to hear your feedback.
6161

6262
<a name="about"></a>
6363

6464
# About
6565

66-
CoCreate-boilerplate is guided and supported by the CoCreate Developer Experience Team.
66+
CoCreate-lazy-loader is guided and supported by the CoCreate Developer Experience Team.
6767

6868
Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
6969

70-
CoCreate-boilerplate is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
70+
CoCreate-lazy-loader is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
7171

7272
<a name="contribute"></a>
7373

7474
# How to Contribute
7575

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

78-
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-boilerplate/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-boilerplate/pulls) or merely upvote or comment on existing issues or pull requests.
78+
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-lazy-loader/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-lazy-loader/pulls) or merely upvote or comment on existing issues or pull requests.
7979

8080
We appreciate your continued support, thank you!
8181

8282
# License
8383

84-
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-boilerplate/blob/master/LICENSE)
84+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-lazy-loader/blob/master/LICENSE)

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
9-
<title>boilerplate | CoCreateJS</title>
9+
<title>lazy-loader | CoCreateJS</title>
1010
</head>
1111

1212
<body>
@@ -20,7 +20,7 @@
2020
}
2121
</script>
2222

23-
<!--<script src="https://cdn.cocreate.app/boilerplate/latest/CoCreate-boilerplate.min.js"></script>-->
23+
<!--<script src="https://cdn.cocreate.app/lazy-loader/latest/CoCreate-lazy-loader.min.js"></script>-->
2424
<script src="../../../CoCreateJS/dist/CoCreate.js"></script>
2525

2626
</body>

docs/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<title>CoCreate-boilerplate Documentation | CoCreateJS </title>
7+
<title>CoCreate-lazy-loader Documentation | CoCreateJS </title>
88
<link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
99
<meta name="description" content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
1010
<meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
@@ -16,45 +16,45 @@
1616
</head>
1717

1818
<body>
19-
<div collection="" document_id="" name="" id="cocreate-boilerplate">
19+
<div collection="" document_id="" name="" id="cocreate-lazy-loader">
2020
<div class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
2121
<div class="display:flex align-items:center">
22-
<h2>CoCreate-boilerplate</h2>
22+
<h2>CoCreate-lazy-loader</h2>
2323
</div>
2424
<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">
25-
<a href="https://github.com/CoCreate-app/CoCreate-boilerplate" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
25+
<a href="https://github.com/CoCreate-app/CoCreate-lazy-loader" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
2626
<a class="margin-right:15px share" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
2727
<a class="margin-right:15px share" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
2828
<a class="margin-right:15px share" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
2929
<a class="margin-right:15px share" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
3030
</div>
3131
</div>
3232
<p class="max-width:500px margin:20px_10px">A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable.</h1>
33-
<div id="boilerplate-section" class="display:flex flex-wrap:wrap">
33+
<div id="lazy-loader-section" class="display:flex flex-wrap:wrap">
3434
<div class="flex-grow:1 width:300px padding:20px_10px">
3535
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Install</h2>
36-
<pre class="margin-top:15px"><code class="language-javascript">npm install cocreate-boilerplate</code></pre>
36+
<pre class="margin-top:15px"><code class="language-javascript">npm install cocreate-lazy-loader</code></pre>
3737
<p class="padding:10px_0px">Or you can use cdn link:</p>
38-
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-boilerplate.min.js</code></pre>
38+
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-lazy-loader.min.js</code></pre>
3939

4040
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Usage</h2>
41-
<p class="padding:10px_0px">boilerplate usage content</p>
41+
<p class="padding:10px_0px">lazy-loader usage content</p>
4242
<pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
4343

4444
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Reference</h2>
45-
<p class="padding:10px_0px">This is boilerplate reference content</p>
45+
<p class="padding:10px_0px">This is lazy-loader reference content</p>
4646
<pre><code class="language-javascript">&lt;div&gt;&lt;/div&gt;</code></pre>
47-
<p class="padding:10px_0px">This is boilerplate reference content</p>
47+
<p class="padding:10px_0px">This is lazy-loader reference content</p>
4848

4949
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Attributes</h2>
5050
<ul class="list-style-type:none ">
5151
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
52-
<h4><span>boilerplate</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
53-
<p>boilerplate-attribute</p>
52+
<h4><span>lazy-loader</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
53+
<p>lazy-loader-attribute</p>
5454
</li>
5555
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
56-
<h4><span>boilerplate</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
57-
<p>boilerplate-attribute</p>
56+
<h4><span>lazy-loader</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
57+
<p>lazy-loader-attribute</p>
5858
</li>
5959
</ul>
6060
</div>

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@cocreate/boilerplate",
3-
"version": "1.2.0",
4-
"description": "A simple boilerplate component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
2+
"name": "@cocreate/lazy-loader",
3+
"version": "1.0.0",
4+
"description": "A simple lazy-loader component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
55
"keywords": [
6-
"boilerplate",
6+
"lazy-loader",
77
"cocreate",
88
"low-code-framework",
99
"no-code-framework",
@@ -32,14 +32,14 @@
3232
},
3333
"repository": {
3434
"type": "git",
35-
"url": "git+https://github.com/CoCreate-app/CoCreate-boilerplate.git"
35+
"url": "git+https://github.com/CoCreate-app/CoCreate-lazy-loader.git"
3636
},
3737
"author": "CoCreate LLC",
3838
"license": "MIT",
3939
"bugs": {
40-
"url": "https://github.com/CoCreate-app/CoCreate-boilerplate/issues"
40+
"url": "https://github.com/CoCreate-app/CoCreate-lazy-loader/issues"
4141
},
42-
"homepage": "https://cocreate.app/docs/boilerplate",
42+
"homepage": "https://cocreate.app/docs/lazy-loader",
4343
"funding": {
4444
"type": "GitHub Sponsors ❤",
4545
"url": "https://github.com/sponsors/CoCreate-app"
@@ -62,6 +62,7 @@
6262
},
6363
"dependencies": {
6464
"@cocreate/docs": "^1.2.26",
65-
"@cocreate/hosting": "^1.2.22"
65+
"@cocreate/hosting": "^1.2.22",
66+
"@cocreate/observer": "^1.3.56"
6667
}
6768
}

0 commit comments

Comments
 (0)