Skip to content

Commit

Permalink
WIP add cmds to project.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gipo355 committed Jun 2, 2024
1 parent 7099203 commit c5ad6de
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/example-node-lib/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
},
"tags": [],
"targets": {
"fix": {
"executor": "nx:run-commands",
"options": {
"command": "eslint --fix ./src && prettier --write -c ./src",
"cwd": "apps/its-battistar-express"
}
},
"pre-lint": {
"executor": "nx:run-commands",
"options": {
"command": "tsc --noEmit -p ./tsconfig.app.json & prettier -c ./src",
"cwd": "apps/its-battistar-express"
}
},
"lint": {
"dependsOn": ["pre-lint"],
"executor": "@nx/eslint:lint"
},
"build": {
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
Expand Down

0 comments on commit c5ad6de

Please sign in to comment.