Restructured tsconfig files
This commit is contained in:
parent
e6c3904701
commit
68e828e2e5
@ -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"
|
||||||
}]
|
}]
|
||||||
|
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
@ -1,35 +1,25 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "../tsconfig.json",
|
||||||
"outDir": "../dist",
|
"compilerOptions": {
|
||||||
"sourceMap": true,
|
"outDir": "../dist",
|
||||||
"experimentalDecorators": true,
|
"sourceMap": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"target": "es2017",
|
"strict": true,
|
||||||
"module": "commonjs",
|
"allowJs": true,
|
||||||
"lib": [
|
"baseUrl": "..",
|
||||||
"es6",
|
"paths": {
|
||||||
"dom"
|
"@common/*": [
|
||||||
],
|
"./common/*"
|
||||||
"types": [
|
],
|
||||||
"webpack-env",
|
"@server/*": [
|
||||||
"node"
|
"./server/*"
|
||||||
],
|
]
|
||||||
"strict": true,
|
}
|
||||||
"allowJs": true,
|
},
|
||||||
"baseUrl": "..",
|
"references": [{
|
||||||
"paths": {
|
"path": "../common"
|
||||||
"@common/*": [
|
}],
|
||||||
"./common/*"
|
"include": [
|
||||||
],
|
"./**/*.ts"
|
||||||
"@server/*": [
|
]
|
||||||
"./server/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"references": [{
|
|
||||||
"path": "../common"
|
|
||||||
}],
|
|
||||||
"include": [
|
|
||||||
"./**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
14
tsconfig.json
Normal file
14
tsconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"target": "es2017",
|
||||||
|
"module": "commonjs",
|
||||||
|
"lib": [
|
||||||
|
"es2017"
|
||||||
|
],
|
||||||
|
"types": [
|
||||||
|
"node"
|
||||||
|
],
|
||||||
|
"strict": true
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user