mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 01:01:04 +00:00
441e7402a8
WebStorm does not support typescript.*.json files, but always uses the nearest tsconfig.json. Moving the test-specific tsconfig into the test folder allows WebStorm to use the correct config for the E2E-tests and stops it from showing unnecessary errors. Signed-off-by: David Mehren <git@herrmehren.de>
115 lines
3.5 KiB
JSON
115 lines
3.5 KiB
JSON
{
|
|
"name": "hedgedoc",
|
|
"version": "2.0.0",
|
|
"description": "Realtime collaborative markdown notes on all platforms.",
|
|
"author": "",
|
|
"private": true,
|
|
"license": "AGPL-3.0",
|
|
"scripts": {
|
|
"build": "rimraf dist && nest build",
|
|
"format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"format:fix": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"start": "rimraf dist && nest start",
|
|
"start:dev": "rimraf dist && nest start --watch",
|
|
"start:debug": "rimraf dist && nest start --debug --watch",
|
|
"start:prod": "node dist/main",
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:cov": "jest --coverage",
|
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
"test:e2e": "jest --config jest-e2e.json --runInBand",
|
|
"test:e2e:cov": "jest --config jest-e2e.json --coverage --runInBand",
|
|
"seed": "ts-node src/seed.ts"
|
|
},
|
|
"dependencies": {
|
|
"@azure/storage-blob": "12.8.0",
|
|
"@nestjs/common": "8.1.1",
|
|
"@nestjs/config": "1.0.2",
|
|
"@nestjs/core": "8.1.1",
|
|
"@nestjs/passport": "8.0.1",
|
|
"@nestjs/platform-express": "8.1.1",
|
|
"@nestjs/schedule": "1.0.1",
|
|
"@nestjs/swagger": "5.1.4",
|
|
"@nestjs/typeorm": "8.0.2",
|
|
"@types/bcrypt": "5.0.0",
|
|
"@types/cron": "1.7.3",
|
|
"@types/minio": "7.0.11",
|
|
"@types/node-fetch": "2.5.12",
|
|
"@types/passport-http-bearer": "1.0.37",
|
|
"base32-encode": "1.2.0",
|
|
"bcrypt": "5.0.1",
|
|
"class-transformer": "0.4.0",
|
|
"class-validator": "0.13.1",
|
|
"cli-color": "2.0.1",
|
|
"connect-typeorm": "1.1.4",
|
|
"express-session": "1.17.2",
|
|
"file-type": "16.5.3",
|
|
"joi": "17.4.2",
|
|
"minio": "7.0.19",
|
|
"nest-router": "1.0.9",
|
|
"node-fetch": "2.6.5",
|
|
"passport": "0.4.1",
|
|
"passport-http-bearer": "1.0.1",
|
|
"passport-local": "1.0.0",
|
|
"raw-body": "2.4.1",
|
|
"reflect-metadata": "0.1.13",
|
|
"rimraf": "3.0.2",
|
|
"rxjs": "7.4.0",
|
|
"sqlite3": "5.0.2",
|
|
"swagger-ui-express": "4.1.6",
|
|
"typeorm": "0.2.38"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "8.1.4",
|
|
"@nestjs/schematics": "8.0.4",
|
|
"@nestjs/testing": "8.1.1",
|
|
"@trivago/prettier-plugin-sort-imports": "2.0.4",
|
|
"@tsconfig/node12": "1.0.9",
|
|
"@types/cli-color": "2.0.1",
|
|
"@types/express": "4.17.13",
|
|
"@types/express-session": "1.17.4",
|
|
"@types/jest": "27.0.2",
|
|
"@types/node": "14.17.29",
|
|
"@types/passport-local": "1.0.34",
|
|
"@types/source-map-support": "0.5.4",
|
|
"@types/supertest": "2.0.11",
|
|
"@typescript-eslint/eslint-plugin": "5.1.0",
|
|
"@typescript-eslint/parser": "5.1.0",
|
|
"eslint": "8.0.1",
|
|
"eslint-config-prettier": "8.3.0",
|
|
"eslint-plugin-import": "2.25.2",
|
|
"eslint-plugin-jest": "25.2.2",
|
|
"eslint-plugin-local-rules": "1.1.0",
|
|
"eslint-plugin-prettier": "4.0.0",
|
|
"http-proxy-middleware": "2.0.1",
|
|
"jest": "27.3.1",
|
|
"prettier": "2.4.1",
|
|
"source-map-support": "0.5.20",
|
|
"supertest": "6.1.6",
|
|
"ts-jest": "27.0.7",
|
|
"ts-node": "10.3.1",
|
|
"tsconfig-paths": "3.11.0",
|
|
"typescript": "4.4.4"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".spec.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"coverageDirectory": "../coverage",
|
|
"testEnvironment": "node",
|
|
"globals": {
|
|
"ts-jest": {
|
|
"tsconfig": "test/tsconfig.json"
|
|
}
|
|
}
|
|
}
|
|
}
|