Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eb78fe
commit a2f2497
Showing
8 changed files
with
2,790 additions
and
1,566 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,3 +1,5 @@ | ||
{ | ||
"presets": ["env"] | ||
"presets": ["env", | ||
"@babel/typescript" | ||
] | ||
} |
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,6 @@ | ||
{ | ||
"semi": true, | ||
"singlequote": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 2 | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"compilerOptions": { | ||
/* Build Options */ | ||
"target": "es6", | ||
"lib": ["es2017", "esnext.asynciterable", "dom"], | ||
"noEmit": true, | ||
"pretty": true, | ||
"sourceMap": true, | ||
|
||
/* Strict Type-Checking Options */ | ||
"alwaysStrict": true, | ||
/* Parse in strict mode and emit "use strict" for each source file. */ | ||
"noImplicitAny": true, | ||
/* Raise error on expressions and declarations with an implied 'any' type. */ | ||
"noImplicitThis": true, | ||
/* Raise error on 'this' expressions with an implied 'any' type. */ | ||
"strict": true, | ||
/* Enable all strict type-checking options. */ | ||
"strictFunctionTypes": true, | ||
/* Enable strict checking of function types. */ | ||
"strictNullChecks": true, | ||
/* Enable strict null checks. */ | ||
"strictPropertyInitialization": true, | ||
/* Enable strict checking of property initialization in classes. */ | ||
|
||
/* Additional Checks */ | ||
"noFallthroughCasesInSwitch": true, | ||
/* Report errors for fallthrough cases in switch statement. */ | ||
"noImplicitReturns": true, | ||
/* Report error when not all code paths in function return a value. */ | ||
"noUnusedLocals": true, | ||
/* Report errors on unused locals. */ | ||
"noUnusedParameters": true, | ||
/* Report errors on unused parameters. */ | ||
|
||
/* Module Resolution Options */ | ||
"moduleResolution": "node", | ||
/* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ | ||
"allowSyntheticDefaultImports": true, | ||
/* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ | ||
|
||
"baseUrl": "./", | ||
"paths": {} | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"src/**/*.test.ts", | ||
"src/**/*.test.tsx", | ||
"**/__mocks__/*.ts", | ||
"**/__mocks__/*.tsx" | ||
] | ||
} |
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,17 @@ | ||
{ | ||
"extends": ["tslint:recommended", "tslint-config-prettier"], | ||
"rules": { | ||
"no-default-export": true, | ||
"no-empty-interface": true, | ||
"object-literal-sort-keys": false, | ||
"no-console": true, | ||
"no-debugger": true, | ||
"no-eval": true, | ||
"triple-equals": true, | ||
"no-inferrable-types": true, | ||
"curly": [true, "ignore-same-line"], | ||
"max-classes-per-file": [true, 1], | ||
"max-file-line-count": [true, 200], | ||
"typedef": [true, "call-signature", "property-declaration"] | ||
} | ||
} |
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,29 +1,37 @@ | ||
const path = require('path'); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const path = require("path"); | ||
const HtmlWebpackPlugin = require("html-webpack-plugin"); | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'index.js', | ||
publicPath: '/', | ||
library: "Treeviz", | ||
libraryTarget: "umd" | ||
}, | ||
devServer: { | ||
open: true, // open the browser automatically | ||
historyApiFallback: true, // can use any URL and refresh the browser manually | ||
contentBase: './dist', | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: './public/index.html', | ||
}) | ||
], | ||
node: { | ||
net: 'empty', | ||
tls: 'empty', | ||
dns: 'empty' | ||
} | ||
entry: "./src/index.js", | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
filename: "index.js", | ||
publicPath: "/", | ||
library: "Treeviz", | ||
libraryTarget: "umd", | ||
}, | ||
devServer: { | ||
open: true, // open the browser automatically | ||
historyApiFallback: true, // can use any URL and refresh the browser manually | ||
contentBase: "./dist", | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: "./public/index.html", | ||
}), | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
loader: "awesome-typescript-loader", | ||
}, | ||
], | ||
}, | ||
|
||
node: { | ||
net: "empty", | ||
tls: "empty", | ||
dns: "empty", | ||
}, | ||
}; |
Oops, something went wrong.