Skip to content

Commit 45de7c4

Browse files
committed
chore: injecting admin bro
1 parent d93386c commit 45de7c4

13 files changed

+934
-60
lines changed

example-app/cypress/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"baseUrl": "../node_modules",
5+
"target": "es5",
6+
"types": ["cypress"],
7+
},
8+
"include": [
9+
"**/*.ts"
10+
]
11+
}

example-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"license": "MIT",
77
"scripts": {
88
"build": "rimraf dist && tsc -p tsconfig.build.json",
9-
"format": "prettier --write \"src/**/*.ts\"",
109
"start": "ts-node -r tsconfig-paths/register src/main.ts",
11-
"start:dev": "tsc-watch -p tsconfig.build.json --onSuccess \"node dist/main.js\"",
10+
"start:dev": "tsc-watch -p tsconfig.build.json --onSuccess \"node dist/example-app/src/main.js\"",
1211
"start:debug": "tsc-watch -p tsconfig.build.json --onSuccess \"node --inspect-brk dist/main.js\"",
1312
"start:prod": "node dist/main.js",
1413
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./src ./test",
@@ -34,6 +33,7 @@
3433
"@types/jest": "^24.0.18",
3534
"@types/node": "^12.7.5",
3635
"@types/supertest": "^2.0.8",
36+
"cypress": "^4.11.0",
3737
"jest": "^24.9.0",
3838
"prettier": "^1.18.2",
3939
"supertest": "^4.0.2",

example-app/src/app.controller.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Test, TestingModule } from '@nestjs/testing';
2+
23
import { AppController } from './app.controller';
34
import { AppService } from './app.service';
45

example-app/src/app.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { Module } from '@nestjs/common';
2+
3+
import { AdminModule } from '../../src/index';
4+
25
import { AppController } from './app.controller';
36
import { AppService } from './app.service';
47

58
@Module({
6-
imports: [],
9+
imports: [AdminModule.createAdminModule()],
710
controllers: [AppController],
811
providers: [AppService],
912
})

example-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"outDir": "./build",
3+
"outDir": "./dist",
44
"target": "es2017",
55
"esModuleInterop": true,
66
"jsx": "react",

0 commit comments

Comments
 (0)