Skip to content

Commit

Permalink
Configure using tsconfig.json (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode authored and blakeembrey committed Jan 9, 2020
1 parent dd56112 commit 1a0ace2
Show file tree
Hide file tree
Showing 11 changed files with 582 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ coverage/
.DS_Store
npm-debug.log
dist/
tsconfig.schema.json
tsconfig.schemastore-schema.json
220 changes: 217 additions & 3 deletions package-lock.json

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

16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@
"files": [
"dist/",
"register/",
"LICENSE"
"LICENSE",
"tsconfig.schema.json",
"tsconfig.schemastore-schema.json"
],
"scripts": {
"lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
"build": "rimraf dist && tsc",
"lint-fix": "tslint \"src/**/*.ts\" --project tsconfig.json --fix",
"clean": "rimraf dist && rimraf tsconfig.schema.json && rimraf tsconfig.schemastore-schema.json",
"build": "npm run clean && npm run build-tsc && npm run build-configSchema",
"build-tsc": "tsc",
"build-configSchema": "typescript-json-schema --topRef --refs --validationKeywords allOf --out tsconfig.schema.json tsconfig.json TsConfigSchema && node --require ./register ./scripts/create-merged-schema",
"test-spec": "mocha dist/**/*.spec.js -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- \"dist/**/*.spec.js\" -R spec --bail",
"test": "npm run build && npm run lint && npm run test-cov",
Expand Down Expand Up @@ -55,6 +61,7 @@
"@types/react": "^16.0.2",
"@types/semver": "^6.0.0",
"@types/source-map-support": "^0.5.0",
"axios": "^0.19.0",
"chai": "^4.0.1",
"istanbul": "^0.4.0",
"mocha": "^6.1.4",
Expand All @@ -65,7 +72,8 @@
"semver": "^6.1.0",
"tslint": "^5.11.0",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.7.2"
"typescript": "^3.7.2",
"typescript-json-schema": "0.40.0"
},
"peerDependencies": {
"typescript": ">=2.7"
Expand All @@ -75,6 +83,6 @@
"diff": "^4.0.1",
"make-error": "^1.1.1",
"source-map-support": "^0.5.6",
"yn": "^3.0.0"
"yn": "^4.0.0"
}
}
Loading

0 comments on commit 1a0ace2

Please sign in to comment.