Skip to content

Commit

Permalink
chore: add demo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 20, 2024
1 parent e512063 commit 0924869
Show file tree
Hide file tree
Showing 10 changed files with 2,450 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lerna-debug.log*
node_modules
.DS_Store
dist
tmp
lib
junit.xml

.vscode/*
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default eslintTs.config(
...eslintTs.configs.recommended,
eslintPluginPrettierRecommended,
{
ignores: ['**/node_modules/', '**/dist/'],
ignores: ['node_modules/', 'dist/', 'lib/'],
},
{
plugins: {
Expand Down
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"
/>
<title>Astro Decap Collection Demo</title>
<link rel="stylesheet" href="./src/demo/demo.css" />

<script type="module" src="./src/demo/demo.ts"></script>
<script type="module" src="./src/index.ts"></script>
</head>
<body>
<button onclick="window.handleExample(event)">Example</button>
<textarea oninput="window.handleInput(event)" placeholder="Paste your Decap config.yml here">
</textarea>
<pre id="config"><code data-label="0"></code></pre>
<pre id="schema"><code data-label="none"></code></pre>
</body>
</html>
Loading

0 comments on commit 0924869

Please sign in to comment.