Skip to content

Commit 46bdeb8

Browse files
committed
update libraries to vite and vitepress docs
1 parent 77ca184 commit 46bdeb8

File tree

91 files changed

+29943
-1096
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+29943
-1096
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# don't ever lint node_modules
2+
node_modules
3+
# don't lint build output (make sure it's set to your correct build folder name)
4+
dist

.eslintrc.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
parser: "vue-eslint-parser",
4+
parserOptions: {
5+
parser: "@typescript-eslint/parser",
6+
},
7+
extends: [
8+
"plugin:vue/vue3-recommended",
9+
"@vue/eslint-config-prettier",
10+
"plugin:prettier/recommended",
11+
"eslint:recommended",
12+
],
13+
plugins: ["@typescript-eslint", "prettier"],
14+
rules: {
15+
"prettier/prettier": "error",
16+
},
17+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test & Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
cache: 'pnpm'
18+
- run: pnpm
19+
- run: pnpm test
20+
21+
publish-npm:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 16
29+
cache: 'pnpm'
30+
registry-url: https://registry.npmjs.org/
31+
- run: pnpm
32+
- run: pnpm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
110
node_modules
11+
dist-ssr
12+
*.local
213

3-
yarn.lock
14+
# Editor directories and files
15+
.vscode/*
16+
!.vscode/extensions.json
17+
.idea
18+
.DS_Store
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

.prettierrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: false,
3+
singleQuote: true,
4+
printWidth: 80,
5+
trailingComma: 'none',
6+
arrowParens: 'avoid',
7+
};

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Vue 3 - Current Branch
2222

2323
Find out all available features on [settings props](https://github.com/codeeshop-oc/vue-lightbox-advanced/blob/main/docs/API.md#props) and see how that works on [examples](https://codeeshop-oc.github.io/vue-lightbox-advanced/).
2424

25-
2625
## 🚚 Installation
2726

2827
### yarn/npm
@@ -60,20 +59,20 @@ https://unpkg.com/vue-lightbox-advanced
6059
name: 'MyComponent',
6160
components: { VueLightboxAdvanced },
6261
data() {
63-
return {
64-
images: [
65-
"https://i.wifegeek.com/200426/f9459c52.jpg",
66-
"https://i.wifegeek.com/200426/5ce1e1c7.jpg",
67-
"https://i.wifegeek.com/200426/5fa51df3.jpg",
68-
"https://i.wifegeek.com/200426/663181fe.jpg",
69-
"https://i.wifegeek.com/200426/2d110780.jpg",
70-
"https://i.wifegeek.com/200426/e73cd3fa.jpg",
71-
"https://i.wifegeek.com/200426/15160d6e.jpg",
72-
"https://i.wifegeek.com/200426/81e24a47.jpg",
73-
"https://i.wifegeek.com/200426/43e2e8bb.jpg"
74-
]
75-
}
76-
},
62+
return {
63+
images: [
64+
'https://i.wifegeek.com/200426/f9459c52.jpg',
65+
'https://i.wifegeek.com/200426/5ce1e1c7.jpg',
66+
'https://i.wifegeek.com/200426/5fa51df3.jpg',
67+
'https://i.wifegeek.com/200426/663181fe.jpg',
68+
'https://i.wifegeek.com/200426/2d110780.jpg',
69+
'https://i.wifegeek.com/200426/e73cd3fa.jpg',
70+
'https://i.wifegeek.com/200426/15160d6e.jpg',
71+
'https://i.wifegeek.com/200426/81e24a47.jpg',
72+
'https://i.wifegeek.com/200426/43e2e8bb.jpg'
73+
]
74+
}
75+
}
7776
}
7877
</script>
7978
```

babel.config.js

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

build/rollup.config.js

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

dev/serve.js

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

0 commit comments

Comments
 (0)