Skip to content

Commit 147a2b5

Browse files
committed
first commit
0 parents  commit 147a2b5

14 files changed

+4241
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:node/recommended", "prettier"],
3+
"env": {
4+
"node": true,
5+
"es6": true
6+
},
7+
"plugins": ["node", "prettier"],
8+
"parserOptions": {
9+
"ecmaVersion": 2018
10+
},
11+
"rules": {
12+
"no-console": 0,
13+
"node/no-unpublished-require": 0,
14+
"prettier/prettier": ["error"]
15+
},
16+
"overrides": [
17+
{
18+
"files": ["*.test.js"],
19+
"env": {
20+
"jest": true
21+
}
22+
}
23+
]
24+
}

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
node_modules
28+
.idea
29+
*.sublime-workspace
30+
*.sublime-project
31+
32+
# Optional npm cache directory
33+
.npm
34+
35+
# Optional REPL history
36+
.node_repl_history
37+
38+
# Windows
39+
Thumbs.db
40+
ehthumbs.db
41+
Desktop.ini
42+
$RECYCLE.BIN/
43+
44+
#Mac
45+
.DS_Store
46+
.DS_Store?
47+
.AppleDouble
48+
.LSOverride
49+
Icon
50+
._*
51+
.Spotlight-V100
52+
.Trashes

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
*.log
3+
test
4+
examples
5+
.babelrc
6+
.editorconfig
7+
.eslintrc.js
8+
karma*.conf.js
9+
rollup.*

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-prefix='~'
2+
tag-version-prefix=""

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/dist/
2+
/tmp/
3+
/public/
4+
/vendor-public/
5+
package.json
6+
*.generated.*

.prettierrc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trailingComma: all
2+
arrowParens: always
3+
semi: false
4+
singleQuote: true

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) 2018-2019 Marco Solazzi
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.

generator.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = (api) => {
2+
api.extendPackage({
3+
dependencies: {
4+
'vue-types': '~1.3.0',
5+
},
6+
})
7+
8+
if (api.hasPlugin('eslint')) {
9+
api.extendPackage({
10+
devDependencies: {
11+
'eslint-plugin-vue-types': '~1.0.0',
12+
},
13+
eslintConfig: {
14+
extends: ['plugin:vue-types/strongly-recommended'],
15+
},
16+
})
17+
}
18+
}

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = () => {}

package.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "vue-cli-plugin-vue-types",
3+
"version": "1.0.0",
4+
"description": "Vue CLI plugin to install and setup vue-types",
5+
"author": "Marco Solazzi",
6+
"license": "MIT",
7+
"homepage": "https://github.com/dwightjack/vue-cli-plugin-vue-types",
8+
"main": "index.js",
9+
"files": [
10+
"*.js"
11+
],
12+
"engines": {
13+
"node": ">=8.9.0"
14+
},
15+
"scripts": {
16+
"prepublishOnly": "npm run build",
17+
"build": "npm run lint && npm run test",
18+
"lint": "eslint *.js test/*.js",
19+
"test": "jest"
20+
},
21+
"keywords": [
22+
"vue",
23+
"vue-types",
24+
"vue-cli"
25+
],
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/dwightjack/vue-cli-plugin-vue-types.git"
29+
},
30+
"bugs": "https://github.com/dwightjack/vue-cli-plugin-vue-types/issues",
31+
"devDependencies": {
32+
"eslint": "^5.10.0",
33+
"eslint-config-prettier": "^3.3.0",
34+
"eslint-plugin-node": "^8.0.0",
35+
"eslint-plugin-prettier": "^3.0.0",
36+
"jest": "^23.6.0",
37+
"prettier": "^1.15.3"
38+
},
39+
"jest": {
40+
"verbose": true,
41+
"bail": false,
42+
"collectCoverage": false,
43+
"testEnvironment": "node",
44+
"testMatch": [
45+
"**/*.test.js"
46+
]
47+
}
48+
}

0 commit comments

Comments
 (0)