@@ -11,26 +11,34 @@ Please note: the Nx implementation is a work in progress. Not all apps support N
11
11
``` bash
12
12
# Build a project
13
13
npx nx build cli
14
- npx nx build @bitwarden/common
14
+ npx nx build state # Modern libs and apps have simple, all lowercase target names
15
+ npx nx build @bitwarden/common # Legacy libs have a special naming convention and include the @bitwarden prefix
15
16
16
17
# Test a project
17
18
npx nx test cli
18
- npx nx test @bitwarden/common
19
19
20
20
# Lint a project
21
21
npx nx lint cli
22
- npx nx lint @bitwarden/common
23
22
24
- # Serve/watch a project (for apps with serve targets)
23
+ # Serve/watch a project (for projects with serve targets)
25
24
npx nx serve cli
26
25
26
+ # Build all projects that differ from origin/main
27
+ nx affected --target=build --base=origin/main
28
+
29
+ # Build, lint, and test every project at once
30
+ npx nx run-many --target=build,test,lint --all
27
31
28
32
# Most projects default to the "oss-dev" build, so if you need the bitwarden license build add a --configuration
29
33
npx nx build cli --configuration=bit-dev
30
34
31
35
# If you need a production build drop the "dev" suffix
32
36
npx nx build cli --configuration=oss # or "bit"
33
37
38
+ # Configurations can also be passed to run-many
39
+ # For example: to run all Bitwarden licensed builds
40
+ npx nx run-many --target=build,test,lint --all --configuration=bit
41
+
34
42
# Outputs are distrubuted in a root level /dist/ folder
35
43
36
44
# Run a locally built CLI
0 commit comments