Skip to content

Commit

Permalink
feat(executors): move quarkus build-image executor to common lib (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 authored May 27, 2023
1 parent 86d6740 commit 0400100
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 122 deletions.
14 changes: 13 additions & 1 deletion packages/common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@
"tsConfig": "packages/common/tsconfig.lib.json",
"updateBuildableProjectDepsInPackageJson": true,
"buildableProjectDepsInPackageJsonType": "dependencies",
"assets": ["packages/common/*.md"]
"assets": [
"packages/common/*.md",
{
"input": "./packages/common/src",
"glob": "**/!(*.ts)",
"output": "./src"
},
{
"input": "./packages/common/src",
"glob": "**/*.d.ts",
"output": "./src"
}
]
}
},
"lint": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExecutorContext } from '@nx/devkit';
import { runCommand } from '@jnxplus/common';
import { runCommand } from '../../../.';
import executor from './executor';
import { BuildImageExecutorSchema } from './schema';
jest.mock('@jnxplus/common');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExecutorContext, logger, workspaceRoot } from '@nx/devkit';
import { getProjectRoot, runCommand } from '@jnxplus/common';
import { getProjectRoot, runCommand } from '../../../.';
import { BuildImageExecutorSchema } from './schema';
import { join } from 'path';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ImageType } from '@jnxplus/common';
import { ImageType } from '../../../.';

export interface BuildImageExecutorSchema {
imageType: ImageType;
Expand Down
41 changes: 0 additions & 41 deletions packages/gradle/src/executors/build-image/quarkus/executor.spec.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/gradle/src/executors/build-image/quarkus/schema.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/maven/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"rules": {}
},
{
"files": ["./package.json", "./executors.json"],
"files": ["./package.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/nx-plugin-checks": "error"
Expand Down
3 changes: 1 addition & 2 deletions packages/maven/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@
],
"peerDependencies": {
"@nx/devkit": ">=16.0.0"
},
"executors": "./executors.json"
}
}
6 changes: 0 additions & 6 deletions packages/maven/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"buildableProjectDepsInPackageJsonType": "dependencies",
"assets": [
"packages/maven/*.md",

{
"input": "./packages/maven/src",
"glob": "**/!(*.ts)",
Expand All @@ -26,11 +25,6 @@
"input": "./packages/maven/src",
"glob": "**/*.d.ts",
"output": "./src"
},
{
"input": "./packages/maven",
"glob": "executors.json",
"output": "."
}
]
}
Expand Down
32 changes: 0 additions & 32 deletions packages/maven/src/executors/build-image/quarkus/executor.ts

This file was deleted.

25 changes: 0 additions & 25 deletions packages/maven/src/executors/build-image/quarkus/schema.json

This file was deleted.

4 changes: 2 additions & 2 deletions packages/nx-quarkus-gradle/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"description": "build executor"
},
"build-image": {
"implementation": "@jnxplus/gradle/src/executors/build-image/quarkus/executor",
"schema": "@jnxplus/gradle/src/executors/build-image/quarkus/schema.json",
"implementation": "@jnxplus/common/src/executors/build-image/quarkus/executor",
"schema": "@jnxplus/common/src/executors/build-image/quarkus/schema.json",
"description": "build-image executor"
},
"serve": {
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-quarkus-maven/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"description": "build executor"
},
"build-image": {
"implementation": "@jnxplus/maven/src/executors/build-image/quarkus/executor",
"schema": "@jnxplus/maven/src/executors/build-image/quarkus/schema.json",
"implementation": "@jnxplus/common/src/executors/build-image/quarkus/executor",
"schema": "@jnxplus/common/src/executors/build-image/quarkus/schema.json",
"description": "build-image executor"
},
"serve": {
Expand Down

0 comments on commit 0400100

Please sign in to comment.