-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeg.config.mjs
44 lines (43 loc) · 1.48 KB
/
codeg.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 开发期间使用
import { defineConfig } from "./dist/index.mjs";
import { clearInstaller } from "@codegenius/clear-plugin";
import { quantityInstaller } from "@codegenius/quantity-plugin";
import { npmDepCheckInstaller } from "@codegenius/depcheck-plugin";
import { lighthouseInstaller } from "@codegenius/lighthouse-plugin";
import { createProjectInstaller } from "@codegenius/create-plugin";
import { gitInitSimpleHooksInstaller } from "@codegenius/hooks-plugin";
import { gitUserInstaller } from "@codegenius/git-user-plugin";
import { npmRegistryInstaller } from "@codegenius/registry-plugin";
import { gitCommitVerifyInstaller } from "@codegenius/verify-plugin";
import { templateInstaller } from "@codegenius/template-plugin";
import { prettierFormatInstaller } from "@codegenius/format-plugin";
import { impSortInstaller } from "@codegenius/impsort-plugin";
export default defineConfig({
commands: {
fix: {
paths: ["./src", "./scripts"],
},
},
plugins: [
clearInstaller({
files: ["./dist"],
}),
quantityInstaller(),
npmDepCheckInstaller(),
lighthouseInstaller(),
createProjectInstaller(),
gitInitSimpleHooksInstaller(),
gitUserInstaller({
ruleEmail: "^[a-zA-Z0-9._%+-]+@(gmail)\\.(com)$",
}),
npmRegistryInstaller(),
gitCommitVerifyInstaller(),
templateInstaller(),
prettierFormatInstaller({
files: ["./src", "./scripts"],
}),
impSortInstaller({
files: ["./src", "./scripts"],
}),
],
});