@nx/workspace 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +61 -0
- package/executors.json +11 -0
- package/generators.d.ts +5 -0
- package/generators.js +14 -0
- package/generators.js.map +1 -0
- package/generators.json +92 -0
- package/index.d.ts +21 -0
- package/index.js +52 -0
- package/index.js.map +1 -0
- package/migrations.json +165 -0
- package/package.json +90 -0
- package/presets/core.json +11 -0
- package/presets/npm.json +7 -0
- package/src/core/file-utils.d.ts +1 -0
- package/src/core/file-utils.js +5 -0
- package/src/core/file-utils.js.map +1 -0
- package/src/core/project-graph.d.ts +1 -0
- package/src/core/project-graph.js +5 -0
- package/src/core/project-graph.js.map +1 -0
- package/src/executors/counter/counter.impl.d.ts +12 -0
- package/src/executors/counter/counter.impl.js +48 -0
- package/src/executors/counter/counter.impl.js.map +1 -0
- package/src/executors/counter/schema.json +20 -0
- package/src/generators/ci-workflow/ci-workflow.d.ts +6 -0
- package/src/generators/ci-workflow/ci-workflow.js +46 -0
- package/src/generators/ci-workflow/ci-workflow.js.map +1 -0
- package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +58 -0
- package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +36 -0
- package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +73 -0
- package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +29 -0
- package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +47 -0
- package/src/generators/ci-workflow/schema.json +38 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts +6 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js +86 -0
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js.map +1 -0
- package/src/generators/convert-to-nx-project/schema.d.ts +7 -0
- package/src/generators/convert-to-nx-project/schema.json +38 -0
- package/src/generators/move/lib/check-destination.d.ts +11 -0
- package/src/generators/move/lib/check-destination.js +24 -0
- package/src/generators/move/lib/check-destination.js.map +1 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts +3 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.js +17 -0
- package/src/generators/move/lib/create-project-configuration-in-new-destination.js.map +1 -0
- package/src/generators/move/lib/move-project-files.d.ts +8 -0
- package/src/generators/move/lib/move-project-files.js +22 -0
- package/src/generators/move/lib/move-project-files.js.map +1 -0
- package/src/generators/move/lib/normalize-schema.d.ts +3 -0
- package/src/generators/move/lib/normalize-schema.js +17 -0
- package/src/generators/move/lib/normalize-schema.js.map +1 -0
- package/src/generators/move/lib/update-build-targets.d.ts +6 -0
- package/src/generators/move/lib/update-build-targets.js +54 -0
- package/src/generators/move/lib/update-build-targets.js.map +1 -0
- package/src/generators/move/lib/update-cypress-config.d.ts +10 -0
- package/src/generators/move/lib/update-cypress-config.js +39 -0
- package/src/generators/move/lib/update-cypress-config.js.map +1 -0
- package/src/generators/move/lib/update-default-project.d.ts +10 -0
- package/src/generators/move/lib/update-default-project.js +21 -0
- package/src/generators/move/lib/update-default-project.js.map +1 -0
- package/src/generators/move/lib/update-eslintrc-json.d.ts +8 -0
- package/src/generators/move/lib/update-eslintrc-json.js +44 -0
- package/src/generators/move/lib/update-eslintrc-json.js.map +1 -0
- package/src/generators/move/lib/update-implicit-dependencies.d.ts +6 -0
- package/src/generators/move/lib/update-implicit-dependencies.js +20 -0
- package/src/generators/move/lib/update-implicit-dependencies.js.map +1 -0
- package/src/generators/move/lib/update-imports.d.ts +8 -0
- package/src/generators/move/lib/update-imports.js +159 -0
- package/src/generators/move/lib/update-imports.js.map +1 -0
- package/src/generators/move/lib/update-jest-config.d.ts +10 -0
- package/src/generators/move/lib/update-jest-config.js +36 -0
- package/src/generators/move/lib/update-jest-config.js.map +1 -0
- package/src/generators/move/lib/update-package-json.d.ts +8 -0
- package/src/generators/move/lib/update-package-json.js +22 -0
- package/src/generators/move/lib/update-package-json.js.map +1 -0
- package/src/generators/move/lib/update-project-root-files.d.ts +10 -0
- package/src/generators/move/lib/update-project-root-files.js +44 -0
- package/src/generators/move/lib/update-project-root-files.js.map +1 -0
- package/src/generators/move/lib/update-readme.d.ts +8 -0
- package/src/generators/move/lib/update-readme.js +22 -0
- package/src/generators/move/lib/update-readme.js.map +1 -0
- package/src/generators/move/lib/update-storybook-config.d.ts +10 -0
- package/src/generators/move/lib/update-storybook-config.js +44 -0
- package/src/generators/move/lib/update-storybook-config.js.map +1 -0
- package/src/generators/move/lib/utils.d.ts +22 -0
- package/src/generators/move/lib/utils.js +43 -0
- package/src/generators/move/lib/utils.js.map +1 -0
- package/src/generators/move/move.d.ts +5 -0
- package/src/generators/move/move.js +48 -0
- package/src/generators/move/move.js.map +1 -0
- package/src/generators/move/schema.d.ts +13 -0
- package/src/generators/move/schema.json +47 -0
- package/src/generators/new/files-integrated-repo/__dot__editorconfig +13 -0
- package/src/generators/new/files-integrated-repo/__dot__gitignore +39 -0
- package/src/generators/new/files-integrated-repo/__dot__vscode/extensions.json__tmpl__ +9 -0
- package/src/generators/new/files-integrated-repo/package.json__tmpl__ +14 -0
- package/src/generators/new/files-integrated-repo/tools/generators/.gitkeep +0 -0
- package/src/generators/new/files-integrated-repo/tools/tsconfig.tools.json +12 -0
- package/src/generators/new/files-package-based-repo/__dot__gitignore +39 -0
- package/src/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +8 -0
- package/src/generators/new/files-package-based-repo/package.json__tmpl__ +13 -0
- package/src/generators/new/files-readme/README.md.template +21 -0
- package/src/generators/new/files-root-app/__dot__gitignore +39 -0
- package/src/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +6 -0
- package/src/generators/new/files-root-app/package.json__tmpl__ +14 -0
- package/src/generators/new/generate-preset.d.ts +4 -0
- package/src/generators/new/generate-preset.js +129 -0
- package/src/generators/new/generate-preset.js.map +1 -0
- package/src/generators/new/generate-workspace-files.d.ts +3 -0
- package/src/generators/new/generate-workspace-files.js +169 -0
- package/src/generators/new/generate-workspace-files.js.map +1 -0
- package/src/generators/new/new.d.ts +26 -0
- package/src/generators/new/new.js +73 -0
- package/src/generators/new/new.js.map +1 -0
- package/src/generators/new/schema.json +77 -0
- package/src/generators/npm-package/files/index.js.template +1 -0
- package/src/generators/npm-package/npm-package.d.ts +6 -0
- package/src/generators/npm-package/npm-package.js +42 -0
- package/src/generators/npm-package/npm-package.js.map +1 -0
- package/src/generators/npm-package/schema.json +21 -0
- package/src/generators/preset/files/angular/app.module.d.ts +0 -0
- package/src/generators/preset/files/angular/app.module.js +1 -0
- package/src/generators/preset/files/angular/app.module.js.map +1 -0
- package/src/generators/preset/files/angular/app.module.ts +0 -0
- package/src/generators/preset/preset.d.ts +4 -0
- package/src/generators/preset/preset.js +152 -0
- package/src/generators/preset/preset.js.map +1 -0
- package/src/generators/preset/schema.d.ts +17 -0
- package/src/generators/preset/schema.json +88 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.d.ts +14 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.js +18 -0
- package/src/generators/remove/lib/__fixtures__/jest-project.config.js.map +1 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.d.ts +0 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.js +9 -0
- package/src/generators/remove/lib/__fixtures__/jest.config.js.map +1 -0
- package/src/generators/remove/lib/check-dependencies.d.ts +7 -0
- package/src/generators/remove/lib/check-dependencies.js +27 -0
- package/src/generators/remove/lib/check-dependencies.js.map +1 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts +3 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js +26 -0
- package/src/generators/remove/lib/check-project-is-safe-to-remove.js.map +1 -0
- package/src/generators/remove/lib/check-targets.d.ts +10 -0
- package/src/generators/remove/lib/check-targets.js +72 -0
- package/src/generators/remove/lib/check-targets.js.map +1 -0
- package/src/generators/remove/lib/remove-project-references-in-config.d.ts +3 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js +22 -0
- package/src/generators/remove/lib/remove-project-references-in-config.js.map +1 -0
- package/src/generators/remove/lib/remove-project.d.ts +5 -0
- package/src/generators/remove/lib/remove-project.js +15 -0
- package/src/generators/remove/lib/remove-project.js.map +1 -0
- package/src/generators/remove/lib/update-jest-config.d.ts +6 -0
- package/src/generators/remove/lib/update-jest-config.js +64 -0
- package/src/generators/remove/lib/update-jest-config.js.map +1 -0
- package/src/generators/remove/lib/update-tsconfig.d.ts +8 -0
- package/src/generators/remove/lib/update-tsconfig.js +35 -0
- package/src/generators/remove/lib/update-tsconfig.js.map +1 -0
- package/src/generators/remove/remove.d.ts +5 -0
- package/src/generators/remove/remove.js +31 -0
- package/src/generators/remove/remove.js.map +1 -0
- package/src/generators/remove/schema.d.ts +10 -0
- package/src/generators/remove/schema.json +47 -0
- package/src/generators/run-commands/run-commands.d.ts +5 -0
- package/src/generators/run-commands/run-commands.js +30 -0
- package/src/generators/run-commands/run-commands.js.map +1 -0
- package/src/generators/run-commands/schema.d.ts +8 -0
- package/src/generators/run-commands/schema.json +49 -0
- package/src/generators/utils/get-npm-package-version.d.ts +1 -0
- package/src/generators/utils/get-npm-package-version.js +18 -0
- package/src/generators/utils/get-npm-package-version.js.map +1 -0
- package/src/generators/utils/insert-import.d.ts +2 -0
- package/src/generators/utils/insert-import.js +48 -0
- package/src/generators/utils/insert-import.js.map +1 -0
- package/src/generators/utils/insert-statement.d.ts +5 -0
- package/src/generators/utils/insert-statement.js +34 -0
- package/src/generators/utils/insert-statement.js.map +1 -0
- package/src/generators/utils/presets.d.ts +18 -0
- package/src/generators/utils/presets.js +23 -0
- package/src/generators/utils/presets.js.map +1 -0
- package/src/generators/workspace-generator/files/index.ts__tmpl__ +10 -0
- package/src/generators/workspace-generator/files/schema.json__tmpl__ +17 -0
- package/src/generators/workspace-generator/schema.d.ts +4 -0
- package/src/generators/workspace-generator/schema.json +25 -0
- package/src/generators/workspace-generator/workspace-generator.d.ts +3 -0
- package/src/generators/workspace-generator/workspace-generator.js +27 -0
- package/src/generators/workspace-generator/workspace-generator.js.map +1 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.d.ts +3 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.js +39 -0
- package/src/migrations/update-12-5-0/add-target-dependencies.js.map +1 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.d.ts +2 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.js +34 -0
- package/src/migrations/update-13-0-0/config-locations/config-locations.js.map +1 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.d.ts +3 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +30 -0
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js.map +1 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.js +14 -0
- package/src/migrations/update-13-10-0/update-decorate-cli.js.map +1 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.js +17 -0
- package/src/migrations/update-13-10-0/update-tasks-runner.js.map +1 -0
- package/src/migrations/update-13-2-0/set-parallel-default.d.ts +3 -0
- package/src/migrations/update-13-2-0/set-parallel-default.js +27 -0
- package/src/migrations/update-13-2-0/set-parallel-default.js.map +1 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.d.ts +3 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.js +31 -0
- package/src/migrations/update-13-3-0/update-tsc-executor-location.js.map +1 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.d.ts +3 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js +17 -0
- package/src/migrations/update-13-6-0/remove-old-task-runner-options.js.map +1 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.d.ts +3 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.js +28 -0
- package/src/migrations/update-13-9-0/replace-tao-with-nx.js.map +1 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.d.ts +3 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.js +13 -0
- package/src/migrations/update-13-9-0/update-decorate-cli.js.map +1 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.d.ts +3 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.js +20 -0
- package/src/migrations/update-14-0-0/change-npm-script-executor.js.map +1 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.d.ts +3 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.js +21 -0
- package/src/migrations/update-14-0-0/change-nx-json-presets.js.map +1 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.d.ts +3 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.js +28 -0
- package/src/migrations/update-14-2-0/enable-source-analysis.js.map +1 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.d.ts +3 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.js +20 -0
- package/src/migrations/update-14-8-0/change-run-commands-executor.js.map +1 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.d.ts +3 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js +15 -0
- package/src/migrations/update-15-7-0/split-configuration-into-project-json-files.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/tasks-runner/cache.d.ts +1 -0
- package/src/tasks-runner/cache.js +6 -0
- package/src/tasks-runner/cache.js.map +1 -0
- package/src/tasks-runner/default-tasks-runner.d.ts +1 -0
- package/src/tasks-runner/default-tasks-runner.js +5 -0
- package/src/tasks-runner/default-tasks-runner.js.map +1 -0
- package/src/tasks-runner/life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycle.js +6 -0
- package/src/tasks-runner/life-cycle.js.map +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +5 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +1 -0
- package/src/tasks-runner/tasks-runner-v2.d.ts +1 -0
- package/src/tasks-runner/tasks-runner-v2.js +7 -0
- package/src/tasks-runner/tasks-runner-v2.js.map +1 -0
- package/src/tasks-runner/tasks-runner.d.ts +2 -0
- package/src/tasks-runner/tasks-runner.js +5 -0
- package/src/tasks-runner/tasks-runner.js.map +1 -0
- package/src/tasks-runner/utils.d.ts +1 -0
- package/src/tasks-runner/utils.js +5 -0
- package/src/tasks-runner/utils.js.map +1 -0
- package/src/utilities/app-root.d.ts +1 -0
- package/src/utilities/app-root.js +5 -0
- package/src/utilities/app-root.js.map +1 -0
- package/src/utilities/buildable-libs-utils.d.ts +41 -0
- package/src/utilities/buildable-libs-utils.js +316 -0
- package/src/utilities/buildable-libs-utils.js.map +1 -0
- package/src/utilities/default-base.d.ts +1 -0
- package/src/utilities/default-base.js +16 -0
- package/src/utilities/default-base.js.map +1 -0
- package/src/utilities/fileutils.d.ts +13 -0
- package/src/utilities/fileutils.js +52 -0
- package/src/utilities/fileutils.js.map +1 -0
- package/src/utilities/output.d.ts +1 -0
- package/src/utilities/output.js +5 -0
- package/src/utilities/output.js.map +1 -0
- package/src/utilities/run-tasks-in-serial.d.ts +8 -0
- package/src/utilities/run-tasks-in-serial.js +19 -0
- package/src/utilities/run-tasks-in-serial.js.map +1 -0
- package/src/utilities/ts-config.d.ts +5 -0
- package/src/utilities/ts-config.js +40 -0
- package/src/utilities/ts-config.js.map +1 -0
- package/src/utilities/typescript/compilation.d.ts +22 -0
- package/src/utilities/typescript/compilation.js +120 -0
- package/src/utilities/typescript/compilation.js.map +1 -0
- package/src/utilities/typescript/get-source-nodes.d.ts +5 -0
- package/src/utilities/typescript/get-source-nodes.js +22 -0
- package/src/utilities/typescript/get-source-nodes.js.map +1 -0
- package/src/utilities/typescript.d.ts +22 -0
- package/src/utilities/typescript.js +71 -0
- package/src/utilities/typescript.js.map +1 -0
- package/src/utilities/version-utils.d.ts +4 -0
- package/src/utilities/version-utils.js +14 -0
- package/src/utilities/version-utils.js.map +1 -0
- package/src/utils/ast-utils.d.ts +1 -0
- package/src/utils/ast-utils.js +6 -0
- package/src/utils/ast-utils.js.map +1 -0
- package/src/utils/cli-config-utils.d.ts +16 -0
- package/src/utils/cli-config-utils.js +30 -0
- package/src/utils/cli-config-utils.js.map +1 -0
- package/src/utils/fileutils.d.ts +24 -0
- package/src/utils/fileutils.js +67 -0
- package/src/utils/fileutils.js.map +1 -0
- package/src/utils/lint.d.ts +4 -0
- package/src/utils/lint.js +3 -0
- package/src/utils/lint.js.map +1 -0
- package/src/utils/output.d.ts +52 -0
- package/src/utils/output.js +134 -0
- package/src/utils/output.js.map +1 -0
- package/src/utils/perf-logging.d.ts +1 -0
- package/src/utils/perf-logging.js +11 -0
- package/src/utils/perf-logging.js.map +1 -0
- package/src/utils/project-type.d.ts +5 -0
- package/src/utils/project-type.js +18 -0
- package/src/utils/project-type.js.map +1 -0
- package/src/utils/rules/add-install-task.d.ts +7 -0
- package/src/utils/rules/add-install-task.js +18 -0
- package/src/utils/rules/add-install-task.js.map +1 -0
- package/src/utils/rules/deleteFile.d.ts +6 -0
- package/src/utils/rules/deleteFile.js +12 -0
- package/src/utils/rules/deleteFile.js.map +1 -0
- package/src/utils/rules/format-files.d.ts +7 -0
- package/src/utils/rules/format-files.js +58 -0
- package/src/utils/rules/format-files.js.map +1 -0
- package/src/utils/rules/visit-not-ignored-files.d.ts +6 -0
- package/src/utils/rules/visit-not-ignored-files.js +39 -0
- package/src/utils/rules/visit-not-ignored-files.js.map +1 -0
- package/src/utils/strings.d.ts +107 -0
- package/src/utils/strings.js +160 -0
- package/src/utils/strings.js.map +1 -0
- package/src/utils/testing-utils.d.ts +54 -0
- package/src/utils/testing-utils.js +147 -0
- package/src/utils/testing-utils.js.map +1 -0
- package/src/utils/version-utils.d.ts +1 -0
- package/src/utils/version-utils.js +5 -0
- package/src/utils/version-utils.js.map +1 -0
- package/src/utils/versions.d.ts +7 -0
- package/src/utils/versions.js +13 -0
- package/src/utils/versions.js.map +1 -0
- package/src/utils/workspace.d.ts +20 -0
- package/src/utils/workspace.js +97 -0
- package/src/utils/workspace.js.map +1 -0
- package/tasks-runners/default.d.ts +1 -0
- package/tasks-runners/default.js +6 -0
- package/tasks-runners/default.js.map +1 -0
- package/testing.d.ts +1 -0
- package/testing.js +8 -0
- package/testing.js.map +1 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2023 Narwhal Technologies Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
+
|
|
3
|
+
<div style="text-align: center;">
|
|
4
|
+
|
|
5
|
+
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
+
[]()
|
|
7
|
+
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
+
[]()
|
|
9
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
+
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
+
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<hr>
|
|
17
|
+
|
|
18
|
+
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
+
|
|
20
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
+
|
|
22
|
+
## Getting Started
|
|
23
|
+
|
|
24
|
+
### Creating an Nx Workspace
|
|
25
|
+
|
|
26
|
+
**Using `npx`**
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx create-nx-workspace
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Using `npm init`**
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm init nx-workspace
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Using `yarn create`**
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
yarn create nx-workspace
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Adding Nx to an Existing Repository
|
|
45
|
+
|
|
46
|
+
Run:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx nx@latest init
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Documentation & Resources
|
|
53
|
+
|
|
54
|
+
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
55
|
+
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
56
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
57
|
+
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
58
|
+
|
|
59
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
60
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
61
|
+
|
package/executors.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"executors": {
|
|
3
|
+
"counter": {
|
|
4
|
+
"implementation": "./src/executors/counter/counter.impl",
|
|
5
|
+
"batchImplementation": "./src/executors/counter/counter.impl#batchCounter",
|
|
6
|
+
"schema": "./src/executors/counter/schema.json",
|
|
7
|
+
"description": "A dummy executor useful for E2E tests.",
|
|
8
|
+
"hidden": true
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
package/generators.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { npmPackageGenerator } from './src/generators/npm-package/npm-package';
|
|
2
|
+
export { moveGenerator } from './src/generators/move/move';
|
|
3
|
+
export { removeGenerator } from './src/generators/remove/remove';
|
|
4
|
+
export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
|
|
5
|
+
export { convertToNxProjectGenerator } from './src/generators/convert-to-nx-project/convert-to-nx-project';
|
package/generators.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertToNxProjectGenerator = exports.runCommandsGenerator = exports.removeGenerator = exports.moveGenerator = exports.npmPackageGenerator = void 0;
|
|
4
|
+
var npm_package_1 = require("./src/generators/npm-package/npm-package");
|
|
5
|
+
Object.defineProperty(exports, "npmPackageGenerator", { enumerable: true, get: function () { return npm_package_1.npmPackageGenerator; } });
|
|
6
|
+
var move_1 = require("./src/generators/move/move");
|
|
7
|
+
Object.defineProperty(exports, "moveGenerator", { enumerable: true, get: function () { return move_1.moveGenerator; } });
|
|
8
|
+
var remove_1 = require("./src/generators/remove/remove");
|
|
9
|
+
Object.defineProperty(exports, "removeGenerator", { enumerable: true, get: function () { return remove_1.removeGenerator; } });
|
|
10
|
+
var run_commands_1 = require("./src/generators/run-commands/run-commands");
|
|
11
|
+
Object.defineProperty(exports, "runCommandsGenerator", { enumerable: true, get: function () { return run_commands_1.runCommandsGenerator; } });
|
|
12
|
+
var convert_to_nx_project_1 = require("./src/generators/convert-to-nx-project/convert-to-nx-project");
|
|
13
|
+
Object.defineProperty(exports, "convertToNxProjectGenerator", { enumerable: true, get: function () { return convert_to_nx_project_1.convertToNxProjectGenerator; } });
|
|
14
|
+
//# sourceMappingURL=generators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generators.js","sourceRoot":"","sources":["../../../packages/workspace/generators.ts"],"names":[],"mappings":";;;AAAA,wEAA+E;AAAtE,kHAAA,mBAAmB,OAAA;AAC5B,mDAA2D;AAAlD,qGAAA,aAAa,OAAA;AACtB,yDAAiE;AAAxD,yGAAA,eAAe,OAAA;AACxB,2EAAkF;AAAzE,oHAAA,oBAAoB,OAAA;AAC7B,sGAA2G;AAAlG,oIAAA,2BAA2B,OAAA"}
|
package/generators.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nx/workspace",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"schematics": {
|
|
5
|
+
"move": {
|
|
6
|
+
"factory": "./src/generators/move/move#moveSchematic",
|
|
7
|
+
"schema": "./src/generators/move/schema.json",
|
|
8
|
+
"aliases": ["mv"],
|
|
9
|
+
"description": "Move an application or library to another folder."
|
|
10
|
+
},
|
|
11
|
+
"remove": {
|
|
12
|
+
"factory": "./src/generators/remove/remove#removeSchematic",
|
|
13
|
+
"schema": "./src/generators/remove/schema.json",
|
|
14
|
+
"aliases": ["rm"],
|
|
15
|
+
"description": "Remove an application or library."
|
|
16
|
+
},
|
|
17
|
+
"workspace-generator": {
|
|
18
|
+
"factory": "./src/generators/workspace-generator/workspace-generator",
|
|
19
|
+
"schema": "./src/generators/workspace-generator/schema.json",
|
|
20
|
+
"aliases": ["workspace-schematic"],
|
|
21
|
+
"description": "Generates a workspace generator."
|
|
22
|
+
},
|
|
23
|
+
"run-commands": {
|
|
24
|
+
"factory": "./src/generators/run-commands/run-commands#runCommandsSchematic",
|
|
25
|
+
"schema": "./src/generators/run-commands/schema.json",
|
|
26
|
+
"aliases": ["run-command", "target"],
|
|
27
|
+
"description": "Generates a target to run any command in the terminal."
|
|
28
|
+
},
|
|
29
|
+
"npm-package": {
|
|
30
|
+
"factory": "./src/generators/npm-package/npm-package#npmPackageSchematic",
|
|
31
|
+
"schema": "./src/generators/npm-package/schema.json",
|
|
32
|
+
"description": "Create a minimal NPM package.",
|
|
33
|
+
"x-type": "library"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"generators": {
|
|
37
|
+
"preset": {
|
|
38
|
+
"factory": "./src/generators/preset/preset#presetGenerator",
|
|
39
|
+
"schema": "./src/generators/preset/schema.json",
|
|
40
|
+
"description": "Create application in an empty workspace.",
|
|
41
|
+
"x-use-standalone-layout": true,
|
|
42
|
+
"hidden": true
|
|
43
|
+
},
|
|
44
|
+
"move": {
|
|
45
|
+
"factory": "./src/generators/move/move#moveGenerator",
|
|
46
|
+
"schema": "./src/generators/move/schema.json",
|
|
47
|
+
"aliases": ["mv"],
|
|
48
|
+
"description": "Move an application or library to another folder."
|
|
49
|
+
},
|
|
50
|
+
"remove": {
|
|
51
|
+
"factory": "./src/generators/remove/remove#removeGenerator",
|
|
52
|
+
"schema": "./src/generators/remove/schema.json",
|
|
53
|
+
"aliases": ["rm"],
|
|
54
|
+
"description": "Remove an application or library."
|
|
55
|
+
},
|
|
56
|
+
"new": {
|
|
57
|
+
"factory": "./src/generators/new/new#newGenerator",
|
|
58
|
+
"schema": "./src/generators/new/schema.json",
|
|
59
|
+
"description": "Create a workspace.",
|
|
60
|
+
"hidden": true
|
|
61
|
+
},
|
|
62
|
+
"workspace-generator": {
|
|
63
|
+
"factory": "./src/generators/workspace-generator/workspace-generator",
|
|
64
|
+
"schema": "./src/generators/workspace-generator/schema.json",
|
|
65
|
+
"aliases": ["workspace-schematic"],
|
|
66
|
+
"description": "Generates a workspace generator."
|
|
67
|
+
},
|
|
68
|
+
"run-commands": {
|
|
69
|
+
"factory": "./src/generators/run-commands/run-commands#runCommandsGenerator",
|
|
70
|
+
"schema": "./src/generators/run-commands/schema.json",
|
|
71
|
+
"aliases": ["run-command", "target"],
|
|
72
|
+
"description": "Generates a target to run any command in the terminal."
|
|
73
|
+
},
|
|
74
|
+
"fix-configuration": {
|
|
75
|
+
"factory": "./src/generators/convert-to-nx-project/convert-to-nx-project#convertToNxProjectGenerator",
|
|
76
|
+
"schema": "./src/generators/convert-to-nx-project/schema.json",
|
|
77
|
+
"aliases": ["convert-to-nx-project"],
|
|
78
|
+
"description": "Fixes projects configuration"
|
|
79
|
+
},
|
|
80
|
+
"npm-package": {
|
|
81
|
+
"factory": "./src/generators/npm-package/npm-package#npmPackageGenerator",
|
|
82
|
+
"schema": "./src/generators/npm-package/schema.json",
|
|
83
|
+
"description": "Create a minimal NPM package.",
|
|
84
|
+
"x-type": "library"
|
|
85
|
+
},
|
|
86
|
+
"ci-workflow": {
|
|
87
|
+
"factory": "./src/generators/ci-workflow/ci-workflow#ciWorkflowGenerator",
|
|
88
|
+
"schema": "./src/generators/ci-workflow/schema.json",
|
|
89
|
+
"description": "Generate a CI workflow."
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { readTsConfig } from './src/utilities/ts-config';
|
|
2
|
+
export { ProjectType, projectRootDir } from './src/utils/project-type';
|
|
3
|
+
export { renameSync, updateJsonFile, copyFile, createDirectory, } from './src/utilities/fileutils';
|
|
4
|
+
export { names } from '@nx/devkit';
|
|
5
|
+
export { output } from './src/utilities/output';
|
|
6
|
+
export { readWorkspaceConfig, readPackageJson, } from 'nx/src/project-graph/file-utils';
|
|
7
|
+
export { ProjectGraphCache } from 'nx/src/project-graph/nx-deps-cache';
|
|
8
|
+
export { getWorkspacePath, editTarget, parseTarget, serializeTarget, } from './src/utils/cli-config-utils';
|
|
9
|
+
export { getWorkspace, updateWorkspace, updateBuilderConfig, } from './src/utils/workspace';
|
|
10
|
+
export { Linter } from './src/utils/lint';
|
|
11
|
+
export { addInstallTask } from './src/utils/rules/add-install-task';
|
|
12
|
+
export { formatFiles } from './src/utils/rules/format-files';
|
|
13
|
+
export { deleteFile } from './src/utils/rules/deleteFile';
|
|
14
|
+
export { visitNotIgnoredFiles } from './src/utils/rules/visit-not-ignored-files';
|
|
15
|
+
import * as strings from './src/utils/strings';
|
|
16
|
+
export { checkAndCleanWithSemver } from './src/utils/version-utils';
|
|
17
|
+
export { moveGenerator } from './src/generators/move/move';
|
|
18
|
+
export { removeGenerator } from './src/generators/remove/remove';
|
|
19
|
+
export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
|
|
20
|
+
export { convertToNxProjectGenerator, convertToNxProjectSchematic, } from './src/generators/convert-to-nx-project/convert-to-nx-project';
|
|
21
|
+
export declare const stringUtils: typeof strings;
|
package/index.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringUtils = exports.convertToNxProjectSchematic = exports.convertToNxProjectGenerator = exports.runCommandsGenerator = exports.removeGenerator = exports.moveGenerator = exports.checkAndCleanWithSemver = exports.visitNotIgnoredFiles = exports.deleteFile = exports.formatFiles = exports.addInstallTask = exports.updateBuilderConfig = exports.updateWorkspace = exports.getWorkspace = exports.serializeTarget = exports.parseTarget = exports.editTarget = exports.getWorkspacePath = exports.readPackageJson = exports.readWorkspaceConfig = exports.output = exports.names = exports.createDirectory = exports.copyFile = exports.updateJsonFile = exports.renameSync = exports.projectRootDir = exports.ProjectType = exports.readTsConfig = void 0;
|
|
4
|
+
var ts_config_1 = require("./src/utilities/ts-config");
|
|
5
|
+
Object.defineProperty(exports, "readTsConfig", { enumerable: true, get: function () { return ts_config_1.readTsConfig; } });
|
|
6
|
+
var project_type_1 = require("./src/utils/project-type");
|
|
7
|
+
Object.defineProperty(exports, "ProjectType", { enumerable: true, get: function () { return project_type_1.ProjectType; } });
|
|
8
|
+
Object.defineProperty(exports, "projectRootDir", { enumerable: true, get: function () { return project_type_1.projectRootDir; } });
|
|
9
|
+
var fileutils_1 = require("./src/utilities/fileutils");
|
|
10
|
+
Object.defineProperty(exports, "renameSync", { enumerable: true, get: function () { return fileutils_1.renameSync; } });
|
|
11
|
+
Object.defineProperty(exports, "updateJsonFile", { enumerable: true, get: function () { return fileutils_1.updateJsonFile; } });
|
|
12
|
+
Object.defineProperty(exports, "copyFile", { enumerable: true, get: function () { return fileutils_1.copyFile; } });
|
|
13
|
+
Object.defineProperty(exports, "createDirectory", { enumerable: true, get: function () { return fileutils_1.createDirectory; } });
|
|
14
|
+
var devkit_1 = require("@nx/devkit");
|
|
15
|
+
Object.defineProperty(exports, "names", { enumerable: true, get: function () { return devkit_1.names; } });
|
|
16
|
+
var output_1 = require("./src/utilities/output");
|
|
17
|
+
Object.defineProperty(exports, "output", { enumerable: true, get: function () { return output_1.output; } });
|
|
18
|
+
var file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
19
|
+
Object.defineProperty(exports, "readWorkspaceConfig", { enumerable: true, get: function () { return file_utils_1.readWorkspaceConfig; } });
|
|
20
|
+
Object.defineProperty(exports, "readPackageJson", { enumerable: true, get: function () { return file_utils_1.readPackageJson; } });
|
|
21
|
+
var cli_config_utils_1 = require("./src/utils/cli-config-utils");
|
|
22
|
+
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return cli_config_utils_1.getWorkspacePath; } });
|
|
23
|
+
Object.defineProperty(exports, "editTarget", { enumerable: true, get: function () { return cli_config_utils_1.editTarget; } });
|
|
24
|
+
Object.defineProperty(exports, "parseTarget", { enumerable: true, get: function () { return cli_config_utils_1.parseTarget; } });
|
|
25
|
+
Object.defineProperty(exports, "serializeTarget", { enumerable: true, get: function () { return cli_config_utils_1.serializeTarget; } });
|
|
26
|
+
var workspace_1 = require("./src/utils/workspace");
|
|
27
|
+
Object.defineProperty(exports, "getWorkspace", { enumerable: true, get: function () { return workspace_1.getWorkspace; } });
|
|
28
|
+
Object.defineProperty(exports, "updateWorkspace", { enumerable: true, get: function () { return workspace_1.updateWorkspace; } });
|
|
29
|
+
Object.defineProperty(exports, "updateBuilderConfig", { enumerable: true, get: function () { return workspace_1.updateBuilderConfig; } });
|
|
30
|
+
var add_install_task_1 = require("./src/utils/rules/add-install-task");
|
|
31
|
+
Object.defineProperty(exports, "addInstallTask", { enumerable: true, get: function () { return add_install_task_1.addInstallTask; } });
|
|
32
|
+
var format_files_1 = require("./src/utils/rules/format-files");
|
|
33
|
+
Object.defineProperty(exports, "formatFiles", { enumerable: true, get: function () { return format_files_1.formatFiles; } });
|
|
34
|
+
var deleteFile_1 = require("./src/utils/rules/deleteFile");
|
|
35
|
+
Object.defineProperty(exports, "deleteFile", { enumerable: true, get: function () { return deleteFile_1.deleteFile; } });
|
|
36
|
+
var visit_not_ignored_files_1 = require("./src/utils/rules/visit-not-ignored-files");
|
|
37
|
+
Object.defineProperty(exports, "visitNotIgnoredFiles", { enumerable: true, get: function () { return visit_not_ignored_files_1.visitNotIgnoredFiles; } });
|
|
38
|
+
const strings = require("./src/utils/strings");
|
|
39
|
+
// TODO(v17): Remove this export.
|
|
40
|
+
var version_utils_1 = require("./src/utils/version-utils");
|
|
41
|
+
Object.defineProperty(exports, "checkAndCleanWithSemver", { enumerable: true, get: function () { return version_utils_1.checkAndCleanWithSemver; } });
|
|
42
|
+
var move_1 = require("./src/generators/move/move");
|
|
43
|
+
Object.defineProperty(exports, "moveGenerator", { enumerable: true, get: function () { return move_1.moveGenerator; } });
|
|
44
|
+
var remove_1 = require("./src/generators/remove/remove");
|
|
45
|
+
Object.defineProperty(exports, "removeGenerator", { enumerable: true, get: function () { return remove_1.removeGenerator; } });
|
|
46
|
+
var run_commands_1 = require("./src/generators/run-commands/run-commands");
|
|
47
|
+
Object.defineProperty(exports, "runCommandsGenerator", { enumerable: true, get: function () { return run_commands_1.runCommandsGenerator; } });
|
|
48
|
+
var convert_to_nx_project_1 = require("./src/generators/convert-to-nx-project/convert-to-nx-project");
|
|
49
|
+
Object.defineProperty(exports, "convertToNxProjectGenerator", { enumerable: true, get: function () { return convert_to_nx_project_1.convertToNxProjectGenerator; } });
|
|
50
|
+
Object.defineProperty(exports, "convertToNxProjectSchematic", { enumerable: true, get: function () { return convert_to_nx_project_1.convertToNxProjectSchematic; } });
|
|
51
|
+
exports.stringUtils = strings;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/workspace/index.ts"],"names":[],"mappings":";;;AAAA,uDAAyD;AAAhD,yGAAA,YAAY,OAAA;AACrB,yDAAuE;AAA9D,2GAAA,WAAW,OAAA;AAAE,8GAAA,cAAc,OAAA;AACpC,uDAKmC;AAJjC,uGAAA,UAAU,OAAA;AACV,2GAAA,cAAc,OAAA;AACd,qGAAA,QAAQ,OAAA;AACR,4GAAA,eAAe,OAAA;AAGjB,qCAAmC;AAA1B,+FAAA,KAAK,OAAA;AAEd,iDAAgD;AAAvC,gGAAA,MAAM,OAAA;AAEf,8DAGyC;AAFvC,iHAAA,mBAAmB,OAAA;AACnB,6GAAA,eAAe,OAAA;AAIjB,iEAKsC;AAJpC,oHAAA,gBAAgB,OAAA;AAChB,8GAAA,UAAU,OAAA;AACV,+GAAA,WAAW,OAAA;AACX,mHAAA,eAAe,OAAA;AAGjB,mDAI+B;AAH7B,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AAIrB,uEAAoE;AAA3D,kHAAA,cAAc,OAAA;AACvB,+DAA6D;AAApD,2GAAA,WAAW,OAAA;AACpB,2DAA0D;AAAjD,wGAAA,UAAU,OAAA;AAEnB,qFAAiF;AAAxE,+HAAA,oBAAoB,OAAA;AAC7B,+CAA+C;AAE/C,iCAAiC;AACjC,2DAAoE;AAA3D,wHAAA,uBAAuB,OAAA;AAEhC,mDAA2D;AAAlD,qGAAA,aAAa,OAAA;AACtB,yDAAiE;AAAxD,yGAAA,eAAe,OAAA;AACxB,2EAAkF;AAAzE,oHAAA,oBAAoB,OAAA;AAC7B,sGAGsE;AAFpE,oIAAA,2BAA2B,OAAA;AAC3B,oIAAA,2BAA2B,OAAA;AAGhB,QAAA,WAAW,GAAG,OAAO,CAAC"}
|
package/migrations.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"add-target-dependencies": {
|
|
4
|
+
"version": "12.5.0-beta.1",
|
|
5
|
+
"description": "Rename the workspace-schematic script into workspace-generator script",
|
|
6
|
+
"factory": "./src/migrations/update-12-5-0/add-target-dependencies",
|
|
7
|
+
"cli": "nx"
|
|
8
|
+
},
|
|
9
|
+
"set-default-base-if-not-set": {
|
|
10
|
+
"version": "13.0.0-beta.1",
|
|
11
|
+
"description": "Add default base to nx.json if its not currently set",
|
|
12
|
+
"factory": "./src/migrations/update-13-0-0/set-default-base-if-not-set",
|
|
13
|
+
"cli": "nx"
|
|
14
|
+
},
|
|
15
|
+
"13-0-0-config-locations": {
|
|
16
|
+
"version": "13.0.0-beta.4",
|
|
17
|
+
"description": "Move global settings into nx.json, and project specific settings into workspace.json",
|
|
18
|
+
"cli": "nx",
|
|
19
|
+
"implementation": "./src/migrations/update-13-0-0/config-locations/config-locations"
|
|
20
|
+
},
|
|
21
|
+
"set-parallel-default": {
|
|
22
|
+
"version": "13.2.0",
|
|
23
|
+
"description": "Set --parallel=1 for existing repos to preserve the existing behavior",
|
|
24
|
+
"cli": "nx",
|
|
25
|
+
"implementation": "./src/migrations/update-13-2-0/set-parallel-default"
|
|
26
|
+
},
|
|
27
|
+
"13-3-0-tsc-location": {
|
|
28
|
+
"version": "13.3.0-beta.0",
|
|
29
|
+
"description": "@nrwl/workspace:tsc is now @nrwl/js:tsc",
|
|
30
|
+
"cli": "nx",
|
|
31
|
+
"implementation": "./src/migrations/update-13-3-0/update-tsc-executor-location"
|
|
32
|
+
},
|
|
33
|
+
"13-6-0-remove-old-task-runner-options": {
|
|
34
|
+
"version": "13.6.0-beta.0",
|
|
35
|
+
"description": "Remove old options that are no longer used",
|
|
36
|
+
"cli": "nx",
|
|
37
|
+
"implementation": "./src/migrations/update-13-6-0/remove-old-task-runner-options"
|
|
38
|
+
},
|
|
39
|
+
"13-9-0-replace-tao-with-nx": {
|
|
40
|
+
"version": "13.9.0-beta.0",
|
|
41
|
+
"description": "Replace @nrwl/tao with nx",
|
|
42
|
+
"cli": "nx",
|
|
43
|
+
"implementation": "./src/migrations/update-13-9-0/replace-tao-with-nx"
|
|
44
|
+
},
|
|
45
|
+
"13-10-0-update-decorate-cli": {
|
|
46
|
+
"version": "13.10.0-beta.0",
|
|
47
|
+
"description": "Update the decorate-angular-cli script to require nx instead of @nrwl/cli",
|
|
48
|
+
"cli": "nx",
|
|
49
|
+
"implementation": "./src/migrations/update-13-10-0/update-decorate-cli"
|
|
50
|
+
},
|
|
51
|
+
"13-10-0-update-tasks-runner": {
|
|
52
|
+
"version": "13.10.0-beta.0",
|
|
53
|
+
"description": "Update the tasks runner property to import it from the nx package instead of @nrwl/workspace",
|
|
54
|
+
"cli": "nx",
|
|
55
|
+
"implementation": "./src/migrations/update-13-10-0/update-tasks-runner"
|
|
56
|
+
},
|
|
57
|
+
"14-0-0-change-nx-json-presets": {
|
|
58
|
+
"version": "14.0.0-beta.0",
|
|
59
|
+
"description": "Changes the presets in nx.json to come from the nx package",
|
|
60
|
+
"cli": "nx",
|
|
61
|
+
"implementation": "./src/migrations/update-14-0-0/change-nx-json-presets"
|
|
62
|
+
},
|
|
63
|
+
"14-0-0-change-npm-script-executor": {
|
|
64
|
+
"version": "14.0.0-beta.0",
|
|
65
|
+
"description": "Migrates from @nrwl/workspace:run-script to nx:run-script",
|
|
66
|
+
"cli": "nx",
|
|
67
|
+
"implementation": "./src/migrations/update-14-0-0/change-npm-script-executor"
|
|
68
|
+
},
|
|
69
|
+
"14-2-0-enable-source-analysis": {
|
|
70
|
+
"version": "14.2.0",
|
|
71
|
+
"description": "Explicitly enable sourceAnalysis for all workspaces extending from npm.json or core.json (this was default behavior prior to 14.2)",
|
|
72
|
+
"cli": "nx",
|
|
73
|
+
"implementation": "./src/migrations/update-14-2-0/enable-source-analysis"
|
|
74
|
+
},
|
|
75
|
+
"14-8-0-change-run-commands-executor": {
|
|
76
|
+
"version": "14.8.0-beta.0",
|
|
77
|
+
"description": "Migrates from @nrwl/workspace:run-commands to nx:run-commands",
|
|
78
|
+
"cli": "nx",
|
|
79
|
+
"implementation": "./src/migrations/update-14-8-0/change-run-commands-executor"
|
|
80
|
+
},
|
|
81
|
+
"15-7-0-split-configuration-into-project-json-files": {
|
|
82
|
+
"version": "15.7.0-beta.0",
|
|
83
|
+
"description": "Split global configuration files (e.g., workspace.json) into individual project.json files.",
|
|
84
|
+
"cli": "nx",
|
|
85
|
+
"implementation": "./src/migrations/update-15-7-0/split-configuration-into-project-json-files"
|
|
86
|
+
},
|
|
87
|
+
"update-16-0-0-add-nx-packages": {
|
|
88
|
+
"cli": "nx",
|
|
89
|
+
"version": "16.0.0-beta.1",
|
|
90
|
+
"description": "Replace @nrwl/workspace with @nx/workspace",
|
|
91
|
+
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"packageJsonUpdates": {
|
|
95
|
+
"12.5.0": {
|
|
96
|
+
"version": "12.5.0",
|
|
97
|
+
"packages": {
|
|
98
|
+
"prettier": {
|
|
99
|
+
"version": "^2.3.1",
|
|
100
|
+
"alwaysAddToPackageJson": false
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"12.6.0": {
|
|
105
|
+
"version": "12.6.0-beta.8",
|
|
106
|
+
"packages": {
|
|
107
|
+
"typescript": {
|
|
108
|
+
"version": "~4.3.5"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"12.7.0": {
|
|
113
|
+
"version": "12.7.0-beta.0",
|
|
114
|
+
"packages": {
|
|
115
|
+
"dotenv": {
|
|
116
|
+
"version": "~10.0.0"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"13.5.0": {
|
|
121
|
+
"version": "13.5.0",
|
|
122
|
+
"packages": {
|
|
123
|
+
"prettier": {
|
|
124
|
+
"version": "^2.5.1",
|
|
125
|
+
"alwaysAddToPackageJson": false
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"14.2.0": {
|
|
130
|
+
"version": "14.2.0-beta.4",
|
|
131
|
+
"packages": {
|
|
132
|
+
"typescript": {
|
|
133
|
+
"version": "~4.7.2",
|
|
134
|
+
"alwaysAddToPackageJson": false
|
|
135
|
+
},
|
|
136
|
+
"prettier": {
|
|
137
|
+
"version": "^2.6.2",
|
|
138
|
+
"alwaysAddToPackageJson": false
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"14.8.0": {
|
|
143
|
+
"version": "14.8.0-beta.0",
|
|
144
|
+
"x-prompt": "Do you want to update to TypeScript v4.8?",
|
|
145
|
+
"packages": {
|
|
146
|
+
"typescript": {
|
|
147
|
+
"version": "~4.8.2",
|
|
148
|
+
"alwaysAddToPackageJson": false
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"15.8.0": {
|
|
153
|
+
"version": "15.8.0-beta.2",
|
|
154
|
+
"x-prompt": "Do you want to update to TypeScript v4.9?",
|
|
155
|
+
"requires": {
|
|
156
|
+
"typescript": ">=4.8.2 <4.9.0"
|
|
157
|
+
},
|
|
158
|
+
"packages": {
|
|
159
|
+
"typescript": {
|
|
160
|
+
"version": "~4.9.5"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nx/workspace",
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/nrwl/nx.git",
|
|
9
|
+
"directory": "packages/workspace"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Monorepo",
|
|
13
|
+
"Angular",
|
|
14
|
+
"React",
|
|
15
|
+
"Web",
|
|
16
|
+
"Node",
|
|
17
|
+
"Nest",
|
|
18
|
+
"Jest",
|
|
19
|
+
"Cypress",
|
|
20
|
+
"CLI"
|
|
21
|
+
],
|
|
22
|
+
"main": "./index",
|
|
23
|
+
"typings": "./index.d.ts",
|
|
24
|
+
"author": "Victor Savkin",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/nrwl/nx/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://nx.dev",
|
|
30
|
+
"schematics": "./generators.json",
|
|
31
|
+
"builders": "./executors.json",
|
|
32
|
+
"ng-update": {
|
|
33
|
+
"requirements": {},
|
|
34
|
+
"migrations": "./migrations.json",
|
|
35
|
+
"packageGroup": {
|
|
36
|
+
"@nrwl/js": "16.0.0-beta.1",
|
|
37
|
+
"@nrwl/jest": "16.0.0-beta.1",
|
|
38
|
+
"@nrwl/linter": "16.0.0-beta.1",
|
|
39
|
+
"@nrwl/angular": "16.0.0-beta.1",
|
|
40
|
+
"@nrwl/cypress": "16.0.0-beta.1",
|
|
41
|
+
"@nrwl/detox": "16.0.0-beta.1",
|
|
42
|
+
"@nrwl/devkit": "16.0.0-beta.1",
|
|
43
|
+
"@nrwl/esbuild": "16.0.0-beta.1",
|
|
44
|
+
"@nrwl/eslint-plugin-nx": "16.0.0-beta.1",
|
|
45
|
+
"@nrwl/expo": "16.0.0-beta.1",
|
|
46
|
+
"@nrwl/express": "16.0.0-beta.1",
|
|
47
|
+
"@nrwl/nest": "16.0.0-beta.1",
|
|
48
|
+
"@nrwl/next": "16.0.0-beta.1",
|
|
49
|
+
"@nrwl/node": "16.0.0-beta.1",
|
|
50
|
+
"nx-cloud": "latest",
|
|
51
|
+
"@nrwl/nx-plugin": "16.0.0-beta.1",
|
|
52
|
+
"@nrwl/react-native": "16.0.0-beta.1",
|
|
53
|
+
"@nrwl/react": "16.0.0-beta.1",
|
|
54
|
+
"@nrwl/rollup": "16.0.0-beta.1",
|
|
55
|
+
"@nrwl/storybook": "16.0.0-beta.1",
|
|
56
|
+
"@nrwl/tao": "16.0.0-beta.1",
|
|
57
|
+
"@nrwl/vite": "16.0.0-beta.1",
|
|
58
|
+
"@nrwl/web": "16.0.0-beta.1",
|
|
59
|
+
"@nrwl/webpack": "16.0.0-beta.1",
|
|
60
|
+
"nx": "16.0.0-beta.1"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@nrwl/workspace": "16.0.0-beta.1",
|
|
65
|
+
"@nx/devkit": "16.0.0-beta.1",
|
|
66
|
+
"@parcel/watcher": "2.0.4",
|
|
67
|
+
"chalk": "^4.1.0",
|
|
68
|
+
"chokidar": "^3.5.1",
|
|
69
|
+
"cli-cursor": "3.1.0",
|
|
70
|
+
"cli-spinners": "2.6.1",
|
|
71
|
+
"dotenv": "~10.0.0",
|
|
72
|
+
"figures": "3.2.0",
|
|
73
|
+
"flat": "^5.0.2",
|
|
74
|
+
"ignore": "^5.0.4",
|
|
75
|
+
"minimatch": "3.0.5",
|
|
76
|
+
"npm-run-path": "^4.0.1",
|
|
77
|
+
"nx": "16.0.0-beta.1",
|
|
78
|
+
"open": "^8.4.0",
|
|
79
|
+
"rxjs": "^6.5.4",
|
|
80
|
+
"tmp": "~0.2.1",
|
|
81
|
+
"tslib": "^2.3.0",
|
|
82
|
+
"yargs": "^17.6.2",
|
|
83
|
+
"yargs-parser": "21.1.1"
|
|
84
|
+
},
|
|
85
|
+
"publishConfig": {
|
|
86
|
+
"access": "public"
|
|
87
|
+
},
|
|
88
|
+
"types": "./index.d.ts",
|
|
89
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
90
|
+
}
|
package/presets/npm.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'nx/src/project-graph/file-utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-utils.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/core/file-utils.ts"],"names":[],"mappings":";;;AAAA,0EAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'nx/src/project-graph/project-graph';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-graph.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/core/project-graph.ts"],"names":[],"mappings":";;;AAAA,6EAAmD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface CounterOptions {
|
|
2
|
+
to: number;
|
|
3
|
+
result: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function counter(opts: CounterOptions): AsyncGenerator<{
|
|
6
|
+
success: boolean;
|
|
7
|
+
}, void, unknown>;
|
|
8
|
+
export declare function batchCounter(taskGraph: any, inputs: Record<string, CounterOptions>): Promise<Record<string, {
|
|
9
|
+
success: boolean;
|
|
10
|
+
terminalOutput: string;
|
|
11
|
+
}>>;
|
|
12
|
+
export {};
|