Skip to content

Commit 74190ee

Browse files
committed
init
0 parents  commit 74190ee

27 files changed

+8896
-0
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
docs

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@antfu"
3+
}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patreon: peterroe

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x, 16.x]
19+
os: [ubuntu-latest]
20+
fail-fast: false
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v2.2.1
27+
28+
- run: pnpm install
29+
30+
- name: Lint
31+
run: pnpm run lint
32+
33+
- name: Unit Test
34+
run: pnpm run test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
test

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tagWidth": 4,
3+
"semi": false,
4+
"singleQuote": true,
5+
"arrowParens": "avoid"
6+
}

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"johnsoncodehk.volar",
5+
"csstools.postcss",
6+
"antfu.vite"
7+
]
8+
}

demo/App.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
<div class="demo">
7+
<img v-lazy="'https://i.pinimg.com/474x/89/56/a1/8956a199a913cfa5a4a8696e6f08f821.jpg'" alt="" />
8+
</div>
9+
</template>
10+
11+
<style>
12+
.demo {
13+
text-align: center;
14+
width: 100vw;
15+
height: 100vh;
16+
display: flex;
17+
justify-content: center;
18+
align-items: center;
19+
}
20+
</style>

0 commit comments

Comments
 (0)