Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 27, 2024
1 parent 19e9c15 commit 621c15f
Show file tree
Hide file tree
Showing 28 changed files with 66 additions and 544 deletions.
3 changes: 1 addition & 2 deletions packages/canyon-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"do-build": "prisma generate && nest build",
"start": "nest start",
"dev-backend": "nest start --watch",
"preinstall": "prisma generate && nest build",
"preinstall": "prisma generate",
"format": "prettier --write '**/*.{js,ts,jsx,tsx}'"
},
"dependencies": {
Expand All @@ -30,7 +30,6 @@
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"dayjs": "^1.11.13",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"graphql": "^16.10.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { Injectable } from "@nestjs/common";
import { PrismaService } from "src/prisma/prisma.service";
import { decompressedData } from "../../../utils/zstd";
import { convertDataFromCoverageMapDatabase } from "../../../utils/coverage";
import { remapCoverageWithInstrumentCwd } from "canyon-map";
// import { decompressedData } from "canyon-map";
// import { convertDataFromCoverageMapDatabase } from "canyon-map";
import {
remapCoverageWithInstrumentCwd,
convertDataFromCoverageMapDatabase,
decompressedData,
} from "canyon-map";
import {
mergeCoverageMap,
reorganizeCompleteCoverageObjects,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpException, Injectable } from "@nestjs/common";
import { PrismaService } from "src/prisma/prisma.service";
import { CoverageSummaryDataMap } from "canyon-data";
import { decompressedData } from "../../utils/zstd";
import { decompressedData } from "canyon-map";

import { CoverageSummaryDto } from "../dto/coverage-summary.dto";
import { CoverageMapDto } from "../dto/coverage-map.dto";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpException, Injectable } from "@nestjs/common";
import { PrismaService } from "src/prisma/prisma.service";
import { CoverageSummaryDataMap } from "canyon-data";
import { decompressedData } from "../../utils/zstd";
import { decompressedData } from "canyon-map";

// 马上废弃,勿动
@Injectable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from "@nestjs/common";
import { PrismaService } from "../../prisma/prisma.service";
import { percent } from "../../utils/utils";
import { percent } from "canyon-data";

@Injectable()
export class GetProjectChartDataService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from "@nestjs/common";
import { PrismaService } from "../../prisma/prisma.service";
import * as dayjs from "dayjs";
import { percent } from "../../utils/utils";
import { percent } from "canyon-data";

@Injectable()
export class GetProjectCompartmentDataService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from "@nestjs/common";
import { PrismaService } from "../../prisma/prisma.service";
import { getCommits } from "../../adapter/gitlab.adapter";
import { percent } from "../../utils/utils";
import { percent } from "canyon-data";
@Injectable()
export class GetProjectRecordsService {
constructor(private readonly prisma: PrismaService) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Injectable } from "@nestjs/common";
import { PrismaService } from "../../prisma/prisma.service";
import { percent, within30days } from "../../utils/utils";
import { within30days } from "../../utils/utils";
import { percent } from "canyon-data";
import * as dayjs from "dayjs";

@Injectable()
Expand Down
203 changes: 0 additions & 203 deletions packages/canyon-backend/src/utils/coverage.ts

This file was deleted.

Loading

0 comments on commit 621c15f

Please sign in to comment.