Skip to content

Commit

Permalink
build: baby
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfulyang committed Jan 26, 2024
1 parent 94c00c5 commit f6bcfb9
Show file tree
Hide file tree
Showing 95 changed files with 4,724 additions and 1,674 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/libs/github/__generated__/*
src/prisma/generated/*
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
...override.rules,
'no-await-in-loop': 'off',
'import/no-cycle': 'off',
'max-classes-per-file': 'off',
},
})),
};
3 changes: 3 additions & 0 deletions .jest/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { jest } from '@jest/globals';

jest.setTimeout(100000);
6 changes: 1 addition & 5 deletions .swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
"legacyDecorator": true,
"decoratorMetadata": true
},
"keepClassNames": true,
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
"keepClassNames": true
},
"minify": false
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ WORKDIR /usr/app
COPY package.json pnpm-lock.yaml .npmrc binding.gyp ./
COPY addon ./addon
COPY patches ./patches
COPY src ./src

RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.19/main" > /etc/apk/repositories \
&& echo "https://dl-cdn.alpinelinux.org/alpine/v3.19/community" >> /etc/apk/repositories \
Expand Down
13 changes: 9 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
const { pathsToModuleNameMapper } = require('@powerfulyang/lint');
const tsconfig = require('./tsconfig.json');

const moduleNameMapper = pathsToModuleNameMapper(tsconfig.compilerOptions.paths, {
prefix: '<rootDir>/',
});
const moduleNameMapper = pathsToModuleNameMapper(
{
'@/*': ['src/*'],
'@test/*': ['test/*'],
},
{
prefix: '<rootDir>/',
},
);

/** @type {import('jest').Config} */
module.exports = {
Expand Down
52 changes: 30 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prod:dev": "cross-env PORT=3001 APP_ENV=prod nest start --watch",
"deprecated:qa:dev": "cross-env PORT=3001 APP_ENV=qa nest build --webpackPath webpack-hmr.config.js --watch",
"qa:dev": "cross-env PORT=3001 APP_ENV=qa nest start --watch",
"start": "node dist/main.js",
"start": "node dist/src/main.js",
"test:e2e": "jest --testRegex \"e2e\"",
"test:unit": "jest --testPathIgnorePatterns \"e2e\"",
"tsc-check": "tsc --noEmit",
Expand All @@ -36,37 +36,39 @@
"dependencies": {
"@apollo/server": "^4.10.0",
"@as-integrations/fastify": "2.1.1",
"@aws-sdk/client-s3": "^3.499.0",
"@elastic/elasticsearch": "8.11.0",
"@fastify/cookie": "9.2.0",
"@fastify/cookie": "9.3.1",
"@fastify/multipart": "7.7.3",
"@fastify/passport": "2.4.0",
"@fastify/static": "6.12.0",
"@nestjs/apollo": "12.0.11",
"@nestjs/common": "10.3.0",
"@nestjs/core": "10.3.0",
"@nestjs/common": "10.3.1",
"@nestjs/core": "10.3.1",
"@nestjs/elasticsearch": "10.0.1",
"@nestjs/graphql": "12.0.11",
"@nestjs/jwt": "10.2.0",
"@nestjs/microservices": "10.3.0",
"@nestjs/microservices": "10.3.1",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-fastify": "10.3.0",
"@nestjs/platform-fastify": "10.3.1",
"@nestjs/schedule": "4.0.0",
"@nestjs/swagger": "7.1.17",
"@nestjs/swagger": "7.2.0",
"@nestjs/typeorm": "10.0.1",
"@powerfulyang/node-utils": "1.6.0",
"@powerfulyang/utils": "1.14.0",
"@prisma/client": "5.7.1",
"@prisma/client": "5.8.1",
"amqp-connection-manager": "4.1.14",
"amqplib": "0.10.3",
"bindings": "1.5.0",
"chalk": "4.1.2",
"class-validator": "0.14.0",
"class-validator": "0.14.1",
"cls-hooked": "4.2.2",
"coordtransform": "2.1.2",
"cos-nodejs-sdk-v5": "2.12.6",
"dayjs": "1.11.10",
"dotenv": "16.3.1",
"dotenv": "16.4.1",
"exif-reader": "2.0.0",
"file-type": "^19.0.0",
"firebase-admin": "12.0.0",
"fs-extra": "11.2.0",
"graphql": "16.8.1",
Expand All @@ -76,6 +78,7 @@
"ioredis": "5.3.2",
"ipdb": "0.3.3",
"lodash": "4.17.21",
"nestjs-zod": "^3.0.0",
"node-fetch": "2.6.13",
"node-telegram-bot-api": "0.64.0",
"nodemailer": "6.9.8",
Expand All @@ -85,19 +88,21 @@
"passport-jwt": "4.0.1",
"peer": "1.0.2",
"pg": "8.11.3",
"qqwry.ipdb": "2024.1.3",
"qqwry.ipdb": "2024.1.24",
"reflect-metadata": "0.2.1",
"rxjs": "7.8.1",
"sharp": "0.33.1",
"sharp": "0.33.2",
"socks-proxy-agent": "8.0.2",
"source-map-support": "0.5.21",
"tencentcloud-sdk-nodejs": "4.0.776",
"tencentcloud-sdk-nodejs": "4.0.787",
"tesseract.js": "5.0.4",
"typeorm": "0.3.19",
"uuid": "9.0.1",
"web-push": "3.6.6",
"web-push": "3.6.7",
"winston": "3.11.0",
"xml2js": "0.6.2"
"xml2js": "0.6.2",
"zod": "^3.22.4",
"zod-prisma-types": "^3.1.6"
},
"devDependencies": {
"@graphql-codegen/add": "5.0.0",
Expand All @@ -108,14 +113,14 @@
"@jest/globals": "29.7.0",
"@nestjs/cli": "10.3.0",
"@nestjs/schematics": "10.1.0",
"@nestjs/testing": "10.3.0",
"@nestjs/testing": "10.3.1",
"@powerfulyang/lint": "3.7.0",
"@swc/cli": "0.1.63",
"@swc/cli": "0.3.0",
"@types/cls-hooked": "4.3.8",
"@types/fs-extra": "11.0.4",
"@types/lodash": "4.14.202",
"@types/node": "20.10.7",
"@types/node-fetch": "2.6.10",
"@types/node": "20.11.6",
"@types/node-fetch": "2.6.11",
"@types/node-telegram-bot-api": "0.64.2",
"@types/nodemailer": "6.4.14",
"@types/passport": "1.0.16",
Expand All @@ -127,9 +132,9 @@
"@types/web-push": "3.6.3",
"@types/xml2js": "0.4.14",
"form-data": "4.0.0",
"node-addon-api": "7.0.0",
"node-addon-api": "7.1.0",
"node-gyp": "10.0.1",
"prisma": "5.7.1",
"prisma": "5.8.1",
"ts-node": "10.9.2",
"typescript": "5.3.3"
},
Expand All @@ -141,7 +146,10 @@
"overrides": {
"tough-cookie@<4.1.3": ">=4.1.3",
"@apollo/server@<4.9.3": ">=4.9.3",
"@as-integrations/fastify>fastify": "4.25.1"
"@as-integrations/fastify>fastify": "4.25.2"
}
},
"prisma": {
"schema": "./src/prisma/schema.prisma"
}
}
Loading

0 comments on commit f6bcfb9

Please sign in to comment.