Skip to content

Commit 9ae01cf

Browse files
committed
update
0 parents  commit 9ae01cf

Some content is hidden

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

56 files changed

+3329
-0
lines changed

.babelrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false,
5+
"targets": {
6+
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7+
}
8+
}],
9+
"stage-2"
10+
],
11+
"plugins": ["transform-runtime"],
12+
"env": {
13+
"test": {
14+
"presets": ["env", "stage-2"],
15+
"plugins": ["istanbul"]
16+
}
17+
}
18+
}

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/*.js
2+
config/*.js

.eslintrc.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// http://eslint.org/docs/user-guide/configuring
2+
3+
module.exports = {
4+
root: true,
5+
parser: 'babel-eslint',
6+
parserOptions: {
7+
sourceType: 'module'
8+
},
9+
env: {
10+
browser: true,
11+
},
12+
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
13+
extends: 'standard',
14+
// required to lint *.vue files
15+
plugins: [
16+
'html'
17+
],
18+
// add your custom rules here
19+
'rules': {
20+
// allow paren-less arrow functions
21+
'arrow-parens': 0,
22+
// allow async-await
23+
'generator-star-spacing': 0,
24+
// allow debugger during development
25+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
26+
}
27+
}

.gitignore

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<<<<<<< HEAD
2+
<<<<<<< HEAD
3+
<<<<<<< HEAD
4+
<<<<<<< HEAD
5+
<<<<<<< HEAD
6+
<<<<<<< HEAD
7+
=======
8+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
9+
=======
10+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
11+
=======
12+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
13+
.DS_Store
14+
node_modules/
15+
dist/
16+
=======
17+
# Logs
18+
logs
19+
*.log
20+
>>>>>>> 75dc808874011d096b1a5742fa542fd2cacbe09e
21+
<<<<<<< HEAD
22+
=======
23+
# Logs
24+
logs
25+
*.log
26+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
27+
=======
28+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
33+
<<<<<<< HEAD
34+
<<<<<<< HEAD
35+
<<<<<<< HEAD
36+
=======
37+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
38+
# Editor directories and files
39+
.idea
40+
*.suo
41+
*.ntvs*
42+
*.njsproj
43+
*.sln
44+
=======
45+
<<<<<<< HEAD
46+
=======
47+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
48+
=======
49+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
50+
# Runtime data
51+
pids
52+
*.pid
53+
*.seed
54+
*.pid.lock
55+
56+
# Directory for instrumented libs generated by jscoverage/JSCover
57+
lib-cov
58+
59+
# Coverage directory used by tools like istanbul
60+
coverage
61+
62+
# nyc test coverage
63+
.nyc_output
64+
65+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
66+
.grunt
67+
68+
# Bower dependency directory (https://bower.io/)
69+
bower_components
70+
71+
# node-waf configuration
72+
.lock-wscript
73+
74+
# Compiled binary addons (http://nodejs.org/api/addons.html)
75+
build/Release
76+
77+
# Dependency directories
78+
node_modules/
79+
jspm_packages/
80+
81+
# Typescript v1 declaration files
82+
typings/
83+
84+
# Optional npm cache directory
85+
.npm
86+
87+
# Optional eslint cache
88+
.eslintcache
89+
90+
# Optional REPL history
91+
.node_repl_history
92+
93+
# Output of 'npm pack'
94+
*.tgz
95+
96+
# Yarn Integrity file
97+
.yarn-integrity
98+
99+
# dotenv environment variables file
100+
.env
101+
102+
<<<<<<< HEAD
103+
<<<<<<< HEAD
104+
=======
105+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
106+
>>>>>>> 75dc808874011d096b1a5742fa542fd2cacbe09e
107+
<<<<<<< HEAD
108+
<<<<<<< HEAD
109+
=======
110+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
111+
=======
112+
lib-cov
113+
*.seed
114+
*.log
115+
*.csv
116+
*.dat
117+
*.out
118+
*.pid
119+
*.gz
120+
121+
pids
122+
logs
123+
results
124+
125+
npm-debug.log
126+
node_modules
127+
>>>>>>> cbabb49372a94216675f0ffa5b2706d1957fb6f7
128+
<<<<<<< HEAD
129+
=======
130+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
131+
=======
132+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
133+
<<<<<<< HEAD
134+
=======
135+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
136+
=======
137+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d

.gitosc/ISSUE_TEMPLATE.zh-CN.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## 该问题是怎么引起的?
2+
3+
4+
5+
## 重现步骤
6+
7+
8+
9+
## 报错信息
10+
11+
12+
13+
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## 该Pull Request关联的Issue
2+
3+
4+
## 修改描述
5+
6+
7+
8+
## 测试用例
9+
10+
11+
12+
## 修复效果的截屏
13+
14+
15+

.postcssrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// https://github.com/michael-ciniawsky/postcss-load-config
2+
3+
module.exports = {
4+
"plugins": {
5+
// to edit target browsers: use "browserslist" field in package.json
6+
"autoprefixer": {}
7+
}
8+
}

.travis.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: node_js
2+
# nodejs版本
3+
node_js:
4+
- '6'
5+
6+
# Travis-CI Caching
7+
cache:
8+
directories:
9+
- node_modules
10+
11+
12+
# S: Build Lifecycle
13+
install:
14+
- npm install
15+
16+
before_script:
17+
18+
# 无其他依赖项所以执行npm run build 构建就行了
19+
script:
20+
- npm run build
21+
22+
after_script:
23+
- cd ./dist
24+
- git init
25+
- git config user.name "${U_NAME}"
26+
- git config user.email "${U_EMAIL}"
27+
- git add .
28+
- git commit -m "Update tools"
29+
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:${P_BRANCH}
30+
# E: Build LifeCycle
31+
32+
#指定分支,只有指定的分支提交时才会运行脚本
33+
branches:
34+
only:
35+
- master
36+
env:
37+
global:
38+
# 我将其添加到了travis-ci的环境变量中
39+
#- GH_REF: github.com/yimogit/metools.git

LICENSE

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<<<<<<< HEAD
2+
<<<<<<< HEAD
3+
<<<<<<< HEAD
4+
<<<<<<< HEAD
5+
<<<<<<< HEAD
6+
=======
7+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
8+
=======
9+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
10+
=======
11+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
12+
<<<<<<< HEAD
13+
=======
14+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
15+
=======
16+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
17+
MIT License
18+
19+
Copyright (c) 2017 宝宝宝
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
<<<<<<< HEAD
28+
<<<<<<< HEAD
29+
<<<<<<< HEAD
30+
<<<<<<< HEAD
31+
=======
32+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
33+
=======
34+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
35+
=======
36+
The MIT License (MIT)
37+
38+
Copyright (c) 2017 胡萝卜
39+
40+
Permission is hereby granted, free of charge, to any person obtaining a copy of
41+
this software and associated documentation files (the "Software"), to deal in
42+
the Software without restriction, including without limitation the rights to
43+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
44+
the Software, and to permit persons to whom the Software is furnished to do so,
45+
subject to the following conditions:
46+
>>>>>>> cbabb49372a94216675f0ffa5b2706d1957fb6f7
47+
<<<<<<< HEAD
48+
=======
49+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
50+
=======
51+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
52+
<<<<<<< HEAD
53+
=======
54+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
55+
=======
56+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
57+
58+
The above copyright notice and this permission notice shall be included in all
59+
copies or substantial portions of the Software.
60+
61+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62+
<<<<<<< HEAD
63+
<<<<<<< HEAD
64+
<<<<<<< HEAD
65+
<<<<<<< HEAD
66+
<<<<<<< HEAD
67+
=======
68+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
69+
=======
70+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
71+
=======
72+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
73+
<<<<<<< HEAD
74+
=======
75+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
76+
=======
77+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
78+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
79+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
80+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
81+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
82+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
83+
SOFTWARE.
84+
<<<<<<< HEAD
85+
<<<<<<< HEAD
86+
<<<<<<< HEAD
87+
<<<<<<< HEAD
88+
=======
89+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d
90+
=======
91+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
92+
=======
93+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
94+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
95+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
96+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
97+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
98+
>>>>>>> cbabb49372a94216675f0ffa5b2706d1957fb6f7
99+
<<<<<<< HEAD
100+
=======
101+
>>>>>>> 5791f5248f5c4e36c3da93ea787aa9c6ca48f4da
102+
=======
103+
>>>>>>> e8286b4cb4d6bd8602ba870298b8dc1a99d46024
104+
<<<<<<< HEAD
105+
=======
106+
>>>>>>> 09fcf8954d4ccbbd775f411cfecb70f62945ef2c
107+
=======
108+
>>>>>>> 351c45cbf9d33f383178abc122eb9292f4e9918d

0 commit comments

Comments
 (0)