@afuteam-nx/plugin-upload-filecontent2wiki
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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"
    }
  }
]

Package Sidebar

Install

npm i @afuteam-nx/plugin-upload-filecontent2wiki

Weekly Downloads

2

Version

0.0.3

License

none

Unpacked Size

8.68 kB

Total Files

14

Last publish

Collaborators

  • eyea