Skip to content

Commit 24309bc

Browse files
committed
feat: init project, close #1
0 parents  commit 24309bc

17 files changed

+456
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{json,yml,jade,pss,css,html,js}]
12+
indent_size = 2
13+
14+
[changelog.md]
15+
insert_final_newline = false
16+
17+
[*.html]
18+
insert_final_newline = false
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
lib
3+
coverage
4+
.nyc_output
5+
npm-debug.log

.npmignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
src
3+
.gitignore
4+
.travis.yml
5+
coverage
6+
.nyc_output
7+
npm-debug.log

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
3+
node_js:
4+
- "lts/*"
5+
- 10
6+
- 8
7+
8+
after_success:
9+
- npm run coverage

appveyor.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: "stable"
4+
- nodejs_version: "lts/*"
5+
- nodejs_version: "8"
6+
7+
version: "{build}"
8+
build: off
9+
deploy: off
10+
11+
install:
12+
- ps: Install-Product node $env:nodejs_version
13+
- npm install
14+
15+
test_script:
16+
- node --version
17+
- npm --version
18+
- npm test

changelog.md

Whitespace-only changes.

dist/vue-restricted-input.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

license

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Ivan Demidov <[email protected]>
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.

package.json

+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
{
2+
"name": "vue-restricted-input",
3+
"version": "0.0.0",
4+
"description": "Creates a pattern for restricted-input from data obtained from credit-card-type",
5+
"license": "MIT",
6+
"repository": "scrum/vue-restricted-input",
7+
"homepage": "https://github.com/scrum/vue-restricted-input#readme",
8+
"bugs": "scrum/vue-restricted-input/issues",
9+
"author": {
10+
"name": "Ivan Demidov",
11+
"email": "[email protected]",
12+
"url": "https://twitter.com/Scrum_"
13+
},
14+
"main": "lib/index.js",
15+
"engines": {
16+
"node": ">=8"
17+
},
18+
"scripts": {
19+
"version": "conventional-changelog -i changelog.md -s -r 0 && git add changelog.md && git commit -m \"build: update changelog\"",
20+
"prepare": "npm run build",
21+
"build": "rimraf lib && rollup -c",
22+
"coverage": "nyc report --reporter=text-lcov | coveralls",
23+
"test": "nyc ava",
24+
"lint": "eslint {src,test}/*.js *.md --fix",
25+
"pretest": "clinton && npm run lint"
26+
},
27+
"files": [
28+
"lib/"
29+
],
30+
"keywords": [
31+
"card",
32+
"gaps",
33+
"pattern",
34+
"mask"
35+
],
36+
"dependencies": {
37+
"restricted-input": "^2.0.1"
38+
},
39+
"devDependencies": {
40+
"@babel/core": "^7.2.2",
41+
"@babel/preset-env": "^7.3.1",
42+
"@babel/register": "^7.0.0",
43+
"@commitlint/cli": "^7.4.0",
44+
"@commitlint/config-angular": "^7.3.1",
45+
"@vue/test-utils": "^1.0.0-beta.29",
46+
"ava": "*",
47+
"babel-eslint": "^10.0.1",
48+
"browser-env": "^3.2.6",
49+
"clinton": "^0.14.0",
50+
"conventional-changelog-cli": "^2.0.12",
51+
"coveralls": "^3.0.3",
52+
"eslint": "^5.12.1",
53+
"eslint-config-vue": "^2.0.2",
54+
"eslint-config-xo": "^0.26.0",
55+
"eslint-config-xo-space": "^0.21.0",
56+
"eslint-plugin-ava": "^6.0.0",
57+
"eslint-plugin-babel": "^5.3.0",
58+
"eslint-plugin-dependencies": "^2.4.0",
59+
"eslint-plugin-html": "^5.0.0",
60+
"eslint-plugin-markdown": "^1.0.0",
61+
"eslint-plugin-prettier": "^3.0.1",
62+
"eslint-plugin-require-path-exists": "^1.1.5",
63+
"eslint-plugin-unicorn": "^8.0.2",
64+
"eslint-plugin-vue": "^5.1.0",
65+
"husky": "^2.3.0",
66+
"lint-staged": "^8.1.1",
67+
"nyc": "^14.1.1",
68+
"prettier": "^1.17.0",
69+
"require-extension-hooks": "^0.3.3",
70+
"require-extension-hooks-babel": "^1.0.0",
71+
"require-extension-hooks-vue": "^3.0.0",
72+
"rimraf": "^2.6.3",
73+
"rollup": "^1.1.2",
74+
"rollup-plugin-babel": "^4.3.2",
75+
"rollup-plugin-commonjs": "^10.0.0",
76+
"rollup-plugin-node-builtins": "^2.1.2",
77+
"rollup-plugin-node-resolve": "^5.0.0",
78+
"rollup-plugin-terser": "^4.0.3",
79+
"vue": "^2.6.10",
80+
"vue-template-compiler": "^2.6.10"
81+
},
82+
"husky": {
83+
"hooks": {
84+
"pre-push": "npm t",
85+
"pre-commit": "clinton && lint-staged",
86+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
87+
}
88+
},
89+
"lint-staged": {
90+
"{src,test}/**/*.js": "eslint",
91+
"*.md": "eslint"
92+
},
93+
"ava": {
94+
"files": [
95+
"test/test-*.js"
96+
],
97+
"require": [
98+
"./test/helpers/setup.js"
99+
]
100+
},
101+
"nyc": {
102+
"extension": [
103+
".js",
104+
".vue"
105+
]
106+
},
107+
"babel": {
108+
"presets": [
109+
[
110+
"@babel/preset-env"
111+
]
112+
]
113+
},
114+
"browserslist": [
115+
"last 1 version",
116+
"> 1%",
117+
"maintained node versions",
118+
"not dead"
119+
],
120+
"eslintConfig": {
121+
"env": {
122+
"browser": true,
123+
"node": true
124+
},
125+
"parserOptions": {
126+
"parser": "babel-eslint"
127+
},
128+
"plugins": [
129+
"prettier",
130+
"dependencies",
131+
"html",
132+
"unicorn",
133+
"babel",
134+
"markdown"
135+
],
136+
"extends": [
137+
"plugin:vue/recommended",
138+
"plugin:ava/recommended",
139+
"plugin:unicorn/recommended",
140+
"xo",
141+
"xo-space"
142+
],
143+
"rules": {
144+
"no-new": "off",
145+
"capitalized-comments": "off"
146+
}
147+
},
148+
"clinton": {
149+
"ignores": [
150+
"test/**",
151+
"tmp/**",
152+
"lib/**",
153+
"*.{html,jpg}"
154+
],
155+
"rules": {
156+
"pkg-main": "off",
157+
"xo": "off"
158+
}
159+
}
160+
}

0 commit comments

Comments
 (0)