Skip to content

Commit

Permalink
2.0.0, removed Inversify, FP, various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenouw committed Aug 26, 2020
1 parent 56daf5b commit 0cc3364
Show file tree
Hide file tree
Showing 12 changed files with 1,277 additions and 1,152 deletions.
6 changes: 5 additions & 1 deletion .npmignore
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
17 changes: 1 addition & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@liftr/tscov",
"version": "1.4.8",
"version": "2.0.0",
"description": "Check the type coverage of any TypeScript project with this easy npm package",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": "https://github.com/jeroenouw/liftr-tscov.git",
"author": "Jeroen Ouwehand @jeroenouw",
"license": "MIT",
Expand Down Expand Up @@ -33,14 +32,11 @@
"nodejs"
],
"dependencies": {
"color-support": "^1.1.3",
"commander": "^6.0.0",
"figlet": "^1.5.0",
"glob": "7.1.6",
"inversify": "^5.0.1",
"minimist": "1.2.5",
"prompts": "^2.3.2",
"reflect-metadata": "^0.1.13",
"tslib": "2.0.1"
},
"devDependencies": {
Expand Down
19 changes: 3 additions & 16 deletions src/index.ts
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()
Loading

0 comments on commit 0cc3364

Please sign in to comment.