Skip to content

Commit 7fd6df1

Browse files
committed
Initial commit
0 parents  commit 7fd6df1

25 files changed

+5643
-0
lines changed

.gitignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
/build
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
pnpm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
15+
# OS
16+
.DS_Store
17+
18+
# Tests
19+
/coverage
20+
/.nyc_output
21+
22+
# IDEs and editors
23+
/.idea
24+
.project
25+
.classpath
26+
.c9/
27+
*.launch
28+
.settings/
29+
*.sublime-workspace
30+
31+
# IDE - VSCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
38+
# dotenv environment variable files
39+
.env
40+
.env.development.local
41+
.env.test.local
42+
.env.production.local
43+
.env.local
44+
45+
# temp directory
46+
.temp
47+
.tmp
48+
49+
# Runtime data
50+
pids
51+
*.pid
52+
*.seed
53+
*.pid.lock
54+
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
57+
58+
/generated/prisma

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.13.1

README.md

Whitespace-only changes.

eslint.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// @ts-check
2+
import eslint from '@eslint/js';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: ['eslint.config.mjs'],
10+
},
11+
eslint.configs.recommended,
12+
...tseslint.configs.recommendedTypeChecked,
13+
eslintPluginPrettierRecommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.node,
18+
...globals.jest,
19+
},
20+
ecmaVersion: 5,
21+
sourceType: 'module',
22+
parserOptions: {
23+
projectService: true,
24+
tsconfigRootDir: import.meta.dirname,
25+
},
26+
},
27+
},
28+
{
29+
rules: {
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/no-floating-promises': 'warn',
32+
'@typescript-eslint/no-unsafe-argument': 'off',
33+
'@typescript-eslint/no-unsafe-assignment': 'off',
34+
'@typescript-eslint/no-unsafe-call': 'off',
35+
'@typescript-eslint/no-unsafe-member-access': 'off',
36+
'@typescript-eslint/no-unsafe-return': 'off',
37+
'no-restricted-syntax': [
38+
'off',
39+
{
40+
selector: "MemberExpression[object.name='process'][property.name='env']",
41+
message: 'Use ENV_CONFIG instead of process.env',
42+
},
43+
],
44+
// ignore unbound function for jest tests
45+
'@typescript-eslint/unbound-method': 'off'
46+
},
47+
},
48+
);

package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "reports-api-v6",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"dev": "nest start --watch",
7+
"build": "nest build",
8+
"start": "node dist/main.js",
9+
"start:prod": "node dist/main.js",
10+
"prisma:generate": "prisma generate",
11+
"prisma:migrate": "prisma migrate dev",
12+
"lint": "eslint \"src/**/*.ts\" --fix"
13+
},
14+
"dependencies": {
15+
"@nestjs/common": "^10.0.0",
16+
"@nestjs/config": "^3.2.0",
17+
"@nestjs/core": "^10.0.0",
18+
"@nestjs/platform-express": "^10.0.0",
19+
"@nestjs/swagger": "^11.2.0",
20+
"@prisma/client": "^5.17.0",
21+
"class-transformer": "^0.5.1",
22+
"class-validator": "^0.14.0",
23+
"date-fns": "^3.6.0",
24+
"pg": "^8.11.5",
25+
"reflect-metadata": "^0.1.13",
26+
"rxjs": "^7.8.1",
27+
"tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.4",
28+
"@types/express": "^4.17.21"
29+
},
30+
"devDependencies": {
31+
"@eslint/eslintrc": "^3.2.0",
32+
"@eslint/js": "^9.18.0",
33+
"@nestjs/cli": "^10.3.0",
34+
"@nestjs/schematics": "^10.0.0",
35+
"@nestjs/testing": "^10.0.0",
36+
"@types/node": "^20.11.24",
37+
"@types/pg": "^8.15.5",
38+
"@typescript-eslint/eslint-plugin": "^7.13.0",
39+
"@typescript-eslint/parser": "^7.13.0",
40+
"eslint": "^9.18.0",
41+
"eslint-config-prettier": "^10.0.1",
42+
"eslint-plugin-prettier": "^5.1.3",
43+
"globals": "^16.3.0",
44+
"prettier": "^3.2.5",
45+
"prisma": "^5.17.0",
46+
"ts-node": "^10.9.2",
47+
"typescript": "^5.4.2",
48+
"typescript-eslint": "^8.38.0"
49+
}
50+
}

0 commit comments

Comments
 (0)