0.0.3 • Published 2 months ago

@afuteam-nx/plugin-upload-filecontent2wiki v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

plugin-upload-filecontent2wiki

将本地生成的文本类文件内容上传到指定仓库的 wiki 页面

环境

本插件基于 nx 开发,请在对应初始化好的 your-app 中使用

安装

pnpm i @afuteam-nx/plugin-upload-filecontent2wiki -D

配置

# 在 apps/your-app/project.json 中配置
"targets": {
  "upload-filecontent2wiki": {
    "executor": "@afuteam-nx/plugin-upload-filecontent2wiki:run",
    "options": {
      "accessToken": "获取代码仓库的accessToken",
      "localJsonfilePath": "要上传的json文件地址 allProjectsLintResult.json",
      "gitLabBaseUrl": "git仓库地址,比如 https://gitlab.com",
      "uploadRepoId": "将结果上传到的仓库group类型的id 比如 4203"
    }
  }
}

使用

nx run your-app:upload-filecontent2wiki

文件数据结构

allProjectsLintResult.json

[
  {
    "sky": {
      "errors": 0,
      "warnings": 0,
      "total": 0,
      "blankLines": 589,
      "commentLines": 378,
      "codeLines": 21295,
      "created_at": "2023-11-21T15:23:21.637+08:00",
      "last_activity_at": "2024-03-04T20:41:10.727+08:00",
      "id": 28612,
      "name": "sky"
    }
  }
]
0.0.3

2 months ago

0.0.2

3 months ago

0.0.1

3 months ago