2.1.0-next.14 • Published 5 days ago

@flatjs/cli-plugin-ci v2.1.0-next.14

Weekly downloads
-
License
MIT
Repository
-
Last release
5 days ago

@flatjs/cli-plugin-ci

The standard CI workflow

Usage Guides

{
  "scripts": {
    "ci:build": "npx flat ci buildEvolve",
    "ci:checkRequirements": "npx flat ci checkRequirements",
    "ci:parallel": "npx flat ci parallel",
    "ci:publish": "npx flat ci publishCdn -f=\"semic/admin-ui/**/*.{png,jpg,jpeg,gif,svg,js,css}\"",
    "ci:publish": "npx flat ci publishFtp -f=\"semic/admin-ui/**/*.{png,jpg,jpeg,gif,svg,js,css}\""
  }
}

Note

命令行的参数优先级 低于 配置文件 flatjs-plugin-ci.config.ts定义的参数

defineConfig({
  publishCdn: {
    filter: ["**/*.{png,jpg,jpeg,gif,svg}"],
    ignore: [],
    relative: "public",
    prefix: "",
    connection: {
      uploadApi: "",
      headers: {
        apikey: "",
        host: "",
      },
      overrideExistFile: false,
    },
  },
  publishFtp: {
    filter: ["**/*.{png,jpg,jpeg,gif,svg}"],
    ignore: [],
    relative: "public",
    prefix: "",
    connection: {
      port: 21,
      host: "",
      user: "",
      password: "",
    },
  },
  buildEvolve: {
    publishNow: true,
    publishFolder: ["shared"],
    packNow: true,
    // CI 约定配置
    timestamp: "dynamic",
    cleanNodeModules: true,
    packWithAssets: false,
    compress: true,
  },
  parallel: {
    prefix: "",
  },
  checkRequirements: {
    branch: "origin/master",
    output: "packages/manifest.json",
  },
});
2.1.0-next.14

5 days ago

2.1.0-next.13

7 days ago

2.1.0-next.12

10 days ago

2.1.0-next.11

11 days ago

2.1.0-next.10

18 days ago

2.1.0-next.9

20 days ago

2.1.0-next.8

23 days ago

2.1.0-next.4

25 days ago

2.1.0-next.6

25 days ago

2.1.0-next.5

25 days ago

2.1.0-next.7

25 days ago

2.1.0-next.2

27 days ago

2.1.0-next.1

27 days ago

2.1.0-next.3

27 days ago

2.1.0-next.0

1 month ago