Skip to content

Commit

Permalink
Add lib and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbepa committed Feb 7, 2023
1 parent ea69e17 commit 0e1b14e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
22 changes: 11 additions & 11 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>@verndale/core 2.1.0 | Documentation</title>
<title>@verndale/core 2.1.1 | Documentation</title>
<meta name='description' content='Collection of JavaScript helpers meant to be used for core development.'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>@verndale/core</h3>
<div class='mb1'><code>2.1.0</code></div>
<div class='mb1'><code>2.1.1</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -125,7 +125,7 @@ <h3 class='fl m0' id='component'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L45-L58'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L45-L58'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -228,7 +228,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L51-L51'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L51-L51'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -292,7 +292,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L57-L57'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L57-L57'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -356,7 +356,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L74-L74'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L74-L74'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -420,7 +420,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L112-L114'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L112-L114'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -502,7 +502,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L142-L149'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L142-L149'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -602,7 +602,7 @@ <h3 class='fl m0' id='component'>
<div class='clearfix'>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/Component.ts#L159-L161'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/Component.ts#L159-L161'>
<span>src/Component.ts</span>
</a>

Expand Down Expand Up @@ -679,7 +679,7 @@ <h3 class='fl m0' id='organism'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/index.ts#L6-L95'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/index.ts#L6-L95'>
<span>src/index.ts</span>
</a>

Expand Down Expand Up @@ -928,7 +928,7 @@ <h3 class='fl m0' id='render'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/9975f043b6bf53e6de6d28d0265814a195190abd/src/render.ts#L14-L35'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/verndale/core/blob/ea69e17f70c4211ee9b5e8cdedf8af3b111d505e/src/render.ts#L14-L35'>
<span>src/render.ts</span>
</a>

Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export declare type Organism = {
name: string;
loader?: () => Promise<any>;
styles?: () => Promise<any>;
render?: (module: unknown, el: NodeListOf<HTMLElement>) => void;
render?: (module: any, el: NodeListOf<HTMLElement>) => void;
props?: any;
};
export default function create(organisms: Array<Organism>): Promise<void[]>;
Expand Down
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function create(organisms) {
const { module, el } = data;
if (organism.render && typeof organism.render === "function") {
organism.render(module, el);
return;
}
(0, render_1.default)(el, ($target) => {
new module($target, organism.props);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@verndale/core",
"version": "2.1.0",
"version": "2.1.1",
"description": "Collection of JavaScript helpers meant to be used for core development.",
"license": "MIT",
"main": "lib/index.js",
Expand Down

0 comments on commit 0e1b14e

Please sign in to comment.