-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.0.0, removed Inversify, FP, various improvements
- Loading branch information
Showing
12 changed files
with
1,277 additions
and
1,152 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,9 +1,13 @@ | ||
# Relevant files | ||
!lib/** | ||
|
||
# Unrelevant files | ||
src/** | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
package-lock.json | ||
tsconfig.json | ||
tslint.json | ||
tslint.json | ||
.github | ||
.vscode |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,20 +1,7 @@ | ||
import { Container } from 'inversify' | ||
import { TsConfig } from './tscov/ts-config' | ||
import { Tscov } from './tscov/tscov' | ||
import { Options } from './tscov/options' | ||
import { CheckTypes } from './tscov/check-types' | ||
import { MinCoverage } from './tscov/min-coverage' | ||
import { tscov } from './tscov/tscov' | ||
|
||
export function index(): Tscov { | ||
const container: Container = new Container() | ||
|
||
container.bind<TsConfig>('TsConfig').to(TsConfig).inSingletonScope() | ||
container.bind<Tscov>('Tscov').to(Tscov).inSingletonScope() | ||
container.bind<Options>('Options').to(Options).inSingletonScope() | ||
container.bind<CheckTypes>('CheckTypes').to(CheckTypes).inSingletonScope() | ||
container.bind<MinCoverage>('MinCoverage').to(MinCoverage).inSingletonScope() | ||
|
||
return container.get<Tscov>('Tscov') | ||
export function index(): Promise<any> { | ||
return tscov() | ||
} | ||
|
||
index() |
Oops, something went wrong.