Skip to content

Commit f8fe355

Browse files
authored
Replace Parcel with Vite (#128)
1 parent db5f833 commit f8fe355

File tree

8 files changed

+10114
-24207
lines changed

8 files changed

+10114
-24207
lines changed

.github/workflows/demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- run: npm install
1313
- run: npm run demo:build
1414
- run: npm run demo:test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ logs
1111
distribution
1212
dist
1313
.cache
14+
.parcel-cache

demo/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
return;
2727
}
2828
29-
if (detect.length > 0) {
29+
if (!String(detect).startsWith('()')) {
3030
return {
3131
name,
3232
detect,
@@ -75,7 +75,7 @@
7575
<label>
7676
<span>URL:</span>
7777
<input
78-
type="text"
78+
type="search"
7979
bind:value={url}
8080
placeholder={defaultUrl}
8181
autocomplete="off"

demo/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ label span {
3535
font-size: 1.7em;
3636
font-weight: bold;
3737
}
38+
39+
pre, code {
40+
white-space: normal;
41+
}

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<title>`github-url-detection` npm module testing ground</title>
1212

1313
<link rel="stylesheet" href="global.css" />
14-
<script defer src="main.js"></script>
14+
<script defer type="module" src="main.js"></script>
1515
</head>
1616

1717
<body>

0 commit comments

Comments
 (0)