Browse Source

Restructured tsconfig files

update-deps
Alex Mikhalev 6 years ago
parent
commit
68e828e2e5
  1. 9
      client/tsconfig.json
  2. 11
      common/tsconfig.json
  3. 10
      server/Database.ts
  4. 12
      server/tsconfig.json
  5. 14
      tsconfig.json

9
client/tsconfig.json

@ -1,21 +1,18 @@
{ {
"extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"sourceMap": true, "sourceMap": true,
"jsx": "react", "jsx": "react",
"experimentalDecorators": true,
"target": "es2017",
"lib": [ "lib": [
"es2017", "es2017",
"dom", "dom",
"scripthost" "scripthost"
], ],
"module": "commonjs",
"types": [ "types": [
"webpack-env", "webpack-env",
"core-js", "core-js",
"node" "node"
], ],
"strict": true,
"baseUrl": "..", "baseUrl": "..",
"paths": { "paths": {
"@common/*": [ "@common/*": [
@ -26,6 +23,10 @@
] ]
} }
}, },
"include": [
"./client/**/*.ts",
"./client/**/*.tsx"
],
"references": [{ "references": [{
"path": "../common" "path": "../common"
}] }]

11
common/tsconfig.json

@ -1,16 +1,7 @@
{ {
"extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../dist/common", "outDir": "../dist/common",
"experimentalDecorators": true,
"target": "es2017",
"lib": [
"es2017"
],
"types": [
"node"
],
"module": "commonjs",
"strict": true,
"baseUrl": "..", "baseUrl": "..",
"composite": true, "composite": true,
"declaration": true, "declaration": true,

10
server/Database.ts

@ -1,15 +1,9 @@
import * as path from "path"; import * as path from "path";
import { import { Connection, createConnection, getConnectionOptions } from "typeorm";
Connection,
createConnection,
EntityManager,
getConnectionOptions,
Repository
} from "typeorm";
import logger from "@common/logger"; import logger from "@common/logger";
import { SprinklersDevice, User } from "./entities"; import { User } from "./entities";
import { SprinklersDeviceRepository, UserRepository } from "./repositories/"; import { SprinklersDeviceRepository, UserRepository } from "./repositories/";
export class Database { export class Database {

12
server/tsconfig.json

@ -1,19 +1,9 @@
{ {
"extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../dist", "outDir": "../dist",
"sourceMap": true, "sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"target": "es2017",
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"types": [
"webpack-env",
"node"
],
"strict": true, "strict": true,
"allowJs": true, "allowJs": true,
"baseUrl": "..", "baseUrl": "..",

14
tsconfig.json

@ -0,0 +1,14 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "es2017",
"module": "commonjs",
"lib": [
"es2017"
],
"types": [
"node"
],
"strict": true
}
}
Loading…
Cancel
Save