mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2026-01-02 22:32:40 +00:00
Add REPL bootstrapper and associated npm command
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
"test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/' --runInBand",
|
"test:integration:ci": "npm run migrate:test:ci && dotenv -e ci/.env.ci -- jest --testPathPattern 'tests/integration/' --runInBand",
|
||||||
"test:cov": "jest --testPathPattern 'tests/unit/' --coverage",
|
"test:cov": "jest --testPathPattern 'tests/unit/' --coverage",
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||||
|
"repl": "docker exec -it v3-user-api npm run start -- --entryFile repl",
|
||||||
"migrate": "docker exec v3-user-api sh -c 'npx prisma migrate deploy'",
|
"migrate": "docker exec v3-user-api sh -c 'npx prisma migrate deploy'",
|
||||||
"migrate:dev": "docker exec v3-user-api sh -c 'npx prisma migrate dev'",
|
"migrate:dev": "docker exec v3-user-api sh -c 'npx prisma migrate dev'",
|
||||||
"migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy",
|
"migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy",
|
||||||
|
|||||||
7
src/repl.ts
Normal file
7
src/repl.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { repl } from '@nestjs/core';
|
||||||
|
import { AppModule } from './app.module';
|
||||||
|
|
||||||
|
async function bootstrap() {
|
||||||
|
await repl(AppModule);
|
||||||
|
}
|
||||||
|
bootstrap();
|
||||||
Reference in New Issue
Block a user