-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Allen Zhang (张涛)
committed
Oct 12, 2024
1 parent
13466b0
commit 58d77ce
Showing
5 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { defineConfig } from 'vite' | ||
import {defineConfig} from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import istanbul from 'vite-plugin-istanbul' | ||
import canyon from 'vite-plugin-canyon' | ||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
vue(), | ||
istanbul({ | ||
forceBuildInstrument:true | ||
}), | ||
forceBuildInstrument: true | ||
}), | ||
canyon() | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/canyon-backend/src/playground/playground.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Controller } from "@nestjs/common"; | ||
import { PrismaService } from "../prisma/prisma.service"; | ||
|
||
@Controller() | ||
export class PlaygroundController { | ||
constructor(private readonly prismaService: PrismaService) { | ||
console.log("PlaygroundController created"); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/canyon-backend/src/playground/playground.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Module } from "@nestjs/common"; | ||
import { PlaygroundService } from "./playground.service"; | ||
import { PrismaModule } from "src/prisma/prisma.module"; | ||
import { PlaygroundController } from "./playground.controller"; | ||
|
||
@Module({ | ||
imports: [PrismaModule], | ||
controllers: [PlaygroundController], | ||
providers: [PlaygroundService], | ||
exports: [PlaygroundService], | ||
}) | ||
export class PlaygroundModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Injectable } from "@nestjs/common"; | ||
import { PrismaService } from "src/prisma/prisma.service"; | ||
@Injectable() | ||
export class PlaygroundService { | ||
constructor(private prisma: PrismaService) {} | ||
} |