mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
Merge pull request #1209 from hedgedoc/maintenance/ts_base_config
Use Node 12 TypeScript base config
This commit is contained in:
commit
bb9a6d7028
11 changed files with 17 additions and 11 deletions
|
@ -64,6 +64,7 @@
|
||||||
"@nestjs/cli": "7.6.0",
|
"@nestjs/cli": "7.6.0",
|
||||||
"@nestjs/schematics": "7.3.1",
|
"@nestjs/schematics": "7.3.1",
|
||||||
"@nestjs/testing": "7.6.15",
|
"@nestjs/testing": "7.6.15",
|
||||||
|
"@tsconfig/node12": "^1.0.7",
|
||||||
"@types/cli-color": "2.0.0",
|
"@types/cli-color": "2.0.0",
|
||||||
"@types/express": "4.17.11",
|
"@types/express": "4.17.11",
|
||||||
"@types/jest": "26.0.23",
|
"@types/jest": "26.0.23",
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
InternalServerErrorException,
|
InternalServerErrorException,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { ApiBody, ApiConsumes } from '@nestjs/swagger';
|
import { ApiBody, ApiConsumes } from '@nestjs/swagger';
|
||||||
import * as getRawBody from 'raw-body';
|
import getRawBody from 'raw-body';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extract the raw markdown from the request body and create a new note with it
|
* Extract the raw markdown from the request body and create a new note with it
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { INestApplication } from '@nestjs/common';
|
||||||
import { ConfigModule } from '@nestjs/config';
|
import { ConfigModule } from '@nestjs/config';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { INestApplication } from '@nestjs/common';
|
||||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { NestExpressApplication } from '@nestjs/platform-express';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { promises as fs } from 'fs';
|
import { promises as fs } from 'fs';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { INestApplication } from '@nestjs/common';
|
||||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
import authConfigMock from '../../src/config/mock/auth.config.mock';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import { INestApplication } from '@nestjs/common';
|
import { INestApplication } from '@nestjs/common';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import { HistoryService } from '../../src/history/history.service';
|
import { HistoryService } from '../../src/history/history.service';
|
||||||
import { NotesService } from '../../src/notes/notes.service';
|
import { NotesService } from '../../src/notes/notes.service';
|
||||||
import { HistoryEntryUpdateDto } from '../../src/history/history-entry-update.dto';
|
import { HistoryEntryUpdateDto } from '../../src/history/history-entry-update.dto';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { NestExpressApplication } from '@nestjs/platform-express';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { promises as fs } from 'fs';
|
import { promises as fs } from 'fs';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import { PublicApiModule } from '../../src/api/public/public-api.module';
|
import { PublicApiModule } from '../../src/api/public/public-api.module';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { INestApplication } from '@nestjs/common';
|
||||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||||
import { Test } from '@nestjs/testing';
|
import { Test } from '@nestjs/testing';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import * as request from 'supertest';
|
import request from 'supertest';
|
||||||
import { PublicApiModule } from '../../src/api/public/public-api.module';
|
import { PublicApiModule } from '../../src/api/public/public-api.module';
|
||||||
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
import mediaConfigMock from '../../src/config/mock/media.config.mock';
|
||||||
import appConfigMock from '../../src/config/mock/app.config.mock';
|
import appConfigMock from '../../src/config/mock/app.config.mock';
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
|
"extends": "@tsconfig/node12/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"target": "es2017",
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
|
@ -14,6 +13,7 @@
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"./types",
|
"./types",
|
||||||
"./node_modules/@types"
|
"./node_modules/@types"
|
||||||
]
|
],
|
||||||
|
"strict": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -910,6 +910,11 @@
|
||||||
resolved "https://registry.yarnpkg.com/@tokenizer/token/-/token-0.1.1.tgz#f0d92c12f87079ddfd1b29f614758b9696bc29e3"
|
resolved "https://registry.yarnpkg.com/@tokenizer/token/-/token-0.1.1.tgz#f0d92c12f87079ddfd1b29f614758b9696bc29e3"
|
||||||
integrity sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w==
|
integrity sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w==
|
||||||
|
|
||||||
|
"@tsconfig/node12@^1.0.7":
|
||||||
|
version "1.0.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.7.tgz#677bd9117e8164dc319987dd6ff5fc1ba6fbf18b"
|
||||||
|
integrity sha512-dgasobK/Y0wVMswcipr3k0HpevxFJLijN03A8mYfEPvWvOs14v0ZlYTR4kIgMx8g4+fTyTFv8/jLCIfRqLDJ4A==
|
||||||
|
|
||||||
"@types/accepts@*":
|
"@types/accepts@*":
|
||||||
version "1.3.5"
|
version "1.3.5"
|
||||||
resolved "https://registry.yarnpkg.com/@types/accepts/-/accepts-1.3.5.tgz#c34bec115cfc746e04fe5a059df4ce7e7b391575"
|
resolved "https://registry.yarnpkg.com/@types/accepts/-/accepts-1.3.5.tgz#c34bec115cfc746e04fe5a059df4ce7e7b391575"
|
||||||
|
|
Loading…
Reference in a new issue