Skip to content

Commit 08e1bba

Browse files
committed
Add the project scaffold
1 parent 8054549 commit 08e1bba

File tree

11 files changed

+245
-0
lines changed

11 files changed

+245
-0
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
presets: ['es2015'],
3+
plugins: ['transform-runtime']
4+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
node_modules/
3+
dist/
4+
npm-debug.log
5+
test/unit/coverage

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Abstack Tech
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

example/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>vue-infinite-loading</title>
6+
</head>
7+
<body>
8+
</body>
9+
</html>

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "vue-infinite-loading",
3+
"version": "0.0.0",
4+
"description": "vue-infinite-loading project",
5+
"scripts": {
6+
"dev": "webpack-dev-server --inline --hot --quiet --port=8000",
7+
"build": "rm -rf build/ && NODE_ENV=production webpack --progress --hide-modules"
8+
},
9+
"dependencies": {
10+
"vue": "^1.0.21"
11+
},
12+
"devDependencies": {
13+
"babel-core": "^6.7.7",
14+
"babel-loader": "^6.2.4",
15+
"babel-plugin-transform-runtime": "^6.7.5",
16+
"babel-preset-es2015": "^6.6.0",
17+
"babel-runtime": "^6.0.0",
18+
"css-loader": "^0.23.1",
19+
"eslint": "^2.8.0",
20+
"eslint-config-airbnb-base": "^1.0.4",
21+
"eslint-loader": "^1.3.0",
22+
"eslint-plugin-html": "^1.4.0",
23+
"eslint-plugin-import": "^1.6.1",
24+
"file-loader": "^0.8.5",
25+
"html-webpack-plugin": "^2.16.0",
26+
"less": "^2.6.1",
27+
"less-loader": "^2.2.3",
28+
"style-loader": "^0.13.1",
29+
"url-loader": "^0.5.7",
30+
"vue": "^1.0.22",
31+
"vue-hot-reload-api": "^1.3.2",
32+
"vue-html-loader": "^1.2.2",
33+
"vue-loader": "^8.2.3",
34+
"vue-style-loader": "^1.0.0",
35+
"webpack": "^1.13.0",
36+
"webpack-dev-server": "^1.14.1"
37+
},
38+
"author": "Peach<[email protected]>",
39+
"license": "MIT"
40+
}

src/.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "airbnb-base",
3+
"plugins": [
4+
"html"
5+
],
6+
"settings": {
7+
"import/resolver": {
8+
"node": {
9+
"extensions": [".js", ".json", ".vue"]
10+
}
11+
}
12+
}
13+
}

src/components/InfiniteLoading.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template></template>
2+
<script>
3+
export default {};
4+
</script>

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import InfiniteLoading from './components/InfiniteLoading';
2+
3+
export default InfiniteLoading;
4+
5+
if (typeof window !== 'undefined' && window.Vue) {
6+
window.Vue.component('infinite-loading', InfiniteLoading);
7+
}

test/unit/.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "airbnb-base",
3+
"env": {
4+
"mocha": true
5+
},
6+
"globals": {
7+
"expect": true
8+
},
9+
"settings": {
10+
"import/resolver": {
11+
"node": {
12+
"extensions": [".js", ".json", ".vue"]
13+
}
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)