Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 18, 2024
1 parent b382f17 commit a87157e
Show file tree
Hide file tree
Showing 111 changed files with 34,286 additions and 93 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish-canyon-uploader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish canyon-uploader

on:
push:
branches: [ "*" ]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm --filter=canyon-uploader publish -f --no-git-checks --access=public --filter
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
38 changes: 38 additions & 0 deletions .github/workflows/upload-canyon-report-coverage-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Deploy Vite Project

on:
push:
branches:
- dev # 监听主分支的推送事件

jobs:
build:
runs-on: ubuntu-latest

steps:
# 检查代码库
- name: Checkout code
uses: actions/checkout@v3

# 设置 Node.js 环境
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # 根据项目需求选择 Node.js 版本

# 安装依赖
- name: Install dependencies
run: pnpm install

# 运行构建命令
- name: Build Vite project
run: pnpm run build:report && ls

# 保存构建结果到工作空间
# - name: Upload build artifact
# uses: actions/upload-artifact@v3
# with:
# name: build-output
# path: dist/ # 根据 Vite 的默认输出目录

# 如果需要部署,可以添加一个部署步骤,例如使用 GitHub Pages 或其他服务
1 change: 0 additions & 1 deletion packages/canyon-collect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"preinstall": "prisma generate"
},
"dependencies": {
"@hpcc-js/wasm": "^2.22.3",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/canyon-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@ant-design/nextjs-registry": "^1.0.1",
"@hpcc-js/wasm": "^2.22.3",
"@monaco-editor/react": "^4.6.0",
"@mongodb-js/zstd": "^1.2.2",
"@mongodb-js/zstd-darwin-arm64": "^1.2.2",
Expand Down
20 changes: 20 additions & 0 deletions packages/canyon-report/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Local
.DS_Store
*.local
*.log*

# Dist
node_modules
dist/

# IDE
.vscode/*
!.vscode/extensions.json
.idea

screenshots

test-results

.canyon_output
.nyc_output
1 change: 1 addition & 0 deletions packages/canyon-report/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rspack编写的istanbuk report仓库
229 changes: 229 additions & 0 deletions packages/canyon-report/mock/dynamic-data/App.tsx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
window["App.tsx"] = {
"content": "import enUS from \"antd/es/locale/en_US\";\nimport jaJP from \"antd/es/locale/ja_JP\";\nimport zhCN from \"antd/es/locale/zh_CN\";\nimport { useRoutes } from \"react-router-dom\";\n\nimport routes from \"~react-pages\";\n\nconst languages = {\n cn: zhCN,\n en: enUS,\n ja: jaJP,\n};\n\nconst lng = (localStorage.getItem(\"language\") ||\n \"cn\") as keyof typeof languages;\n\nconst { darkAlgorithm } = theme;\nconst App = () => {\n const isDark = localStorage.getItem(\"theme\")\n ? localStorage.getItem(\"theme\") === \"dark\"\n : false;\n return (\n <div className={\"dark:text-white dark:text-opacity-85\"}>\n <ConfigProvider\n locale={languages[lng]}\n theme={{\n token: {\n colorPrimary: \"#0071c2\",\n },\n algorithm: isDark ? [darkAlgorithm] : [],\n }}\n >\n {useRoutes(routes)}\n </ConfigProvider>\n </div>\n );\n};\n\nexport default App;\n",
"coverage": {
"path": "App.tsx",
"b": {
"0": [
8,
8
],
"1": [
0,
32
],
"2": [
0,
32
]
},
"f": {
"0": 32
},
"s": {
"0": 8,
"1": 8,
"2": 8,
"3": 8,
"4": 32,
"5": 32
},
"branchMap": {
"0": {
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 15,
"column": 6
}
},
"type": "binary-expr",
"locations": [
{
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 45
}
},
{
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 15,
"column": 6
}
}
],
"line": 14
},
"1": {
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 21,
"column": 11
}
},
"type": "cond-expr",
"locations": [
{
"start": {
"line": 20,
"column": 6
},
"end": {
"line": 20,
"column": 46
}
},
{
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 21,
"column": 11
}
}
],
"line": 19
},
"2": {
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 50
}
},
"type": "cond-expr",
"locations": [
{
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 45
}
},
{
"start": {
"line": 30,
"column": 48
},
"end": {
"line": 30,
"column": 50
}
}
],
"line": 30
}
},
"fnMap": {
"0": {
"name": "(anonymous_0)",
"decl": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 13
}
},
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 37,
"column": 1
}
},
"line": 18
}
},
"statementMap": {
"0": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 12,
"column": 1
}
},
"1": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 15,
"column": 33
}
},
"2": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 31
}
},
"3": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 37,
"column": 1
}
},
"4": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 21,
"column": 11
}
},
"5": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 36,
"column": 4
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
window["assets/icons/EpTopRight.tsx"] = {
"content": "// import React from 'react';\nimport type { SVGProps } from \"react\";\n\nexport function EpTopRight(props: SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 1024 1024\"\n {...props}\n >\n <path\n fill=\"currentColor\"\n d=\"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z\"\n ></path>\n <path\n fill=\"currentColor\"\n d=\"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z\"\n ></path>\n </svg>\n );\n}\n",
"coverage": {
"path": "assets/icons/EpTopRight.tsx",
"b": {},
"f": {
"0": 0
},
"s": {
"0": 0
},
"branchMap": {},
"fnMap": {
"0": {
"name": "EpTopRight",
"decl": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 26
}
},
"loc": {
"start": {
"line": 4,
"column": 59
},
"end": {
"line": 23,
"column": 1
}
},
"line": 4
}
},
"statementMap": {
"0": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 22,
"column": 4
}
}
}
}
}
Loading

0 comments on commit a87157e

Please sign in to comment.