Skip to content

Commit

Permalink
Added Box
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Jan 14, 2024
1 parent fea15b1 commit a0cca88
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.vscode/
dist/
deno.lock

*.css
report.xml
3 changes: 2 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ const TSConfig: esbuild.BuildOptions = {
outdir: './dist',
entryNames: '[dir]/bundle.min',
entryPoints: [
'./src/**/index.ts',
'./src/**/index.ts'
],
};

if (!args.watch) {

console.log(bold('Coping HTML files...'));

await esbuild.build(HTMLConfig);
Expand Down
71 changes: 71 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/box/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {
LitElement,
TemplateResult,
customElement,
html
} from '../../deps/lit.ts';

@customElement('lit-box')
export class LitBox extends LitElement {

render() : TemplateResult<1> {
return html`<div><slot></slot></div>`;
}
}
4 changes: 4 additions & 0 deletions src/box/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
lit-box {
background-color: red;
}

1 change: 0 additions & 1 deletion src/button/mod.ts

This file was deleted.

Empty file removed src/button_group/mod.ts
Empty file.
13 changes: 13 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="module" src="./box/bundle.min.js" defer></script>
<link rel="stylesheet" href="./bundle.min.css">
</head>
<body>
<lit-box class="lit-box">Button</lit-box>
</body>
</html>
1 change: 0 additions & 1 deletion src/index.ts

This file was deleted.

0 comments on commit a0cca88

Please sign in to comment.