Add REPL bootstrapper and associated npm command
This commit is contained in:
parent
193e613ad6
commit
0a92d93949
|
@ -24,6 +24,7 @@
|
|||
"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: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:dev": "docker exec v3-user-api sh -c 'npx prisma migrate dev'",
|
||||
"migrate:test": "dotenv -e .env.test -- npx prisma migrate deploy",
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import { repl } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
await repl(AppModule);
|
||||
}
|
||||
bootstrap();
|
Loading…
Reference in New Issue