
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
66 lines
2.9 KiB
JavaScript
66 lines
2.9 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BuildCommand = void 0;
|
|
const ui_1 = require("../lib/ui");
|
|
const abstract_command_1 = require("./abstract.command");
|
|
class BuildCommand extends abstract_command_1.AbstractCommand {
|
|
load(program) {
|
|
program
|
|
.command('build [app]')
|
|
.option('-c, --config [path]', 'Path to nest-cli configuration file.')
|
|
.option('-p, --path [path]', 'Path to tsconfig file.')
|
|
.option('-w, --watch', 'Run in watch mode (live-reload).')
|
|
.option('-b, --builder [name]', 'Builder to be used (tsc, webpack, swc).')
|
|
.option('--watchAssets', 'Watch non-ts (e.g., .graphql) files mode.')
|
|
.option('--webpack', 'Use webpack for compilation (deprecated option, use --builder instead).')
|
|
.option('--type-check', 'Enable type checking (when SWC is used).')
|
|
.option('--webpackPath [path]', 'Path to webpack configuration.')
|
|
.option('--tsc', 'Use typescript compiler for compilation.')
|
|
.option('--preserveWatchOutput', 'Use "preserveWatchOutput" option when using tsc watch mode.')
|
|
.description('Build Nest application.')
|
|
.action(async (app, command) => {
|
|
const options = [];
|
|
options.push({
|
|
name: 'config',
|
|
value: command.config,
|
|
});
|
|
const isWebpackEnabled = command.tsc ? false : command.webpack;
|
|
options.push({ name: 'webpack', value: isWebpackEnabled });
|
|
options.push({ name: 'watch', value: !!command.watch });
|
|
options.push({ name: 'watchAssets', value: !!command.watchAssets });
|
|
options.push({
|
|
name: 'path',
|
|
value: command.path,
|
|
});
|
|
options.push({
|
|
name: 'webpackPath',
|
|
value: command.webpackPath,
|
|
});
|
|
const availableBuilders = ['tsc', 'webpack', 'swc'];
|
|
if (command.builder && !availableBuilders.includes(command.builder)) {
|
|
console.error(ui_1.ERROR_PREFIX +
|
|
` Invalid builder option: ${command.builder}. Available builders: ${availableBuilders.join(', ')}`);
|
|
return;
|
|
}
|
|
options.push({
|
|
name: 'builder',
|
|
value: command.builder,
|
|
});
|
|
options.push({
|
|
name: 'typeCheck',
|
|
value: command.typeCheck,
|
|
});
|
|
options.push({
|
|
name: 'preserveWatchOutput',
|
|
value: !!command.preserveWatchOutput &&
|
|
!!command.watch &&
|
|
!isWebpackEnabled,
|
|
});
|
|
const inputs = [];
|
|
inputs.push({ name: 'app', value: app });
|
|
await this.action.handle(inputs, options);
|
|
});
|
|
}
|
|
}
|
|
exports.BuildCommand = BuildCommand;
|