Skip to content

Commit

Permalink
feat(nx-spring-boot): add aliases for the format executor
Browse files Browse the repository at this point in the history
You can now also use `do-format` or `apply-format` to run the executor
  • Loading branch information
tinesoft committed Feb 14, 2022
1 parent 337fca8 commit cbcee00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion packages/nx-spring-boot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,23 @@ nx clean your-boot-app

```
nx run your-boot-app:format
//or simply
nx do-format your-boot-app
//or
nx apply-format your-boot-app
```

### Checking the format the project - ('format-check' Executor)

```
nx check-format your-boot-app
or
//or
nx format-check your-boot-app
```
Expand Down
5 changes: 4 additions & 1 deletion packages/nx-spring-boot/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"format": {
"implementation": "./src/executors/format/executor",
"schema": "./src/executors/format/schema.json",
"description": "Executor to format the project's files using Spotless plugin"
"description": "Executor to format the project's files using Spotless plugin",
"aliases": [
"do-format", "apply-format"
]
},
"format-check": {
"implementation": "./src/executors/format-check/executor",
Expand Down

0 comments on commit cbcee00

Please sign in to comment.