From 8a9c01c58cc0b9582b4ede010c866fa89debd34b Mon Sep 17 00:00:00 2001 From: khalilou88 <32600911+khalilou88@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:40:43 +0100 Subject: [PATCH] build: change project name (#609) * build: change project name * build: work in progress --------- Co-authored-by: khalilou88 --- packages/common/project.json | 2 +- .../create-nx-gradle-workspace/project.json | 2 +- .../create-nx-maven-workspace/project.json | 2 +- packages/gradle-plugin/project.json | 14 +++++----- .../.eslintrc.json | 0 packages/internal/executors/README.md | 11 ++++++++ .../executors.json | 0 .../jest.config.ts | 4 +-- .../package.json | 2 +- .../project.json | 26 +++++++++---------- .../src/executors/run-commands/executor.ts | 0 .../src/executors/run-commands/schema.d.ts | 0 .../src/executors/run-commands/schema.json | 0 .../src/executors/set-version/executor.ts | 0 .../src/executors/set-version/schema.d.ts | 0 .../src/executors/set-version/schema.json | 0 .../executors/update-dependencies/executor.ts | 0 .../executors/update-dependencies/schema.d.ts | 0 .../executors/update-dependencies/schema.json | 0 .../executors/update-package-json/executor.ts | 0 .../executors/update-package-json/schema.d.ts | 0 .../executors/update-package-json/schema.json | 0 .../src/executors/update-xml-deps/executor.ts | 0 .../src/executors/update-xml-deps/schema.d.ts | 0 .../src/executors/update-xml-deps/schema.json | 0 .../src/index.ts | 0 .../tsconfig.json | 0 .../tsconfig.lib.json | 0 .../tsconfig.spec.json | 0 packages/internal/gradle-executors/README.md | 11 -------- packages/xml/project.json | 2 +- tsconfig.base.json | 4 +-- 32 files changed, 40 insertions(+), 40 deletions(-) rename packages/internal/{gradle-executors => executors}/.eslintrc.json (100%) create mode 100644 packages/internal/executors/README.md rename packages/internal/{gradle-executors => executors}/executors.json (100%) rename packages/internal/{gradle-executors => executors}/jest.config.ts (67%) rename packages/internal/{gradle-executors => executors}/package.json (83%) rename packages/internal/{gradle-executors => executors}/project.json (51%) rename packages/internal/{gradle-executors => executors}/src/executors/run-commands/executor.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/run-commands/schema.d.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/run-commands/schema.json (100%) rename packages/internal/{gradle-executors => executors}/src/executors/set-version/executor.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/set-version/schema.d.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/set-version/schema.json (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-dependencies/executor.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-dependencies/schema.d.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-dependencies/schema.json (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-package-json/executor.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-package-json/schema.d.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-package-json/schema.json (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-xml-deps/executor.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-xml-deps/schema.d.ts (100%) rename packages/internal/{gradle-executors => executors}/src/executors/update-xml-deps/schema.json (100%) rename packages/internal/{gradle-executors => executors}/src/index.ts (100%) rename packages/internal/{gradle-executors => executors}/tsconfig.json (100%) rename packages/internal/{gradle-executors => executors}/tsconfig.lib.json (100%) rename packages/internal/{gradle-executors => executors}/tsconfig.spec.json (100%) delete mode 100644 packages/internal/gradle-executors/README.md diff --git a/packages/common/project.json b/packages/common/project.json index 76fe89888..2d9f0fb77 100644 --- a/packages/common/project.json +++ b/packages/common/project.json @@ -64,7 +64,7 @@ } }, "update-dependencies": { - "executor": "@jnxplus/internal-gradle-executors:update-dependencies", + "executor": "@jnxplus/internal-executors:update-dependencies", "options": { "version": "${version}" } diff --git a/packages/create-nx-gradle-workspace/project.json b/packages/create-nx-gradle-workspace/project.json index 1f5739667..aca30e13f 100644 --- a/packages/create-nx-gradle-workspace/project.json +++ b/packages/create-nx-gradle-workspace/project.json @@ -36,7 +36,7 @@ } }, "update-package-json": { - "executor": "@jnxplus/internal-gradle-executors:update-package-json", + "executor": "@jnxplus/internal-executors:update-package-json", "options": { "version": "${version}" } diff --git a/packages/create-nx-maven-workspace/project.json b/packages/create-nx-maven-workspace/project.json index 1c957e6f2..cc0070416 100644 --- a/packages/create-nx-maven-workspace/project.json +++ b/packages/create-nx-maven-workspace/project.json @@ -36,7 +36,7 @@ } }, "update-package-json": { - "executor": "@jnxplus/internal-gradle-executors:update-package-json", + "executor": "@jnxplus/internal-executors:update-package-json", "options": { "version": "${version}" } diff --git a/packages/gradle-plugin/project.json b/packages/gradle-plugin/project.json index 42f378701..ffd438be6 100644 --- a/packages/gradle-plugin/project.json +++ b/packages/gradle-plugin/project.json @@ -4,8 +4,8 @@ "sourceRoot": "packages/gradle-plugin/src", "projectType": "library", "targets": { - "build2": { - "executor": "@jnxplus/internal-gradle-executors:run-commands", + "build": { + "executor": "@jnxplus/internal-executors:run-commands", "options": { "command": "build publishToMavenLocal", "cwd": "packages/gradle-plugin" @@ -17,7 +17,7 @@ "preset": "angular", "push": true, "noVerify": true, - "postTargets": ["gradle-plugin:set-version", "gradle-plugin:publish"], + "postTargets": ["gradle-plugin:set-version", "gradle-plugin:deploy"], "commitMessageFormat": "release: cut release ${version} for {projectName}" }, "dependsOn": [ @@ -27,13 +27,13 @@ ] }, "set-version": { - "executor": "@jnxplus/internal-gradle-executors:set-version", + "executor": "@jnxplus/internal-executors:set-version", "options": { "version": "${version}" } }, - "publish2": { - "executor": "@jnxplus/internal-gradle-executors:run-commands", + "deploy": { + "executor": "@jnxplus/internal-executors:run-commands", "options": { "command": "publishPlugins", "cwd": "packages/gradle-plugin" @@ -41,5 +41,5 @@ } }, "tags": [], - "implicitDependencies": ["internal-gradle-executors"] + "implicitDependencies": ["internal-executors"] } diff --git a/packages/internal/gradle-executors/.eslintrc.json b/packages/internal/executors/.eslintrc.json similarity index 100% rename from packages/internal/gradle-executors/.eslintrc.json rename to packages/internal/executors/.eslintrc.json diff --git a/packages/internal/executors/README.md b/packages/internal/executors/README.md new file mode 100644 index 000000000..579cd1587 --- /dev/null +++ b/packages/internal/executors/README.md @@ -0,0 +1,11 @@ +# internal-executors + +This library was generated with [Nx](https://nx.dev). + +## Building + +Run `nx build internal-executors` to build the library. + +## Running unit tests + +Run `nx test internal-executors` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/packages/internal/gradle-executors/executors.json b/packages/internal/executors/executors.json similarity index 100% rename from packages/internal/gradle-executors/executors.json rename to packages/internal/executors/executors.json diff --git a/packages/internal/gradle-executors/jest.config.ts b/packages/internal/executors/jest.config.ts similarity index 67% rename from packages/internal/gradle-executors/jest.config.ts rename to packages/internal/executors/jest.config.ts index fcf30ff11..8e383be29 100644 --- a/packages/internal/gradle-executors/jest.config.ts +++ b/packages/internal/executors/jest.config.ts @@ -1,11 +1,11 @@ /* eslint-disable */ export default { - displayName: 'internal-gradle-executors', + displayName: 'internal-executors', preset: '../../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../../coverage/packages/internal/gradle-executors', + coverageDirectory: '../../../coverage/packages/internal/executors', }; diff --git a/packages/internal/gradle-executors/package.json b/packages/internal/executors/package.json similarity index 83% rename from packages/internal/gradle-executors/package.json rename to packages/internal/executors/package.json index 4cea39af3..fc31cd421 100644 --- a/packages/internal/gradle-executors/package.json +++ b/packages/internal/executors/package.json @@ -1,5 +1,5 @@ { - "name": "@jnxplus/internal-gradle-executors", + "name": "@jnxplus/internal-executors", "version": "0.0.1", "type": "commonjs", "main": "./src/index.js", diff --git a/packages/internal/gradle-executors/project.json b/packages/internal/executors/project.json similarity index 51% rename from packages/internal/gradle-executors/project.json rename to packages/internal/executors/project.json index 95406a03e..94fd3c9f2 100644 --- a/packages/internal/gradle-executors/project.json +++ b/packages/internal/executors/project.json @@ -1,30 +1,30 @@ { - "name": "internal-gradle-executors", + "name": "internal-executors", "$schema": "../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/internal/gradle-executors/src", + "sourceRoot": "packages/internal/executors/src", "projectType": "library", "targets": { "build": { "executor": "@nx/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/packages/internal/gradle-executors", - "main": "packages/internal/gradle-executors/src/index.ts", - "tsConfig": "packages/internal/gradle-executors/tsconfig.lib.json", + "outputPath": "dist/packages/internal/executors", + "main": "packages/internal/executors/src/index.ts", + "tsConfig": "packages/internal/executors/tsconfig.lib.json", "assets": [ - "packages/internal/gradle-executors/*.md", + "packages/internal/executors/*.md", { - "input": "./packages/internal/gradle-executors/src", + "input": "./packages/internal/executors/src", "glob": "**/!(*.ts)", "output": "./src" }, { - "input": "./packages/internal/gradle-executors/src", + "input": "./packages/internal/executors/src", "glob": "**/*.d.ts", "output": "./src" }, { - "input": "./packages/internal/gradle-executors", + "input": "./packages/internal/executors", "glob": "executors.json", "output": "." } @@ -36,9 +36,9 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "packages/internal/gradle-executors/**/*.ts", - "packages/internal/gradle-executors/package.json", - "packages/internal/gradle-executors/executors.json" + "packages/internal/executors/**/*.ts", + "packages/internal/executors/package.json", + "packages/internal/executors/executors.json" ] } }, @@ -46,7 +46,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "packages/internal/gradle-executors/jest.config.ts" + "jestConfig": "packages/internal/executors/jest.config.ts" } } }, diff --git a/packages/internal/gradle-executors/src/executors/run-commands/executor.ts b/packages/internal/executors/src/executors/run-commands/executor.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/run-commands/executor.ts rename to packages/internal/executors/src/executors/run-commands/executor.ts diff --git a/packages/internal/gradle-executors/src/executors/run-commands/schema.d.ts b/packages/internal/executors/src/executors/run-commands/schema.d.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/run-commands/schema.d.ts rename to packages/internal/executors/src/executors/run-commands/schema.d.ts diff --git a/packages/internal/gradle-executors/src/executors/run-commands/schema.json b/packages/internal/executors/src/executors/run-commands/schema.json similarity index 100% rename from packages/internal/gradle-executors/src/executors/run-commands/schema.json rename to packages/internal/executors/src/executors/run-commands/schema.json diff --git a/packages/internal/gradle-executors/src/executors/set-version/executor.ts b/packages/internal/executors/src/executors/set-version/executor.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/set-version/executor.ts rename to packages/internal/executors/src/executors/set-version/executor.ts diff --git a/packages/internal/gradle-executors/src/executors/set-version/schema.d.ts b/packages/internal/executors/src/executors/set-version/schema.d.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/set-version/schema.d.ts rename to packages/internal/executors/src/executors/set-version/schema.d.ts diff --git a/packages/internal/gradle-executors/src/executors/set-version/schema.json b/packages/internal/executors/src/executors/set-version/schema.json similarity index 100% rename from packages/internal/gradle-executors/src/executors/set-version/schema.json rename to packages/internal/executors/src/executors/set-version/schema.json diff --git a/packages/internal/gradle-executors/src/executors/update-dependencies/executor.ts b/packages/internal/executors/src/executors/update-dependencies/executor.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-dependencies/executor.ts rename to packages/internal/executors/src/executors/update-dependencies/executor.ts diff --git a/packages/internal/gradle-executors/src/executors/update-dependencies/schema.d.ts b/packages/internal/executors/src/executors/update-dependencies/schema.d.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-dependencies/schema.d.ts rename to packages/internal/executors/src/executors/update-dependencies/schema.d.ts diff --git a/packages/internal/gradle-executors/src/executors/update-dependencies/schema.json b/packages/internal/executors/src/executors/update-dependencies/schema.json similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-dependencies/schema.json rename to packages/internal/executors/src/executors/update-dependencies/schema.json diff --git a/packages/internal/gradle-executors/src/executors/update-package-json/executor.ts b/packages/internal/executors/src/executors/update-package-json/executor.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-package-json/executor.ts rename to packages/internal/executors/src/executors/update-package-json/executor.ts diff --git a/packages/internal/gradle-executors/src/executors/update-package-json/schema.d.ts b/packages/internal/executors/src/executors/update-package-json/schema.d.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-package-json/schema.d.ts rename to packages/internal/executors/src/executors/update-package-json/schema.d.ts diff --git a/packages/internal/gradle-executors/src/executors/update-package-json/schema.json b/packages/internal/executors/src/executors/update-package-json/schema.json similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-package-json/schema.json rename to packages/internal/executors/src/executors/update-package-json/schema.json diff --git a/packages/internal/gradle-executors/src/executors/update-xml-deps/executor.ts b/packages/internal/executors/src/executors/update-xml-deps/executor.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-xml-deps/executor.ts rename to packages/internal/executors/src/executors/update-xml-deps/executor.ts diff --git a/packages/internal/gradle-executors/src/executors/update-xml-deps/schema.d.ts b/packages/internal/executors/src/executors/update-xml-deps/schema.d.ts similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-xml-deps/schema.d.ts rename to packages/internal/executors/src/executors/update-xml-deps/schema.d.ts diff --git a/packages/internal/gradle-executors/src/executors/update-xml-deps/schema.json b/packages/internal/executors/src/executors/update-xml-deps/schema.json similarity index 100% rename from packages/internal/gradle-executors/src/executors/update-xml-deps/schema.json rename to packages/internal/executors/src/executors/update-xml-deps/schema.json diff --git a/packages/internal/gradle-executors/src/index.ts b/packages/internal/executors/src/index.ts similarity index 100% rename from packages/internal/gradle-executors/src/index.ts rename to packages/internal/executors/src/index.ts diff --git a/packages/internal/gradle-executors/tsconfig.json b/packages/internal/executors/tsconfig.json similarity index 100% rename from packages/internal/gradle-executors/tsconfig.json rename to packages/internal/executors/tsconfig.json diff --git a/packages/internal/gradle-executors/tsconfig.lib.json b/packages/internal/executors/tsconfig.lib.json similarity index 100% rename from packages/internal/gradle-executors/tsconfig.lib.json rename to packages/internal/executors/tsconfig.lib.json diff --git a/packages/internal/gradle-executors/tsconfig.spec.json b/packages/internal/executors/tsconfig.spec.json similarity index 100% rename from packages/internal/gradle-executors/tsconfig.spec.json rename to packages/internal/executors/tsconfig.spec.json diff --git a/packages/internal/gradle-executors/README.md b/packages/internal/gradle-executors/README.md deleted file mode 100644 index 86dcc6ffe..000000000 --- a/packages/internal/gradle-executors/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# internal-gradle-executors - -This library was generated with [Nx](https://nx.dev). - -## Building - -Run `nx build internal-gradle-executors` to build the library. - -## Running unit tests - -Run `nx test internal-gradle-executors` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/packages/xml/project.json b/packages/xml/project.json index 444c4916c..54e6b94ac 100644 --- a/packages/xml/project.json +++ b/packages/xml/project.json @@ -57,7 +57,7 @@ } }, "update-xml-deps": { - "executor": "@jnxplus/internal-gradle-executors:update-xml-deps", + "executor": "@jnxplus/internal-executors:update-xml-deps", "options": { "version": "${version}" } diff --git a/tsconfig.base.json b/tsconfig.base.json index 8ef00af5d..d4fb5385a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -16,8 +16,8 @@ "baseUrl": ".", "paths": { "@jnxplus/common": ["packages/common/src/index.ts"], - "@jnxplus/internal-gradle-executors": [ - "packages/internal/gradle-executors/src/index.ts" + "@jnxplus/internal-executors": [ + "packages/internal/executors/src/index.ts" ], "@jnxplus/internal/testing": ["packages/internal/testing/src/index.ts"], "@jnxplus/nx-checkstyle": ["packages/nx-checkstyle/src/index.ts"],