-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: port VTL to kcd-scripts (#86)
By leveraging kcd-scripts we stay one step closer to Testing Library sibling packages while removing the need to handle linting/building/infra stuff manually.
- Loading branch information
Showing
51 changed files
with
4,774 additions
and
1,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"modules": "commonjs", | ||
"targets": { | ||
"node": "current", | ||
"browsers": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not ie <= 8" | ||
] | ||
} | ||
}] | ||
["@babel/env"] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-transform-runtime" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
parser: 'babel-eslint', | ||
ecmaVersion: 2017, | ||
sourceType: 'module' | ||
}, | ||
env: { | ||
browser: true, | ||
jest: true | ||
}, | ||
extends: [ | ||
'standard', | ||
'./node_modules/kcd-scripts/eslint.js', | ||
'plugin:vue/recommended', | ||
'eslint:recommended', | ||
'prettier/vue', | ||
'plugin:prettier/recommended' | ||
], | ||
plugins: [ | ||
'vue' | ||
], | ||
plugins: ['vue'], | ||
rules: { | ||
'no-console': 'off' | ||
} | ||
'no-console': 'off', | ||
'import/no-unresolved': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
proseWrap: 'always', | ||
semi: false, | ||
singleQuote: true | ||
} | ||
singleQuote: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
module.exports = { | ||
moduleDirectories: ['node_modules', 'src'], | ||
const merge = require('lodash.merge') | ||
const config = require('kcd-scripts/jest') | ||
|
||
module.exports = merge(config, { | ||
testEnvironment: 'jsdom', | ||
moduleFileExtensions: ['js', 'vue'], | ||
moduleNameMapper: { | ||
'@testing-library/vue': '<rootDir>/src/vue-testing-library.js' | ||
'@testing-library/vue': '<rootDir>/src/vue-testing-library.js', | ||
}, | ||
coverageDirectory: './coverage', | ||
collectCoverageFrom: [ | ||
'**/src/**/*.js', | ||
'!**/tests/__tests__/**', | ||
'!**/node_modules/**' | ||
], | ||
testPathIgnorePatterns: [ | ||
'/node_modules/', | ||
'<rootDir>/dist/', | ||
'<rootDir>/tests/__tests__/components/' | ||
], | ||
collectCoverageFrom: ['**/src/**/*.js', '!**/src/__tests__/**'], | ||
transform: { | ||
'^.+\\.js$': '<rootDir>/node_modules/babel-jest', | ||
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest' | ||
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest', | ||
}, | ||
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'] | ||
} | ||
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'], | ||
testPathIgnorePatterns: [ | ||
'<rootDir>/node_modules', | ||
'<rootDir>/src/__tests__/components', | ||
], | ||
}) |
Oops, something went wrong.