@nrwl/workspace 13.10.0-beta.1 → 13.10.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +3 -5
- package/index.js +5 -9
- package/index.js.map +1 -1
- package/migrations.json +12 -6
- package/package.json +5 -8
- package/src/executors/counter/counter.impl.js +7 -7
- package/src/executors/counter/counter.impl.js.map +1 -1
- package/src/executors/run-commands/run-commands.impl.js +4 -4
- package/src/executors/run-script/run-script.impl.js +1 -1
- package/src/generators/convert-to-nx-project/convert-to-nx-project.js +2 -2
- package/src/generators/library/library.js +2 -2
- package/src/generators/move/lib/update-cypress-json.d.ts +1 -2
- package/src/generators/move/lib/update-cypress-json.js.map +1 -1
- package/src/generators/move/lib/update-project-root-files.js +3 -3
- package/src/generators/move/lib/update-project-root-files.js.map +1 -1
- package/src/generators/move/lib/update-storybook-config.js +3 -3
- package/src/generators/move/lib/update-storybook-config.js.map +1 -1
- package/src/generators/move/move.js +1 -1
- package/src/generators/new/new.js +3 -3
- package/src/generators/npm-package/npm-package.js +1 -1
- package/src/generators/preset/preset.js +2 -2
- package/src/generators/remove/lib/check-dependencies.js +4 -4
- package/src/generators/remove/lib/check-dependencies.js.map +1 -1
- package/src/generators/remove/remove.js +1 -1
- package/src/generators/run-commands/run-commands.js +1 -1
- package/src/generators/utils/decorate-angular-cli.js__tmpl__ +1 -1
- package/src/generators/workspace/files/nx.json__tmpl__ +1 -1
- package/src/generators/workspace/workspace.js +1 -1
- package/src/generators/workspace-generator/workspace-generator.js +1 -1
- package/src/migrations/update-12-5-0/add-target-dependencies.js +1 -1
- package/src/migrations/update-13-0-0/config-locations/config-locations.js +1 -1
- package/src/migrations/update-13-0-0/set-default-base-if-not-set.js +1 -1
- 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 +16 -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.js +1 -1
- package/src/migrations/update-13-3-0/update-tsc-executor-location.js +1 -1
- package/src/tslint/nxEnforceModuleBoundariesRule.d.ts +1 -1
- package/src/tslint/nxEnforceModuleBoundariesRule.js +10 -11
- package/src/tslint/nxEnforceModuleBoundariesRule.js.map +1 -1
- package/src/utilities/assets.d.ts +0 -8
- package/src/utilities/assets.js +1 -23
- package/src/utilities/assets.js.map +1 -1
- package/src/utilities/buildable-libs-utils.d.ts +1 -0
- package/src/utilities/buildable-libs-utils.js +27 -20
- package/src/utilities/buildable-libs-utils.js.map +1 -1
- package/src/utilities/fileutils.d.ts +0 -3
- package/src/utilities/fileutils.js +1 -8
- package/src/utilities/fileutils.js.map +1 -1
- package/src/utilities/generate-globs.js +2 -2
- package/src/utilities/generate-globs.js.map +1 -1
- package/src/utilities/output.d.ts +1 -61
- package/src/utilities/output.js +2 -167
- package/src/utilities/output.js.map +1 -1
- package/src/utilities/plugins/community-plugins.js +1 -1
- package/src/utilities/plugins/plugin-capabilities.js +2 -2
- package/src/utilities/plugins/plugin-capabilities.js.map +1 -1
- package/src/utilities/prettier.js +1 -1
- package/src/utilities/run-tasks-in-serial.js +1 -1
- package/src/utilities/typescript/compilation.js +2 -2
- package/src/utilities/typescript/compilation.js.map +1 -1
- package/src/utilities/typescript.js +5 -5
- package/src/utilities/typescript.js.map +1 -1
- package/src/utils/ast-utils.d.ts +1 -2
- package/src/utils/ast-utils.js.map +1 -1
- package/src/utils/lint.js +1 -1
- package/src/utils/lint.js.map +1 -1
- package/src/utils/project-type.d.ts +1 -1
- package/src/utils/rules/format-files.js +7 -7
- package/src/utils/rules/format-files.js.map +1 -1
- package/src/utils/rules/rename-package-imports.js +1 -1
- package/src/utils/runtime-lint-utils.d.ts +2 -3
- package/src/utils/runtime-lint-utils.js +2 -2
- package/src/utils/runtime-lint-utils.js.map +1 -1
- package/src/utils/testing-utils.js +4 -4
- package/src/utils/testing-utils.js.map +1 -1
- package/src/utils/testing.js +2 -2
- package/src/utils/version-utils.js +1 -1
- package/src/utils/version-utils.js.map +1 -1
- package/src/utils/versions.js +1 -1
- package/src/utils/workspace.js +6 -6
- package/tasks-runners/default.d.ts +1 -1
- package/tasks-runners/default.js +1 -1
- package/src/command-line/affected.d.ts +0 -3
- package/src/command-line/affected.js +0 -117
- package/src/command-line/affected.js.map +0 -1
- package/src/command-line/connect-to-nx-cloud.d.ts +0 -2
- package/src/command-line/connect-to-nx-cloud.js +0 -78
- package/src/command-line/connect-to-nx-cloud.js.map +0 -1
- package/src/command-line/daemon.d.ts +0 -2
- package/src/command-line/daemon.js +0 -23
- package/src/command-line/daemon.js.map +0 -1
- package/src/command-line/dep-graph.d.ts +0 -24
- package/src/command-line/dep-graph.js +0 -370
- package/src/command-line/dep-graph.js.map +0 -1
- package/src/command-line/examples.d.ts +0 -5
- package/src/command-line/examples.js +0 -283
- package/src/command-line/examples.js.map +0 -1
- package/src/command-line/format.d.ts +0 -7
- package/src/command-line/format.js +0 -206
- package/src/command-line/format.js.map +0 -1
- package/src/command-line/lint.d.ts +0 -1
- package/src/command-line/lint.js +0 -32
- package/src/command-line/lint.js.map +0 -1
- package/src/command-line/list.d.ts +0 -13
- package/src/command-line/list.js +0 -41
- package/src/command-line/list.js.map +0 -1
- package/src/command-line/nx-commands.d.ts +0 -9
- package/src/command-line/nx-commands.js +0 -426
- package/src/command-line/nx-commands.js.map +0 -1
- package/src/command-line/print-affected.d.ts +0 -6
- package/src/command-line/print-affected.js +0 -82
- package/src/command-line/print-affected.js.map +0 -1
- package/src/command-line/report.d.ts +0 -24
- package/src/command-line/report.js +0 -135
- package/src/command-line/report.js.map +0 -1
- package/src/command-line/reset.d.ts +0 -1
- package/src/command-line/reset.js +0 -20
- package/src/command-line/reset.js.map +0 -1
- package/src/command-line/run-many.d.ts +0 -3
- package/src/command-line/run-many.js +0 -61
- package/src/command-line/run-many.js.map +0 -1
- package/src/command-line/run-one.d.ts +0 -6
- package/src/command-line/run-one.js +0 -31
- package/src/command-line/run-one.js.map +0 -1
- package/src/command-line/shared.d.ts +0 -5
- package/src/command-line/shared.js +0 -75
- package/src/command-line/shared.js.map +0 -1
- package/src/command-line/supported-nx-commands.d.ts +0 -1
- package/src/command-line/supported-nx-commands.js +0 -35
- package/src/command-line/supported-nx-commands.js.map +0 -1
- package/src/command-line/utils.d.ts +0 -40
- package/src/command-line/utils.js +0 -157
- package/src/command-line/utils.js.map +0 -1
- package/src/command-line/workspace-generators.d.ts +0 -1
- package/src/command-line/workspace-generators.js +0 -145
- package/src/command-line/workspace-generators.js.map +0 -1
- package/src/command-line/workspace-integrity-checks.d.ts +0 -11
- package/src/command-line/workspace-integrity-checks.js +0 -60
- package/src/command-line/workspace-integrity-checks.js.map +0 -1
- package/src/core/affected-project-graph/affected-project-graph-models.d.ts +0 -10
- package/src/core/affected-project-graph/affected-project-graph-models.js +0 -3
- package/src/core/affected-project-graph/affected-project-graph-models.js.map +0 -1
- package/src/core/affected-project-graph/affected-project-graph.d.ts +0 -3
- package/src/core/affected-project-graph/affected-project-graph.js +0 -88
- package/src/core/affected-project-graph/affected-project-graph.js.map +0 -1
- package/src/core/affected-project-graph/index.d.ts +0 -2
- package/src/core/affected-project-graph/index.js +0 -6
- package/src/core/affected-project-graph/index.js.map +0 -1
- package/src/core/affected-project-graph/locators/implicit-json-changes.d.ts +0 -4
- package/src/core/affected-project-graph/locators/implicit-json-changes.js +0 -54
- package/src/core/affected-project-graph/locators/implicit-json-changes.js.map +0 -1
- package/src/core/affected-project-graph/locators/npm-packages.d.ts +0 -4
- package/src/core/affected-project-graph/locators/npm-packages.js +0 -35
- package/src/core/affected-project-graph/locators/npm-packages.js.map +0 -1
- package/src/core/affected-project-graph/locators/tsconfig-json-changes.d.ts +0 -4
- package/src/core/affected-project-graph/locators/tsconfig-json-changes.js +0 -64
- package/src/core/affected-project-graph/locators/tsconfig-json-changes.js.map +0 -1
- package/src/core/affected-project-graph/locators/workspace-json-changes.d.ts +0 -4
- package/src/core/affected-project-graph/locators/workspace-json-changes.js +0 -48
- package/src/core/affected-project-graph/locators/workspace-json-changes.js.map +0 -1
- package/src/core/affected-project-graph/locators/workspace-projects.d.ts +0 -3
- package/src/core/affected-project-graph/locators/workspace-projects.js +0 -40
- package/src/core/affected-project-graph/locators/workspace-projects.js.map +0 -1
- package/src/core/assert-workspace-validity.d.ts +0 -2
- package/src/core/assert-workspace-validity.js +0 -67
- package/src/core/assert-workspace-validity.js.map +0 -1
- package/src/core/dep-graph/3rdpartylicenses.txt +0 -732
- package/src/core/dep-graph/index.html +0 -16
- package/src/core/dep-graph/main.esm.js +0 -2
- package/src/core/dep-graph/main.esm.js.LICENSE.txt +0 -39
- package/src/core/dep-graph/polyfills.esm.js +0 -1
- package/src/core/dep-graph/runtime.esm.js +0 -1
- package/src/core/dep-graph/styles.css +0 -3
- package/src/core/file-map-utils.d.ts +0 -10
- package/src/core/file-map-utils.js +0 -80
- package/src/core/file-map-utils.js.map +0 -1
- package/src/core/file-utils.d.ts +0 -32
- package/src/core/file-utils.js +0 -160
- package/src/core/file-utils.js.map +0 -1
- package/src/core/hasher/file-hasher-base.d.ts +0 -12
- package/src/core/hasher/file-hasher-base.js +0 -68
- package/src/core/hasher/file-hasher-base.js.map +0 -1
- package/src/core/hasher/file-hasher.d.ts +0 -2
- package/src/core/hasher/file-hasher.js +0 -22
- package/src/core/hasher/file-hasher.js.map +0 -1
- package/src/core/hasher/git-based-file-hasher.d.ts +0 -10
- package/src/core/hasher/git-based-file-hasher.js +0 -50
- package/src/core/hasher/git-based-file-hasher.js.map +0 -1
- package/src/core/hasher/git-hasher.d.ts +0 -7
- package/src/core/hasher/git-hasher.js +0 -134
- package/src/core/hasher/git-hasher.js.map +0 -1
- package/src/core/hasher/hasher.d.ts +0 -63
- package/src/core/hasher/hasher.js +0 -367
- package/src/core/hasher/hasher.js.map +0 -1
- package/src/core/hasher/hashing-impl.d.ts +0 -5
- package/src/core/hasher/hashing-impl.js +0 -23
- package/src/core/hasher/hashing-impl.js.map +0 -1
- package/src/core/hasher/node-based-file-hasher.d.ts +0 -7
- package/src/core/hasher/node-based-file-hasher.js +0 -78
- package/src/core/hasher/node-based-file-hasher.js.map +0 -1
- package/src/core/normalize-nx-json.d.ts +0 -8
- package/src/core/normalize-nx-json.js +0 -38
- package/src/core/normalize-nx-json.js.map +0 -1
- package/src/core/nx-deps/nx-deps-cache.d.ts +0 -39
- package/src/core/nx-deps/nx-deps-cache.js +0 -164
- package/src/core/nx-deps/nx-deps-cache.js.map +0 -1
- package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.d.ts +0 -5
- package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js +0 -19
- package/src/core/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js.map +0 -1
- package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +0 -3
- package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -73
- package/src/core/project-graph/build-dependencies/explicit-package-json-dependencies.js.map +0 -1
- package/src/core/project-graph/build-dependencies/explicit-project-dependencies.d.ts +0 -3
- package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js +0 -27
- package/src/core/project-graph/build-dependencies/explicit-project-dependencies.js.map +0 -1
- package/src/core/project-graph/build-dependencies/implicit-project-dependencies.d.ts +0 -2
- package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js +0 -20
- package/src/core/project-graph/build-dependencies/implicit-project-dependencies.js.map +0 -1
- package/src/core/project-graph/build-dependencies/index.d.ts +0 -3
- package/src/core/project-graph/build-dependencies/index.js +0 -7
- package/src/core/project-graph/build-dependencies/index.js.map +0 -1
- package/src/core/project-graph/build-dependencies/typescript-import-locator.d.ts +0 -11
- package/src/core/project-graph/build-dependencies/typescript-import-locator.js +0 -114
- package/src/core/project-graph/build-dependencies/typescript-import-locator.js.map +0 -1
- package/src/core/project-graph/build-nodes/index.d.ts +0 -2
- package/src/core/project-graph/build-nodes/index.js +0 -6
- package/src/core/project-graph/build-nodes/index.js.map +0 -1
- package/src/core/project-graph/build-nodes/npm-packages.d.ts +0 -2
- package/src/core/project-graph/build-nodes/npm-packages.js +0 -22
- package/src/core/project-graph/build-nodes/npm-packages.js.map +0 -1
- package/src/core/project-graph/build-nodes/workspace-projects.d.ts +0 -2
- package/src/core/project-graph/build-nodes/workspace-projects.js +0 -49
- package/src/core/project-graph/build-nodes/workspace-projects.js.map +0 -1
- package/src/core/project-graph/build-project-graph.d.ts +0 -7
- package/src/core/project-graph/build-project-graph.js +0 -231
- package/src/core/project-graph/build-project-graph.js.map +0 -1
- package/src/core/project-graph/daemon/cache.d.ts +0 -6
- package/src/core/project-graph/daemon/cache.js +0 -56
- package/src/core/project-graph/daemon/cache.js.map +0 -1
- package/src/core/project-graph/daemon/client/client.d.ts +0 -26
- package/src/core/project-graph/daemon/client/client.js +0 -200
- package/src/core/project-graph/daemon/client/client.js.map +0 -1
- package/src/core/project-graph/daemon/client/exec-is-server-available.d.ts +0 -1
- package/src/core/project-graph/daemon/client/exec-is-server-available.js +0 -13
- package/src/core/project-graph/daemon/client/exec-is-server-available.js.map +0 -1
- package/src/core/project-graph/daemon/client/generate-help-output.d.ts +0 -1
- package/src/core/project-graph/daemon/client/generate-help-output.js +0 -31
- package/src/core/project-graph/daemon/client/generate-help-output.js.map +0 -1
- package/src/core/project-graph/daemon/server/logger.d.ts +0 -18
- package/src/core/project-graph/daemon/server/logger.js +0 -38
- package/src/core/project-graph/daemon/server/logger.js.map +0 -1
- package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.d.ts +0 -8
- package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js +0 -191
- package/src/core/project-graph/daemon/server/project-graph-incremental-recomputation.js.map +0 -1
- package/src/core/project-graph/daemon/server/server.d.ts +0 -4
- package/src/core/project-graph/daemon/server/server.js +0 -236
- package/src/core/project-graph/daemon/server/server.js.map +0 -1
- package/src/core/project-graph/daemon/server/shutdown-utils.d.ts +0 -12
- package/src/core/project-graph/daemon/server/shutdown-utils.js +0 -32
- package/src/core/project-graph/daemon/server/shutdown-utils.js.map +0 -1
- package/src/core/project-graph/daemon/server/start.d.ts +0 -1
- package/src/core/project-graph/daemon/server/start.js +0 -19
- package/src/core/project-graph/daemon/server/start.js.map +0 -1
- package/src/core/project-graph/daemon/server/stop.d.ts +0 -1
- package/src/core/project-graph/daemon/server/stop.js +0 -19
- package/src/core/project-graph/daemon/server/stop.js.map +0 -1
- package/src/core/project-graph/daemon/server/watcher.d.ts +0 -12
- package/src/core/project-graph/daemon/server/watcher.js +0 -158
- package/src/core/project-graph/daemon/server/watcher.js.map +0 -1
- package/src/core/project-graph/daemon/socket-utils.d.ts +0 -15
- package/src/core/project-graph/daemon/socket-utils.js +0 -38
- package/src/core/project-graph/daemon/socket-utils.js.map +0 -1
- package/src/core/project-graph/daemon/tmp-dir.d.ts +0 -6
- package/src/core/project-graph/daemon/tmp-dir.js +0 -37
- package/src/core/project-graph/daemon/tmp-dir.js.map +0 -1
- package/src/core/project-graph/index.d.ts +0 -3
- package/src/core/project-graph/index.js +0 -10
- package/src/core/project-graph/index.js.map +0 -1
- package/src/core/project-graph/operators.d.ts +0 -14
- package/src/core/project-graph/operators.js +0 -119
- package/src/core/project-graph/operators.js.map +0 -1
- package/src/core/project-graph/project-graph-models.d.ts +0 -8
- package/src/core/project-graph/project-graph-models.js +0 -12
- package/src/core/project-graph/project-graph-models.js.map +0 -1
- package/src/core/project-graph/project-graph-worker.d.ts +0 -1
- package/src/core/project-graph/project-graph-worker.js +0 -19
- package/src/core/project-graph/project-graph-worker.js.map +0 -1
- package/src/core/project-graph/project-graph.d.ts +0 -16
- package/src/core/project-graph/project-graph.js +0 -167
- package/src/core/project-graph/project-graph.js.map +0 -1
- package/src/core/shared-interfaces.d.ts +0 -11
- package/src/core/shared-interfaces.js +0 -3
- package/src/core/shared-interfaces.js.map +0 -1
- package/src/core/target-project-locator.d.ts +0 -36
- package/src/core/target-project-locator.js +0 -164
- package/src/core/target-project-locator.js.map +0 -1
- package/src/init/init.d.ts +0 -1
- package/src/init/init.js +0 -13
- package/src/init/init.js.map +0 -1
- package/src/tasks-runner/batch/batch-messages.d.ts +0 -24
- package/src/tasks-runner/batch/batch-messages.js +0 -9
- package/src/tasks-runner/batch/batch-messages.js.map +0 -1
- package/src/tasks-runner/batch/run-batch.d.ts +0 -1
- package/src/tasks-runner/batch/run-batch.js +0 -57
- package/src/tasks-runner/batch/run-batch.js.map +0 -1
- package/src/tasks-runner/cache.d.ts +0 -40
- package/src/tasks-runner/cache.js +0 -284
- package/src/tasks-runner/cache.js.map +0 -1
- package/src/tasks-runner/default-reporter.d.ts +0 -11
- package/src/tasks-runner/default-reporter.js +0 -79
- package/src/tasks-runner/default-reporter.js.map +0 -1
- package/src/tasks-runner/default-tasks-runner.d.ts +0 -19
- package/src/tasks-runner/default-tasks-runner.js +0 -48
- package/src/tasks-runner/default-tasks-runner.js.map +0 -1
- package/src/tasks-runner/empty-reporter.d.ts +0 -10
- package/src/tasks-runner/empty-reporter.js +0 -13
- package/src/tasks-runner/empty-reporter.js.map +0 -1
- package/src/tasks-runner/forked-process-task-runner.d.ts +0 -36
- package/src/tasks-runner/forked-process-task-runner.js +0 -257
- package/src/tasks-runner/forked-process-task-runner.js.map +0 -1
- package/src/tasks-runner/life-cycle.d.ts +0 -43
- package/src/tasks-runner/life-cycle.js +0 -72
- package/src/tasks-runner/life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -25
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -349
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +0 -25
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -231
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +0 -6
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -19
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/pretty-time.d.ts +0 -4
- package/src/tasks-runner/life-cycles/pretty-time.js +0 -75
- package/src/tasks-runner/life-cycles/pretty-time.js.map +0 -1
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +0 -33
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -110
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -31
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -97
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +0 -19
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -67
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +0 -13
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -33
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js.map +0 -1
- package/src/tasks-runner/remove-old-cache-records.d.ts +0 -1
- package/src/tasks-runner/remove-old-cache-records.js +0 -62
- package/src/tasks-runner/remove-old-cache-records.js.map +0 -1
- package/src/tasks-runner/reporter.d.ts +0 -14
- package/src/tasks-runner/reporter.js +0 -11
- package/src/tasks-runner/reporter.js.map +0 -1
- package/src/tasks-runner/run-command.d.ts +0 -19
- package/src/tasks-runner/run-command.js +0 -353
- package/src/tasks-runner/run-command.js.map +0 -1
- package/src/tasks-runner/run-one-reporter.d.ts +0 -12
- package/src/tasks-runner/run-one-reporter.js +0 -68
- package/src/tasks-runner/run-one-reporter.js.map +0 -1
- package/src/tasks-runner/task-graph-creator.d.ts +0 -11
- package/src/tasks-runner/task-graph-creator.js +0 -71
- package/src/tasks-runner/task-graph-creator.js.map +0 -1
- package/src/tasks-runner/task-orchestrator.d.ts +0 -37
- package/src/tasks-runner/task-orchestrator.js +0 -299
- package/src/tasks-runner/task-orchestrator.js.map +0 -1
- package/src/tasks-runner/tasks-runner-v2.d.ts +0 -18
- package/src/tasks-runner/tasks-runner-v2.js +0 -42
- package/src/tasks-runner/tasks-runner-v2.js.map +0 -1
- package/src/tasks-runner/tasks-runner.d.ts +0 -44
- package/src/tasks-runner/tasks-runner.js +0 -15
- package/src/tasks-runner/tasks-runner.js.map +0 -1
- package/src/tasks-runner/tasks-schedule.d.ts +0 -32
- package/src/tasks-runner/tasks-schedule.js +0 -130
- package/src/tasks-runner/tasks-schedule.js.map +0 -1
- package/src/tasks-runner/utils.d.ts +0 -25
- package/src/tasks-runner/utils.js +0 -217
- package/src/tasks-runner/utils.js.map +0 -1
- package/src/utilities/array.d.ts +0 -17
- package/src/utilities/array.js +0 -26
- package/src/utilities/array.js.map +0 -1
- package/src/utilities/cache-directory.d.ts +0 -1
- package/src/utilities/cache-directory.js +0 -34
- package/src/utilities/cache-directory.js.map +0 -1
- package/src/utilities/is_ci.d.ts +0 -1
- package/src/utilities/is_ci.js +0 -21
- package/src/utilities/is_ci.js.map +0 -1
- package/src/utilities/json-diff.d.ts +0 -17
- package/src/utilities/json-diff.js +0 -112
- package/src/utilities/json-diff.js.map +0 -1
- package/src/utilities/perf-logging.d.ts +0 -1
- package/src/utilities/perf-logging.js +0 -12
- package/src/utilities/perf-logging.js.map +0 -1
- package/src/utilities/project-graph-utils.d.ts +0 -11
- package/src/utilities/project-graph-utils.js +0 -95
- package/src/utilities/project-graph-utils.js.map +0 -1
- package/src/utilities/strip-source-code.d.ts +0 -2
- package/src/utilities/strip-source-code.js +0 -85
- package/src/utilities/strip-source-code.js.map +0 -1
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { Task } from '@nrwl/devkit';
|
2
|
-
import type { LifeCycle } from '../life-cycle';
|
3
|
-
import { TaskStatus } from '@nrwl/workspace/src/tasks-runner/tasks-runner';
|
4
|
-
export declare class EmptyTerminalOutputLifeCycle implements LifeCycle {
|
5
|
-
printTaskTerminalOutput(task: Task, cacheStatus: TaskStatus, terminalOutput: string): void;
|
6
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmptyTerminalOutputLifeCycle = void 0;
|
4
|
-
const output_1 = require("../../utilities/output");
|
5
|
-
const utils_1 = require("../utils");
|
6
|
-
class EmptyTerminalOutputLifeCycle {
|
7
|
-
printTaskTerminalOutput(task, cacheStatus, terminalOutput) {
|
8
|
-
if (cacheStatus === 'success' ||
|
9
|
-
cacheStatus === 'failure' ||
|
10
|
-
cacheStatus === 'skipped') {
|
11
|
-
const args = (0, utils_1.getCommandArgsForTask)(task);
|
12
|
-
output_1.output.logCommand(args.join(' '), cacheStatus);
|
13
|
-
output_1.output.addNewline();
|
14
|
-
process.stdout.write(terminalOutput);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
exports.EmptyTerminalOutputLifeCycle = EmptyTerminalOutputLifeCycle;
|
19
|
-
//# sourceMappingURL=empty-terminal-output-life-cycle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"empty-terminal-output-life-cycle.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.ts"],"names":[],"mappings":";;;AACA,mDAAgD;AAChD,oCAAiD;AAIjD,MAAa,4BAA4B;IACvC,uBAAuB,CACrB,IAAU,EACV,WAAuB,EACvB,cAAsB;QAEtB,IACE,WAAW,KAAK,SAAS;YACzB,WAAW,KAAK,SAAS;YACzB,WAAW,KAAK,SAAS,EACzB;YACA,MAAM,IAAI,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAC;YACzC,eAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;YAC/C,eAAM,CAAC,UAAU,EAAE,CAAC;YACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;SACtC;IACH,CAAC;CACF;AAjBD,oEAiBC"}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* All credit to https://github.com/jonschlinkert/pretty-time
|
4
|
-
*/
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.prettyTime = void 0;
|
7
|
-
const nano = (time) => +time[0] * 1e9 + +time[1];
|
8
|
-
const scale = {
|
9
|
-
w: 6048e11,
|
10
|
-
d: 864e11,
|
11
|
-
h: 36e11,
|
12
|
-
m: 6e10,
|
13
|
-
s: 1e9,
|
14
|
-
ms: 1e6,
|
15
|
-
μs: 1e3,
|
16
|
-
ns: 1,
|
17
|
-
};
|
18
|
-
const regex = {
|
19
|
-
w: /^(w((ee)?k)?s?)$/,
|
20
|
-
d: /^(d(ay)?s?)$/,
|
21
|
-
h: /^(h((ou)?r)?s?)$/,
|
22
|
-
m: /^(min(ute)?s?|m)$/,
|
23
|
-
s: /^((sec(ond)?)s?|s)$/,
|
24
|
-
ms: /^(milli(second)?s?|ms)$/,
|
25
|
-
μs: /^(micro(second)?s?|μs)$/,
|
26
|
-
ns: /^(nano(second)?s?|ns?)$/,
|
27
|
-
};
|
28
|
-
const isSmallest = function (uom, unit) {
|
29
|
-
return regex[uom].test(unit);
|
30
|
-
};
|
31
|
-
const round = function (num, digits) {
|
32
|
-
const n = Math.abs(num);
|
33
|
-
return /[0-9]/.test(digits) ? Number(n.toFixed(digits)) : Math.round(n);
|
34
|
-
};
|
35
|
-
function prettyTime(time, smallest, digits) {
|
36
|
-
const isNumber = /^[0-9]+$/.test(time);
|
37
|
-
if (!isNumber && !Array.isArray(time)) {
|
38
|
-
throw new TypeError('expected an array or number in nanoseconds');
|
39
|
-
}
|
40
|
-
if (Array.isArray(time) && time.length !== 2) {
|
41
|
-
throw new TypeError('expected an array from process.hrtime()');
|
42
|
-
}
|
43
|
-
if (/^[0-9]+$/.test(smallest)) {
|
44
|
-
digits = smallest;
|
45
|
-
smallest = null;
|
46
|
-
}
|
47
|
-
let num = isNumber ? time : nano(time);
|
48
|
-
let res = '';
|
49
|
-
let prev;
|
50
|
-
for (const uom of Object.keys(scale)) {
|
51
|
-
const step = scale[uom];
|
52
|
-
let inc = num / step;
|
53
|
-
if (smallest && isSmallest(uom, smallest)) {
|
54
|
-
inc = round(inc, digits);
|
55
|
-
if (prev && inc === prev / step)
|
56
|
-
--inc;
|
57
|
-
res += inc + uom;
|
58
|
-
return res.trim();
|
59
|
-
}
|
60
|
-
if (inc < 1)
|
61
|
-
continue;
|
62
|
-
if (!smallest) {
|
63
|
-
inc = round(inc, digits);
|
64
|
-
res += inc + uom;
|
65
|
-
return res;
|
66
|
-
}
|
67
|
-
prev = step;
|
68
|
-
inc = Math.floor(inc);
|
69
|
-
num -= inc * step;
|
70
|
-
res += inc + uom + ' ';
|
71
|
-
}
|
72
|
-
return res.trim();
|
73
|
-
}
|
74
|
-
exports.prettyTime = prettyTime;
|
75
|
-
//# sourceMappingURL=pretty-time.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pretty-time.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/pretty-time.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEjD,MAAM,KAAK,GAAG;IACZ,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G,CAAC,IAAI,EAAE,CAAC;AACpB,CAAC;AA5CD,gCA4CC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import type { Task } from '@nrwl/devkit';
|
2
|
-
import { TaskStatus } from '../tasks-runner';
|
3
|
-
import type { LifeCycle } from '../life-cycle';
|
4
|
-
/**
|
5
|
-
* The following life cycle's outputs are static, meaning no previous content
|
6
|
-
* is rewritten or modified as new outputs are added. It is therefore intended
|
7
|
-
* for use in CI environments.
|
8
|
-
*
|
9
|
-
* For the common case of a user executing a command on their local machine,
|
10
|
-
* the dynamic equivalent of this life cycle is usually preferable.
|
11
|
-
*/
|
12
|
-
export declare class StaticRunManyTerminalOutputLifeCycle implements LifeCycle {
|
13
|
-
private readonly projectNames;
|
14
|
-
private readonly tasks;
|
15
|
-
private readonly args;
|
16
|
-
private readonly taskOverrides;
|
17
|
-
failedTasks: Task[];
|
18
|
-
cachedTasks: Task[];
|
19
|
-
allCompletedTasks: Set<Task>;
|
20
|
-
constructor(projectNames: string[], tasks: Task[], args: {
|
21
|
-
target?: string;
|
22
|
-
configuration?: string;
|
23
|
-
}, taskOverrides: any);
|
24
|
-
startCommand(): void;
|
25
|
-
endCommand(): void;
|
26
|
-
private skippedTasks;
|
27
|
-
endTasks(taskResults: {
|
28
|
-
task: Task;
|
29
|
-
status: TaskStatus;
|
30
|
-
code: number;
|
31
|
-
}[]): void;
|
32
|
-
printTaskTerminalOutput(task: Task, cacheStatus: TaskStatus, terminalOutput: string): void;
|
33
|
-
}
|
@@ -1,110 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StaticRunManyTerminalOutputLifeCycle = void 0;
|
4
|
-
const output_1 = require("../../utilities/output");
|
5
|
-
const utils_1 = require("../utils");
|
6
|
-
/**
|
7
|
-
* The following life cycle's outputs are static, meaning no previous content
|
8
|
-
* is rewritten or modified as new outputs are added. It is therefore intended
|
9
|
-
* for use in CI environments.
|
10
|
-
*
|
11
|
-
* For the common case of a user executing a command on their local machine,
|
12
|
-
* the dynamic equivalent of this life cycle is usually preferable.
|
13
|
-
*/
|
14
|
-
class StaticRunManyTerminalOutputLifeCycle {
|
15
|
-
constructor(projectNames, tasks, args, taskOverrides) {
|
16
|
-
this.projectNames = projectNames;
|
17
|
-
this.tasks = tasks;
|
18
|
-
this.args = args;
|
19
|
-
this.taskOverrides = taskOverrides;
|
20
|
-
this.failedTasks = [];
|
21
|
-
this.cachedTasks = [];
|
22
|
-
this.allCompletedTasks = new Set();
|
23
|
-
}
|
24
|
-
startCommand() {
|
25
|
-
if (this.projectNames.length <= 0) {
|
26
|
-
let description = `with "${this.args.target}"`;
|
27
|
-
if (this.args.configuration) {
|
28
|
-
description += ` that are configured for "${this.args.configuration}"`;
|
29
|
-
}
|
30
|
-
output_1.output.logSingleLine(`No projects ${description} were run`);
|
31
|
-
return;
|
32
|
-
}
|
33
|
-
const bodyLines = this.projectNames.map((affectedProject) => ` ${output_1.output.dim('-')} ${affectedProject}`);
|
34
|
-
if (Object.keys(this.taskOverrides).length > 0) {
|
35
|
-
bodyLines.push('');
|
36
|
-
bodyLines.push(`${output_1.output.dim('With flags:')}`);
|
37
|
-
Object.entries(this.taskOverrides)
|
38
|
-
.map(([flag, value]) => ` --${flag}=${value}`)
|
39
|
-
.forEach((arg) => bodyLines.push(arg));
|
40
|
-
}
|
41
|
-
let title = `Running target ${output_1.output.bold(this.args.target)} for ${output_1.output.bold(this.projectNames.length)} project(s)`;
|
42
|
-
const dependentTasksCount = this.tasks.length - this.projectNames.length;
|
43
|
-
if (dependentTasksCount > 0) {
|
44
|
-
title += ` and ${output_1.output.bold(dependentTasksCount)} task(s) they depend on`;
|
45
|
-
}
|
46
|
-
title += ':';
|
47
|
-
output_1.output.log({
|
48
|
-
color: 'cyan',
|
49
|
-
title,
|
50
|
-
bodyLines,
|
51
|
-
});
|
52
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('cyan');
|
53
|
-
}
|
54
|
-
endCommand() {
|
55
|
-
output_1.output.addNewline();
|
56
|
-
if (this.failedTasks.length === 0) {
|
57
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('green');
|
58
|
-
const bodyLines = this.cachedTasks.length > 0
|
59
|
-
? [
|
60
|
-
output_1.output.dim(`Nx read the output from the cache instead of running the command for ${this.cachedTasks.length} out of ${this.tasks.length} tasks.`),
|
61
|
-
]
|
62
|
-
: [];
|
63
|
-
output_1.output.success({
|
64
|
-
title: `Successfully ran target ${output_1.output.bold(this.args.target)} for ${output_1.output.bold(this.projectNames.length)} projects`,
|
65
|
-
bodyLines,
|
66
|
-
});
|
67
|
-
}
|
68
|
-
else {
|
69
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('red');
|
70
|
-
const bodyLines = [];
|
71
|
-
const skippedTasks = this.skippedTasks();
|
72
|
-
if (skippedTasks.length > 0) {
|
73
|
-
bodyLines.push(output_1.output.dim('Tasks not run because their dependencies failed:'), '', ...skippedTasks.map((task) => `${output_1.output.dim('-')} ${task.id}`), '');
|
74
|
-
}
|
75
|
-
bodyLines.push(output_1.output.dim('Failed tasks:'), '', ...[...this.failedTasks.values()].map((task) => `${output_1.output.dim('-')} ${task.id}`));
|
76
|
-
output_1.output.error({
|
77
|
-
title: `Running target "${this.args.target}" failed`,
|
78
|
-
bodyLines,
|
79
|
-
});
|
80
|
-
}
|
81
|
-
}
|
82
|
-
skippedTasks() {
|
83
|
-
return this.tasks.filter((t) => !this.allCompletedTasks.has(t));
|
84
|
-
}
|
85
|
-
endTasks(taskResults) {
|
86
|
-
for (let t of taskResults) {
|
87
|
-
this.allCompletedTasks.add(t.task);
|
88
|
-
if (t.status === 'failure') {
|
89
|
-
this.failedTasks.push(t.task);
|
90
|
-
}
|
91
|
-
else if (t.status === 'local-cache') {
|
92
|
-
this.cachedTasks.push(t.task);
|
93
|
-
}
|
94
|
-
else if (t.status === 'local-cache-kept-existing') {
|
95
|
-
this.cachedTasks.push(t.task);
|
96
|
-
}
|
97
|
-
else if (t.status === 'remote-cache') {
|
98
|
-
this.cachedTasks.push(t.task);
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
102
|
-
printTaskTerminalOutput(task, cacheStatus, terminalOutput) {
|
103
|
-
const args = (0, utils_1.getCommandArgsForTask)(task);
|
104
|
-
output_1.output.logCommand(args.join(' '), cacheStatus);
|
105
|
-
output_1.output.addNewline();
|
106
|
-
process.stdout.write(terminalOutput);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
exports.StaticRunManyTerminalOutputLifeCycle = StaticRunManyTerminalOutputLifeCycle;
|
110
|
-
//# sourceMappingURL=static-run-many-terminal-output-life-cycle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"static-run-many-terminal-output-life-cycle.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.ts"],"names":[],"mappings":";;;AACA,mDAAgD;AAEhD,oCAAiD;AAGjD;;;;;;;GAOG;AACH,MAAa,oCAAoC;IAK/C,YACmB,YAAsB,EACtB,KAAa,EACb,IAGhB,EACgB,aAAkB;QANlB,iBAAY,GAAZ,YAAY,CAAU;QACtB,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAGpB;QACgB,kBAAa,GAAb,aAAa,CAAK;QAXrC,gBAAW,GAAG,EAAY,CAAC;QAC3B,gBAAW,GAAG,EAAY,CAAC;QAC3B,sBAAiB,GAAG,IAAI,GAAG,EAAQ,CAAC;IAUjC,CAAC;IAEJ,YAAY;QACV,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,IAAI,CAAC,EAAE;YACjC,IAAI,WAAW,GAAG,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;YAC/C,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;gBAC3B,WAAW,IAAI,6BAA6B,IAAI,CAAC,IAAI,CAAC,aAAa,GAAG,CAAC;aACxE;YACD,eAAM,CAAC,aAA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B,MAAM,IAAI,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAC;QACzC,eAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;QAC/C,eAAM,CAAC,UAAU,EAAE,CAAC;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC;CACF;AAvID,oFAuIC"}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import type { Task } from '@nrwl/devkit';
|
2
|
-
import { TaskStatus } from '../tasks-runner';
|
3
|
-
import type { LifeCycle } from '../life-cycle';
|
4
|
-
/**
|
5
|
-
* The following life cycle's outputs are static, meaning no previous content
|
6
|
-
* is rewritten or modified as new outputs are added. It is therefore intended
|
7
|
-
* for use in CI environments.
|
8
|
-
*
|
9
|
-
* For the common case of a user executing a command on their local machine,
|
10
|
-
* the dynamic equivalent of this life cycle is usually preferable.
|
11
|
-
*/
|
12
|
-
export declare class StaticRunOneTerminalOutputLifeCycle implements LifeCycle {
|
13
|
-
private readonly initiatingProject;
|
14
|
-
private readonly projectNames;
|
15
|
-
private readonly tasks;
|
16
|
-
private readonly args;
|
17
|
-
failedTasks: Task[];
|
18
|
-
cachedTasks: Task[];
|
19
|
-
constructor(initiatingProject: string, projectNames: string[], tasks: Task[], args: {
|
20
|
-
target?: string;
|
21
|
-
configuration?: string;
|
22
|
-
});
|
23
|
-
startCommand(): void;
|
24
|
-
endCommand(): void;
|
25
|
-
endTasks(taskResults: {
|
26
|
-
task: Task;
|
27
|
-
status: TaskStatus;
|
28
|
-
code: number;
|
29
|
-
}[]): void;
|
30
|
-
printTaskTerminalOutput(task: Task, status: TaskStatus, terminalOutput: string): void;
|
31
|
-
}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StaticRunOneTerminalOutputLifeCycle = void 0;
|
4
|
-
const output_1 = require("../../utilities/output");
|
5
|
-
const utils_1 = require("../utils");
|
6
|
-
/**
|
7
|
-
* The following life cycle's outputs are static, meaning no previous content
|
8
|
-
* is rewritten or modified as new outputs are added. It is therefore intended
|
9
|
-
* for use in CI environments.
|
10
|
-
*
|
11
|
-
* For the common case of a user executing a command on their local machine,
|
12
|
-
* the dynamic equivalent of this life cycle is usually preferable.
|
13
|
-
*/
|
14
|
-
class StaticRunOneTerminalOutputLifeCycle {
|
15
|
-
constructor(initiatingProject, projectNames, tasks, args) {
|
16
|
-
this.initiatingProject = initiatingProject;
|
17
|
-
this.projectNames = projectNames;
|
18
|
-
this.tasks = tasks;
|
19
|
-
this.args = args;
|
20
|
-
this.failedTasks = [];
|
21
|
-
this.cachedTasks = [];
|
22
|
-
}
|
23
|
-
startCommand() {
|
24
|
-
if (process.env.NX_INVOKED_BY_RUNNER) {
|
25
|
-
return;
|
26
|
-
}
|
27
|
-
const numberOfDeps = this.tasks.length - 1;
|
28
|
-
if (numberOfDeps > 0) {
|
29
|
-
output_1.output.log({
|
30
|
-
color: 'cyan',
|
31
|
-
title: `Running target ${output_1.output.bold(this.args.target)} for project ${output_1.output.bold(this.initiatingProject)} and ${output_1.output.bold(numberOfDeps)} task(s) it depends on`,
|
32
|
-
});
|
33
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('cyan');
|
34
|
-
}
|
35
|
-
}
|
36
|
-
endCommand() {
|
37
|
-
// Silent for a single task
|
38
|
-
if (process.env.NX_INVOKED_BY_RUNNER) {
|
39
|
-
return;
|
40
|
-
}
|
41
|
-
output_1.output.addNewline();
|
42
|
-
if (this.failedTasks.length === 0) {
|
43
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('green');
|
44
|
-
const bodyLines = this.cachedTasks.length > 0
|
45
|
-
? [
|
46
|
-
output_1.output.dim(`Nx read the output from the cache instead of running the command for ${this.cachedTasks.length} out of ${this.tasks.length} tasks.`),
|
47
|
-
]
|
48
|
-
: [];
|
49
|
-
output_1.output.success({
|
50
|
-
title: `Successfully ran target ${output_1.output.bold(this.args.target)} for project ${output_1.output.bold(this.initiatingProject)}`,
|
51
|
-
bodyLines,
|
52
|
-
});
|
53
|
-
}
|
54
|
-
else {
|
55
|
-
output_1.output.addVerticalSeparatorWithoutNewLines('red');
|
56
|
-
const bodyLines = [
|
57
|
-
output_1.output.dim('Failed tasks:'),
|
58
|
-
'',
|
59
|
-
...this.failedTasks.map((task) => `${output_1.output.dim('-')} ${task.id}`),
|
60
|
-
'',
|
61
|
-
`${output_1.output.dim('Hint: run the command with')} --verbose ${output_1.output.dim('for more details.')}`,
|
62
|
-
];
|
63
|
-
output_1.output.error({
|
64
|
-
title: `Running target "${this.initiatingProject}:${this.args.target}" failed`,
|
65
|
-
bodyLines,
|
66
|
-
});
|
67
|
-
}
|
68
|
-
}
|
69
|
-
endTasks(taskResults) {
|
70
|
-
for (let t of taskResults) {
|
71
|
-
if (t.status === 'failure') {
|
72
|
-
this.failedTasks.push(t.task);
|
73
|
-
}
|
74
|
-
else if (t.status === 'local-cache') {
|
75
|
-
this.cachedTasks.push(t.task);
|
76
|
-
}
|
77
|
-
else if (t.status === 'local-cache-kept-existing') {
|
78
|
-
this.cachedTasks.push(t.task);
|
79
|
-
}
|
80
|
-
else if (t.status === 'remote-cache') {
|
81
|
-
this.cachedTasks.push(t.task);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
printTaskTerminalOutput(task, status, terminalOutput) {
|
86
|
-
if (status === 'success' ||
|
87
|
-
status === 'failure' ||
|
88
|
-
task.target.project === this.initiatingProject) {
|
89
|
-
const args = (0, utils_1.getCommandArgsForTask)(task);
|
90
|
-
output_1.output.logCommand(args.join(' '), status);
|
91
|
-
output_1.output.addNewline();
|
92
|
-
process.stdout.write(terminalOutput);
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
exports.StaticRunOneTerminalOutputLifeCycle = StaticRunOneTerminalOutputLifeCycle;
|
97
|
-
//# sourceMappingURL=static-run-one-terminal-output-life-cycle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"static-run-one-terminal-output-life-cycle.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.ts"],"names":[],"mappings":";;;AACA,mDAAgD;AAEhD,oCAAiD;AAGjD;;;;;;;GAOG;AACH,MAAa,mCAAmC;IAI9C,YACmB,iBAAyB,EACzB,YAAsB,EACtB,KAAa,EACb,IAGhB;QANgB,sBAAiB,GAAjB,iBAAiB,CAAQ;QACzB,iBAAY,GAAZ,YAAY,CAAU;QACtB,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAGpB;QAVH,gBAAW,GAAG,EAAY,CAAC;QAC3B,gBAAW,GAAG,EAAY,CAAC;IAUxB,CAAC;IAEJ,YAAY;QACV,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;YACpC,OAAO;SACR;QACD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAE3C,IAAI,YAAY,GAAG,CAAC,EAAE;YACpB,eAAM,CAAC,GAAG,CAAC;gBACT,KAAK,EAAE,MAAM;gBACb,KAAK,EAAE,kBAAkB,eAAM,CAAC,IAAI,CAClC,IAAI,CAAC,IAAI,CAAC,MAAM,CACjB,gBAAgB,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,eAAM,CAAC,IAAI,CACrE,YAAY,CACb,wBAAwB;aAC1B,CAAC,CAAC;YACH,eAAM,CAAC,mCAAmC,CAAC,MAAM,CAAC,CAAC;SACpD;IACH,CAAC;IAED,UAAU;QACR,2BAA2B;QAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;YACpC,OAAO;SACR;QACD,eAAM,CAAC,UAAU,EAAE,CAAC;QAEpB,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC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AAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAC/B;iBAAM,IAAI,CAAC,CAAC,MAAM,KAAK,aAAa,EAAE;gBACrC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAC/B;iBAAM,IAAI,CAAC,CAAC,MAAM,KAAK,2BAA2B,EAAE;gBACnD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAC/B;iBAAM,IAAI,CAAC,CAAC,MAAM,KAAK,cAAc,EAAE;gBACtC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAC/B;SACF;IACH,CAAC;IAED,uBAAuB,CACrB,IAAU,EACV,MAAkB,EAClB,cAAsB;QAEtB,IACE,MAAM,KAAK,SAAS;YACpB,MAAM,KAAK,SAAS;YACpB,IAAI,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI,CAAC,iBAAiB,EAC9C;YACA,MAAM,IAAI,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAC;YACzC,eAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;YAC1C,eAAM,CAAC,UAAU,EAAE,CAAC;YACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;SACtC;IACH,CAAC;CACF;AA7GD,kFA6GC"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { LifeCycle, TaskMetadata } from '../life-cycle';
|
2
|
-
import { Task } from '@nrwl/devkit';
|
3
|
-
import { TaskStatus } from '../tasks-runner';
|
4
|
-
export declare class TaskProfilingLifeCycle implements LifeCycle {
|
5
|
-
private timings;
|
6
|
-
private profile;
|
7
|
-
private readonly profileFile;
|
8
|
-
private registeredGroups;
|
9
|
-
constructor(_profileFile: string);
|
10
|
-
startTasks(tasks: Task[], { groupId }: TaskMetadata): void;
|
11
|
-
endTasks(taskResults: Array<{
|
12
|
-
task: Task;
|
13
|
-
status: TaskStatus;
|
14
|
-
code: number;
|
15
|
-
}>, metadata: TaskMetadata): void;
|
16
|
-
endCommand(): void;
|
17
|
-
private recordTaskCompletions;
|
18
|
-
private registerGroup;
|
19
|
-
}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TaskProfilingLifeCycle = void 0;
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
5
|
-
const perf_hooks_1 = require("perf_hooks");
|
6
|
-
const path_1 = require("path");
|
7
|
-
class TaskProfilingLifeCycle {
|
8
|
-
constructor(_profileFile) {
|
9
|
-
this.timings = {};
|
10
|
-
this.profile = [];
|
11
|
-
this.registeredGroups = new Set();
|
12
|
-
this.profileFile = (0, path_1.join)(process.cwd(), _profileFile);
|
13
|
-
}
|
14
|
-
startTasks(tasks, { groupId }) {
|
15
|
-
if (this.profileFile && !this.registeredGroups.has(groupId)) {
|
16
|
-
this.registerGroup(groupId);
|
17
|
-
}
|
18
|
-
for (let t of tasks) {
|
19
|
-
this.timings[`${t.target.project}:${t.target.target}`] = {
|
20
|
-
perfStart: perf_hooks_1.performance.now(),
|
21
|
-
};
|
22
|
-
}
|
23
|
-
}
|
24
|
-
endTasks(taskResults, metadata) {
|
25
|
-
for (let tr of taskResults) {
|
26
|
-
this.timings[`${tr.task.target.project}:${tr.task.target.target}`].perfEnd = perf_hooks_1.performance.now();
|
27
|
-
}
|
28
|
-
this.recordTaskCompletions(taskResults, metadata);
|
29
|
-
}
|
30
|
-
endCommand() {
|
31
|
-
(0, devkit_1.writeJsonFile)(this.profileFile, this.profile);
|
32
|
-
console.log(`Performance Profile: ${this.profileFile}`);
|
33
|
-
}
|
34
|
-
recordTaskCompletions(tasks, { groupId }) {
|
35
|
-
for (const { task, status } of tasks) {
|
36
|
-
const { perfStart, perfEnd } = this.timings[`${task.target.project}:${task.target.target}`];
|
37
|
-
this.profile.push({
|
38
|
-
name: task.id,
|
39
|
-
cat: Object.values(task.target).join(','),
|
40
|
-
ph: 'X',
|
41
|
-
ts: perfStart * 1000,
|
42
|
-
dur: (perfEnd - perfStart) * 1000,
|
43
|
-
pid: process.pid,
|
44
|
-
tid: groupId,
|
45
|
-
args: {
|
46
|
-
target: task.target,
|
47
|
-
status,
|
48
|
-
},
|
49
|
-
});
|
50
|
-
}
|
51
|
-
}
|
52
|
-
registerGroup(groupId) {
|
53
|
-
this.profile.push({
|
54
|
-
name: 'thread_name',
|
55
|
-
ph: 'M',
|
56
|
-
pid: process.pid,
|
57
|
-
tid: groupId,
|
58
|
-
ts: 0,
|
59
|
-
args: {
|
60
|
-
name: 'Group #' + (groupId + 1),
|
61
|
-
},
|
62
|
-
});
|
63
|
-
this.registeredGroups.add(groupId);
|
64
|
-
}
|
65
|
-
}
|
66
|
-
exports.TaskProfilingLifeCycle = TaskProfilingLifeCycle;
|
67
|
-
//# sourceMappingURL=task-profiling-life-cycle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"task-profiling-life-cycle.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/task-profiling-life-cycle.ts"],"names":[],"mappings":";;;AACA,yCAAmD;AAGnD,2CAAyC;AACzC,+BAA4B;AAE5B,MAAa,sBAAsB;IAWjC,YAAY,YAAoB;QAVxB,YAAO,GAKX,EAAE,CAAC;QACC,YAAO,GAAG,EAAE,CAAC;QAEb,qBAAgB,GAAG,IAAI,GAAG,EAAE,CAAC;QAGnC,IAAI,CAAC,WAAW,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;IACvD,CAAC;IAED,UAAU,CAAC,KAAa,EAAE,EAAE,OAAO,EAAgB;QACjD,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,C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CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;gBACzC,EAAE,EAAE,GAAG;gBACP,EAAE,EAAE,SAAS,GAAG,IAAI;gBACpB,GAAG,EAAE,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,IAAI;gBACjC,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,GAAG,EAAE,OAAO;gBACZ,IAAI,EAAE;oBACJ,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,MAAM;iBACP;aACF,CAAC,CAAC;SACJ;IACH,CAAC;IAEO,aAAa,CAAC,OAAe;QACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,aAAa;YACnB,EAAE,EAAE,GAAG;YACP,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,GAAG,EAAE,OAAO;YACZ,EAAE,EAAE,CAAC;YACL,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC;aAChC;SACF,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF;AA/ED,wDA+EC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { LifeCycle } from '../life-cycle';
|
2
|
-
import { Task } from '@nrwl/devkit';
|
3
|
-
import { TaskStatus } from '../tasks-runner';
|
4
|
-
export declare class TaskTimingsLifeCycle implements LifeCycle {
|
5
|
-
private timings;
|
6
|
-
startTasks(tasks: Task[]): void;
|
7
|
-
endTasks(taskResults: Array<{
|
8
|
-
task: Task;
|
9
|
-
status: TaskStatus;
|
10
|
-
code: number;
|
11
|
-
}>): void;
|
12
|
-
endCommand(): void;
|
13
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TaskTimingsLifeCycle = void 0;
|
4
|
-
class TaskTimingsLifeCycle {
|
5
|
-
constructor() {
|
6
|
-
this.timings = {};
|
7
|
-
}
|
8
|
-
startTasks(tasks) {
|
9
|
-
for (let t of tasks) {
|
10
|
-
this.timings[`${t.target.project}:${t.target.target}`] = {
|
11
|
-
start: new Date().getTime(),
|
12
|
-
end: undefined,
|
13
|
-
};
|
14
|
-
}
|
15
|
-
}
|
16
|
-
endTasks(taskResults) {
|
17
|
-
for (let tr of taskResults) {
|
18
|
-
this.timings[`${tr.task.target.project}:${tr.task.target.target}`].end =
|
19
|
-
new Date().getTime();
|
20
|
-
}
|
21
|
-
}
|
22
|
-
endCommand() {
|
23
|
-
console.log('Task Execution Timings:');
|
24
|
-
const timings = {};
|
25
|
-
Object.keys(this.timings).forEach((p) => {
|
26
|
-
const t = this.timings[p];
|
27
|
-
timings[p] = t.end ? t.end - t.start : null;
|
28
|
-
});
|
29
|
-
console.log(JSON.stringify(timings, null, 2));
|
30
|
-
}
|
31
|
-
}
|
32
|
-
exports.TaskTimingsLifeCycle = TaskTimingsLifeCycle;
|
33
|
-
//# sourceMappingURL=task-timings-life-cycle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"task-timings-life-cycle.js","sourceRoot":"","sources":["../../../../../../packages/workspace/src/tasks-runner/life-cycles/task-timings-life-cycle.ts"],"names":[],"mappings":";;;AAIA,MAAa,oBAAoB;IAAjC;QACU,YAAO,GAKX,EAAE,CAAC;IA6BT,CAAC;IA3BC,UAAU,CAAC,KAAa;QACtB,KAAK,IAAI,CAAC,IAAI,KAAK,EAAE;YACnB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG;gBACvD,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;gBAC3B,GAAG,EAAE,SAAS;aACf,CAAC;SACH;IACH,CAAC;IAED,QAAQ,CACN,WAAoE;QAEpE,KAAK,IAAI,EAAE,IAAI,WAAW,EAAE;YAC1B,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG;gBACpE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;SACxB;IACH,CAAC;IAED,UAAU;QACR,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACtC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QAC9C,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAnCD,oDAmCC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,62 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const fs_1 = require("fs");
|
4
|
-
const fs_extra_1 = require("fs-extra");
|
5
|
-
const path_1 = require("path");
|
6
|
-
const WEEK_IN_MS = 1000 * 60 * 60 * 24 * 7;
|
7
|
-
const folder = process.argv[2];
|
8
|
-
removeOld(terminalOutputs());
|
9
|
-
removeOld(cachedFiles());
|
10
|
-
function terminalOutputs() {
|
11
|
-
try {
|
12
|
-
return (0, fs_1.readdirSync)((0, path_1.join)(folder, 'terminalOutputs')).map((f) => (0, path_1.join)(folder, 'terminalOutputs', f));
|
13
|
-
}
|
14
|
-
catch (e) {
|
15
|
-
return [];
|
16
|
-
}
|
17
|
-
}
|
18
|
-
function cachedFiles() {
|
19
|
-
try {
|
20
|
-
return (0, fs_1.readdirSync)(folder)
|
21
|
-
.filter((f) => !f.endsWith('terminalOutputs'))
|
22
|
-
.map((f) => (0, path_1.join)(folder, f));
|
23
|
-
}
|
24
|
-
catch (e) {
|
25
|
-
return [];
|
26
|
-
}
|
27
|
-
}
|
28
|
-
function removeOld(records) {
|
29
|
-
try {
|
30
|
-
const time = mostRecentMTime(records);
|
31
|
-
records.forEach((r) => {
|
32
|
-
try {
|
33
|
-
const s = (0, fs_1.statSync)(r);
|
34
|
-
if (time - s.mtimeMs > WEEK_IN_MS) {
|
35
|
-
if (s.isDirectory()) {
|
36
|
-
try {
|
37
|
-
(0, fs_extra_1.removeSync)(`${r}.commit`);
|
38
|
-
}
|
39
|
-
catch (e) { }
|
40
|
-
}
|
41
|
-
(0, fs_extra_1.removeSync)(r);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
catch (e) { }
|
45
|
-
});
|
46
|
-
}
|
47
|
-
catch (e) { }
|
48
|
-
}
|
49
|
-
function mostRecentMTime(records) {
|
50
|
-
let mostRecentTime = 0;
|
51
|
-
records.forEach((r) => {
|
52
|
-
try {
|
53
|
-
const s = (0, fs_1.statSync)(r);
|
54
|
-
if (s.mtimeMs > mostRecentTime) {
|
55
|
-
mostRecentTime = s.mtimeMs;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
catch (e) { }
|
59
|
-
});
|
60
|
-
return mostRecentTime;
|
61
|
-
}
|
62
|
-
//# sourceMappingURL=remove-old-cache-records.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"remove-old-cache-records.js","sourceRoot":"","sources":["../../../../../packages/workspace/src/tasks-runner/remove-old-cache-records.ts"],"names":[],"mappings":";;AAAA,2BAA2C;AAC3C,uCAAsC;AACtC,+BAA4B;AAE5B,MAAM,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,GAAG,CAAC,SAAS,CAAC,CAAC;yBAC3B;wBAAC,OAAO,CAAC,EAAE,GAAE;qBACf;oBACD,IAAA,qBAAU,EAAC,CAAC,CAAC,CAAC;iBACf;aACF;YAAC,OAAO,CAAC,EAAE,GAAE;QAChB,CAAC,CAAC,CAAC;KACJ;IAAC,OAAO,CAAC,EAAE,GAAE;AAChB,CAAC;AAED,SAAS,eAAe,CAAC,OAAiB;IACxC,IAAI,cAAc,GAAG,CAAC,CAAC;IACvB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACpB,IAAI;YACF,MAAM,CAAC,GAAG,IAAA,aAAQ,EAAC,CAAC,CAAC,CAAC;YACtB,IAAI,CAAC,CAAC,OAAO,GAAG,cAAc,EAAE;gBAC9B,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC;aAC5B;SACF;QAAC,OAAO,CAAC,EAAE,GAAE;IAChB,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Task } from '@nrwl/devkit';
|
2
|
-
export interface ReporterArgs {
|
3
|
-
target?: string;
|
4
|
-
configuration?: string;
|
5
|
-
onlyFailed?: boolean;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* @deprecated the reporter API is no longer supported.
|
9
|
-
* The class will be removed after Nx 14 is released.
|
10
|
-
*/
|
11
|
-
export declare abstract class Reporter {
|
12
|
-
abstract beforeRun(projectNames: string[], tasks: Task[], args: ReporterArgs, taskOverrides: any): void;
|
13
|
-
abstract printResults(nxArgs: ReporterArgs, startedWithFailedProjects: boolean, tasks: Task[], failedTasks: Task[], tasksWithFailedDependencies: Task[], cachedTasks: Task[]): void;
|
14
|
-
}
|