Skip to content

Commit

Permalink
chore: refactor browser example
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Oct 23, 2023
1 parent a0eecf9 commit 0acd4f3
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 167 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions playground/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/intlify.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Browser example</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script type="module" src="./index.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions playground/browser/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { isLocale } from 'https://esm.sh/@intlify/utils'

document.querySelector('#app').innerHTML = `
<p>isLocale('en-US'): ${isLocale(new Intl.Locale('en-US'))}</p>
`
7 changes: 2 additions & 5 deletions playground/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"dev": "npx --no-install serve -l 3000"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5"
"serve": "^14.2.1"
}
}
7 changes: 0 additions & 7 deletions playground/browser/public/intlify.svg

This file was deleted.

9 changes: 0 additions & 9 deletions playground/browser/src/counter.ts

This file was deleted.

23 changes: 0 additions & 23 deletions playground/browser/src/main.ts

This file was deleted.

97 changes: 0 additions & 97 deletions playground/browser/src/style.css

This file was deleted.

1 change: 0 additions & 1 deletion playground/browser/src/vite-env.d.ts

This file was deleted.

23 changes: 0 additions & 23 deletions playground/browser/tsconfig.json

This file was deleted.

0 comments on commit 0acd4f3

Please sign in to comment.