Skip to content

Commit

Permalink
Add format target for all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymcgee committed May 10, 2024
1 parent e24b9fa commit 3095bb6
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
"options": {
"maxWarnings": 0
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "\n"
},
"configurations": {
"ci": {}
}
}
},
"implicitDependencies": [
Expand Down
9 changes: 9 additions & 0 deletions packages/grammar-ast/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
},
"lint": {
"executor": "@nx/eslint:lint"
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "\n"
},
"configurations": {
"ci": {}
}
}
}
}
9 changes: 9 additions & 0 deletions packages/grammar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
},
"lint": {
"executor": "@nx/eslint:lint"
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "\n"
},
"configurations": {
"ci": {}
}
}
}
}
11 changes: 11 additions & 0 deletions packages/parser/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
"failOnWarnings": true,
"noDeps": true
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cargo +nightly fmt -p wgsl-parser"
},
"configurations": {
"ci": {
"command": "cargo +nightly fmt -p wgsl-parser -- --check"
}
}
}
}
}
11 changes: 11 additions & 0 deletions packages/server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@
"failOnWarnings": true,
"noDeps": true
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cargo +nightly fmt -p server"
},
"configurations": {
"ci": {
"command": "cargo +nightly fmt -p server -- --check"
}
}
}
}
}
11 changes: 11 additions & 0 deletions packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
"failOnWarnings": true,
"noDeps": true
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cargo +nightly fmt -p utils"
},
"configurations": {
"ci": {
"command": "cargo +nightly fmt -p utils -- --check"
}
}
}
}
}
9 changes: 9 additions & 0 deletions tools/plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
"options": {
"jestConfig": "tools/plugin/jest.config.ts"
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "\n"
},
"configurations": {
"ci": {}
}
}
}
}
11 changes: 11 additions & 0 deletions tools/snapshot/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
"failOnWarnings": true,
"noDeps": true
}
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cargo +nightly fmt -p snapshot"
},
"configurations": {
"ci": {
"command": "cargo +nightly fmt -p snapshot -- --check"
}
}
}
}
}

0 comments on commit 3095bb6

Please sign in to comment.