-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbb.edn
More file actions
58 lines (58 loc) · 2.76 KB
/
bb.edn
File metadata and controls
58 lines (58 loc) · 2.76 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{:min-bb-version "1.3.190",
:tasks
{:enter (do (println "[BB] Task started:" (:name (current-task)))
(if (:doc (current-task))
(println " --" (:doc (current-task))))
(if *command-line-args*
(println "[BB] Task arguments:" *command-line-args*))),
:leave (do (println "[BB] Task finished:" (:name (current-task)))),
ci {:doc "Run all CI checks",
:task (do (run 'organize-imports)
(run 'prettify)
(run 'typecheck)
(run 'test)
(run 'lint-strict))},
compile-ts {:doc "Compile TypeScript files",
:task (shell "./devops/compile-ts.sh")},
devops-prepare {:doc "Run preparation tasks for devops",
:task (shell "./devops/predevops.sh")},
lint {:doc "Lint the code",
:task (apply shell
"eslint" "--report-unused-disable-directives-severity=warn"
"--report-unused-inline-configs=warn"
"--config=./eslint.config.mjs"
"./" *command-line-args*)},
lint-fs {:doc "Lint filesystem",
:task (shell "./devops/lint/lint-filesystem.sh")},
lint-strict {:doc "Lint the code with strict rules",
:task (do (apply
shell
"eslint"
"--report-unused-disable-directives-severity=warn"
"--report-unused-inline-configs=warn"
"--config=./eslint-strict.config.mjs" "--fix"
"./src" *command-line-args*)
(run 'prettify))},
organize-imports {:doc "Sort imports in TS/JS files",
:task (do (shell "fix-verbatim-module-syntax"
"./tsconfig.json")
(shell "biome"
"check" "--write"
"--formatter-enabled=false"
"--organize-imports-enabled=true"))},
prettify {:doc "Format files with Prettier",
:task (apply shell "./devops/prettify.sh" *command-line-args*)},
start {:doc "Run demo",
:task (do (run 'compile-ts)
(apply shell
"node"
"--disable-warning=MODULE_TYPELESS_PACKAGE_JSON"
"./dist/demo/index.js" *command-line-args*))},
test {:doc "Run unit test suite",
:task (do (shell "./devops/pretest.sh")
(apply shell
{:extra-env {"NODE_ENV" "test"}}
"ava"
*command-line-args*))},
typecheck {:doc "Check files with Typescript",
:task (shell "tsc" "--noEmit")}}}