diff --git a/.changeset/beige-walls-hug.md b/.changeset/beige-walls-hug.md new file mode 100644 index 00000000..dba86c9b --- /dev/null +++ b/.changeset/beige-walls-hug.md @@ -0,0 +1,5 @@ +--- +'nx-mesh': patch +--- + +Rename `star-wars-api` to `star-wars` diff --git a/.github/workflows/__build.yml b/.github/workflows/__build.yml index a069f9e2..bbe5dc3e 100644 --- a/.github/workflows/__build.yml +++ b/.github/workflows/__build.yml @@ -90,7 +90,7 @@ jobs: if: inputs.node_version == 'lts' shell: bash run: | - cd dist/libs + cd dist/packages tar cvzf nx-mesh.tar.gz nx-mesh mv nx-mesh.tar.gz ../../ diff --git a/.github/workflows/__changesets.yml b/.github/workflows/__changesets.yml index 7a4ae2bc..8986ac6c 100644 --- a/.github/workflows/__changesets.yml +++ b/.github/workflows/__changesets.yml @@ -84,7 +84,7 @@ jobs: - name: Modify Workspace File run: | - sed -e 's/libs\//dist\/libs\//g' pnpm-workspace.yaml > pnpm-workspace-dist.yaml + sed -e 's/packages\//dist\/packages\//g' pnpm-workspace.yaml > pnpm-workspace-dist.yaml mv pnpm-workspace-dist.yaml pnpm-workspace.yaml - name: Create Release Pull Request or Publish packages diff --git a/.github/workflows/__code-analysis--codeql.yml b/.github/workflows/__code-analysis--codeql.yml index 6fa208d0..128053b6 100644 --- a/.github/workflows/__code-analysis--codeql.yml +++ b/.github/workflows/__code-analysis--codeql.yml @@ -55,5 +55,5 @@ jobs: - name: Upload Lint CodeQL uses: github/codeql-action/upload-sarif@v2 with: - sarif_file: reports/libs/nx-mesh/lint.sarif + sarif_file: reports/packages/nx-mesh/lint.sarif wait-for-processing: true diff --git a/.github/workflows/__code-analysis--sonar.yml b/.github/workflows/__code-analysis--sonar.yml index c1444a07..e1359d00 100644 --- a/.github/workflows/__code-analysis--sonar.yml +++ b/.github/workflows/__code-analysis--sonar.yml @@ -53,7 +53,7 @@ jobs: id: version uses: notiz-dev/github-action-json-property@a5a9c668b16513c737c3e1f8956772c99c73f6e8 # v0.2.0 with: - path: 'libs/nx-mesh/package.json' + path: 'packages/nx-mesh/package.json' prop_path: 'version' - name: SonarCloud Scan diff --git a/.github/workflows/__deploy.yml b/.github/workflows/__deploy.yml index 14b58359..22bfd083 100644 --- a/.github/workflows/__deploy.yml +++ b/.github/workflows/__deploy.yml @@ -61,13 +61,13 @@ jobs: echo The env is $name echo "name=$name" >> $GITHUB_OUTPUT - vercel-example-sdk-nextjs: - name: Vercel - example-sdk-nextjs + vercel-examples-sdk-nextjs: + name: Vercel - examples-sdk-nextjs needs: [setup] - if: ${{ (inputs.affected == true && contains(needs.setup.outputs.affectedApps, 'example-sdk-nextjs')) || inputs.affected == false }} + if: ${{ (inputs.affected == true && contains(needs.setup.outputs.affectedApps, 'examples-sdk-nextjs')) || inputs.affected == false }} uses: ./.github/workflows/__deploy-vercel.yml with: - name: example-sdk-nextjs${{ needs.setup.outputs.suffix }} + name: examples-sdk-nextjs${{ needs.setup.outputs.suffix }} production: ${{ inputs.production }} secrets: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} diff --git a/.github/workflows/__generators.yml b/.github/workflows/__generators.yml index 7b70654b..8625097f 100644 --- a/.github/workflows/__generators.yml +++ b/.github/workflows/__generators.yml @@ -14,7 +14,7 @@ on: The Nx version to test against required: false type: string - default: '["country-info", "fake-api", "rfam", "stackexchange", "star-wars-api", "trippin"]' + default: '["country-info", "fake-api", "rfam", "stackexchange", "star-wars", "trippin"]' node_version: description: > Optionally define the version of Node to install via Volta. @@ -28,7 +28,7 @@ on: The Nx version to test against required: false type: string - default: '["15.4", "15.5", "15.6", "15.7", "15.8", "latest"]' + default: '["15.7", "15.8", "latest"]' save_cache: description: > Should the cache be saved upon completion? diff --git a/.lintstagedrc.mjs b/.lintstagedrc.mjs index 94f35a8b..19fdd21f 100644 --- a/.lintstagedrc.mjs +++ b/.lintstagedrc.mjs @@ -2,7 +2,7 @@ export default { '*': () => ['nx-cloud record -- nx format:write'], '{nx,workspace}.json': () => ['nx-cloud record -- nx workspace-lint --fix'], '**/*.{js,jsx,ts,tsx}': () => ['nx affected --target=lint --fix'], - '{apps,libs}/**/*.*': () => [ + '{examples,packages}/**/*.*': () => [ 'nx affected --target=build --parallel=2', 'nx affected --target=build --configuration=production --parallel=2', 'nx affected --target=test --parallel=2', diff --git a/README.md b/README.md index 27fa0a72..6b559a9a 100644 --- a/README.md +++ b/README.md @@ -146,21 +146,21 @@ CREATE apps/my-api-gateway/.eslintrc.json
`application` generator options -| Name | Alias | Type | Required | Default | Description | -| ------------------------- | ----- | ------------------------------------------------------------------------------------------------------------ | :------: | --------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `name` | - | `string` | ✅ | - | What name would you like to use for the application? | -| `directory` | `d` | `string` | - | - | The directory of the new application. | -| `meshConfig` | `mc` | `cjs`, `js`, `json`, `yml` | - | `yml` | Which config format would you like to use? | -| `example` | - | `country-info`, `fake-api`, `javascript-wiki`, `movies`, `rfam`, `stackexchange`, `star-wars-api`, `trippin` | - | `star-wars-api` | Which example project would you like to use? | -| `babelJest` | - | `boolean` | - | `false` | Use `babel` instead of `ts-jest`? | -| `e2eTestRunner` | - | `cypress`, `none` | - | `cypress` | Test runner to use for end to end (E2E) tests. | -| `linter` | - | `eslint`, `tslint` | - | `eslint` | The tool to use for running lint checks | -| `setParserOptionsProject` | - | `boolean` | - | `false` | Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons. | -| `skipFormat` | - | `boolean` | - | `false` | Skip formatting files. | -| `skipWorkspaceJson` | - | `boolean` | - | `false` | Skip updating `workspace.json` with default options based on values provided to this app (e.g. `babel`). | -| `standaloneConfig` | - | `boolean` | - | `false` | Split the project configuration into `/project.json` rather than including it inside `workspace.json` | -| `tags` | `t` | `string` | - | - | Add tags to the application (used for linting). | -| `unitTestRunner` | - | `jest`, `none` | - | `jest` | Test runner to use for unit tests. | +| Name | Alias | Type | Required | Default | Description | +| ------------------------- | ----- | -------------------------------------------------------------------------------------------------------- | :------: | ----------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `name` | - | `string` | ✅ | - | What name would you like to use for the application? | +| `directory` | `d` | `string` | - | - | The directory of the new application. | +| `meshConfig` | `mc` | `cjs`, `js`, `json`, `yml` | - | `yml` | Which config format would you like to use? | +| `example` | - | `country-info`, `fake-api`, `javascript-wiki`, `movies`, `rfam`, `stackexchange`, `star-wars`, `trippin` | - | `star-wars` | Which example project would you like to use? | +| `babelJest` | - | `boolean` | - | `false` | Use `babel` instead of `ts-jest`? | +| `e2eTestRunner` | - | `cypress`, `none` | - | `cypress` | Test runner to use for end to end (E2E) tests. | +| `linter` | - | `eslint`, `tslint` | - | `eslint` | The tool to use for running lint checks | +| `setParserOptionsProject` | - | `boolean` | - | `false` | Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons. | +| `skipFormat` | - | `boolean` | - | `false` | Skip formatting files. | +| `skipWorkspaceJson` | - | `boolean` | - | `false` | Skip updating `workspace.json` with default options based on values provided to this app (e.g. `babel`). | +| `standaloneConfig` | - | `boolean` | - | `false` | Split the project configuration into `/project.json` rather than including it inside `workspace.json` | +| `tags` | `t` | `string` | - | - | Add tags to the application (used for linting). | +| `unitTestRunner` | - | `jest`, `none` | - | `jest` | Test runner to use for unit tests. |
@@ -551,18 +551,18 @@ This is the equivalent of using `graphql-mesh validate`. ## Examples -| Name | Type | Source Handler | Config | Notes | -| ------------------------------------------------------------------------------------------------------------------- | ------- | -------------- | ------ | -------------------------------------------------------------------------------------------------- | -| [country-info](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/country-info) | sdk | `soap` | `cjs` | - | -| [fake-api](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/json-schema/fake-api) | sdk | `json-schema` | `yml` | - | -| [javascript-wiki](https://github.com/domjtalbot/nx-mesh/tree/main/apps/example/api-gateway/openapi/javascript-wiki) | gateway | `openapi` | `json` | - | -| [javascript-wiki](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/javascript-wiki) | sdk | `openapi` | `yml` | - | -| [movies](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/movies) | sdk | `neo4j` | `yml` | - | -| [nextjs with sdks](https://github.com/domjtalbot/nx-mesh/tree/main/apps/example/sdk/nextjs) | - | - | - | Deployed to [Vercel](https://nx-mesh-domjtalbot.vercel.app/) | -| [rfam](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/rfam) | sdk | `mysql` | `yml` | - | -| [stackexchange](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/stackexchange) | sdk | `openapi` | `json` | - | -| [star-wars-api](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/graphql/star-wars-api) | sdk | `graphql` | `yml` | - | -| [trippin](https://github.com/domjtalbot/nx-mesh/tree/main/libs/example/sdk/mysql/trippin) | sdk | `odata` | `js` | [API Key documentation](https://www.odata.org/odata-services/service-usages/request-key-tutorial/) | +| Name | Type | Source Handler | Config | Notes | +| ---------------------------------------------------------------------------------------------------------------- | ------- | -------------- | ------ | -------------------------------------------------------------------------------------------------- | +| [country-info](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-soap--country-info) | sdk | `soap` | `cjs` | - | +| [fake-api](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-json-schema--fake-api) | sdk | `json-schema` | `yml` | - | +| [javascript-wiki](https://github.com/domjtalbot/nx-mesh/tree/main/examples/api-gateway-openapi--javascript-wiki) | gateway | `openapi` | `json` | - | +| [javascript-wiki](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-openapi--javascript-wiki) | sdk | `openapi` | `yml` | - | +| [movies](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-neo4j--movies) | sdk | `neo4j` | `yml` | - | +| [nextjs with sdks](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-nextjs) | - | - | - | Deployed to [Vercel](https://nx-mesh-domjtalbot.vercel.app/) | +| [rfam](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-mysql--rfam) | sdk | `mysql` | `yml` | - | +| [stackexchange](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-openapi--stackexchange) | sdk | `openapi` | `json` | - | +| [star-wars](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-graphql--star-wars) | sdk | `graphql` | `yml` | - | +| [trippin](https://github.com/domjtalbot/nx-mesh/tree/main/examples/sdk-odata--trippin) | sdk | `odata` | `js` | [API Key documentation](https://www.odata.org/odata-services/service-usages/request-key-tutorial/) |
diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/project.json b/apps/example/api-gateway/openapi/javascript-wiki-e2e/project.json deleted file mode 100644 index a65966e0..00000000 --- a/apps/example/api-gateway/openapi/javascript-wiki-e2e/project.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "example-api-gateway-openapi-javascript-wiki-e2e", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/example/api-gateway/openapi/javascript-wiki-e2e/src", - "projectType": "application", - "implicitDependencies": ["example-api-gateway-openapi-javascript-wiki"], - "targets": { - "e2e": { - "executor": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/example/api-gateway/openapi/javascript-wiki-e2e/cypress.config.ts", - "devServerTarget": "example-api-gateway-openapi-javascript-wiki:serve", - "testingType": "e2e" - }, - "configurations": { - "production": { - "devServerTarget": "example-api-gateway-openapi-javascript-wiki:serve:production" - } - } - }, - "lint": { - "executor": "@nrwl/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": [ - "apps/example/api-gateway/openapi/javascript-wiki-e2e/**/*.{js,ts}" - ] - } - } - }, - "tags": [] -} diff --git a/apps/example/sdk/nextjs-e2e/project.json b/apps/example/sdk/nextjs-e2e/project.json deleted file mode 100644 index 4b223963..00000000 --- a/apps/example/sdk/nextjs-e2e/project.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "example-sdk-nextjs-e2e", - "$schema": "../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/example/sdk/nextjs-e2e/src", - "projectType": "application", - "targets": { - "e2e": { - "executor": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/example/sdk/nextjs-e2e/cypress.config.ts", - "devServerTarget": "example-sdk-nextjs:serve:development", - "testingType": "e2e" - }, - "configurations": { - "production": { - "devServerTarget": "example-sdk-nextjs:serve:production" - } - } - }, - "lint": { - "executor": "@nrwl/linter:eslint", - "outputs": ["{options.outputFile}"], - "options": { - "lintFilePatterns": ["apps/example/sdk/nextjs-e2e/**/*.{js,ts}"] - } - } - }, - "tags": [], - "implicitDependencies": ["example-sdk-nextjs"] -} diff --git a/apps/.gitkeep b/examples/.gitkeep similarity index 100% rename from apps/.gitkeep rename to examples/.gitkeep diff --git a/apps/example/sdk/nextjs-e2e/.eslintrc.json b/examples/api-gateway-openapi--javascript-wiki-e2e/.eslintrc.json similarity index 64% rename from apps/example/sdk/nextjs-e2e/.eslintrc.json rename to examples/api-gateway-openapi--javascript-wiki-e2e/.eslintrc.json index 3a54134e..696cb8b1 100644 --- a/apps/example/sdk/nextjs-e2e/.eslintrc.json +++ b/examples/api-gateway-openapi--javascript-wiki-e2e/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["plugin:cypress/recommended", "../../../../.eslintrc.json"], + "extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/cypress.config.ts b/examples/api-gateway-openapi--javascript-wiki-e2e/cypress.config.ts similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/cypress.config.ts rename to examples/api-gateway-openapi--javascript-wiki-e2e/cypress.config.ts diff --git a/examples/api-gateway-openapi--javascript-wiki-e2e/project.json b/examples/api-gateway-openapi--javascript-wiki-e2e/project.json new file mode 100644 index 00000000..f03eb4da --- /dev/null +++ b/examples/api-gateway-openapi--javascript-wiki-e2e/project.json @@ -0,0 +1,32 @@ +{ + "name": "examples-api-gateway-openapi--javascript-wiki-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/api-gateway-openapi--javascript-wiki-e2e/src", + "projectType": "application", + "implicitDependencies": ["examples-api-gateway-openapi--javascript-wiki"], + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "examples/api-gateway-openapi--javascript-wiki-e2e/cypress.config.ts", + "devServerTarget": "examples-api-gateway-openapi--javascript-wiki:serve", + "testingType": "e2e" + }, + "configurations": { + "production": { + "devServerTarget": "examples-api-gateway-openapi--javascript-wiki:serve:production" + } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "examples/api-gateway-openapi--javascript-wiki-e2e/**/*.{js,ts}" + ] + } + } + }, + "tags": [] +} diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/src/e2e/app.cy.ts b/examples/api-gateway-openapi--javascript-wiki-e2e/src/e2e/app.cy.ts similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/src/e2e/app.cy.ts rename to examples/api-gateway-openapi--javascript-wiki-e2e/src/e2e/app.cy.ts diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/src/fixtures/example.json b/examples/api-gateway-openapi--javascript-wiki-e2e/src/fixtures/example.json similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/src/fixtures/example.json rename to examples/api-gateway-openapi--javascript-wiki-e2e/src/fixtures/example.json diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/app.po.ts b/examples/api-gateway-openapi--javascript-wiki-e2e/src/support/app.po.ts similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/app.po.ts rename to examples/api-gateway-openapi--javascript-wiki-e2e/src/support/app.po.ts diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/commands.ts b/examples/api-gateway-openapi--javascript-wiki-e2e/src/support/commands.ts similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/commands.ts rename to examples/api-gateway-openapi--javascript-wiki-e2e/src/support/commands.ts diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/e2e.ts b/examples/api-gateway-openapi--javascript-wiki-e2e/src/support/e2e.ts similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/src/support/e2e.ts rename to examples/api-gateway-openapi--javascript-wiki-e2e/src/support/e2e.ts diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/tsconfig.json b/examples/api-gateway-openapi--javascript-wiki-e2e/tsconfig.json similarity index 61% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/tsconfig.json rename to examples/api-gateway-openapi--javascript-wiki-e2e/tsconfig.json index 23a2a19f..c4f818ec 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki-e2e/tsconfig.json +++ b/examples/api-gateway-openapi--javascript-wiki-e2e/tsconfig.json @@ -1,8 +1,8 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "compilerOptions": { "sourceMap": false, - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "allowJs": true, "types": ["cypress", "node"] }, diff --git a/libs/example/sdk/json-schema/fake-api/.eslintrc.json b/examples/api-gateway-openapi--javascript-wiki/.eslintrc.json similarity index 85% rename from libs/example/sdk/json-schema/fake-api/.eslintrc.json rename to examples/api-gateway-openapi--javascript-wiki/.eslintrc.json index 643ee539..145b4c0f 100644 --- a/libs/example/sdk/json-schema/fake-api/.eslintrc.json +++ b/examples/api-gateway-openapi--javascript-wiki/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../../../../.eslintrc.json"], + "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*", ".mesh"], "overrides": [ { diff --git a/apps/example/api-gateway/openapi/javascript-wiki/.meshrc.json b/examples/api-gateway-openapi--javascript-wiki/.meshrc.json similarity index 100% rename from apps/example/api-gateway/openapi/javascript-wiki/.meshrc.json rename to examples/api-gateway-openapi--javascript-wiki/.meshrc.json diff --git a/apps/example/api-gateway/openapi/javascript-wiki/jest.config.ts b/examples/api-gateway-openapi--javascript-wiki/jest.config.ts similarity index 59% rename from apps/example/api-gateway/openapi/javascript-wiki/jest.config.ts rename to examples/api-gateway-openapi--javascript-wiki/jest.config.ts index 55ab3868..266eee96 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/jest.config.ts +++ b/examples/api-gateway-openapi--javascript-wiki/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-api-gateway-openapi-javascript-wiki', - preset: '../../../../../jest.preset.js', + displayName: 'examples-api-gateway-openapi--javascript-wiki', + preset: '../../jest.preset.js', globals: { 'ts-jest': { tsconfig: '/tsconfig.spec.json', @@ -13,5 +13,5 @@ export default { }, moduleFileExtensions: ['ts', 'js', 'html'], coverageDirectory: - '../../../../../coverage/apps/example/api-gateway/openapi/javascript-wiki', + '../../coverage/examples/api-gateway-openapi--javascript-wiki', }; diff --git a/apps/example/api-gateway/openapi/javascript-wiki/project.json b/examples/api-gateway-openapi--javascript-wiki/project.json similarity index 51% rename from apps/example/api-gateway/openapi/javascript-wiki/project.json rename to examples/api-gateway-openapi--javascript-wiki/project.json index 63d703f3..070162e2 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/project.json +++ b/examples/api-gateway-openapi--javascript-wiki/project.json @@ -1,38 +1,38 @@ { - "name": "example-api-gateway-openapi-javascript-wiki", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", + "name": "examples-api-gateway-openapi--javascript-wiki", + "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/example/api-gateway/openapi/javascript-wiki/", + "sourceRoot": "examples/api-gateway-openapi--javascript-wiki/", "implicitDependencies": ["nx-mesh"], "targets": { "build": { "executor": "nx-mesh:build-gateway", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "apps/example/api-gateway/openapi/javascript-wiki", - "main": "apps/example/api-gateway/openapi/javascript-wiki/src/index.ts", - "outputPath": "dist/apps/example/api-gateway/openapi/javascript-wiki", - "tsConfig": "apps/example/api-gateway/openapi/javascript-wiki/tsconfig.lib.json" + "dir": "examples/api-gateway-openapi--javascript-wiki", + "main": "examples/api-gateway-openapi--javascript-wiki/src/index.ts", + "outputPath": "dist/examples/api-gateway-openapi--javascript-wiki", + "tsConfig": "examples/api-gateway-openapi--javascript-wiki/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "apps/example/api-gateway/openapi/javascript-wiki" + "dir": "examples/api-gateway-openapi--javascript-wiki" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "apps/example/api-gateway/openapi/javascript-wiki" + "dir": "examples/api-gateway-openapi--javascript-wiki" } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/example/api-gateway/openapi/javascript-wiki/jest.config.ts", + "jestConfig": "examples/api-gateway-openapi--javascript-wiki/jest.config.ts", "passWithNoTests": true } }, @@ -41,7 +41,7 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/example/api-gateway/openapi/javascript-wiki/**/*.ts" + "examples/api-gateway-openapi--javascript-wiki/**/*.ts" ] } } diff --git a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.app.json b/examples/api-gateway-openapi--javascript-wiki/tsconfig.app.json similarity index 81% rename from apps/example/api-gateway/openapi/javascript-wiki/tsconfig.app.json rename to examples/api-gateway-openapi--javascript-wiki/tsconfig.app.json index c7babfd8..0d16dce9 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.app.json +++ b/examples/api-gateway-openapi--javascript-wiki/tsconfig.app.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["node"] }, diff --git a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.json b/examples/api-gateway-openapi--javascript-wiki/tsconfig.json similarity index 81% rename from apps/example/api-gateway/openapi/javascript-wiki/tsconfig.json rename to examples/api-gateway-openapi--javascript-wiki/tsconfig.json index 7f411a24..e4fd649e 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.json +++ b/examples/api-gateway-openapi--javascript-wiki/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.spec.json b/examples/api-gateway-openapi--javascript-wiki/tsconfig.spec.json similarity index 81% rename from apps/example/api-gateway/openapi/javascript-wiki/tsconfig.spec.json rename to examples/api-gateway-openapi--javascript-wiki/tsconfig.spec.json index 5b9e3383..546f1287 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/tsconfig.spec.json +++ b/examples/api-gateway-openapi--javascript-wiki/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/libs/example/sdk/mysql/rfam/.eslintrc.json b/examples/sdk-graphql--star-wars/.eslintrc.json similarity index 85% rename from libs/example/sdk/mysql/rfam/.eslintrc.json rename to examples/sdk-graphql--star-wars/.eslintrc.json index 643ee539..145b4c0f 100644 --- a/libs/example/sdk/mysql/rfam/.eslintrc.json +++ b/examples/sdk-graphql--star-wars/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../../../../.eslintrc.json"], + "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*", ".mesh"], "overrides": [ { diff --git a/libs/example/sdk/graphql/star-wars-api/.lib.swcrc b/examples/sdk-graphql--star-wars/.lib.swcrc similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/.lib.swcrc rename to examples/sdk-graphql--star-wars/.lib.swcrc diff --git a/libs/example/sdk/graphql/star-wars-api/.meshrc.yml b/examples/sdk-graphql--star-wars/.meshrc.yml similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/.meshrc.yml rename to examples/sdk-graphql--star-wars/.meshrc.yml diff --git a/examples/sdk-graphql--star-wars/codegen.ts b/examples/sdk-graphql--star-wars/codegen.ts new file mode 100644 index 00000000..ab61f873 --- /dev/null +++ b/examples/sdk-graphql--star-wars/codegen.ts @@ -0,0 +1,15 @@ +import type { CodegenConfig } from '@graphql-codegen/cli'; + +const config: CodegenConfig = { + overwrite: true, + schema: 'examples/sdk-graphql--star-wars/.mesh/schema.graphql', + documents: 'examples/sdk-graphql--star-wars/src/graphql/**/*.*.graphql', + generates: { + 'examples/sdk-graphql--star-wars/.codegen/': { + preset: 'client', + plugins: [], + }, + }, +}; + +export default config; diff --git a/libs/example/sdk/mysql/rfam/jest.config.ts b/examples/sdk-graphql--star-wars/jest.config.ts similarity index 61% rename from libs/example/sdk/mysql/rfam/jest.config.ts rename to examples/sdk-graphql--star-wars/jest.config.ts index bfa31ea4..37d5fe52 100644 --- a/libs/example/sdk/mysql/rfam/jest.config.ts +++ b/examples/sdk-graphql--star-wars/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-mysql-rfam', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-graphql--star-wars', + preset: '../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]sx?$': [ @@ -10,5 +10,5 @@ export default { ], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../../../../coverage/libs/example/sdk/mysql/rfam', + coverageDirectory: '../../coverage/examples/sdk-graphql--star-wars', }; diff --git a/libs/example/sdk/graphql/star-wars-api/project.json b/examples/sdk-graphql--star-wars/project.json similarity index 53% rename from libs/example/sdk/graphql/star-wars-api/project.json rename to examples/sdk-graphql--star-wars/project.json index e8ff9d2b..c95aff1f 100644 --- a/libs/example/sdk/graphql/star-wars-api/project.json +++ b/examples/sdk-graphql--star-wars/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-graphql-star-wars-api", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/graphql/star-wars-api/src", + "name": "examples-sdk-graphql--star-wars", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-graphql--star-wars/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/graphql/star-wars-api/**/*.ts"] + "lintFilePatterns": ["examples/sdk-graphql--star-wars/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/graphql/star-wars-api/jest.config.ts", + "jestConfig": "examples/sdk-graphql--star-wars/jest.config.ts", "passWithNoTests": true } }, @@ -28,12 +28,12 @@ "{options.outputPath}" ], "options": { - "dir": "libs/example/sdk/graphql/star-wars-api", - "main": "libs/example/sdk/graphql/star-wars-api/src/index.ts", - "outputPath": "dist/libs/example/sdk/graphql/star-wars-api", - "tsConfig": "libs/example/sdk/graphql/star-wars-api/tsconfig.lib.json", + "dir": "examples/sdk-graphql--star-wars", + "main": "examples/sdk-graphql--star-wars/src/index.ts", + "outputPath": "dist/examples/sdk-graphql--star-wars", + "tsConfig": "examples/sdk-graphql--star-wars/tsconfig.lib.json", "codegen": { - "config": "libs/example/sdk/graphql/star-wars-api/codegen.ts" + "config": "examples/sdk-graphql--star-wars/codegen.ts" } } }, @@ -41,20 +41,20 @@ "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/graphql/star-wars-api" + "dir": "examples/sdk-graphql--star-wars" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/graphql/star-wars-api" + "dir": "examples/sdk-graphql--star-wars" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/graphql/star-wars-api" + "dir": "examples/sdk-graphql--star-wars" } } }, diff --git a/libs/example/sdk/graphql/star-wars-api/src/graphql/getMovies.query.graphql b/examples/sdk-graphql--star-wars/src/graphql/getMovies.query.graphql similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/graphql/getMovies.query.graphql rename to examples/sdk-graphql--star-wars/src/graphql/getMovies.query.graphql diff --git a/libs/example/sdk/graphql/star-wars-api/src/index.ts b/examples/sdk-graphql--star-wars/src/index.ts similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/index.ts rename to examples/sdk-graphql--star-wars/src/index.ts diff --git a/libs/example/sdk/graphql/star-wars-api/src/lib/client.ts b/examples/sdk-graphql--star-wars/src/lib/client.ts similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/lib/client.ts rename to examples/sdk-graphql--star-wars/src/lib/client.ts diff --git a/libs/example/sdk/graphql/star-wars-api/src/lib/sdk.ts b/examples/sdk-graphql--star-wars/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/lib/sdk.ts rename to examples/sdk-graphql--star-wars/src/lib/sdk.ts diff --git a/libs/example/sdk/graphql/star-wars-api/src/lib/server.ts b/examples/sdk-graphql--star-wars/src/lib/server.ts similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/lib/server.ts rename to examples/sdk-graphql--star-wars/src/lib/server.ts diff --git a/libs/example/sdk/graphql/star-wars-api/src/lib/types.ts b/examples/sdk-graphql--star-wars/src/lib/types.ts similarity index 100% rename from libs/example/sdk/graphql/star-wars-api/src/lib/types.ts rename to examples/sdk-graphql--star-wars/src/lib/types.ts diff --git a/libs/example/sdk/json-schema/fake-api/tsconfig.json b/examples/sdk-graphql--star-wars/tsconfig.json similarity index 75% rename from libs/example/sdk/json-schema/fake-api/tsconfig.json rename to examples/sdk-graphql--star-wars/tsconfig.json index acb2f2f3..62ebbd94 100644 --- a/libs/example/sdk/json-schema/fake-api/tsconfig.json +++ b/examples/sdk-graphql--star-wars/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/libs/example/sdk/mysql/rfam/tsconfig.lib.json b/examples/sdk-graphql--star-wars/tsconfig.lib.json similarity index 83% rename from libs/example/sdk/mysql/rfam/tsconfig.lib.json rename to examples/sdk-graphql--star-wars/tsconfig.lib.json index 5a37f64e..0e2a172a 100644 --- a/libs/example/sdk/mysql/rfam/tsconfig.lib.json +++ b/examples/sdk-graphql--star-wars/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "declaration": true, "types": ["node"] }, diff --git a/libs/example/sdk/mysql/rfam/tsconfig.spec.json b/examples/sdk-graphql--star-wars/tsconfig.spec.json similarity index 88% rename from libs/example/sdk/mysql/rfam/tsconfig.spec.json rename to examples/sdk-graphql--star-wars/tsconfig.spec.json index 26dfa49e..ff08addd 100644 --- a/libs/example/sdk/mysql/rfam/tsconfig.spec.json +++ b/examples/sdk-graphql--star-wars/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/libs/example/sdk/graphql/star-wars-api/.eslintrc.json b/examples/sdk-json-schema--fake-api/.eslintrc.json similarity index 85% rename from libs/example/sdk/graphql/star-wars-api/.eslintrc.json rename to examples/sdk-json-schema--fake-api/.eslintrc.json index 643ee539..145b4c0f 100644 --- a/libs/example/sdk/graphql/star-wars-api/.eslintrc.json +++ b/examples/sdk-json-schema--fake-api/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../../../../.eslintrc.json"], + "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*", ".mesh"], "overrides": [ { diff --git a/libs/example/sdk/json-schema/fake-api/.lib.swcrc b/examples/sdk-json-schema--fake-api/.lib.swcrc similarity index 100% rename from libs/example/sdk/json-schema/fake-api/.lib.swcrc rename to examples/sdk-json-schema--fake-api/.lib.swcrc diff --git a/libs/example/sdk/json-schema/fake-api/.meshrc.yml b/examples/sdk-json-schema--fake-api/.meshrc.yml similarity index 100% rename from libs/example/sdk/json-schema/fake-api/.meshrc.yml rename to examples/sdk-json-schema--fake-api/.meshrc.yml diff --git a/libs/example/sdk/neo4j/movies/jest.config.ts b/examples/sdk-json-schema--fake-api/jest.config.ts similarity index 61% rename from libs/example/sdk/neo4j/movies/jest.config.ts rename to examples/sdk-json-schema--fake-api/jest.config.ts index deb3ebff..b214e21a 100644 --- a/libs/example/sdk/neo4j/movies/jest.config.ts +++ b/examples/sdk-json-schema--fake-api/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-neo4j-movies', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-json-schema--fake-api', + preset: '../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]sx?$': [ @@ -10,5 +10,5 @@ export default { ], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../../../../coverage/libs/example/sdk/neo4j/movies', + coverageDirectory: '../../coverage/examples/sdk-json-schema--fake-api', }; diff --git a/libs/example/sdk/openapi/javascript-wiki/project.json b/examples/sdk-json-schema--fake-api/project.json similarity index 51% rename from libs/example/sdk/openapi/javascript-wiki/project.json rename to examples/sdk-json-schema--fake-api/project.json index af556bf8..ea152c91 100644 --- a/libs/example/sdk/openapi/javascript-wiki/project.json +++ b/examples/sdk-json-schema--fake-api/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-openapi-javascript-wiki", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/openapi/javascript-wiki/src", + "name": "examples-sdk-json-schema--fake-api", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-json-schema--fake-api/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/openapi/javascript-wiki/**/*.ts"] + "lintFilePatterns": ["examples/sdk-json-schema--fake-api/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/openapi/javascript-wiki/jest.config.ts", + "jestConfig": "examples/sdk-json-schema--fake-api/jest.config.ts", "passWithNoTests": true } }, @@ -24,23 +24,23 @@ "executor": "nx-mesh:build-swc", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/openapi/javascript-wiki", - "main": "libs/example/sdk/openapi/javascript-wiki/src/index.ts", - "outputPath": "dist/libs/example/sdk/openapi/javascript-wiki", - "tsConfig": "libs/example/sdk/openapi/javascript-wiki/tsconfig.lib.json" + "dir": "examples/sdk-json-schema--fake-api", + "main": "examples/sdk-json-schema--fake-api/src/index.ts", + "outputPath": "dist/examples/sdk-json-schema--fake-api", + "tsConfig": "examples/sdk-json-schema--fake-api/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/openapi/javascript-wiki" + "dir": "examples/sdk-json-schema--fake-api" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/openapi/javascript-wiki" + "dir": "examples/sdk-json-schema--fake-api" } } }, diff --git a/libs/example/sdk/json-schema/fake-api/src/graphql/getMe.query.graphql b/examples/sdk-json-schema--fake-api/src/graphql/getMe.query.graphql similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/graphql/getMe.query.graphql rename to examples/sdk-json-schema--fake-api/src/graphql/getMe.query.graphql diff --git a/libs/example/sdk/json-schema/fake-api/src/index.ts b/examples/sdk-json-schema--fake-api/src/index.ts similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/index.ts rename to examples/sdk-json-schema--fake-api/src/index.ts diff --git a/libs/example/sdk/json-schema/fake-api/src/json-samples/user-input.json b/examples/sdk-json-schema--fake-api/src/json-samples/user-input.json similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/json-samples/user-input.json rename to examples/sdk-json-schema--fake-api/src/json-samples/user-input.json diff --git a/libs/example/sdk/json-schema/fake-api/src/json-schemas/company.json b/examples/sdk-json-schema--fake-api/src/json-schemas/company.json similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/json-schemas/company.json rename to examples/sdk-json-schema--fake-api/src/json-schemas/company.json diff --git a/libs/example/sdk/json-schema/fake-api/src/json-schemas/user.json b/examples/sdk-json-schema--fake-api/src/json-schemas/user.json similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/json-schemas/user.json rename to examples/sdk-json-schema--fake-api/src/json-schemas/user.json diff --git a/libs/example/sdk/json-schema/fake-api/src/lib/sdk.ts b/examples/sdk-json-schema--fake-api/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/lib/sdk.ts rename to examples/sdk-json-schema--fake-api/src/lib/sdk.ts diff --git a/libs/example/sdk/json-schema/fake-api/src/lib/server.ts b/examples/sdk-json-schema--fake-api/src/lib/server.ts similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/lib/server.ts rename to examples/sdk-json-schema--fake-api/src/lib/server.ts diff --git a/libs/example/sdk/json-schema/fake-api/src/lib/types.ts b/examples/sdk-json-schema--fake-api/src/lib/types.ts similarity index 100% rename from libs/example/sdk/json-schema/fake-api/src/lib/types.ts rename to examples/sdk-json-schema--fake-api/src/lib/types.ts diff --git a/libs/example/sdk/neo4j/movies/tsconfig.json b/examples/sdk-json-schema--fake-api/tsconfig.json similarity index 75% rename from libs/example/sdk/neo4j/movies/tsconfig.json rename to examples/sdk-json-schema--fake-api/tsconfig.json index acb2f2f3..62ebbd94 100644 --- a/libs/example/sdk/neo4j/movies/tsconfig.json +++ b/examples/sdk-json-schema--fake-api/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/libs/example/sdk/json-schema/fake-api/tsconfig.lib.json b/examples/sdk-json-schema--fake-api/tsconfig.lib.json similarity index 83% rename from libs/example/sdk/json-schema/fake-api/tsconfig.lib.json rename to examples/sdk-json-schema--fake-api/tsconfig.lib.json index 5a37f64e..0e2a172a 100644 --- a/libs/example/sdk/json-schema/fake-api/tsconfig.lib.json +++ b/examples/sdk-json-schema--fake-api/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "declaration": true, "types": ["node"] }, diff --git a/libs/example/sdk/graphql/star-wars-api/tsconfig.spec.json b/examples/sdk-json-schema--fake-api/tsconfig.spec.json similarity index 88% rename from libs/example/sdk/graphql/star-wars-api/tsconfig.spec.json rename to examples/sdk-json-schema--fake-api/tsconfig.spec.json index 26dfa49e..ff08addd 100644 --- a/libs/example/sdk/graphql/star-wars-api/tsconfig.spec.json +++ b/examples/sdk-json-schema--fake-api/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/apps/example/api-gateway/openapi/javascript-wiki/.eslintrc.json b/examples/sdk-mysql--rfam/.eslintrc.json similarity index 85% rename from apps/example/api-gateway/openapi/javascript-wiki/.eslintrc.json rename to examples/sdk-mysql--rfam/.eslintrc.json index 643ee539..145b4c0f 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki/.eslintrc.json +++ b/examples/sdk-mysql--rfam/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../../../../.eslintrc.json"], + "extends": ["../../.eslintrc.json"], "ignorePatterns": ["!**/*", ".mesh"], "overrides": [ { diff --git a/libs/example/sdk/mysql/rfam/.lib.swcrc b/examples/sdk-mysql--rfam/.lib.swcrc similarity index 100% rename from libs/example/sdk/mysql/rfam/.lib.swcrc rename to examples/sdk-mysql--rfam/.lib.swcrc diff --git a/libs/example/sdk/mysql/rfam/.meshrc.yml b/examples/sdk-mysql--rfam/.meshrc.yml similarity index 100% rename from libs/example/sdk/mysql/rfam/.meshrc.yml rename to examples/sdk-mysql--rfam/.meshrc.yml diff --git a/libs/example/sdk/mysql/rfam/codegen.ts b/examples/sdk-mysql--rfam/codegen.ts similarity index 59% rename from libs/example/sdk/mysql/rfam/codegen.ts rename to examples/sdk-mysql--rfam/codegen.ts index 1784ba8a..69f5fa50 100644 --- a/libs/example/sdk/mysql/rfam/codegen.ts +++ b/examples/sdk-mysql--rfam/codegen.ts @@ -2,10 +2,10 @@ import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { overwrite: true, - schema: 'libs/example/sdk/mysql/rfam/.mesh/schema.graphql', - documents: 'libs/example/sdk/mysql/rfam/src/graphql/**/*.*.graphql', + schema: 'examples/sdk-mysql--rfam/.mesh/schema.graphql', + documents: 'examples/sdk-mysql--rfam/src/graphql/**/*.*.graphql', generates: { - 'libs/example/sdk/mysql/rfam/.codegen/': { + 'examples/sdk-mysql--rfam/.codegen/': { preset: 'client', plugins: [], config: { diff --git a/libs/example/sdk/json-schema/fake-api/jest.config.ts b/examples/sdk-mysql--rfam/jest.config.ts similarity index 58% rename from libs/example/sdk/json-schema/fake-api/jest.config.ts rename to examples/sdk-mysql--rfam/jest.config.ts index 6837e9ce..b4310555 100644 --- a/libs/example/sdk/json-schema/fake-api/jest.config.ts +++ b/examples/sdk-mysql--rfam/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-json-schema-fake-api', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-mysql-rfam', + preset: '../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]sx?$': [ @@ -10,6 +10,5 @@ export default { ], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: - '../../../../../coverage/libs/example/sdk/json-schema/fake-api', + coverageDirectory: '../../coverage/examples/sdk-mysql--rfam', }; diff --git a/libs/example/sdk/mysql/rfam/project.json b/examples/sdk-mysql--rfam/project.json similarity index 54% rename from libs/example/sdk/mysql/rfam/project.json rename to examples/sdk-mysql--rfam/project.json index 9863ab2e..51e90325 100644 --- a/libs/example/sdk/mysql/rfam/project.json +++ b/examples/sdk-mysql--rfam/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-mysql-rfam", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/mysql/rfam/src", + "name": "examples-sdk-mysql--rfam", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-mysql--rfam/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/mysql/rfam/**/*.ts"] + "lintFilePatterns": ["examples/sdk-mysql--rfam/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/mysql/rfam/jest.config.ts", + "jestConfig": "examples/sdk-mysql--rfam/jest.config.ts", "passWithNoTests": true } }, @@ -24,12 +24,12 @@ "executor": "nx-mesh:build-swc", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/mysql/rfam", - "main": "libs/example/sdk/mysql/rfam/src/index.ts", - "outputPath": "dist/libs/example/sdk/mysql/rfam", - "tsConfig": "libs/example/sdk/mysql/rfam/tsconfig.lib.json", + "dir": "examples/sdk-mysql--rfam", + "main": "examples/sdk-mysql--rfam/src/index.ts", + "outputPath": "dist/examples/sdk-mysql--rfam", + "tsConfig": "examples/sdk-mysql--rfam/tsconfig.lib.json", "codegen": { - "config": "libs/example/sdk/mysql/rfam/codegen.ts" + "config": "examples/sdk-mysql--rfam/codegen.ts" } } }, @@ -37,13 +37,13 @@ "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/mysql/rfam" + "dir": "examples/sdk-mysql--rfam" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/mysql/rfam" + "dir": "examples/sdk-mysql--rfam" } } }, diff --git a/libs/example/sdk/mysql/rfam/src/graphql/getAlignmentTree.query.graphql b/examples/sdk-mysql--rfam/src/graphql/getAlignmentTree.query.graphql similarity index 100% rename from libs/example/sdk/mysql/rfam/src/graphql/getAlignmentTree.query.graphql rename to examples/sdk-mysql--rfam/src/graphql/getAlignmentTree.query.graphql diff --git a/libs/example/sdk/mysql/rfam/src/index.ts b/examples/sdk-mysql--rfam/src/index.ts similarity index 100% rename from libs/example/sdk/mysql/rfam/src/index.ts rename to examples/sdk-mysql--rfam/src/index.ts diff --git a/libs/example/sdk/mysql/rfam/src/lib/client.ts b/examples/sdk-mysql--rfam/src/lib/client.ts similarity index 100% rename from libs/example/sdk/mysql/rfam/src/lib/client.ts rename to examples/sdk-mysql--rfam/src/lib/client.ts diff --git a/libs/example/sdk/mysql/rfam/src/lib/sdk.ts b/examples/sdk-mysql--rfam/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/mysql/rfam/src/lib/sdk.ts rename to examples/sdk-mysql--rfam/src/lib/sdk.ts diff --git a/libs/example/sdk/mysql/rfam/src/lib/server.ts b/examples/sdk-mysql--rfam/src/lib/server.ts similarity index 100% rename from libs/example/sdk/mysql/rfam/src/lib/server.ts rename to examples/sdk-mysql--rfam/src/lib/server.ts diff --git a/libs/example/sdk/mysql/rfam/src/lib/types.ts b/examples/sdk-mysql--rfam/src/lib/types.ts similarity index 100% rename from libs/example/sdk/mysql/rfam/src/lib/types.ts rename to examples/sdk-mysql--rfam/src/lib/types.ts diff --git a/libs/example/sdk/graphql/star-wars-api/tsconfig.json b/examples/sdk-mysql--rfam/tsconfig.json similarity index 75% rename from libs/example/sdk/graphql/star-wars-api/tsconfig.json rename to examples/sdk-mysql--rfam/tsconfig.json index acb2f2f3..62ebbd94 100644 --- a/libs/example/sdk/graphql/star-wars-api/tsconfig.json +++ b/examples/sdk-mysql--rfam/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/libs/example/sdk/graphql/star-wars-api/tsconfig.lib.json b/examples/sdk-mysql--rfam/tsconfig.lib.json similarity index 83% rename from libs/example/sdk/graphql/star-wars-api/tsconfig.lib.json rename to examples/sdk-mysql--rfam/tsconfig.lib.json index 5a37f64e..0e2a172a 100644 --- a/libs/example/sdk/graphql/star-wars-api/tsconfig.lib.json +++ b/examples/sdk-mysql--rfam/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "declaration": true, "types": ["node"] }, diff --git a/libs/example/sdk/json-schema/fake-api/tsconfig.spec.json b/examples/sdk-mysql--rfam/tsconfig.spec.json similarity index 88% rename from libs/example/sdk/json-schema/fake-api/tsconfig.spec.json rename to examples/sdk-mysql--rfam/tsconfig.spec.json index 26dfa49e..ff08addd 100644 --- a/libs/example/sdk/json-schema/fake-api/tsconfig.spec.json +++ b/examples/sdk-mysql--rfam/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/examples/sdk-neo4j--movies/.eslintrc.json b/examples/sdk-neo4j--movies/.eslintrc.json new file mode 100644 index 00000000..145b4c0f --- /dev/null +++ b/examples/sdk-neo4j--movies/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*", ".mesh"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/example/sdk/neo4j/movies/.lib.swcrc b/examples/sdk-neo4j--movies/.lib.swcrc similarity index 100% rename from libs/example/sdk/neo4j/movies/.lib.swcrc rename to examples/sdk-neo4j--movies/.lib.swcrc diff --git a/libs/example/sdk/neo4j/movies/.meshrc.yml b/examples/sdk-neo4j--movies/.meshrc.yml similarity index 100% rename from libs/example/sdk/neo4j/movies/.meshrc.yml rename to examples/sdk-neo4j--movies/.meshrc.yml diff --git a/libs/example/sdk/soap/country-info/jest.config.ts b/examples/sdk-neo4j--movies/jest.config.ts similarity index 59% rename from libs/example/sdk/soap/country-info/jest.config.ts rename to examples/sdk-neo4j--movies/jest.config.ts index 0642e76d..0157c81d 100644 --- a/libs/example/sdk/soap/country-info/jest.config.ts +++ b/examples/sdk-neo4j--movies/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-soap-country-info', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-neo4j-movies', + preset: '../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]sx?$': [ @@ -10,6 +10,5 @@ export default { ], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: - '../../../../../coverage/libs/example/sdk/soap/country-info', + coverageDirectory: '../../coverage/examples/sdk-neo4j--movies', }; diff --git a/libs/example/sdk/neo4j/movies/project.json b/examples/sdk-neo4j--movies/project.json similarity index 56% rename from libs/example/sdk/neo4j/movies/project.json rename to examples/sdk-neo4j--movies/project.json index 204aae10..ab618230 100644 --- a/libs/example/sdk/neo4j/movies/project.json +++ b/examples/sdk-neo4j--movies/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-neo4j-movies", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/neo4j/movies/src", + "name": "examples-sdk-neo4j--movies", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-neo4j--movies/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/neo4j/movies/**/*.ts"] + "lintFilePatterns": ["examples/sdk-neo4j--movies/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/neo4j/movies/jest.config.ts", + "jestConfig": "examples/sdk-neo4j--movies/jest.config.ts", "passWithNoTests": true } }, @@ -24,23 +24,23 @@ "executor": "nx-mesh:build-swc", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/neo4j/movies", - "main": "libs/example/sdk/neo4j/movies/src/index.ts", - "outputPath": "dist/libs/example/sdk/neo4j/movies", - "tsConfig": "libs/example/sdk/neo4j/movies/tsconfig.lib.json" + "dir": "examples/sdk-neo4j--movies", + "main": "examples/sdk-neo4j--movies/src/index.ts", + "outputPath": "dist/examples/sdk-neo4j--movies", + "tsConfig": "examples/sdk-neo4j--movies/tsconfig.lib.json" } }, "disabled-serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/neo4j/movies" + "dir": "examples/sdk-neo4j--movies" } }, "disabled-validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/neo4j/movies" + "dir": "examples/sdk-neo4j--movies" } } }, diff --git a/libs/example/sdk/neo4j/movies/src/graphql/example.query.graphql b/examples/sdk-neo4j--movies/src/graphql/example.query.graphql similarity index 100% rename from libs/example/sdk/neo4j/movies/src/graphql/example.query.graphql rename to examples/sdk-neo4j--movies/src/graphql/example.query.graphql diff --git a/libs/example/sdk/neo4j/movies/src/index.ts b/examples/sdk-neo4j--movies/src/index.ts similarity index 100% rename from libs/example/sdk/neo4j/movies/src/index.ts rename to examples/sdk-neo4j--movies/src/index.ts diff --git a/libs/example/sdk/neo4j/movies/src/lib/sdk.ts b/examples/sdk-neo4j--movies/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/neo4j/movies/src/lib/sdk.ts rename to examples/sdk-neo4j--movies/src/lib/sdk.ts diff --git a/libs/example/sdk/neo4j/movies/src/lib/server.ts b/examples/sdk-neo4j--movies/src/lib/server.ts similarity index 100% rename from libs/example/sdk/neo4j/movies/src/lib/server.ts rename to examples/sdk-neo4j--movies/src/lib/server.ts diff --git a/libs/example/sdk/neo4j/movies/src/lib/types.ts b/examples/sdk-neo4j--movies/src/lib/types.ts similarity index 100% rename from libs/example/sdk/neo4j/movies/src/lib/types.ts rename to examples/sdk-neo4j--movies/src/lib/types.ts diff --git a/libs/example/sdk/mysql/rfam/tsconfig.json b/examples/sdk-neo4j--movies/tsconfig.json similarity index 75% rename from libs/example/sdk/mysql/rfam/tsconfig.json rename to examples/sdk-neo4j--movies/tsconfig.json index acb2f2f3..62ebbd94 100644 --- a/libs/example/sdk/mysql/rfam/tsconfig.json +++ b/examples/sdk-neo4j--movies/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/libs/example/sdk/neo4j/movies/tsconfig.lib.json b/examples/sdk-neo4j--movies/tsconfig.lib.json similarity index 83% rename from libs/example/sdk/neo4j/movies/tsconfig.lib.json rename to examples/sdk-neo4j--movies/tsconfig.lib.json index 5a37f64e..0e2a172a 100644 --- a/libs/example/sdk/neo4j/movies/tsconfig.lib.json +++ b/examples/sdk-neo4j--movies/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "declaration": true, "types": ["node"] }, diff --git a/libs/example/sdk/neo4j/movies/tsconfig.spec.json b/examples/sdk-neo4j--movies/tsconfig.spec.json similarity index 88% rename from libs/example/sdk/neo4j/movies/tsconfig.spec.json rename to examples/sdk-neo4j--movies/tsconfig.spec.json index 26dfa49e..ff08addd 100644 --- a/libs/example/sdk/neo4j/movies/tsconfig.spec.json +++ b/examples/sdk-neo4j--movies/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/apps/example/api-gateway/openapi/javascript-wiki-e2e/.eslintrc.json b/examples/sdk-nextjs-e2e/.eslintrc.json similarity index 63% rename from apps/example/api-gateway/openapi/javascript-wiki-e2e/.eslintrc.json rename to examples/sdk-nextjs-e2e/.eslintrc.json index cc6305ee..696cb8b1 100644 --- a/apps/example/api-gateway/openapi/javascript-wiki-e2e/.eslintrc.json +++ b/examples/sdk-nextjs-e2e/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["plugin:cypress/recommended", "../../../../../.eslintrc.json"], + "extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/example/sdk/nextjs-e2e/cypress.config.ts b/examples/sdk-nextjs-e2e/cypress.config.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/cypress.config.ts rename to examples/sdk-nextjs-e2e/cypress.config.ts diff --git a/examples/sdk-nextjs-e2e/project.json b/examples/sdk-nextjs-e2e/project.json new file mode 100644 index 00000000..9aec1fc8 --- /dev/null +++ b/examples/sdk-nextjs-e2e/project.json @@ -0,0 +1,30 @@ +{ + "name": "examples-sdk-nextjs-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-nextjs-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "examples/sdk-nextjs-e2e/cypress.config.ts", + "devServerTarget": "examples-sdk-nextjs:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { + "devServerTarget": "examples-sdk-nextjs:serve:production" + } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["examples/sdk-nextjs-e2e/**/*.{js,ts}"] + } + } + }, + "tags": [], + "implicitDependencies": ["examples-sdk-nextjs"] +} diff --git a/apps/example/sdk/nextjs-e2e/src/e2e/sources/odata/trippin.cy.ts b/examples/sdk-nextjs-e2e/src/e2e/sources/odata/trippin.cy.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/e2e/sources/odata/trippin.cy.ts rename to examples/sdk-nextjs-e2e/src/e2e/sources/odata/trippin.cy.ts diff --git a/apps/example/sdk/nextjs-e2e/src/e2e/sources/openapi/javascript-wiki.cy.ts b/examples/sdk-nextjs-e2e/src/e2e/sources/openapi/javascript-wiki.cy.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/e2e/sources/openapi/javascript-wiki.cy.ts rename to examples/sdk-nextjs-e2e/src/e2e/sources/openapi/javascript-wiki.cy.ts diff --git a/apps/example/sdk/nextjs-e2e/src/e2e/sources/soap/country-info.cy.ts b/examples/sdk-nextjs-e2e/src/e2e/sources/soap/country-info.cy.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/e2e/sources/soap/country-info.cy.ts rename to examples/sdk-nextjs-e2e/src/e2e/sources/soap/country-info.cy.ts diff --git a/apps/example/sdk/nextjs-e2e/src/support/app.po.ts b/examples/sdk-nextjs-e2e/src/support/app.po.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/support/app.po.ts rename to examples/sdk-nextjs-e2e/src/support/app.po.ts diff --git a/apps/example/sdk/nextjs-e2e/src/support/commands.ts b/examples/sdk-nextjs-e2e/src/support/commands.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/support/commands.ts rename to examples/sdk-nextjs-e2e/src/support/commands.ts diff --git a/apps/example/sdk/nextjs-e2e/src/support/e2e.ts b/examples/sdk-nextjs-e2e/src/support/e2e.ts similarity index 100% rename from apps/example/sdk/nextjs-e2e/src/support/e2e.ts rename to examples/sdk-nextjs-e2e/src/support/e2e.ts diff --git a/apps/example/sdk/nextjs-e2e/tsconfig.json b/examples/sdk-nextjs-e2e/tsconfig.json similarity index 66% rename from apps/example/sdk/nextjs-e2e/tsconfig.json rename to examples/sdk-nextjs-e2e/tsconfig.json index 89347883..cc509a73 100644 --- a/apps/example/sdk/nextjs-e2e/tsconfig.json +++ b/examples/sdk-nextjs-e2e/tsconfig.json @@ -1,8 +1,8 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "compilerOptions": { "sourceMap": false, - "outDir": "../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "allowJs": true, "types": ["cypress", "node"] }, diff --git a/apps/example/sdk/nextjs/.eslintrc.json b/examples/sdk-nextjs/.eslintrc.json similarity index 88% rename from apps/example/sdk/nextjs/.eslintrc.json rename to examples/sdk-nextjs/.eslintrc.json index 340adc10..da4157ba 100644 --- a/apps/example/sdk/nextjs/.eslintrc.json +++ b/examples/sdk-nextjs/.eslintrc.json @@ -3,7 +3,7 @@ "plugin:@nrwl/nx/react-typescript", "next", "next/core-web-vitals", - "../../../../.eslintrc.json" + "../../.eslintrc.json" ], "ignorePatterns": ["!**/*", ".next/**/*"], "overrides": [ @@ -12,7 +12,7 @@ "rules": { "@next/next/no-html-link-for-pages": [ "error", - "apps/example/sdk/nextjs/pages" + "examples/sdk-nextjs/pages" ] } }, diff --git a/apps/example/sdk/nextjs/index.d.ts b/examples/sdk-nextjs/index.d.ts similarity index 100% rename from apps/example/sdk/nextjs/index.d.ts rename to examples/sdk-nextjs/index.d.ts diff --git a/apps/example/sdk/nextjs/jest.config.ts b/examples/sdk-nextjs/jest.config.ts similarity index 63% rename from apps/example/sdk/nextjs/jest.config.ts rename to examples/sdk-nextjs/jest.config.ts index d90e3326..7673986c 100644 --- a/apps/example/sdk/nextjs/jest.config.ts +++ b/examples/sdk-nextjs/jest.config.ts @@ -1,11 +1,11 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-nextjs', - preset: '../../../../jest.preset.js', + displayName: 'examples-sdk-nextjs', + preset: '../../jest.preset.js', transform: { '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest', '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nrwl/next/babel'] }], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../../../coverage/apps/example/sdk/nextjs', + coverageDirectory: '../../coverage/examples/sdk-nextjs', }; diff --git a/apps/example/sdk/nextjs/next-env.d.ts b/examples/sdk-nextjs/next-env.d.ts similarity index 100% rename from apps/example/sdk/nextjs/next-env.d.ts rename to examples/sdk-nextjs/next-env.d.ts diff --git a/apps/example/sdk/nextjs/next.config.js b/examples/sdk-nextjs/next.config.js similarity index 100% rename from apps/example/sdk/nextjs/next.config.js rename to examples/sdk-nextjs/next.config.js diff --git a/apps/example/sdk/nextjs/pages/_app.tsx b/examples/sdk-nextjs/pages/_app.tsx similarity index 100% rename from apps/example/sdk/nextjs/pages/_app.tsx rename to examples/sdk-nextjs/pages/_app.tsx diff --git a/apps/example/sdk/nextjs/pages/_document.tsx b/examples/sdk-nextjs/pages/_document.tsx similarity index 100% rename from apps/example/sdk/nextjs/pages/_document.tsx rename to examples/sdk-nextjs/pages/_document.tsx diff --git a/apps/example/sdk/nextjs/pages/index.tsx b/examples/sdk-nextjs/pages/index.tsx similarity index 100% rename from apps/example/sdk/nextjs/pages/index.tsx rename to examples/sdk-nextjs/pages/index.tsx diff --git a/apps/example/sdk/nextjs/pages/sources/odata/trippin.tsx b/examples/sdk-nextjs/pages/sources/odata/trippin.tsx similarity index 81% rename from apps/example/sdk/nextjs/pages/sources/odata/trippin.tsx rename to examples/sdk-nextjs/pages/sources/odata/trippin.tsx index bf655132..f63b2438 100644 --- a/apps/example/sdk/nextjs/pages/sources/odata/trippin.tsx +++ b/examples/sdk-nextjs/pages/sources/odata/trippin.tsx @@ -1,10 +1,12 @@ import type { GetStaticProps, NextPage } from 'next'; -import type { Trippin } from '@nx-mesh/example/sdk/odata/trippin'; +import type { Trippin } from '@nx-mesh/examples-sdk-odata--trippin'; type PageData = Trippin.getAirportsQuery; export const getStaticProps: GetStaticProps = async () => { - const { getMeshSDK } = await import('@nx-mesh/example/sdk/odata/trippin/sdk'); + const { getMeshSDK } = await import( + '@nx-mesh/examples-sdk-odata--trippin/sdk' + ); const data = await getMeshSDK().getAirports(); diff --git a/apps/example/sdk/nextjs/pages/sources/openapi/javascript-wiki.tsx b/examples/sdk-nextjs/pages/sources/openapi/javascript-wiki.tsx similarity index 78% rename from apps/example/sdk/nextjs/pages/sources/openapi/javascript-wiki.tsx rename to examples/sdk-nextjs/pages/sources/openapi/javascript-wiki.tsx index df215507..86f757ac 100644 --- a/apps/example/sdk/nextjs/pages/sources/openapi/javascript-wiki.tsx +++ b/examples/sdk-nextjs/pages/sources/openapi/javascript-wiki.tsx @@ -1,13 +1,13 @@ import type { GetStaticProps, NextPage } from 'next'; -import type { JavascriptWiki } from '@nx-mesh/example/sdk/openapi/javascript-wiki'; +import type { JavascriptWiki } from '@nx-mesh/examples-sdk-openapi--javascript-wiki'; -import { isAvailability } from '@nx-mesh/example/sdk/openapi/javascript-wiki/utils'; +import { isAvailability } from '@nx-mesh/examples-sdk-openapi--javascript-wiki/utils'; type PageData = JavascriptWiki.feed_availability_queryQuery; export const getStaticProps: GetStaticProps = async () => { const { getMeshSDK } = await import( - '@nx-mesh/example/sdk/openapi/javascript-wiki/sdk' + '@nx-mesh/examples-sdk-openapi--javascript-wiki/sdk' ); const data = await getMeshSDK().feed_availability_query(); diff --git a/apps/example/sdk/nextjs/pages/sources/soap/country-info.tsx b/examples/sdk-nextjs/pages/sources/soap/country-info.tsx similarity index 87% rename from apps/example/sdk/nextjs/pages/sources/soap/country-info.tsx rename to examples/sdk-nextjs/pages/sources/soap/country-info.tsx index 1e5ee98e..663268de 100644 --- a/apps/example/sdk/nextjs/pages/sources/soap/country-info.tsx +++ b/examples/sdk-nextjs/pages/sources/soap/country-info.tsx @@ -1,11 +1,11 @@ import type { GetStaticProps, NextPage } from 'next'; -import { CountryInfo } from '@nx-mesh/example/sdk/soap/country-info'; +import { CountryInfo } from '@nx-mesh/examples-sdk-soap--country-info'; type PageData = CountryInfo.GetLanguagesQuery | undefined; export const getStaticProps: GetStaticProps = async () => { const { getMeshSDK } = await import( - '@nx-mesh/example/sdk/soap/country-info/sdk' + '@nx-mesh/examples-sdk-soap--country-info/sdk' ); const data = await getMeshSDK().GetLanguages(); diff --git a/apps/example/sdk/nextjs/pages/styles.css b/examples/sdk-nextjs/pages/styles.css similarity index 100% rename from apps/example/sdk/nextjs/pages/styles.css rename to examples/sdk-nextjs/pages/styles.css diff --git a/apps/example/sdk/nextjs/project.json b/examples/sdk-nextjs/project.json similarity index 62% rename from apps/example/sdk/nextjs/project.json rename to examples/sdk-nextjs/project.json index 6597f180..190d4834 100644 --- a/apps/example/sdk/nextjs/project.json +++ b/examples/sdk-nextjs/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-nextjs", - "$schema": "../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "apps/example/sdk/nextjs", + "name": "examples-sdk-nextjs", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-nextjs", "projectType": "application", "implicitDependencies": ["nx-mesh"], "targets": { @@ -10,12 +10,12 @@ "outputs": ["{options.outputPath}"], "defaultConfiguration": "production", "options": { - "root": "apps/example/sdk/nextjs", - "outputPath": "dist/apps/example/sdk/nextjs" + "root": "examples/sdk-nextjs", + "outputPath": "dist/examples/sdk-nextjs" }, "configurations": { "development": { - "outputPath": "apps/example/sdk/nextjs" + "outputPath": "examples/sdk-nextjs" }, "production": {} } @@ -24,16 +24,16 @@ "executor": "@nrwl/next:server", "defaultConfiguration": "development", "options": { - "buildTarget": "example-sdk-nextjs:build", + "buildTarget": "examples-sdk-nextjs:build", "dev": true }, "configurations": { "development": { - "buildTarget": "example-sdk-nextjs:build:development", + "buildTarget": "examples-sdk-nextjs:build:development", "dev": true }, "production": { - "buildTarget": "example-sdk-nextjs:build:production", + "buildTarget": "examples-sdk-nextjs:build:production", "dev": false } } @@ -41,14 +41,14 @@ "export": { "executor": "@nrwl/next:export", "options": { - "buildTarget": "example-sdk-nextjs:build:production" + "buildTarget": "examples-sdk-nextjs:build:production" } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/example/sdk/nextjs/jest.config.ts", + "jestConfig": "examples/sdk-nextjs/jest.config.ts", "passWithNoTests": true } }, @@ -56,7 +56,7 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["apps/example/sdk/nextjs/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["examples/sdk-nextjs/**/*.{ts,tsx,js,jsx}"] } } }, diff --git a/apps/example/sdk/nextjs/public/.gitkeep b/examples/sdk-nextjs/public/.gitkeep similarity index 100% rename from apps/example/sdk/nextjs/public/.gitkeep rename to examples/sdk-nextjs/public/.gitkeep diff --git a/apps/example/sdk/nextjs/specs/index.spec.tsx b/examples/sdk-nextjs/specs/index.spec.tsx similarity index 100% rename from apps/example/sdk/nextjs/specs/index.spec.tsx rename to examples/sdk-nextjs/specs/index.spec.tsx diff --git a/apps/example/sdk/nextjs/specs/sources/odata/trippin.json b/examples/sdk-nextjs/specs/sources/odata/trippin.json similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/odata/trippin.json rename to examples/sdk-nextjs/specs/sources/odata/trippin.json diff --git a/apps/example/sdk/nextjs/specs/sources/odata/trippin.spec.tsx b/examples/sdk-nextjs/specs/sources/odata/trippin.spec.tsx similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/odata/trippin.spec.tsx rename to examples/sdk-nextjs/specs/sources/odata/trippin.spec.tsx diff --git a/apps/example/sdk/nextjs/specs/sources/openapi/javascript-wiki.json b/examples/sdk-nextjs/specs/sources/openapi/javascript-wiki.json similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/openapi/javascript-wiki.json rename to examples/sdk-nextjs/specs/sources/openapi/javascript-wiki.json diff --git a/apps/example/sdk/nextjs/specs/sources/openapi/javascript-wiki.spec.tsx b/examples/sdk-nextjs/specs/sources/openapi/javascript-wiki.spec.tsx similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/openapi/javascript-wiki.spec.tsx rename to examples/sdk-nextjs/specs/sources/openapi/javascript-wiki.spec.tsx diff --git a/apps/example/sdk/nextjs/specs/sources/soap/country-info.json b/examples/sdk-nextjs/specs/sources/soap/country-info.json similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/soap/country-info.json rename to examples/sdk-nextjs/specs/sources/soap/country-info.json diff --git a/apps/example/sdk/nextjs/specs/sources/soap/country-info.spec.tsx b/examples/sdk-nextjs/specs/sources/soap/country-info.spec.tsx similarity index 100% rename from apps/example/sdk/nextjs/specs/sources/soap/country-info.spec.tsx rename to examples/sdk-nextjs/specs/sources/soap/country-info.spec.tsx diff --git a/apps/example/sdk/nextjs/tsconfig.json b/examples/sdk-nextjs/tsconfig.json similarity index 90% rename from apps/example/sdk/nextjs/tsconfig.json rename to examples/sdk-nextjs/tsconfig.json index 83f5a709..cadb8cda 100644 --- a/apps/example/sdk/nextjs/tsconfig.json +++ b/examples/sdk-nextjs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../tsconfig.base.json", "compilerOptions": { "jsx": "preserve", "allowJs": true, diff --git a/apps/example/sdk/nextjs/tsconfig.spec.json b/examples/sdk-nextjs/tsconfig.spec.json similarity index 89% rename from apps/example/sdk/nextjs/tsconfig.spec.json rename to examples/sdk-nextjs/tsconfig.spec.json index 842c7870..23a8088f 100644 --- a/apps/example/sdk/nextjs/tsconfig.spec.json +++ b/examples/sdk-nextjs/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../dist/out-tsc", + "outDir": "../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"], "jsx": "react" diff --git a/libs/example/sdk/odata/trippin/.babelrc b/examples/sdk-odata--trippin/.babelrc similarity index 100% rename from libs/example/sdk/odata/trippin/.babelrc rename to examples/sdk-odata--trippin/.babelrc diff --git a/examples/sdk-odata--trippin/.eslintrc.json b/examples/sdk-odata--trippin/.eslintrc.json new file mode 100644 index 00000000..145b4c0f --- /dev/null +++ b/examples/sdk-odata--trippin/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*", ".mesh"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/example/sdk/odata/trippin/.meshrc.js b/examples/sdk-odata--trippin/.meshrc.js similarity index 100% rename from libs/example/sdk/odata/trippin/.meshrc.js rename to examples/sdk-odata--trippin/.meshrc.js diff --git a/libs/example/sdk/odata/trippin/jest.config.ts b/examples/sdk-odata--trippin/jest.config.ts similarity index 61% rename from libs/example/sdk/odata/trippin/jest.config.ts rename to examples/sdk-odata--trippin/jest.config.ts index b8de6593..f2e854d1 100644 --- a/libs/example/sdk/odata/trippin/jest.config.ts +++ b/examples/sdk-odata--trippin/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-odata-trippin', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-odata-trippin', + preset: '../../jest.preset.js', globals: { 'ts-jest': { tsconfig: '/tsconfig.spec.json', @@ -12,5 +12,5 @@ export default { '^.+\\.[tj]sx?$': 'ts-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../../../../coverage/libs/example/sdk/odata/trippin', + coverageDirectory: '../../coverage/examples/sdk-odata--trippin', }; diff --git a/libs/example/sdk/odata/trippin/package.json b/examples/sdk-odata--trippin/package.json similarity index 100% rename from libs/example/sdk/odata/trippin/package.json rename to examples/sdk-odata--trippin/package.json diff --git a/libs/example/sdk/odata/trippin/project.json b/examples/sdk-odata--trippin/project.json similarity index 54% rename from libs/example/sdk/odata/trippin/project.json rename to examples/sdk-odata--trippin/project.json index e03bc804..a0989337 100644 --- a/libs/example/sdk/odata/trippin/project.json +++ b/examples/sdk-odata--trippin/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-odata-trippin", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/odata/trippin/src", + "name": "examples-sdk-odata--trippin", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-odata--trippin/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/odata/trippin/**/*.ts"] + "lintFilePatterns": ["examples/sdk-odata--trippin/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/odata/trippin/jest.config.ts", + "jestConfig": "examples/sdk-odata--trippin/jest.config.ts", "passWithNoTests": true } }, @@ -24,23 +24,23 @@ "executor": "nx-mesh:build", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/odata/trippin", - "main": "libs/example/sdk/odata/trippin/src/index.ts", - "outputPath": "dist/libs/example/sdk/odata/trippin", - "tsConfig": "libs/example/sdk/odata/trippin/tsconfig.lib.json" + "dir": "examples/sdk-odata--trippin", + "main": "examples/sdk-odata--trippin/src/index.ts", + "outputPath": "dist/examples/sdk-odata--trippin", + "tsConfig": "examples/sdk-odata--trippin/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/odata/trippin" + "dir": "examples/sdk-odata--trippin" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/odata/trippin" + "dir": "examples/sdk-odata--trippin" } } }, diff --git a/libs/example/sdk/odata/trippin/src/graphql/airports/getAirports.query.graphql b/examples/sdk-odata--trippin/src/graphql/airports/getAirports.query.graphql similarity index 100% rename from libs/example/sdk/odata/trippin/src/graphql/airports/getAirports.query.graphql rename to examples/sdk-odata--trippin/src/graphql/airports/getAirports.query.graphql diff --git a/libs/example/sdk/odata/trippin/src/index.ts b/examples/sdk-odata--trippin/src/index.ts similarity index 100% rename from libs/example/sdk/odata/trippin/src/index.ts rename to examples/sdk-odata--trippin/src/index.ts diff --git a/libs/example/sdk/odata/trippin/src/lib/sdk.ts b/examples/sdk-odata--trippin/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/odata/trippin/src/lib/sdk.ts rename to examples/sdk-odata--trippin/src/lib/sdk.ts diff --git a/libs/example/sdk/odata/trippin/src/lib/server.ts b/examples/sdk-odata--trippin/src/lib/server.ts similarity index 100% rename from libs/example/sdk/odata/trippin/src/lib/server.ts rename to examples/sdk-odata--trippin/src/lib/server.ts diff --git a/libs/example/sdk/odata/trippin/src/lib/types.ts b/examples/sdk-odata--trippin/src/lib/types.ts similarity index 100% rename from libs/example/sdk/odata/trippin/src/lib/types.ts rename to examples/sdk-odata--trippin/src/lib/types.ts diff --git a/examples/sdk-odata--trippin/tsconfig.json b/examples/sdk-odata--trippin/tsconfig.json new file mode 100644 index 00000000..62ebbd94 --- /dev/null +++ b/examples/sdk-odata--trippin/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/examples/sdk-odata--trippin/tsconfig.lib.json b/examples/sdk-odata--trippin/tsconfig.lib.json new file mode 100644 index 00000000..0e2a172a --- /dev/null +++ b/examples/sdk-odata--trippin/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": ["node"] + }, + "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], + "include": ["**/*.ts"] +} diff --git a/examples/sdk-odata--trippin/tsconfig.spec.json b/examples/sdk-odata--trippin/tsconfig.spec.json new file mode 100644 index 00000000..ff08addd --- /dev/null +++ b/examples/sdk-odata--trippin/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + "**/*.d.ts" + ] +} diff --git a/examples/sdk-openapi--javascript-wiki/.eslintrc.json b/examples/sdk-openapi--javascript-wiki/.eslintrc.json new file mode 100644 index 00000000..145b4c0f --- /dev/null +++ b/examples/sdk-openapi--javascript-wiki/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*", ".mesh"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/example/sdk/openapi/javascript-wiki/.lib.swcrc b/examples/sdk-openapi--javascript-wiki/.lib.swcrc similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/.lib.swcrc rename to examples/sdk-openapi--javascript-wiki/.lib.swcrc diff --git a/libs/example/sdk/openapi/javascript-wiki/.meshrc.yml b/examples/sdk-openapi--javascript-wiki/.meshrc.yml similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/.meshrc.yml rename to examples/sdk-openapi--javascript-wiki/.meshrc.yml diff --git a/examples/sdk-openapi--javascript-wiki/jest.config.ts b/examples/sdk-openapi--javascript-wiki/jest.config.ts new file mode 100644 index 00000000..154efcea --- /dev/null +++ b/examples/sdk-openapi--javascript-wiki/jest.config.ts @@ -0,0 +1,14 @@ +/* eslint-disable */ +export default { + displayName: 'examples-sdk-openapi-javascript-wiki', + preset: '../../jest.preset.js', + testEnvironment: 'node', + transform: { + '^.+\\.[tj]sx?$': [ + '@swc/jest', + { jsc: { transform: { react: { runtime: 'automatic' } } } }, + ], + }, + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], + coverageDirectory: '../../coverage/examples/sdk-openapi--javascript-wiki', +}; diff --git a/libs/example/sdk/openapi/javascript-wiki/package.json b/examples/sdk-openapi--javascript-wiki/package.json similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/package.json rename to examples/sdk-openapi--javascript-wiki/package.json diff --git a/libs/example/sdk/json-schema/fake-api/project.json b/examples/sdk-openapi--javascript-wiki/project.json similarity index 54% rename from libs/example/sdk/json-schema/fake-api/project.json rename to examples/sdk-openapi--javascript-wiki/project.json index a8fd367c..e40559d6 100644 --- a/libs/example/sdk/json-schema/fake-api/project.json +++ b/examples/sdk-openapi--javascript-wiki/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-json-schema-fake-api", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/json-schema/fake-api/src", + "name": "examples-sdk-openapi--javascript-wiki", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-openapi--javascript-wiki/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/json-schema/fake-api/**/*.ts"] + "lintFilePatterns": ["examples/sdk-openapi--javascript-wiki/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/json-schema/fake-api/jest.config.ts", + "jestConfig": "examples/sdk-openapi--javascript-wiki/jest.config.ts", "passWithNoTests": true } }, @@ -24,23 +24,23 @@ "executor": "nx-mesh:build-swc", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/json-schema/fake-api", - "main": "libs/example/sdk/json-schema/fake-api/src/index.ts", - "outputPath": "dist/libs/example/sdk/json-schema/fake-api", - "tsConfig": "libs/example/sdk/json-schema/fake-api/tsconfig.lib.json" + "dir": "examples/sdk-openapi--javascript-wiki", + "main": "examples/sdk-openapi--javascript-wiki/src/index.ts", + "outputPath": "dist/examples/sdk-openapi--javascript-wiki", + "tsConfig": "examples/sdk-openapi--javascript-wiki/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/json-schema/fake-api" + "dir": "examples/sdk-openapi--javascript-wiki" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/json-schema/fake-api" + "dir": "examples/sdk-openapi--javascript-wiki" } } }, diff --git a/libs/example/sdk/openapi/javascript-wiki/src/index.ts b/examples/sdk-openapi--javascript-wiki/src/index.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/index.ts rename to examples/sdk-openapi--javascript-wiki/src/index.ts diff --git a/libs/example/sdk/openapi/javascript-wiki/src/lib/sdk.ts b/examples/sdk-openapi--javascript-wiki/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/lib/sdk.ts rename to examples/sdk-openapi--javascript-wiki/src/lib/sdk.ts diff --git a/libs/example/sdk/openapi/javascript-wiki/src/lib/server.ts b/examples/sdk-openapi--javascript-wiki/src/lib/server.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/lib/server.ts rename to examples/sdk-openapi--javascript-wiki/src/lib/server.ts diff --git a/libs/example/sdk/openapi/javascript-wiki/src/lib/types.ts b/examples/sdk-openapi--javascript-wiki/src/lib/types.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/lib/types.ts rename to examples/sdk-openapi--javascript-wiki/src/lib/types.ts diff --git a/libs/example/sdk/openapi/javascript-wiki/src/lib/utils/index.ts b/examples/sdk-openapi--javascript-wiki/src/lib/utils/index.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/lib/utils/index.ts rename to examples/sdk-openapi--javascript-wiki/src/lib/utils/index.ts diff --git a/libs/example/sdk/openapi/javascript-wiki/src/lib/utils/is-availability.ts b/examples/sdk-openapi--javascript-wiki/src/lib/utils/is-availability.ts similarity index 100% rename from libs/example/sdk/openapi/javascript-wiki/src/lib/utils/is-availability.ts rename to examples/sdk-openapi--javascript-wiki/src/lib/utils/is-availability.ts diff --git a/examples/sdk-openapi--javascript-wiki/tsconfig.json b/examples/sdk-openapi--javascript-wiki/tsconfig.json new file mode 100644 index 00000000..62ebbd94 --- /dev/null +++ b/examples/sdk-openapi--javascript-wiki/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/examples/sdk-openapi--javascript-wiki/tsconfig.lib.json b/examples/sdk-openapi--javascript-wiki/tsconfig.lib.json new file mode 100644 index 00000000..0e2a172a --- /dev/null +++ b/examples/sdk-openapi--javascript-wiki/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": ["node"] + }, + "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], + "include": ["**/*.ts"] +} diff --git a/examples/sdk-openapi--javascript-wiki/tsconfig.spec.json b/examples/sdk-openapi--javascript-wiki/tsconfig.spec.json new file mode 100644 index 00000000..ff08addd --- /dev/null +++ b/examples/sdk-openapi--javascript-wiki/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + "**/*.d.ts" + ] +} diff --git a/libs/example/sdk/openapi/stackexchange/.babelrc b/examples/sdk-openapi--stackexchange/.babelrc similarity index 100% rename from libs/example/sdk/openapi/stackexchange/.babelrc rename to examples/sdk-openapi--stackexchange/.babelrc diff --git a/examples/sdk-openapi--stackexchange/.eslintrc.json b/examples/sdk-openapi--stackexchange/.eslintrc.json new file mode 100644 index 00000000..145b4c0f --- /dev/null +++ b/examples/sdk-openapi--stackexchange/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*", ".mesh"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/example/sdk/openapi/stackexchange/.meshrc.json b/examples/sdk-openapi--stackexchange/.meshrc.json similarity index 100% rename from libs/example/sdk/openapi/stackexchange/.meshrc.json rename to examples/sdk-openapi--stackexchange/.meshrc.json diff --git a/libs/example/sdk/openapi/stackexchange/jest.config.ts b/examples/sdk-openapi--stackexchange/jest.config.ts similarity index 58% rename from libs/example/sdk/openapi/stackexchange/jest.config.ts rename to examples/sdk-openapi--stackexchange/jest.config.ts index 12b40107..75365e42 100644 --- a/libs/example/sdk/openapi/stackexchange/jest.config.ts +++ b/examples/sdk-openapi--stackexchange/jest.config.ts @@ -1,7 +1,7 @@ /* eslint-disable */ export default { - displayName: 'example-sdk-openapi-stackexchange', - preset: '../../../../../jest.preset.js', + displayName: 'examples-sdk-openapi-stackexchange', + preset: '../../jest.preset.js', globals: { 'ts-jest': { tsconfig: '/tsconfig.spec.json', @@ -12,6 +12,5 @@ export default { '^.+\\.[tj]sx?$': 'ts-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: - '../../../../../coverage/libs/example/sdk/openapi/stackexchange', + coverageDirectory: '../../coverage/examples/sdk-openapi--stackexchange', }; diff --git a/libs/example/sdk/openapi/stackexchange/package.json b/examples/sdk-openapi--stackexchange/package.json similarity index 100% rename from libs/example/sdk/openapi/stackexchange/package.json rename to examples/sdk-openapi--stackexchange/package.json diff --git a/libs/example/sdk/openapi/stackexchange/project.json b/examples/sdk-openapi--stackexchange/project.json similarity index 51% rename from libs/example/sdk/openapi/stackexchange/project.json rename to examples/sdk-openapi--stackexchange/project.json index 97489d1b..d23ccdf8 100644 --- a/libs/example/sdk/openapi/stackexchange/project.json +++ b/examples/sdk-openapi--stackexchange/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-openapi-stackexchange", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/openapi/stackexchange/src", + "name": "examples-sdk-openapi--stackexchange", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-openapi--stackexchange/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/openapi/stackexchange/**/*.ts"] + "lintFilePatterns": ["examples/sdk-openapi--stackexchange/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/openapi/stackexchange/jest.config.ts", + "jestConfig": "examples/sdk-openapi--stackexchange/jest.config.ts", "passWithNoTests": true } }, @@ -24,23 +24,23 @@ "executor": "nx-mesh:build", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/openapi/stackexchange", - "main": "libs/example/sdk/openapi/stackexchange/src/index.ts", - "outputPath": "dist/libs/example/sdk/openapi/stackexchange", - "tsConfig": "libs/example/sdk/openapi/stackexchange/tsconfig.lib.json" + "dir": "examples/sdk-openapi--stackexchange", + "main": "examples/sdk-openapi--stackexchange/src/index.ts", + "outputPath": "dist/examples/sdk-openapi--stackexchange", + "tsConfig": "examples/sdk-openapi--stackexchange/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/openapi/stackexchange" + "dir": "examples/sdk-openapi--stackexchange" } }, "validate": { "executor": "nx-mesh:validate", "options": { - "dir": "libs/example/sdk/openapi/stackexchange" + "dir": "examples/sdk-openapi--stackexchange" } } }, diff --git a/libs/example/sdk/openapi/stackexchange/src/index.ts b/examples/sdk-openapi--stackexchange/src/index.ts similarity index 100% rename from libs/example/sdk/openapi/stackexchange/src/index.ts rename to examples/sdk-openapi--stackexchange/src/index.ts diff --git a/libs/example/sdk/openapi/stackexchange/src/lib/sdk.ts b/examples/sdk-openapi--stackexchange/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/openapi/stackexchange/src/lib/sdk.ts rename to examples/sdk-openapi--stackexchange/src/lib/sdk.ts diff --git a/libs/example/sdk/openapi/stackexchange/src/lib/server.ts b/examples/sdk-openapi--stackexchange/src/lib/server.ts similarity index 100% rename from libs/example/sdk/openapi/stackexchange/src/lib/server.ts rename to examples/sdk-openapi--stackexchange/src/lib/server.ts diff --git a/libs/example/sdk/openapi/stackexchange/src/lib/types.ts b/examples/sdk-openapi--stackexchange/src/lib/types.ts similarity index 100% rename from libs/example/sdk/openapi/stackexchange/src/lib/types.ts rename to examples/sdk-openapi--stackexchange/src/lib/types.ts diff --git a/examples/sdk-openapi--stackexchange/tsconfig.json b/examples/sdk-openapi--stackexchange/tsconfig.json new file mode 100644 index 00000000..62ebbd94 --- /dev/null +++ b/examples/sdk-openapi--stackexchange/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/examples/sdk-openapi--stackexchange/tsconfig.lib.json b/examples/sdk-openapi--stackexchange/tsconfig.lib.json new file mode 100644 index 00000000..0e2a172a --- /dev/null +++ b/examples/sdk-openapi--stackexchange/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": ["node"] + }, + "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], + "include": ["**/*.ts"] +} diff --git a/examples/sdk-openapi--stackexchange/tsconfig.spec.json b/examples/sdk-openapi--stackexchange/tsconfig.spec.json new file mode 100644 index 00000000..ff08addd --- /dev/null +++ b/examples/sdk-openapi--stackexchange/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + "**/*.d.ts" + ] +} diff --git a/examples/sdk-soap--country-info/.eslintrc.json b/examples/sdk-soap--country-info/.eslintrc.json new file mode 100644 index 00000000..145b4c0f --- /dev/null +++ b/examples/sdk-soap--country-info/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*", ".mesh"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/example/sdk/soap/country-info/.lib.swcrc b/examples/sdk-soap--country-info/.lib.swcrc similarity index 100% rename from libs/example/sdk/soap/country-info/.lib.swcrc rename to examples/sdk-soap--country-info/.lib.swcrc diff --git a/libs/example/sdk/soap/country-info/.meshrc.cjs b/examples/sdk-soap--country-info/.meshrc.cjs similarity index 100% rename from libs/example/sdk/soap/country-info/.meshrc.cjs rename to examples/sdk-soap--country-info/.meshrc.cjs diff --git a/libs/example/sdk/soap/country-info/__snapshots__/-284307766.json b/examples/sdk-soap--country-info/__snapshots__/-284307766.json similarity index 100% rename from libs/example/sdk/soap/country-info/__snapshots__/-284307766.json rename to examples/sdk-soap--country-info/__snapshots__/-284307766.json diff --git a/examples/sdk-soap--country-info/jest.config.ts b/examples/sdk-soap--country-info/jest.config.ts new file mode 100644 index 00000000..2e957a08 --- /dev/null +++ b/examples/sdk-soap--country-info/jest.config.ts @@ -0,0 +1,14 @@ +/* eslint-disable */ +export default { + displayName: 'examples-sdk-soap-country-info', + preset: '../../jest.preset.js', + testEnvironment: 'node', + transform: { + '^.+\\.[tj]sx?$': [ + '@swc/jest', + { jsc: { transform: { react: { runtime: 'automatic' } } } }, + ], + }, + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], + coverageDirectory: '../../coverage/examples/sdk-soap--country-info', +}; diff --git a/libs/example/sdk/soap/country-info/package.json b/examples/sdk-soap--country-info/package.json similarity index 100% rename from libs/example/sdk/soap/country-info/package.json rename to examples/sdk-soap--country-info/package.json diff --git a/libs/example/sdk/soap/country-info/project.json b/examples/sdk-soap--country-info/project.json similarity index 52% rename from libs/example/sdk/soap/country-info/project.json rename to examples/sdk-soap--country-info/project.json index 2c605a9a..a03b8e2a 100644 --- a/libs/example/sdk/soap/country-info/project.json +++ b/examples/sdk-soap--country-info/project.json @@ -1,7 +1,7 @@ { - "name": "example-sdk-soap-country-info", - "$schema": "../../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/example/sdk/soap/country-info/src", + "name": "examples-sdk-soap--country-info", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "examples/sdk-soap--country-info/src", "projectType": "library", "implicitDependencies": ["nx-mesh"], "targets": { @@ -9,14 +9,14 @@ "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["libs/example/sdk/soap/country-info/**/*.ts"] + "lintFilePatterns": ["examples/sdk-soap--country-info/**/*.ts"] } }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "libs/example/sdk/soap/country-info/jest.config.ts", + "jestConfig": "examples/sdk-soap--country-info/jest.config.ts", "passWithNoTests": true } }, @@ -24,17 +24,17 @@ "executor": "nx-mesh:build-swc", "outputs": ["{projectRoot}/.mesh", "{options.outputPath}"], "options": { - "dir": "libs/example/sdk/soap/country-info", - "main": "libs/example/sdk/soap/country-info/src/index.ts", - "outputPath": "dist/libs/example/sdk/soap/country-info", - "tsConfig": "libs/example/sdk/soap/country-info/tsconfig.lib.json" + "dir": "examples/sdk-soap--country-info", + "main": "examples/sdk-soap--country-info/src/index.ts", + "outputPath": "dist/examples/sdk-soap--country-info", + "tsConfig": "examples/sdk-soap--country-info/tsconfig.lib.json" } }, "serve": { "executor": "nx-mesh:serve", "options": { "dev": true, - "dir": "libs/example/sdk/soap/country-info" + "dir": "examples/sdk-soap--country-info" } } }, diff --git a/libs/example/sdk/soap/country-info/src/graphql/queries/GetLanguages.query.graphql b/examples/sdk-soap--country-info/src/graphql/queries/GetLanguages.query.graphql similarity index 100% rename from libs/example/sdk/soap/country-info/src/graphql/queries/GetLanguages.query.graphql rename to examples/sdk-soap--country-info/src/graphql/queries/GetLanguages.query.graphql diff --git a/libs/example/sdk/soap/country-info/src/index.ts b/examples/sdk-soap--country-info/src/index.ts similarity index 100% rename from libs/example/sdk/soap/country-info/src/index.ts rename to examples/sdk-soap--country-info/src/index.ts diff --git a/libs/example/sdk/soap/country-info/src/lib/sdk.ts b/examples/sdk-soap--country-info/src/lib/sdk.ts similarity index 100% rename from libs/example/sdk/soap/country-info/src/lib/sdk.ts rename to examples/sdk-soap--country-info/src/lib/sdk.ts diff --git a/libs/example/sdk/soap/country-info/src/lib/server.ts b/examples/sdk-soap--country-info/src/lib/server.ts similarity index 100% rename from libs/example/sdk/soap/country-info/src/lib/server.ts rename to examples/sdk-soap--country-info/src/lib/server.ts diff --git a/libs/example/sdk/soap/country-info/src/lib/types.ts b/examples/sdk-soap--country-info/src/lib/types.ts similarity index 100% rename from libs/example/sdk/soap/country-info/src/lib/types.ts rename to examples/sdk-soap--country-info/src/lib/types.ts diff --git a/examples/sdk-soap--country-info/tsconfig.json b/examples/sdk-soap--country-info/tsconfig.json new file mode 100644 index 00000000..62ebbd94 --- /dev/null +++ b/examples/sdk-soap--country-info/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/examples/sdk-soap--country-info/tsconfig.lib.json b/examples/sdk-soap--country-info/tsconfig.lib.json new file mode 100644 index 00000000..0e2a172a --- /dev/null +++ b/examples/sdk-soap--country-info/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": ["node"] + }, + "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], + "include": ["**/*.ts"] +} diff --git a/examples/sdk-soap--country-info/tsconfig.spec.json b/examples/sdk-soap--country-info/tsconfig.spec.json new file mode 100644 index 00000000..ff08addd --- /dev/null +++ b/examples/sdk-soap--country-info/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + "**/*.d.ts" + ] +} diff --git a/libs/example/sdk/graphql/star-wars-api/codegen.ts b/libs/example/sdk/graphql/star-wars-api/codegen.ts deleted file mode 100644 index 00d57ea9..00000000 --- a/libs/example/sdk/graphql/star-wars-api/codegen.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { CodegenConfig } from '@graphql-codegen/cli'; - -const config: CodegenConfig = { - overwrite: true, - schema: 'libs/example/sdk/graphql/star-wars-api/.mesh/schema.graphql', - documents: - 'libs/example/sdk/graphql/star-wars-api/src/graphql/**/*.*.graphql', - generates: { - 'libs/example/sdk/graphql/star-wars-api/.codegen/': { - preset: 'client', - plugins: [], - }, - }, -}; - -export default config; diff --git a/libs/example/sdk/graphql/star-wars-api/jest.config.ts b/libs/example/sdk/graphql/star-wars-api/jest.config.ts deleted file mode 100644 index 7cfdad02..00000000 --- a/libs/example/sdk/graphql/star-wars-api/jest.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'example-sdk-graphql-star-wars-api', - preset: '../../../../../jest.preset.js', - testEnvironment: 'node', - transform: { - '^.+\\.[tj]sx?$': [ - '@swc/jest', - { jsc: { transform: { react: { runtime: 'automatic' } } } }, - ], - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: - '../../../../../coverage/libs/example/sdk/graphql/star-wars-api', -}; diff --git a/libs/example/sdk/neo4j/movies/.eslintrc.json b/libs/example/sdk/neo4j/movies/.eslintrc.json deleted file mode 100644 index 643ee539..00000000 --- a/libs/example/sdk/neo4j/movies/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*", ".mesh"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/example/sdk/odata/trippin/.eslintrc.json b/libs/example/sdk/odata/trippin/.eslintrc.json deleted file mode 100644 index 643ee539..00000000 --- a/libs/example/sdk/odata/trippin/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*", ".mesh"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/example/sdk/odata/trippin/tsconfig.json b/libs/example/sdk/odata/trippin/tsconfig.json deleted file mode 100644 index acb2f2f3..00000000 --- a/libs/example/sdk/odata/trippin/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../../../tsconfig.base.json", - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/libs/example/sdk/odata/trippin/tsconfig.lib.json b/libs/example/sdk/odata/trippin/tsconfig.lib.json deleted file mode 100644 index 5a37f64e..00000000 --- a/libs/example/sdk/odata/trippin/tsconfig.lib.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], - "include": ["**/*.ts"] -} diff --git a/libs/example/sdk/odata/trippin/tsconfig.spec.json b/libs/example/sdk/odata/trippin/tsconfig.spec.json deleted file mode 100644 index 26dfa49e..00000000 --- a/libs/example/sdk/odata/trippin/tsconfig.spec.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "**/*.test.ts", - "**/*.spec.ts", - "**/*.test.tsx", - "**/*.spec.tsx", - "**/*.test.js", - "**/*.spec.js", - "**/*.test.jsx", - "**/*.spec.jsx", - "**/*.d.ts" - ] -} diff --git a/libs/example/sdk/openapi/javascript-wiki/.eslintrc.json b/libs/example/sdk/openapi/javascript-wiki/.eslintrc.json deleted file mode 100644 index 643ee539..00000000 --- a/libs/example/sdk/openapi/javascript-wiki/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*", ".mesh"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/example/sdk/openapi/javascript-wiki/jest.config.ts b/libs/example/sdk/openapi/javascript-wiki/jest.config.ts deleted file mode 100644 index c7403e61..00000000 --- a/libs/example/sdk/openapi/javascript-wiki/jest.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'example-sdk-openapi-javascript-wiki', - preset: '../../../../../jest.preset.js', - testEnvironment: 'node', - transform: { - '^.+\\.[tj]sx?$': [ - '@swc/jest', - { jsc: { transform: { react: { runtime: 'automatic' } } } }, - ], - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: - '../../../../../coverage/libs/example/sdk/openapi/javascript-wiki', -}; diff --git a/libs/example/sdk/openapi/javascript-wiki/tsconfig.json b/libs/example/sdk/openapi/javascript-wiki/tsconfig.json deleted file mode 100644 index acb2f2f3..00000000 --- a/libs/example/sdk/openapi/javascript-wiki/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../../../tsconfig.base.json", - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/libs/example/sdk/openapi/javascript-wiki/tsconfig.lib.json b/libs/example/sdk/openapi/javascript-wiki/tsconfig.lib.json deleted file mode 100644 index 5a37f64e..00000000 --- a/libs/example/sdk/openapi/javascript-wiki/tsconfig.lib.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], - "include": ["**/*.ts"] -} diff --git a/libs/example/sdk/openapi/javascript-wiki/tsconfig.spec.json b/libs/example/sdk/openapi/javascript-wiki/tsconfig.spec.json deleted file mode 100644 index 26dfa49e..00000000 --- a/libs/example/sdk/openapi/javascript-wiki/tsconfig.spec.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "**/*.test.ts", - "**/*.spec.ts", - "**/*.test.tsx", - "**/*.spec.tsx", - "**/*.test.js", - "**/*.spec.js", - "**/*.test.jsx", - "**/*.spec.jsx", - "**/*.d.ts" - ] -} diff --git a/libs/example/sdk/openapi/stackexchange/.eslintrc.json b/libs/example/sdk/openapi/stackexchange/.eslintrc.json deleted file mode 100644 index 643ee539..00000000 --- a/libs/example/sdk/openapi/stackexchange/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*", ".mesh"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/example/sdk/openapi/stackexchange/tsconfig.json b/libs/example/sdk/openapi/stackexchange/tsconfig.json deleted file mode 100644 index acb2f2f3..00000000 --- a/libs/example/sdk/openapi/stackexchange/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../../../tsconfig.base.json", - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/libs/example/sdk/openapi/stackexchange/tsconfig.lib.json b/libs/example/sdk/openapi/stackexchange/tsconfig.lib.json deleted file mode 100644 index 5a37f64e..00000000 --- a/libs/example/sdk/openapi/stackexchange/tsconfig.lib.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], - "include": ["**/*.ts"] -} diff --git a/libs/example/sdk/openapi/stackexchange/tsconfig.spec.json b/libs/example/sdk/openapi/stackexchange/tsconfig.spec.json deleted file mode 100644 index 26dfa49e..00000000 --- a/libs/example/sdk/openapi/stackexchange/tsconfig.spec.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "**/*.test.ts", - "**/*.spec.ts", - "**/*.test.tsx", - "**/*.spec.tsx", - "**/*.test.js", - "**/*.spec.js", - "**/*.test.jsx", - "**/*.spec.jsx", - "**/*.d.ts" - ] -} diff --git a/libs/example/sdk/soap/country-info/.eslintrc.json b/libs/example/sdk/soap/country-info/.eslintrc.json deleted file mode 100644 index 643ee539..00000000 --- a/libs/example/sdk/soap/country-info/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["../../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*", ".mesh"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/example/sdk/soap/country-info/tsconfig.json b/libs/example/sdk/soap/country-info/tsconfig.json deleted file mode 100644 index acb2f2f3..00000000 --- a/libs/example/sdk/soap/country-info/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../../../../tsconfig.base.json", - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/libs/example/sdk/soap/country-info/tsconfig.lib.json b/libs/example/sdk/soap/country-info/tsconfig.lib.json deleted file mode 100644 index 5a37f64e..00000000 --- a/libs/example/sdk/soap/country-info/tsconfig.lib.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "../../../../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"], - "include": ["**/*.ts"] -} diff --git a/libs/example/sdk/soap/country-info/tsconfig.spec.json b/libs/example/sdk/soap/country-info/tsconfig.spec.json deleted file mode 100644 index 26dfa49e..00000000 --- a/libs/example/sdk/soap/country-info/tsconfig.spec.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "**/*.test.ts", - "**/*.spec.ts", - "**/*.test.tsx", - "**/*.spec.tsx", - "**/*.test.js", - "**/*.spec.js", - "**/*.test.jsx", - "**/*.spec.jsx", - "**/*.d.ts" - ] -} diff --git a/nx.json b/nx.json index 988ee760..09c67191 100644 --- a/nx.json +++ b/nx.json @@ -70,5 +70,9 @@ "!{projectRoot}/jest.config.[jt]s", "!{projectRoot}/.eslintrc.json" ] + }, + "workspaceLayout": { + "appsDir": "examples", + "libsDir": "examples" } } diff --git a/package.json b/package.json index 0aded86d..c56b9e2b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "scripts": { "build": "nx run-many --target=build --all", "ci:skip-cache": "pnpm lint:fix --parallel=1 --skip-nx-cache && pnpm build --parallel=1 --skip-nx-cache && pnpm test -- --parallel=1 --skip-nx-cache && pnpm validate --parallel=1 --skip-nx-cache && pnpm e2e --parallel=1 --skip-nx-cache", - "ci": "pnpm lint:fix --parallel=1 && pnpm build --parallel=1 && pnpm test --parallel=1 && pnpm validate --parallel=1 && pnpm e2e --parallel=1", + "ci": "pnpm lint:fix --parallel=1 && pnpm build --parallel=1 && pnpm test --parallel=1 && pnpm e2e --parallel=1", "e2e": "nx run-many --target=e2e --all --parallel=1 && nx run-many --target=e2e --all --configuration=start --parallel=1 && nx run-many --target=e2e --all --configuration=serve --parallel=1 && nx run-many --target=e2e --all --configuration=serve-dev", "lint:fix": "nx format:write && nx run-many --target=lint --all --fix", "lint": "nx workspace-lint && nx format && nx run-many --target=lint --all", diff --git a/libs/.gitkeep b/packages/.gitkeep similarity index 100% rename from libs/.gitkeep rename to packages/.gitkeep diff --git a/libs/nx-mesh/.babelrc b/packages/nx-mesh/.babelrc similarity index 100% rename from libs/nx-mesh/.babelrc rename to packages/nx-mesh/.babelrc diff --git a/libs/nx-mesh/.eslintrc.json b/packages/nx-mesh/.eslintrc.json similarity index 100% rename from libs/nx-mesh/.eslintrc.json rename to packages/nx-mesh/.eslintrc.json diff --git a/libs/nx-mesh/.lib.swcrc b/packages/nx-mesh/.lib.swcrc similarity index 100% rename from libs/nx-mesh/.lib.swcrc rename to packages/nx-mesh/.lib.swcrc diff --git a/libs/nx-mesh/CHANGELOG.md b/packages/nx-mesh/CHANGELOG.md similarity index 100% rename from libs/nx-mesh/CHANGELOG.md rename to packages/nx-mesh/CHANGELOG.md diff --git a/libs/nx-mesh/executors.json b/packages/nx-mesh/executors.json similarity index 100% rename from libs/nx-mesh/executors.json rename to packages/nx-mesh/executors.json diff --git a/libs/nx-mesh/generators.json b/packages/nx-mesh/generators.json similarity index 100% rename from libs/nx-mesh/generators.json rename to packages/nx-mesh/generators.json diff --git a/libs/nx-mesh/jest.config.ts b/packages/nx-mesh/jest.config.ts similarity index 83% rename from libs/nx-mesh/jest.config.ts rename to packages/nx-mesh/jest.config.ts index 33b25340..28b2262d 100644 --- a/libs/nx-mesh/jest.config.ts +++ b/packages/nx-mesh/jest.config.ts @@ -11,5 +11,5 @@ export default { '^.+\\.[tj]s$': 'ts-jest', }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/libs/nx-mesh', + coverageDirectory: '../../coverage/packages/nx-mesh', }; diff --git a/libs/nx-mesh/package.json b/packages/nx-mesh/package.json similarity index 93% rename from libs/nx-mesh/package.json rename to packages/nx-mesh/package.json index b4c8332e..4ebfeab8 100644 --- a/libs/nx-mesh/package.json +++ b/packages/nx-mesh/package.json @@ -1,7 +1,7 @@ { "name": "nx-mesh", "author": "Dom Talbot", - "description": "GraphQL Mesh support for Nx", + "description": "GraphQL Mesh support for Nx ", "version": "3.1.0", "license": "MIT", "main": "src/index.js", @@ -51,7 +51,7 @@ "url": "git://github.com/domjtalbot/nx-mesh/issues" }, "repository": { - "directory": "libs/nx-mesh", + "directory": "packages/nx-mesh", "type": "git", "url": "git://github.com/domjtalbot/nx-mesh.git" }, diff --git a/libs/nx-mesh/project.json b/packages/nx-mesh/project.json similarity index 61% rename from libs/nx-mesh/project.json rename to packages/nx-mesh/project.json index 90b35f20..748e1857 100644 --- a/libs/nx-mesh/project.json +++ b/packages/nx-mesh/project.json @@ -1,38 +1,38 @@ { "name": "nx-mesh", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/nx-mesh/src", + "sourceRoot": "packages/nx-mesh/src", "projectType": "library", "targets": { "build": { "executor": "@nrwl/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/libs/nx-mesh", - "main": "libs/nx-mesh/src/index.ts", - "tsConfig": "libs/nx-mesh/tsconfig.lib.json", + "outputPath": "dist/packages/nx-mesh", + "main": "packages/nx-mesh/src/index.ts", + "tsConfig": "packages/nx-mesh/tsconfig.lib.json", "assets": [ "README.md", "CHANGELOG.md", "LICENSE", - "libs/nx-mesh/*.md", + "packages/nx-mesh/*.md", { - "input": "./libs/nx-mesh/src", + "input": "./packages/nx-mesh/src", "glob": "**/!(*.ts)", "output": "./src" }, { - "input": "./libs/nx-mesh/src", + "input": "./packages/nx-mesh/src", "glob": "**/*.d.ts", "output": "./src" }, { - "input": "./libs/nx-mesh", + "input": "./packages/nx-mesh", "glob": "generators.json", "output": "." }, { - "input": "./libs/nx-mesh", + "input": "./packages/nx-mesh", "glob": "executors.json", "output": "." } @@ -43,27 +43,27 @@ "executor": "@nrwl/linter:eslint", "outputs": [ "{options.outputFile}", - "{workspaceRoot}/reports/libs/nx-mesh" + "{workspaceRoot}/reports/packages/nx-mesh" ], "options": { - "lintFilePatterns": ["libs/nx-mesh/**/*.ts"] + "lintFilePatterns": ["packages/nx-mesh/**/*.ts"] }, "configurations": { "codeql": { "format": "@microsoft/eslint-formatter-sarif", - "outputFile": "reports/libs/nx-mesh/lint.sarif" + "outputFile": "reports/packages/nx-mesh/lint.sarif" }, "reports": { "format": "json", - "outputFile": "reports/libs/nx-mesh/lint.json" + "outputFile": "reports/packages/nx-mesh/lint.json" } } }, "test": { "executor": "@nrwl/jest:jest", - "outputs": ["{workspaceRoot}/coverage/libs/nx-mesh"], + "outputs": ["{workspaceRoot}/coverage/packages/nx-mesh"], "options": { - "jestConfig": "libs/nx-mesh/jest.config.ts", + "jestConfig": "packages/nx-mesh/jest.config.ts", "passWithNoTests": true } } diff --git a/libs/nx-mesh/src/executors/build-gateway/build-gateway.impl.ts b/packages/nx-mesh/src/executors/build-gateway/build-gateway.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-gateway/build-gateway.impl.ts rename to packages/nx-mesh/src/executors/build-gateway/build-gateway.impl.ts diff --git a/libs/nx-mesh/src/executors/build-gateway/hasher.spec.ts b/packages/nx-mesh/src/executors/build-gateway/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-gateway/hasher.spec.ts rename to packages/nx-mesh/src/executors/build-gateway/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/build-gateway/hasher.ts b/packages/nx-mesh/src/executors/build-gateway/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-gateway/hasher.ts rename to packages/nx-mesh/src/executors/build-gateway/hasher.ts diff --git a/libs/nx-mesh/src/executors/build-gateway/schema.json b/packages/nx-mesh/src/executors/build-gateway/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/build-gateway/schema.json rename to packages/nx-mesh/src/executors/build-gateway/schema.json diff --git a/libs/nx-mesh/src/executors/build-gateway/schema.ts b/packages/nx-mesh/src/executors/build-gateway/schema.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-gateway/schema.ts rename to packages/nx-mesh/src/executors/build-gateway/schema.ts diff --git a/libs/nx-mesh/src/executors/build-swc/build-swc.impl.ts b/packages/nx-mesh/src/executors/build-swc/build-swc.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/build-swc.impl.ts rename to packages/nx-mesh/src/executors/build-swc/build-swc.impl.ts diff --git a/libs/nx-mesh/src/executors/build-swc/hasher.spec.ts b/packages/nx-mesh/src/executors/build-swc/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/hasher.spec.ts rename to packages/nx-mesh/src/executors/build-swc/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/build-swc/hasher.ts b/packages/nx-mesh/src/executors/build-swc/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/hasher.ts rename to packages/nx-mesh/src/executors/build-swc/hasher.ts diff --git a/libs/nx-mesh/src/executors/build-swc/schema.json b/packages/nx-mesh/src/executors/build-swc/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/schema.json rename to packages/nx-mesh/src/executors/build-swc/schema.json diff --git a/libs/nx-mesh/src/executors/build-swc/schema.ts b/packages/nx-mesh/src/executors/build-swc/schema.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/schema.ts rename to packages/nx-mesh/src/executors/build-swc/schema.ts diff --git a/libs/nx-mesh/src/executors/build-swc/swc-executor/README.md b/packages/nx-mesh/src/executors/build-swc/swc-executor/README.md similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/swc-executor/README.md rename to packages/nx-mesh/src/executors/build-swc/swc-executor/README.md diff --git a/libs/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts b/packages/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts rename to packages/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts diff --git a/libs/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts b/packages/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts rename to packages/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts diff --git a/libs/nx-mesh/src/executors/build/build.impl.ts b/packages/nx-mesh/src/executors/build/build.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/build/build.impl.ts rename to packages/nx-mesh/src/executors/build/build.impl.ts diff --git a/libs/nx-mesh/src/executors/build/hasher.spec.ts b/packages/nx-mesh/src/executors/build/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/build/hasher.spec.ts rename to packages/nx-mesh/src/executors/build/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/build/hasher.ts b/packages/nx-mesh/src/executors/build/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/build/hasher.ts rename to packages/nx-mesh/src/executors/build/hasher.ts diff --git a/libs/nx-mesh/src/executors/build/schema.json b/packages/nx-mesh/src/executors/build/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/build/schema.json rename to packages/nx-mesh/src/executors/build/schema.json diff --git a/libs/nx-mesh/src/executors/build/schema.ts b/packages/nx-mesh/src/executors/build/schema.ts similarity index 100% rename from libs/nx-mesh/src/executors/build/schema.ts rename to packages/nx-mesh/src/executors/build/schema.ts diff --git a/libs/nx-mesh/src/executors/dev/executor.ts b/packages/nx-mesh/src/executors/dev/executor.ts similarity index 100% rename from libs/nx-mesh/src/executors/dev/executor.ts rename to packages/nx-mesh/src/executors/dev/executor.ts diff --git a/libs/nx-mesh/src/executors/dev/hasher.spec.ts b/packages/nx-mesh/src/executors/dev/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/dev/hasher.spec.ts rename to packages/nx-mesh/src/executors/dev/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/dev/hasher.ts b/packages/nx-mesh/src/executors/dev/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/dev/hasher.ts rename to packages/nx-mesh/src/executors/dev/hasher.ts diff --git a/libs/nx-mesh/src/executors/dev/lib/get-serve-location.ts b/packages/nx-mesh/src/executors/dev/lib/get-serve-location.ts similarity index 100% rename from libs/nx-mesh/src/executors/dev/lib/get-serve-location.ts rename to packages/nx-mesh/src/executors/dev/lib/get-serve-location.ts diff --git a/libs/nx-mesh/src/executors/dev/schema.d.ts b/packages/nx-mesh/src/executors/dev/schema.d.ts similarity index 100% rename from libs/nx-mesh/src/executors/dev/schema.d.ts rename to packages/nx-mesh/src/executors/dev/schema.d.ts diff --git a/libs/nx-mesh/src/executors/dev/schema.json b/packages/nx-mesh/src/executors/dev/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/dev/schema.json rename to packages/nx-mesh/src/executors/dev/schema.json diff --git a/libs/nx-mesh/src/executors/serve/hasher.spec.ts b/packages/nx-mesh/src/executors/serve/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/serve/hasher.spec.ts rename to packages/nx-mesh/src/executors/serve/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/serve/hasher.ts b/packages/nx-mesh/src/executors/serve/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/serve/hasher.ts rename to packages/nx-mesh/src/executors/serve/hasher.ts diff --git a/libs/nx-mesh/src/executors/serve/schema.d.ts b/packages/nx-mesh/src/executors/serve/schema.d.ts similarity index 100% rename from libs/nx-mesh/src/executors/serve/schema.d.ts rename to packages/nx-mesh/src/executors/serve/schema.d.ts diff --git a/libs/nx-mesh/src/executors/serve/schema.json b/packages/nx-mesh/src/executors/serve/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/serve/schema.json rename to packages/nx-mesh/src/executors/serve/schema.json diff --git a/libs/nx-mesh/src/executors/serve/serve.impl.ts b/packages/nx-mesh/src/executors/serve/serve.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/serve/serve.impl.ts rename to packages/nx-mesh/src/executors/serve/serve.impl.ts diff --git a/libs/nx-mesh/src/executors/start/hasher.spec.ts b/packages/nx-mesh/src/executors/start/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/start/hasher.spec.ts rename to packages/nx-mesh/src/executors/start/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/start/hasher.ts b/packages/nx-mesh/src/executors/start/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/start/hasher.ts rename to packages/nx-mesh/src/executors/start/hasher.ts diff --git a/libs/nx-mesh/src/executors/start/lib/get-serve-location.ts b/packages/nx-mesh/src/executors/start/lib/get-serve-location.ts similarity index 100% rename from libs/nx-mesh/src/executors/start/lib/get-serve-location.ts rename to packages/nx-mesh/src/executors/start/lib/get-serve-location.ts diff --git a/libs/nx-mesh/src/executors/start/schema.json b/packages/nx-mesh/src/executors/start/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/start/schema.json rename to packages/nx-mesh/src/executors/start/schema.json diff --git a/libs/nx-mesh/src/executors/start/schema.ts b/packages/nx-mesh/src/executors/start/schema.ts similarity index 100% rename from libs/nx-mesh/src/executors/start/schema.ts rename to packages/nx-mesh/src/executors/start/schema.ts diff --git a/libs/nx-mesh/src/executors/start/start.impl.ts b/packages/nx-mesh/src/executors/start/start.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/start/start.impl.ts rename to packages/nx-mesh/src/executors/start/start.impl.ts diff --git a/libs/nx-mesh/src/executors/validate/hasher.spec.ts b/packages/nx-mesh/src/executors/validate/hasher.spec.ts similarity index 100% rename from libs/nx-mesh/src/executors/validate/hasher.spec.ts rename to packages/nx-mesh/src/executors/validate/hasher.spec.ts diff --git a/libs/nx-mesh/src/executors/validate/hasher.ts b/packages/nx-mesh/src/executors/validate/hasher.ts similarity index 100% rename from libs/nx-mesh/src/executors/validate/hasher.ts rename to packages/nx-mesh/src/executors/validate/hasher.ts diff --git a/libs/nx-mesh/src/executors/validate/schema.json b/packages/nx-mesh/src/executors/validate/schema.json similarity index 100% rename from libs/nx-mesh/src/executors/validate/schema.json rename to packages/nx-mesh/src/executors/validate/schema.json diff --git a/libs/nx-mesh/src/executors/validate/schema.ts b/packages/nx-mesh/src/executors/validate/schema.ts similarity index 100% rename from libs/nx-mesh/src/executors/validate/schema.ts rename to packages/nx-mesh/src/executors/validate/schema.ts diff --git a/libs/nx-mesh/src/executors/validate/validate.impl.ts b/packages/nx-mesh/src/executors/validate/validate.impl.ts similarity index 100% rename from libs/nx-mesh/src/executors/validate/validate.impl.ts rename to packages/nx-mesh/src/executors/validate/validate.impl.ts diff --git a/libs/nx-mesh/src/generators/application/application.ts b/packages/nx-mesh/src/generators/application/application.ts similarity index 100% rename from libs/nx-mesh/src/generators/application/application.ts rename to packages/nx-mesh/src/generators/application/application.ts diff --git a/libs/nx-mesh/src/generators/application/schema.d.ts b/packages/nx-mesh/src/generators/application/schema.d.ts similarity index 100% rename from libs/nx-mesh/src/generators/application/schema.d.ts rename to packages/nx-mesh/src/generators/application/schema.d.ts diff --git a/libs/nx-mesh/src/generators/application/schema.json b/packages/nx-mesh/src/generators/application/schema.json similarity index 97% rename from libs/nx-mesh/src/generators/application/schema.json rename to packages/nx-mesh/src/generators/application/schema.json index 0ff21efb..a4d0f34d 100644 --- a/libs/nx-mesh/src/generators/application/schema.json +++ b/packages/nx-mesh/src/generators/application/schema.json @@ -54,7 +54,7 @@ "example": { "description": "Which example project would you like to start with?", "type": "string", - "default": "star-wars-api", + "default": "star-wars", "x-prompt": { "message": "Which example project would you like to start with?", "type": "list", @@ -65,7 +65,7 @@ { "value": "movies", "label": "Movies (Neo4j)" }, { "value": "rfam", "label": "RFam (MySQL)" }, { "value": "stackexchange", "label": "StackExchange (OpenAPI)" }, - { "value": "star-wars-api", "label": "Star Wars API (GraphQL)" }, + { "value": "star-wars", "label": "Star Wars API (GraphQL)" }, { "value": "trippin", "label": "Trip Pin (odata)" } ] } diff --git a/libs/nx-mesh/src/generators/base/__snapshots__/base.spec.ts.snap b/packages/nx-mesh/src/generators/base/__snapshots__/base.spec.ts.snap similarity index 100% rename from libs/nx-mesh/src/generators/base/__snapshots__/base.spec.ts.snap rename to packages/nx-mesh/src/generators/base/__snapshots__/base.spec.ts.snap diff --git a/libs/nx-mesh/src/generators/base/base.spec.ts b/packages/nx-mesh/src/generators/base/base.spec.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/base.spec.ts rename to packages/nx-mesh/src/generators/base/base.spec.ts diff --git a/libs/nx-mesh/src/generators/base/base.ts b/packages/nx-mesh/src/generators/base/base.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/base.ts rename to packages/nx-mesh/src/generators/base/base.ts diff --git a/libs/nx-mesh/src/generators/base/files/app/tsconfig.app.json b/packages/nx-mesh/src/generators/base/files/app/tsconfig.app.json similarity index 100% rename from libs/nx-mesh/src/generators/base/files/app/tsconfig.app.json rename to packages/nx-mesh/src/generators/base/files/app/tsconfig.app.json diff --git a/libs/nx-mesh/src/generators/base/files/app/tsconfig.json b/packages/nx-mesh/src/generators/base/files/app/tsconfig.json similarity index 100% rename from libs/nx-mesh/src/generators/base/files/app/tsconfig.json rename to packages/nx-mesh/src/generators/base/files/app/tsconfig.json diff --git a/libs/nx-mesh/src/generators/base/files/lib/src/index.ts__tmpl__ b/packages/nx-mesh/src/generators/base/files/lib/src/index.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/base/files/lib/src/index.ts__tmpl__ rename to packages/nx-mesh/src/generators/base/files/lib/src/index.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/base/files/lib/src/lib/sdk.ts__tmpl__ b/packages/nx-mesh/src/generators/base/files/lib/src/lib/sdk.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/base/files/lib/src/lib/sdk.ts__tmpl__ rename to packages/nx-mesh/src/generators/base/files/lib/src/lib/sdk.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/base/index.ts b/packages/nx-mesh/src/generators/base/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/index.ts rename to packages/nx-mesh/src/generators/base/index.ts diff --git a/libs/nx-mesh/src/generators/base/lib/add-cypress.ts b/packages/nx-mesh/src/generators/base/lib/add-cypress.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/add-cypress.ts rename to packages/nx-mesh/src/generators/base/lib/add-cypress.ts diff --git a/libs/nx-mesh/src/generators/base/lib/add-jest.ts b/packages/nx-mesh/src/generators/base/lib/add-jest.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/add-jest.ts rename to packages/nx-mesh/src/generators/base/lib/add-jest.ts diff --git a/libs/nx-mesh/src/generators/base/lib/add-linting.ts b/packages/nx-mesh/src/generators/base/lib/add-linting.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/add-linting.ts rename to packages/nx-mesh/src/generators/base/lib/add-linting.ts diff --git a/libs/nx-mesh/src/generators/base/lib/add-project-config.ts b/packages/nx-mesh/src/generators/base/lib/add-project-config.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/add-project-config.ts rename to packages/nx-mesh/src/generators/base/lib/add-project-config.ts diff --git a/libs/nx-mesh/src/generators/base/lib/create-files.ts b/packages/nx-mesh/src/generators/base/lib/create-files.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/create-files.ts rename to packages/nx-mesh/src/generators/base/lib/create-files.ts diff --git a/libs/nx-mesh/src/generators/base/lib/index.ts b/packages/nx-mesh/src/generators/base/lib/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/index.ts rename to packages/nx-mesh/src/generators/base/lib/index.ts diff --git a/libs/nx-mesh/src/generators/base/lib/node-generator.ts b/packages/nx-mesh/src/generators/base/lib/node-generator.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/node-generator.ts rename to packages/nx-mesh/src/generators/base/lib/node-generator.ts diff --git a/libs/nx-mesh/src/generators/base/lib/normalize-options.ts b/packages/nx-mesh/src/generators/base/lib/normalize-options.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/normalize-options.ts rename to packages/nx-mesh/src/generators/base/lib/normalize-options.ts diff --git a/libs/nx-mesh/src/generators/base/lib/set-defaults.ts b/packages/nx-mesh/src/generators/base/lib/set-defaults.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/lib/set-defaults.ts rename to packages/nx-mesh/src/generators/base/lib/set-defaults.ts diff --git a/libs/nx-mesh/src/generators/base/schema.d.ts b/packages/nx-mesh/src/generators/base/schema.d.ts similarity index 100% rename from libs/nx-mesh/src/generators/base/schema.d.ts rename to packages/nx-mesh/src/generators/base/schema.d.ts diff --git a/libs/nx-mesh/src/generators/base/schema.json b/packages/nx-mesh/src/generators/base/schema.json similarity index 98% rename from libs/nx-mesh/src/generators/base/schema.json rename to packages/nx-mesh/src/generators/base/schema.json index 5d32aebe..490fbd8c 100644 --- a/libs/nx-mesh/src/generators/base/schema.json +++ b/packages/nx-mesh/src/generators/base/schema.json @@ -46,7 +46,7 @@ "example": { "description": "Which example project would you like to start with?", "type": "string", - "default": "star-wars-api", + "default": "star-wars", "x-prompt": { "message": "Which example project would you like to start with?", "type": "list", @@ -57,7 +57,7 @@ { "value": "movies", "label": "Movies (Neo4j)" }, { "value": "rfam", "label": "RFam (MySQL)" }, { "value": "stackexchange", "label": "StackExchange (OpenAPI)" }, - { "value": "star-wars-api", "label": "Star Wars API (GraphQL)" }, + { "value": "star-wars", "label": "Star Wars API (GraphQL)" }, { "value": "trippin", "label": "Trip Pin (odata)" } ] } diff --git a/libs/nx-mesh/src/generators/preset/index.ts b/packages/nx-mesh/src/generators/preset/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/preset/index.ts rename to packages/nx-mesh/src/generators/preset/index.ts diff --git a/libs/nx-mesh/src/generators/preset/preset.spec.ts b/packages/nx-mesh/src/generators/preset/preset.spec.ts similarity index 100% rename from libs/nx-mesh/src/generators/preset/preset.spec.ts rename to packages/nx-mesh/src/generators/preset/preset.spec.ts diff --git a/libs/nx-mesh/src/generators/preset/preset.ts b/packages/nx-mesh/src/generators/preset/preset.ts similarity index 100% rename from libs/nx-mesh/src/generators/preset/preset.ts rename to packages/nx-mesh/src/generators/preset/preset.ts diff --git a/libs/nx-mesh/src/generators/preset/schema.d.ts b/packages/nx-mesh/src/generators/preset/schema.d.ts similarity index 100% rename from libs/nx-mesh/src/generators/preset/schema.d.ts rename to packages/nx-mesh/src/generators/preset/schema.d.ts diff --git a/libs/nx-mesh/src/generators/preset/schema.json b/packages/nx-mesh/src/generators/preset/schema.json similarity index 97% rename from libs/nx-mesh/src/generators/preset/schema.json rename to packages/nx-mesh/src/generators/preset/schema.json index 40161cf1..d314ce82 100644 --- a/libs/nx-mesh/src/generators/preset/schema.json +++ b/packages/nx-mesh/src/generators/preset/schema.json @@ -47,7 +47,7 @@ "example": { "description": "Which example project would you like to start with?", "type": "string", - "default": "star-wars-api", + "default": "star-wars", "x-prompt": { "message": "Which example project would you like to start with?", "type": "list", @@ -58,7 +58,7 @@ { "value": "movies", "label": "Movies (Neo4j)" }, { "value": "rfam", "label": "RFam (MySQL)" }, { "value": "stackexchange", "label": "StackExchange (OpenAPI)" }, - { "value": "star-wars-api", "label": "Star Wars API (GraphQL)" }, + { "value": "star-wars", "label": "Star Wars API (GraphQL)" }, { "value": "trippin", "label": "Trip Pin (odata)" } ] } diff --git a/libs/nx-mesh/src/generators/sdk/index.ts b/packages/nx-mesh/src/generators/sdk/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/sdk/index.ts rename to packages/nx-mesh/src/generators/sdk/index.ts diff --git a/libs/nx-mesh/src/generators/sdk/schema.json b/packages/nx-mesh/src/generators/sdk/schema.json similarity index 97% rename from libs/nx-mesh/src/generators/sdk/schema.json rename to packages/nx-mesh/src/generators/sdk/schema.json index 7c58673e..1675e501 100644 --- a/libs/nx-mesh/src/generators/sdk/schema.json +++ b/packages/nx-mesh/src/generators/sdk/schema.json @@ -47,7 +47,7 @@ "example": { "description": "Which example project would you like to start with?", "type": "string", - "default": "star-wars-api", + "default": "star-wars", "x-prompt": { "message": "Which example project would you like to start with?", "type": "list", @@ -58,7 +58,7 @@ { "value": "movies", "label": "Movies (Neo4j)" }, { "value": "rfam", "label": "RFam (MySQL)" }, { "value": "stackexchange", "label": "StackExchange (OpenAPI)" }, - { "value": "star-wars-api", "label": "Star Wars API (GraphQL)" }, + { "value": "star-wars", "label": "Star Wars API (GraphQL)" }, { "value": "trippin", "label": "Trip Pin (odata)" } ] } diff --git a/libs/nx-mesh/src/generators/sdk/schema.ts b/packages/nx-mesh/src/generators/sdk/schema.ts similarity index 100% rename from libs/nx-mesh/src/generators/sdk/schema.ts rename to packages/nx-mesh/src/generators/sdk/schema.ts diff --git a/libs/nx-mesh/src/generators/sdk/sdk.ts b/packages/nx-mesh/src/generators/sdk/sdk.ts similarity index 100% rename from libs/nx-mesh/src/generators/sdk/sdk.ts rename to packages/nx-mesh/src/generators/sdk/sdk.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap b/packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap similarity index 97% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap rename to packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap index c18bc77b..057770c6 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-codegen-files.spec.ts.snap @@ -125,7 +125,7 @@ export default config; " `; -exports[`createCodegenFiles codegen - star-wars-api should create a codegen files 1`] = ` +exports[`createCodegenFiles codegen - star-wars should create a codegen files 1`] = ` " import type { CodegenConfig } from '@graphql-codegen/cli'; diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap b/packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap similarity index 98% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap rename to packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap index 87fcbc47..b5df33d0 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/__snapshots__/create-shared-files.spec.ts.snap @@ -906,7 +906,7 @@ serve: " `; -exports[`createSharedFiles meshConfig - star-wars-api should create a cjs mesh config 1`] = ` +exports[`createSharedFiles meshConfig - star-wars should create a cjs mesh config 1`] = ` "module.exports = { sources: [ { @@ -927,7 +927,7 @@ exports[`createSharedFiles meshConfig - star-wars-api should create a cjs mesh c " `; -exports[`createSharedFiles meshConfig - star-wars-api should create a js mesh config 1`] = ` +exports[`createSharedFiles meshConfig - star-wars should create a js mesh config 1`] = ` "module.exports = { sources: [ { @@ -948,7 +948,7 @@ exports[`createSharedFiles meshConfig - star-wars-api should create a js mesh co " `; -exports[`createSharedFiles meshConfig - star-wars-api should create a json mesh config 1`] = ` +exports[`createSharedFiles meshConfig - star-wars should create a json mesh config 1`] = ` "{ \\"sources\\": [ { @@ -968,7 +968,7 @@ exports[`createSharedFiles meshConfig - star-wars-api should create a json mesh " `; -exports[`createSharedFiles meshConfig - star-wars-api should create a yml mesh config 1`] = ` +exports[`createSharedFiles meshConfig - star-wars should create a yml mesh config 1`] = ` "sources: - name: StarWarsApi handler: @@ -1096,7 +1096,7 @@ exports[`createSharedFiles rfam should create a src folder supplementary files 1 " `; -exports[`createSharedFiles star-wars-api should create a src folder supplementary files 1`] = ` +exports[`createSharedFiles star-wars should create a src folder supplementary files 1`] = ` "query getMovies { allFilms { films { diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts similarity index 99% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts index 13de4974..58475e89 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.spec.ts @@ -37,7 +37,7 @@ describe('addDependencies', () => { 'movies', 'rfam', 'stackexchange', - 'star-wars-api', + 'star-wars', 'trippin', ])('%s', (example) => { it(`should add dependencies to the package.json`, () => { diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/add-dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts similarity index 98% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts index 3713725a..3ffc9d34 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.spec.ts @@ -37,7 +37,7 @@ describe('createCodegenFiles', () => { 'movies', 'rfam', 'stackexchange', - 'star-wars-api', + 'star-wars', 'trippin', ])(`codegen - %s`, (example) => { it('should create a codegen files', () => { diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-codegen-files.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts similarity index 98% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts index c7599ced..5c04cfc6 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.spec.ts @@ -63,7 +63,7 @@ describe('createMeshExample', () => { const options: CreateMeshExampleOptions = { codegen: true, configExtension: 'js', - example: 'star-wars-api', + example: 'star-wars', isSdk: true, projectDirectory, }; diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-mesh-example.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts similarity index 98% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts index fba07ecb..bfa46404 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.spec.ts @@ -37,7 +37,7 @@ describe('createSharedFiles', () => { 'movies', 'rfam', 'stackexchange', - 'star-wars-api', + 'star-wars', 'trippin', ])(`meshConfig - %s`, (example) => { it.each([ @@ -156,13 +156,13 @@ describe('createSharedFiles', () => { }); }); - describe('star-wars-api', () => { + describe('star-wars', () => { it('should create a src folder supplementary files', () => { const expectedPaths = ['src/graphql/getMovies.query.graphql']; createSharedFiles(tree, { configExtension: 'yml', - example: 'star-wars-api', + example: 'star-wars', isSdk: false, projectDirectory, }); diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/create-shared-files.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/src/graphql/GetLanguages.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/src/graphql/GetLanguages.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/src/graphql/GetLanguages.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/country-info/shared/src/graphql/GetLanguages.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/graphql/getMe.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/graphql/getMe.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/graphql/getMe.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/graphql/getMe.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-samples/user-input.json__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-samples/user-input.json__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-samples/user-input.json__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-samples/user-input.json__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/company.json__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/company.json__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/company.json__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/company.json__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/user.json__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/user.json__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/user.json__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/fake-api/shared/src/json-schemas/user.json__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts similarity index 88% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts index 8350480f..91a88a4d 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/index.ts @@ -6,7 +6,7 @@ import * as javascriptWiki from './javascript-wiki'; import * as movies from './movies'; import * as rfam from './rfam'; import * as stackexchange from './stackexchange'; -import * as starWarsApi from './star-wars-api'; +import * as starWarsApi from './star-wars'; import * as trippin from './trippin'; export const examples: ExampleConfig = { @@ -16,7 +16,7 @@ export const examples: ExampleConfig = { movies: movies.config, rfam: rfam.config, stackexchange: stackexchange.config, - 'star-wars-api': starWarsApi.config, + 'star-wars': starWarsApi.config, trippin: trippin.config, }; diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/javascript-wiki/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/src/graphql/example.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/src/graphql/example.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/src/graphql/example.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/movies/shared/src/graphql/example.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/src/graphql/getAlignmentTree.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/src/graphql/getAlignmentTree.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/src/graphql/getAlignmentTree.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/rfam/shared/src/graphql/getAlignmentTree.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/stackexchange/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/shared/src/graphql/getMovies.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/shared/src/graphql/getMovies.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars-api/shared/src/graphql/getMovies.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/star-wars/shared/src/graphql/getMovies.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/codegen.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/codegen.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/codegen.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/codegen.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/src/lib/client.ts__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/src/lib/client.ts__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/src/lib/client.ts__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/codegen/src/lib/client.ts__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/dependencies.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/dependencies.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/dependencies.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/dependencies.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/.meshrc.__configExtension__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/.meshrc.__configExtension__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/.meshrc.__configExtension__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/.meshrc.__configExtension__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/src/graphql/airports/getAirports.query.graphql__tmpl__ b/packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/src/graphql/airports/getAirports.query.graphql__tmpl__ similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/src/graphql/airports/getAirports.query.graphql__tmpl__ rename to packages/nx-mesh/src/generators/utils/create-mesh-example/examples/trippin/shared/src/graphql/airports/getAirports.query.graphql__tmpl__ diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/index.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/index.ts similarity index 100% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/index.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/index.ts diff --git a/libs/nx-mesh/src/generators/utils/create-mesh-example/types.ts b/packages/nx-mesh/src/generators/utils/create-mesh-example/types.ts similarity index 97% rename from libs/nx-mesh/src/generators/utils/create-mesh-example/types.ts rename to packages/nx-mesh/src/generators/utils/create-mesh-example/types.ts index 61722b95..25c1c2f4 100644 --- a/libs/nx-mesh/src/generators/utils/create-mesh-example/types.ts +++ b/packages/nx-mesh/src/generators/utils/create-mesh-example/types.ts @@ -11,7 +11,7 @@ export type ExampleName = | 'movies' | 'rfam' | 'stackexchange' - | 'star-wars-api' + | 'star-wars' | 'trippin'; export type ExampleDependencies = { diff --git a/libs/nx-mesh/src/index.ts b/packages/nx-mesh/src/index.ts similarity index 100% rename from libs/nx-mesh/src/index.ts rename to packages/nx-mesh/src/index.ts diff --git a/libs/nx-mesh/src/utils/create-package-json.ts b/packages/nx-mesh/src/utils/create-package-json.ts similarity index 100% rename from libs/nx-mesh/src/utils/create-package-json.ts rename to packages/nx-mesh/src/utils/create-package-json.ts diff --git a/libs/nx-mesh/src/utils/get-mesh-packages.spec.ts b/packages/nx-mesh/src/utils/get-mesh-packages.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-mesh-packages.spec.ts rename to packages/nx-mesh/src/utils/get-mesh-packages.spec.ts diff --git a/libs/nx-mesh/src/utils/get-mesh-packages.ts b/packages/nx-mesh/src/utils/get-mesh-packages.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-mesh-packages.ts rename to packages/nx-mesh/src/utils/get-mesh-packages.ts diff --git a/libs/nx-mesh/src/utils/get-package-versions.spec.ts b/packages/nx-mesh/src/utils/get-package-versions.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-package-versions.spec.ts rename to packages/nx-mesh/src/utils/get-package-versions.spec.ts diff --git a/libs/nx-mesh/src/utils/get-package-versions.ts b/packages/nx-mesh/src/utils/get-package-versions.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-package-versions.ts rename to packages/nx-mesh/src/utils/get-package-versions.ts diff --git a/libs/nx-mesh/src/utils/get-source-file.ts b/packages/nx-mesh/src/utils/get-source-file.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-source-file.ts rename to packages/nx-mesh/src/utils/get-source-file.ts diff --git a/libs/nx-mesh/src/utils/get-wildcard-packages.spec.ts b/packages/nx-mesh/src/utils/get-wildcard-packages.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-wildcard-packages.spec.ts rename to packages/nx-mesh/src/utils/get-wildcard-packages.spec.ts diff --git a/libs/nx-mesh/src/utils/get-wildcard-packages.ts b/packages/nx-mesh/src/utils/get-wildcard-packages.ts similarity index 100% rename from libs/nx-mesh/src/utils/get-wildcard-packages.ts rename to packages/nx-mesh/src/utils/get-wildcard-packages.ts diff --git a/libs/nx-mesh/src/utils/graphql-codegen-cli/arguments.spec.ts b/packages/nx-mesh/src/utils/graphql-codegen-cli/arguments.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/graphql-codegen-cli/arguments.spec.ts rename to packages/nx-mesh/src/utils/graphql-codegen-cli/arguments.spec.ts diff --git a/libs/nx-mesh/src/utils/graphql-codegen-cli/arguments.ts b/packages/nx-mesh/src/utils/graphql-codegen-cli/arguments.ts similarity index 100% rename from libs/nx-mesh/src/utils/graphql-codegen-cli/arguments.ts rename to packages/nx-mesh/src/utils/graphql-codegen-cli/arguments.ts diff --git a/libs/nx-mesh/src/utils/graphql-codegen-cli/cli.ts b/packages/nx-mesh/src/utils/graphql-codegen-cli/cli.ts similarity index 100% rename from libs/nx-mesh/src/utils/graphql-codegen-cli/cli.ts rename to packages/nx-mesh/src/utils/graphql-codegen-cli/cli.ts diff --git a/libs/nx-mesh/src/utils/graphql-codegen-cli/index.ts b/packages/nx-mesh/src/utils/graphql-codegen-cli/index.ts similarity index 100% rename from libs/nx-mesh/src/utils/graphql-codegen-cli/index.ts rename to packages/nx-mesh/src/utils/graphql-codegen-cli/index.ts diff --git a/libs/nx-mesh/src/utils/index.ts b/packages/nx-mesh/src/utils/index.ts similarity index 100% rename from libs/nx-mesh/src/utils/index.ts rename to packages/nx-mesh/src/utils/index.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/arguments.spec.ts b/packages/nx-mesh/src/utils/mesh-cli/arguments.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/arguments.spec.ts rename to packages/nx-mesh/src/utils/mesh-cli/arguments.spec.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/arguments.ts b/packages/nx-mesh/src/utils/mesh-cli/arguments.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/arguments.ts rename to packages/nx-mesh/src/utils/mesh-cli/arguments.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/cli.ts b/packages/nx-mesh/src/utils/mesh-cli/cli.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/cli.ts rename to packages/nx-mesh/src/utils/mesh-cli/cli.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/commands.spec.ts b/packages/nx-mesh/src/utils/mesh-cli/commands.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/commands.spec.ts rename to packages/nx-mesh/src/utils/mesh-cli/commands.spec.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/commands.ts b/packages/nx-mesh/src/utils/mesh-cli/commands.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/commands.ts rename to packages/nx-mesh/src/utils/mesh-cli/commands.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/env.spec.ts b/packages/nx-mesh/src/utils/mesh-cli/env.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/env.spec.ts rename to packages/nx-mesh/src/utils/mesh-cli/env.spec.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/env.ts b/packages/nx-mesh/src/utils/mesh-cli/env.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/env.ts rename to packages/nx-mesh/src/utils/mesh-cli/env.ts diff --git a/libs/nx-mesh/src/utils/mesh-cli/index.ts b/packages/nx-mesh/src/utils/mesh-cli/index.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-cli/index.ts rename to packages/nx-mesh/src/utils/mesh-cli/index.ts diff --git a/libs/nx-mesh/src/utils/mesh-packages.ts b/packages/nx-mesh/src/utils/mesh-packages.ts similarity index 100% rename from libs/nx-mesh/src/utils/mesh-packages.ts rename to packages/nx-mesh/src/utils/mesh-packages.ts diff --git a/libs/nx-mesh/src/utils/run-tasks-in-serial/index.ts b/packages/nx-mesh/src/utils/run-tasks-in-serial/index.ts similarity index 100% rename from libs/nx-mesh/src/utils/run-tasks-in-serial/index.ts rename to packages/nx-mesh/src/utils/run-tasks-in-serial/index.ts diff --git a/libs/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.spec.ts b/packages/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.spec.ts similarity index 100% rename from libs/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.spec.ts rename to packages/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.spec.ts diff --git a/libs/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.ts b/packages/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.ts similarity index 100% rename from libs/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.ts rename to packages/nx-mesh/src/utils/run-tasks-in-serial/run-tasks-in-serial.ts diff --git a/libs/nx-mesh/src/utils/typescript.ts b/packages/nx-mesh/src/utils/typescript.ts similarity index 100% rename from libs/nx-mesh/src/utils/typescript.ts rename to packages/nx-mesh/src/utils/typescript.ts diff --git a/libs/nx-mesh/src/utils/versions.ts b/packages/nx-mesh/src/utils/versions.ts similarity index 100% rename from libs/nx-mesh/src/utils/versions.ts rename to packages/nx-mesh/src/utils/versions.ts diff --git a/libs/nx-mesh/src/utils/watcher/index.ts b/packages/nx-mesh/src/utils/watcher/index.ts similarity index 100% rename from libs/nx-mesh/src/utils/watcher/index.ts rename to packages/nx-mesh/src/utils/watcher/index.ts diff --git a/libs/nx-mesh/src/utils/watcher/watcher.ts b/packages/nx-mesh/src/utils/watcher/watcher.ts similarity index 100% rename from libs/nx-mesh/src/utils/watcher/watcher.ts rename to packages/nx-mesh/src/utils/watcher/watcher.ts diff --git a/libs/nx-mesh/tsconfig.json b/packages/nx-mesh/tsconfig.json similarity index 100% rename from libs/nx-mesh/tsconfig.json rename to packages/nx-mesh/tsconfig.json diff --git a/libs/nx-mesh/tsconfig.lib.json b/packages/nx-mesh/tsconfig.lib.json similarity index 94% rename from libs/nx-mesh/tsconfig.lib.json rename to packages/nx-mesh/tsconfig.lib.json index 1f4792ec..7a80b457 100644 --- a/libs/nx-mesh/tsconfig.lib.json +++ b/packages/nx-mesh/tsconfig.lib.json @@ -11,7 +11,7 @@ "src/generators/sdk/files/src/index.ts__tmpl__", "src/generators/base/files/lib/src/index.ts__tmpl__", "src/generators/base/files/lib/lib/sdk.ts__tmpl__", - "src/generators/utils/create-mesh-example/examples/star-wars-api/codegen/codegen.ts__tmpl__" + "src/generators/utils/create-mesh-example/examples/star-wars/codegen/codegen.ts__tmpl__" ], "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"] } diff --git a/libs/nx-mesh/tsconfig.spec.json b/packages/nx-mesh/tsconfig.spec.json similarity index 100% rename from libs/nx-mesh/tsconfig.spec.json rename to packages/nx-mesh/tsconfig.spec.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index efbba110..0e48167e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -190,7 +190,7 @@ importers: ts-node: 10.9.1_b2ulvot2eensv5kijvirfsfnxq typescript: 4.8.4 - libs/nx-mesh: + packages/nx-mesh: specifiers: '@nrwl/cypress': ^15.4.1 '@nrwl/devkit': ^15.4.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index bb375a25..924b55f4 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,2 @@ packages: - - libs/* + - packages/* diff --git a/sonar-project.properties b/sonar-project.properties index 23af15f9..5d10fd9c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,9 +3,9 @@ sonar.projectKey=domjtalbot_nx-mesh # compile-swc.ts & swc.impl.ts are both modified files # from the Nx source code. -sonar.exclusions=**/example/*,./libs/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts,./libs/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts -sonar.sources=libs/nx-mesh +sonar.exclusions=**/example/*,./packages/nx-mesh/src/executors/build-swc/swc-executor/compile-swc.ts,./packages/nx-mesh/src/executors/build-swc/swc-executor/swc.impl.ts +sonar.sources=packages/nx-mesh -sonar.eslint.reportPaths=./reports/libs/nx-mesh/lint.json -sonar.javascript.lcov.reportPaths=./coverage/libs/nx-mesh/lcov.info -sonar.test.inclusions=libs/nx-mesh/**/*.spec.* +sonar.eslint.reportPaths=./reports/packages/nx-mesh/lint.json +sonar.javascript.lcov.reportPaths=./coverage/packages/nx-mesh/lcov.info +sonar.test.inclusions=packages/nx-mesh/**/*.spec.* diff --git a/tools/scripts/nx-update.sh b/tools/scripts/nx-update.sh index 7c0f4015..b87213cd 100755 --- a/tools/scripts/nx-update.sh +++ b/tools/scripts/nx-update.sh @@ -103,7 +103,7 @@ function installUpdates { pnpm update \ @nrwl/devkit@${version} \ @nrwl/js@${version} && \ - cd libs/nx-mesh && \ + cd packages/nx-mesh && \ pnpm update \ @nrwl/cypress@^${version} \ @nrwl/devkit@^${version} \ diff --git a/tsconfig.base.json b/tsconfig.base.json index 1f804f76..8bed4469 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -15,43 +15,43 @@ "skipDefaultLibCheck": true, "baseUrl": ".", "paths": { - "@nx-mesh/example/sdk/graphql/star-wars-api": [ - "libs/example/sdk/graphql/star-wars-api/src/index.ts" + "@nx-mesh/examples-sdk-graphql--star-wars": [ + "examples/sdk-graphql--star-wars/src/index.ts" ], - "@nx-mesh/example/sdk/json-schema/fake-api": [ - "libs/example/sdk/json-schema/fake-api/src/index.ts" + "@nx-mesh/examples-sdk-json-schema--fake-api": [ + "examples/sdk-json-schema--fake-api/src/index.ts" ], - "@nx-mesh/example/sdk/mysql/rfam": [ - "libs/example/sdk/mysql/rfam/src/index.ts" + "@nx-mesh/examples-sdk-mysql--rfam": [ + "examples/sdk-mysql--rfam/src/index.ts" ], - "@nx-mesh/example/sdk/neo4j/movies": [ - "libs/example/sdk/neo4j/movies/src/index.ts" + "@nx-mesh/examples-sdk-neo4j--movies": [ + "examples/sdk-neo4j--movies/src/index.ts" ], - "@nx-mesh/example/sdk/odata/trippin": [ - "libs/example/sdk/odata/trippin/src/index.ts" + "@nx-mesh/examples-sdk-odata--trippin": [ + "examples/sdk-odata--trippin/src/index.ts" ], - "@nx-mesh/example/sdk/odata/trippin/*": [ - "libs/example/sdk/odata/trippin/src/lib/*" + "@nx-mesh/examples-sdk-odata--trippin/*": [ + "examples/sdk-odata--trippin/src/lib/*" ], - "@nx-mesh/example/sdk/openapi/javascript-wiki": [ - "libs/example/sdk/openapi/javascript-wiki/src/index.ts" + "@nx-mesh/examples-sdk-openapi--javascript-wiki": [ + "examples/sdk-openapi--javascript-wiki/src/index.ts" ], - "@nx-mesh/example/sdk/openapi/javascript-wiki/*": [ - "libs/example/sdk/openapi/javascript-wiki/src/lib/*" + "@nx-mesh/examples-sdk-openapi--javascript-wiki/*": [ + "examples/sdk-openapi--javascript-wiki/src/lib/*" ], - "@nx-mesh/example/sdk/openapi/stackexchange": [ - "libs/example/sdk/openapi/stackexchange/src/index.ts" + "@nx-mesh/examples-sdk-openapi--stackexchange": [ + "examples/sdk-openapi--stackexchange/src/index.ts" ], - "@nx-mesh/example/sdk/openapi/stackexchange/*": [ - "libs/example/sdk/openapi/stackexchange/src/lib/*" + "@nx-mesh/examples-sdk-openapi--stackexchange/*": [ + "examples/sdk-openapi--stackexchange/src/lib/*" ], - "@nx-mesh/example/sdk/soap/country-info": [ - "libs/example/sdk/soap/country-info/src/index.ts" + "@nx-mesh/examples-sdk-soap--country-info": [ + "examples/sdk-soap--country-info/src/index.ts" ], - "@nx-mesh/example/sdk/soap/country-info/*": [ - "libs/example/sdk/soap/country-info/src/lib/*" + "@nx-mesh/examples-sdk-soap--country-info/*": [ + "examples/sdk-soap--country-info/src/lib/*" ], - "nx-mesh": ["libs/nx-mesh/src/index.ts"] + "nx-mesh": ["packages/nx-mesh/src/index.ts"] } }, "exclude": ["node_modules", "tmp"]