Skip to content

Commit

Permalink
Reorganize configs (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheiny authored May 21, 2018
1 parent 669f5c5 commit 3db9376
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions codegen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist"
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
},
globals: {
"ts-jest": {
tsConfigFile: "tsconfig.json",
tsConfigFile: "src/tsconfig.json",
},
},
moduleFileExtensions: ["js", "json", "ts"],
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"version": "0.0.1",
"license": "MIT",
"scripts": {
"codegen": "ts-node codegen/codegen",
"compile": "tsc -p .",
"lint": "tslint -p tsconfig.json -c tslint.json '{src,codegen}/**/*.ts'",
"codegen": "npm-run-all -s compile:codegen node:codegen",
"compile:src": "tsc -p src",
"compile:codegen": "tsc -p codegen",
"lint": "tslint -p src/tsconfig.json -c tslint.json '{src,codegen}/**/*.ts'",
"lint:fix": "yarn lint --fix",
"node:codegen": "ts-node codegen/main",
"test": "jest --config jest.config.js",
"verify": "npm-run-all -s codegen compile lint test"
"verify": "npm-run-all -s codegen compile:src lint test"
},
"devDependencies": {
"@types/jest": "^22.2.3",
Expand Down
7 changes: 7 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"outDir": "../dist"
}
}
8 changes: 2 additions & 6 deletions tsconfig.json → tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
Expand All @@ -9,18 +8,15 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "./dist",
"pretty": true,
"removeComments": false,
"sourceMap": true,
"strict": true,
"stripInternal": true,
"target": "es5",
"lib": [
"es5",
"es2015",
"es2015.core"
],
},

]
}
}

0 comments on commit 3db9376

Please sign in to comment.