api: приложение NestJS и e2e-тесты

Каркас api: NestJS со сборкой через webpack, health-контроллер с версией
и статусом БД,
Dockerfile, тесты Vitest и e2e-тесты на Jest.
This commit is contained in:
arswarog committed 2026-10-27 10:43:43 +03:00
1 parent 94e5e09218
commit 94f9b06527
27 files changed
+791

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
const webpack = require('webpack');
const { createApiWebpackConfig } = require('./webpack.base');
module.exports = createApiWebpackConfig({
output: {
clean: true,
...(process.env.NODE_ENV !== 'production' && {
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
}),
},
nxPlugin: {
main: './src/main.ts',
generatePackageJson: true,
sourceMap: true,
},
plugins: [
new webpack.DefinePlugin({
__APP_VERSION__: JSON.stringify(process.env.APP_VERSION || 'unknown'),
}),
],
});