Skip to content

Commit

Permalink
build: add 'audit' step to core & apps BUCK files
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Nov 16, 2023
1 parent b07fdbb commit eecd27a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/consent/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ load("@toolchains//workspace-pnpm:macros.bzl",
"build_node_modules",
"next_build",
"next_build_bin",
"eslint"
"eslint",
"audit",
)

dev_pnpm_task_binary(
Expand Down Expand Up @@ -65,6 +66,11 @@ dev_deps_srcs = {
"lib/eslint-config": "//lib/eslint-config:src",
}

audit(
name = "audit",
level = "critical",
)

eslint(
name = "lint",
srcs = [":src"] + glob([".eslint*"]),
Expand Down
8 changes: 7 additions & 1 deletion apps/dashboard/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ load(
"build_node_modules",
"next_build",
"next_build_bin",
"eslint"
"eslint",
"audit",
)

dev_pnpm_task_binary(
Expand Down Expand Up @@ -55,6 +56,11 @@ dev_deps_srcs = {
"lib/eslint-config": "//lib/eslint-config:src",
}

audit(
name = "audit",
level = "critical",
)

eslint(
name = "lint",
srcs = [":src"] + glob([".eslint*"]),
Expand Down
6 changes: 6 additions & 0 deletions core/api/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ load(
"tsc_build",
"prod_tsc_build",
"prod_tsc_build_bin",
"audit",
"eslint",
"typescript_check",
"yaml_check",
Expand Down Expand Up @@ -122,6 +123,11 @@ dev_update_file(
out = "src/graphql/admin/schema.graphql"
)

audit(
name = "audit",
level = "critical",
)

eslint(
name = "check-lint",
srcs = [":src"] + [":test_src"] + glob([".eslint*"]),
Expand Down

0 comments on commit eecd27a

Please sign in to comment.