Skip to content

Commit

Permalink
chore(tools/*): enable nx plugins with project crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Aug 19, 2024
1 parent c12f81a commit 4184ea9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
18 changes: 17 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,21 @@
},
"parallel": 3,
"useInferencePlugins": false,
"defaultBase": "master"
"defaultBase": "master",
"plugins": [
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
},
"include": ["tools/**/*"]
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
},
"include": ["tools/**/*"]
}
]
}
12 changes: 2 additions & 10 deletions tools/eslint-rules/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "tools/eslint-rules",
"projectType": "library",
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "tools/eslint-rules/jest.config.ts"
}
}
},
"tags": ["platform:node", "tools"]
"tags": ["platform:node", "tools"],
"targets": {}
}
2 changes: 0 additions & 2 deletions tools/workspace-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"type": "commonjs",
"generators": "./generators.json",
"scripts": {
"test": "jest --passWithNoTests",
"type-check": "node ./scripts/type-check.mjs",
"lint": "eslint --ext .ts,.js,.json .",
"check-graph": "node ./scripts/check-dep-graph.js"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions tools/workspace-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "tools/workspace-plugin/src",
"projectType": "library",
"tags": ["platform:node", "tools"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
Expand Down Expand Up @@ -35,6 +36,5 @@
]
}
}
},
"tags": ["platform:node", "tools"]
}
}

0 comments on commit 4184ea9

Please sign in to comment.