Skip to content

Commit

Permalink
fix: spelling errors caused the package to be unreferenceable
Browse files Browse the repository at this point in the history
  • Loading branch information
logeast committed Aug 1, 2023
1 parent 8e513d8 commit 1e2e528
Show file tree
Hide file tree
Showing 12 changed files with 563 additions and 1 deletion.
15 changes: 15 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
☝️ Click the menu button to navigate.

# examples

A list of examples for [Magic Lottery](https://logeast.github.io/magic-lottery/)

# Frameworks Starter

Examples for different frameworks.

## Vanilla Basic

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/Milkdown/examples/tree/main/vanilla-commonmark)

A simple example of using Magic Lottery with vanilla typescript.
24 changes: 24 additions & 0 deletions examples/vanilla-basic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
17 changes: 17 additions & 0 deletions examples/vanilla-basic/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="https://logeast.cc/cdn/imghub/logo-pure.svg"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Magic Lottery Example | Vanilla Basic</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
18 changes: 18 additions & 0 deletions examples/vanilla-basic/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "vanilla-basic",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5"
},
"dependencies": {
"magic-lottery": "^1.2.0"
}
}

0 comments on commit 1e2e528

Please sign in to comment.