Skip to content

Commit 5aeb942

Browse files
author
binaryify
committed
first commit
0 parents  commit 5aeb942

33 files changed

+15019
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.DS_Store
2+
node_modules
3+
4+
# local env files
5+
.env.local
6+
.env.*.local
7+
8+
# Log files
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# Editor directories and files
14+
.idea
15+
.vscode
16+
*.suo
17+
*.ntvs*
18+
*.njsproj
19+
*.sln
20+
*.sw*

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# vue-perfect-scrollbar
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn run build
16+
```

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

deploy.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
npm run docs:build
8+
9+
# 进入生成的文件夹
10+
cd docs/.vuepress/dist
11+
12+
git init
13+
git add -A
14+
git commit -m 'deploy'
15+
16+
17+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
18+
git push -f [email protected]:binaryify/vue-custom-scrollbar.git master:gh-pages
19+
20+
cd -

dist/demo.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<meta charset="utf-8">
2+
<title>vueScrollbar demo</title>
3+
<script src="https://unpkg.com/vue"></script>
4+
<script src="./vueScrollbar.umd.js"></script>
5+
<link rel="stylesheet" href="./vueScrollbar.css">
6+
7+
<div id="app">
8+
<demo></demo>
9+
</div>
10+
11+
<script>
12+
new Vue({
13+
components: {
14+
demo: vueScrollbar
15+
}
16+
}).$mount('#app')
17+
</script>

0 commit comments

Comments
 (0)