Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Babel to Typescript. Fixes #801 #831

Merged
merged 16 commits into from
Aug 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
public/
coverage/
node_modules/
dist/
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"no-restricted-globals": [0],
"react/no-unused-state": [0]
}
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ public

# webstorm
.idea

# tsc output
dist/
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Jest (this file)",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/.bin/jest",
"${relativeFile}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
},
{
"name": "Chrome",
"type": "chrome",
Expand Down
7 changes: 6 additions & 1 deletion jest.config.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
verbose: true,
testPathIgnorePatterns: ['/dist/'],
collectCoverageFrom: [
'!**/.vscode/**',
'!**/coverage/**',
'!**/dist/**',
'!**/jest.config.js',
'!**/node_modules/**',
'!**/postcss.config.js',
Expand All @@ -22,5 +24,8 @@ module.exports = {
statements: 70,
},
},
setupTestFrameworkScriptFile: './test/_setup.js',
setupFilesAfterEnv: ['<rootDir>/test/_setup.js'],
transform: {
'.+\\.(j|t)sx?$': 'ts-jest',
},
};
Loading