-
Notifications
You must be signed in to change notification settings - Fork 13
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
6977b0c
commit 32f52f4
Showing
19 changed files
with
3,453 additions
and
888 deletions.
There are no files selected for viewing
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,45 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript" | ||
], | ||
"ignorePatterns": [ | ||
"build/**/*", | ||
"rollup.config.js" | ||
], | ||
"rules": { | ||
"@typescript-eslint/ban-ts-ignore": 0, | ||
"@typescript-eslint/camelcase": 0, | ||
"@typescript-eslint/explicit-function-return-type": 1, | ||
"@typescript-eslint/interface-name-prefix": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"newline-before-return": 1, | ||
"semi": "off", | ||
"@typescript-eslint/semi": [ | ||
"error" | ||
], | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal" | ||
], | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
build | ||
.nyc_output | ||
coverage | ||
*.log | ||
.DS_Store |
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 @@ | ||
require: "ts-node/register" | ||
extension: | ||
- "ts" | ||
spec: | ||
- "test/**/*.ts" |
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{ | ||
"reporter": [ | ||
"lcovonly" | ||
], | ||
"sourceMap": false, | ||
"instrument": false | ||
"reporter": [ | ||
"lcov", | ||
"text-summary" | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"extension": [ | ||
".ts", | ||
".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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Tests", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--no-timeouts", | ||
"--colors" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector", | ||
"internalConsoleOptions": "openOnSessionStart" | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"files.trimTrailingWhitespace": true, | ||
"typescript.format.semicolons": "insert", | ||
"typescript.preferences.quoteStyle": "double", | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 2, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/node_modules": true, | ||
"**/build": true, | ||
}, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
} |
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
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,59 @@ | ||
import path from "path"; | ||
import typescript from "rollup-plugin-typescript2"; | ||
import dts from "rollup-plugin-dts"; | ||
import pkg from "./package.json"; | ||
|
||
const banner = [ | ||
"/*!", | ||
" Copyright (c) Peculiar Ventures, LLC", | ||
"*/", | ||
"", | ||
].join("\n"); | ||
const input = "src/index.ts"; | ||
const external = Object.keys(pkg.dependencies || {}); | ||
|
||
export default [ | ||
{ | ||
input, | ||
plugins: [ | ||
typescript({ | ||
check: true, | ||
clean: true, | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
module: "ES2015", | ||
removeComments: true, | ||
} | ||
} | ||
}), | ||
], | ||
external: [...external], | ||
output: [ | ||
{ | ||
banner, | ||
file: pkg.main, | ||
format: "cjs", | ||
}, | ||
{ | ||
banner, | ||
file: pkg.module, | ||
format: "es", | ||
}, | ||
], | ||
}, | ||
{ | ||
input, | ||
external: [...external], | ||
plugins: [ | ||
dts({ | ||
tsconfig: path.resolve(__dirname, "./tsconfig.json") | ||
}) | ||
], | ||
output: [ | ||
{ | ||
banner, | ||
file: pkg.types, | ||
} | ||
] | ||
}, | ||
]; |
Oops, something went wrong.