Skip to content

Commit ea775b8

Browse files
author
rsabirov
committed
init
0 parents  commit ea775b8

21 files changed

+15465
-0
lines changed

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> 1%
2+
last 2 versions

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'@vue/standard',
9+
'@vue/typescript'
10+
],
11+
rules: {
12+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
14+
},
15+
parserOptions: {
16+
parser: '@typescript-eslint/parser'
17+
},
18+
overrides: [
19+
{
20+
files: [
21+
'**/__tests__/*.{j,t}s?(x)'
22+
],
23+
env: {
24+
jest: true
25+
}
26+
}
27+
]
28+
}

.gitignore

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

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# vue-jsonschema-form
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Run your tests
19+
```
20+
npm run test
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
npm run lint
26+
```
27+
28+
### Run your unit tests
29+
```
30+
npm run test:unit
31+
```
32+
33+
### Customize configuration
34+
See [Configuration Reference](https://cli.vuejs.org/config/).

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+
}

jest.config.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'js',
4+
'jsx',
5+
'json',
6+
'vue',
7+
'ts',
8+
'tsx'
9+
],
10+
transform: {
11+
'^.+\\.vue$': 'vue-jest',
12+
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
13+
'^.+\\.tsx?$': 'ts-jest'
14+
},
15+
transformIgnorePatterns: [
16+
'/node_modules/'
17+
],
18+
moduleNameMapper: {
19+
'^@/(.*)$': '<rootDir>/src/$1'
20+
},
21+
snapshotSerializers: [
22+
'jest-serializer-vue'
23+
],
24+
testMatch: [
25+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
26+
],
27+
testURL: 'http://localhost/',
28+
watchPlugins: [
29+
'jest-watch-typeahead/filename',
30+
'jest-watch-typeahead/testname'
31+
],
32+
globals: {
33+
'ts-jest': {
34+
babelConfig: true
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)