-
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update vis-data and commit package-lock * Prepare the package for TypeScript * Update dependencies * Fix coverage reports * Fix Mocha never finishing * New package lock (who knows why) * Regenerate package lock If anybody has any advice about merging package locks I'm all ears. * Add coverage to root index.html * Set up ESLint with Prettier for TS files Prettier is not used for JavaScript files at the moment. * Add tsconfig * Install missing deps * Fix ESLint config * Add NodesHandler test Brings the coverage from red/yellow to yellow/green numbers.
- Loading branch information
Showing
57 changed files
with
81,488 additions
and
3,246 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,7 +1,41 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { | ||
"targets": "> 0.1% or not dead" | ||
}] | ||
] | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": "> 0.1% or not dead" | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread", | ||
"@babel/plugin-transform-runtime" | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": "maintained node versions" | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
] | ||
}, | ||
"test-cov": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": "maintained node versions" | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": ["istanbul"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extension": ["ts", "js"], | ||
"require": ["./babel.mocha.js"], | ||
"spec": ["./test/**/*.test.js", "./test/**/*.test.ts"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"exclude": ["**/*.test.*", "**/*.d.ts"], | ||
"extension": ["ts", "js"], | ||
"include": ["lib/**/*"], | ||
"instrument": false, | ||
"reporter": ["text-summary", "lcov"], | ||
"sourceMap": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"parser": "typescript", | ||
"printWidth": 80, | ||
"quoteProps": "consistent", | ||
"semi": false, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"useTabs": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require('@babel/register')({ | ||
extensions: ['.ts', '.js'], | ||
}) |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.