Skip to content

Commit 038b467

Browse files
committed
move to svelte kit and vite, npm instead of yarn, ssr check
1 parent f6244f0 commit 038b467

37 files changed

+2292
-982
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,46 @@ on:
33
push:
44
branches:
55
- master
6+
67
jobs:
7-
build-and-deploy:
8+
build_site:
89
runs-on: ubuntu-latest
910
steps:
10-
- name: Checkout 🛎️
11-
uses: actions/checkout@v2.3.1
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install Node.js
15+
uses: actions/setup-node@v3
1216
with:
13-
persist-credentials: false
17+
node-version: 18
18+
cache: npm
19+
20+
- name: Install dependencies
21+
run: npm install
1422

15-
- name: Install and Build 🔧
23+
- name: build
1624
run: |
17-
npm install
18-
npm run build:dev
19-
- name: Deploy 🚀
20-
uses: JamesIves/github-pages-deploy-action@3.6.2
25+
npm run build
26+
touch build/.nojekyll
27+
28+
- name: Upload Artifacts
29+
uses: actions/upload-pages-artifact@v1
2130
with:
22-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
23-
BRANCH: gh-pages
24-
FOLDER: example/public
31+
# this should match the `pages` option in your adapter-static options
32+
path: 'build/'
33+
deploy:
34+
needs: build_site
35+
runs-on: ubuntu-latest
36+
37+
permissions:
38+
pages: write
39+
id-token: write
40+
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
45+
steps:
46+
- name: Deploy
47+
id: deployment
48+
uses: actions/deploy-pages@v1

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Node.js Package
52

63
on:
@@ -15,10 +12,12 @@ jobs:
1512
- uses: actions/checkout@v3
1613
- uses: actions/setup-node@v3
1714
with:
18-
node-version: 16
15+
node-version: 18
16+
cache: npm
1917
registry-url: https://registry.npmjs.org/
20-
- run: yarn install --frozen-lockfile
21-
- run: yarn build
18+
- name: Install dependencies
19+
run: npm install
20+
- run: npm run build
2221
- run: npm publish
2322
env:
2423
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
/example/public/build/
33
dist/
44
types/
5-
lib/
65
.idea/
76
.DS_Store
7+
/build
8+
/dist
9+
/.svelte-kit
10+
/package
11+
.env
12+
.env.*
13+
!.env.example
14+
vite.config.js.timestamp-*
15+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
engine-strict=true
2+
resolution-mode=highest

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# svelte-virtual-scroll-list changelog
2+
3+
## 1.2.0
4+
5+
- Move example to SvelteKit
6+
- Package distribution by SvelteKit too
7+
- Add classes on VS wrappers
8+
- Add example for horizontal scroll
9+
- Fix pageMode with SSR
10+
- Support Svelte 4

example/App.svelte

Lines changed: 0 additions & 64 deletions
This file was deleted.

example/main.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/public/favicon.png

-3.05 KB
Binary file not shown.

example/public/index.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)