@powerlines/nx 0.13.249 → 0.13.251

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.
Files changed (85) hide show
  1. package/dist/src/base/base-executor.d.mts +2 -60
  2. package/dist/src/base/base-executor.d.ts +2 -60
  3. package/dist/src/base/base-executor.js +7 -4
  4. package/dist/src/base/base-executor.mjs +5 -2
  5. package/dist/src/base/base-executor.mjs.map +1 -1
  6. package/dist/src/base/base-executor.untyped.d.mts +2 -5
  7. package/dist/src/base/base-executor.untyped.d.ts +2 -4
  8. package/dist/src/base/index.d.mts +1 -1
  9. package/dist/src/base/index.d.ts +1 -1
  10. package/dist/src/base-executor-BCcpfw61.d.ts +60 -0
  11. package/dist/src/base-executor-BCcpfw61.d.ts.map +1 -0
  12. package/dist/src/base-executor-C9j1WGyX.d.mts +60 -0
  13. package/dist/src/base-executor-C9j1WGyX.d.mts.map +1 -0
  14. package/dist/src/base-executor.untyped-DJ2f40oh.d.mts +5 -0
  15. package/dist/src/base-executor.untyped-DJ2f40oh.d.mts.map +1 -0
  16. package/dist/src/base-executor.untyped-DJ2f40oh.d.ts +5 -0
  17. package/dist/src/base-executor.untyped-DJ2f40oh.d.ts.map +1 -0
  18. package/dist/src/constants-QuvxQ1Kt.d.mts +8 -0
  19. package/dist/src/constants-QuvxQ1Kt.d.mts.map +1 -0
  20. package/dist/src/constants-QuvxQ1Kt.d.ts +8 -0
  21. package/dist/src/constants-QuvxQ1Kt.d.ts.map +1 -0
  22. package/dist/src/executors/build/executor.js +2 -2
  23. package/dist/src/executors/build/executor.mjs +1 -1
  24. package/dist/src/executors/clean/executor.js +2 -2
  25. package/dist/src/executors/clean/executor.mjs +1 -1
  26. package/dist/src/executors/clean/untyped.js +2 -2
  27. package/dist/src/executors/clean/untyped.mjs +1 -1
  28. package/dist/src/executors/docs/executor.js +2 -2
  29. package/dist/src/executors/docs/executor.mjs +1 -1
  30. package/dist/src/executors/lint/executor.js +2 -2
  31. package/dist/src/executors/lint/executor.mjs +1 -1
  32. package/dist/src/executors/prepare/executor.js +2 -2
  33. package/dist/src/executors/prepare/executor.mjs +1 -1
  34. package/dist/src/executors/prepare/untyped.js +2 -2
  35. package/dist/src/executors/prepare/untyped.mjs +1 -1
  36. package/dist/src/helpers/constants.d.mts +2 -8
  37. package/dist/src/helpers/constants.d.ts +2 -8
  38. package/dist/src/helpers/index.d.mts +2 -2
  39. package/dist/src/helpers/index.d.ts +2 -2
  40. package/dist/src/helpers/plugin-utilities.d.mts +2 -56
  41. package/dist/src/helpers/plugin-utilities.d.ts +2 -56
  42. package/dist/src/helpers/plugin-utilities.js +2 -2
  43. package/dist/src/helpers/plugin-utilities.mjs +2 -2
  44. package/dist/src/helpers/plugin-utilities.mjs.map +1 -1
  45. package/dist/src/index.d.mts +4 -4
  46. package/dist/src/index.d.ts +4 -4
  47. package/dist/src/index.js +1 -0
  48. package/dist/src/index.mjs +1 -0
  49. package/dist/src/plugin/index.d.mts +1 -286
  50. package/dist/src/plugin/index.d.mts.map +1 -1
  51. package/dist/src/plugin/index.d.ts +1 -286
  52. package/dist/src/plugin/index.d.ts.map +1 -1
  53. package/dist/src/plugin/index.js +2 -284
  54. package/dist/src/plugin/index.mjs +1 -281
  55. package/dist/src/plugin/index.mjs.map +1 -1
  56. package/dist/src/plugin-B94-9IvO.d.mts +288 -0
  57. package/dist/src/plugin-B94-9IvO.d.mts.map +1 -0
  58. package/dist/src/plugin-B94-9IvO.d.ts +288 -0
  59. package/dist/src/plugin-B94-9IvO.d.ts.map +1 -0
  60. package/dist/src/plugin-utilities-TozKPwW0.d.ts +56 -0
  61. package/dist/src/plugin-utilities-TozKPwW0.d.ts.map +1 -0
  62. package/dist/src/plugin-utilities-dOdjrrHD.d.mts +56 -0
  63. package/dist/src/plugin-utilities-dOdjrrHD.d.mts.map +1 -0
  64. package/dist/src/types/index.d.mts +1 -1
  65. package/dist/src/types/index.d.ts +1 -1
  66. package/dist/src/types/plugin.d.mts +2 -288
  67. package/dist/src/types/plugin.d.ts +2 -288
  68. package/package.json +3 -3
  69. package/dist/src/_virtual/_rolldown/runtime.js +0 -28
  70. package/dist/src/base/base-executor.d.mts.map +0 -1
  71. package/dist/src/base/base-executor.d.ts.map +0 -1
  72. package/dist/src/base/base-executor.untyped.d.mts.map +0 -1
  73. package/dist/src/base/base-executor.untyped.d.ts.map +0 -1
  74. package/dist/src/base-executor-BVYmsZ3I.mjs +0 -114
  75. package/dist/src/base-executor-BVYmsZ3I.mjs.map +0 -1
  76. package/dist/src/base-executor-CBgW5wY1.js +0 -120
  77. package/dist/src/base-executor.untyped-But-48Iy.js +0 -183
  78. package/dist/src/base-executor.untyped-Bz2f75UY.mjs +0 -179
  79. package/dist/src/base-executor.untyped-Bz2f75UY.mjs.map +0 -1
  80. package/dist/src/helpers/constants.d.mts.map +0 -1
  81. package/dist/src/helpers/constants.d.ts.map +0 -1
  82. package/dist/src/helpers/plugin-utilities.d.mts.map +0 -1
  83. package/dist/src/helpers/plugin-utilities.d.ts.map +0 -1
  84. package/dist/src/types/plugin.d.mts.map +0 -1
  85. package/dist/src/types/plugin.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["readNxJson"],"sources":["../../../src/helpers/constants.ts","../../../src/helpers/plugin-utilities.ts","../../../src/plugin/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n 🗲 Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A list of Nx input strings that describe the Powerlines configuration file\n */\nexport const CONFIG_INPUTS = [\n \"{projectRoot}/{framework}.json\",\n \"{projectRoot}/{framework}.*.json\",\n \"{projectRoot}/{framework}.jsonc\",\n \"{projectRoot}/{framework}.*.jsonc\",\n \"{projectRoot}/{framework}.json5\",\n \"{projectRoot}/{framework}.*.json5\",\n \"{projectRoot}/{framework}.yaml\",\n \"{projectRoot}/{framework}.*.yaml\",\n \"{projectRoot}/{framework}.yml\",\n \"{projectRoot}/{framework}.*.yml\",\n \"{projectRoot}/{framework}.toml\",\n \"{projectRoot}/{framework}.*.toml\",\n \"{projectRoot}/{framework}.config.js\",\n \"{projectRoot}/{framework}.*.config.js\",\n \"{projectRoot}/{framework}.config.cjs\",\n \"{projectRoot}/{framework}.*.config.cjs\",\n \"{projectRoot}/{framework}.config.mjs\",\n \"{projectRoot}/{framework}.*.config.mjs\",\n \"{projectRoot}/{framework}.config.ts\",\n \"{projectRoot}/{framework}.*.config.ts\",\n \"{projectRoot}/{framework}.config.cts\",\n \"{projectRoot}/{framework}.*.config.cts\",\n \"{projectRoot}/{framework}.config.mts\",\n \"{projectRoot}/{framework}.*.config.mts\"\n] as const;\n","/* -------------------------------------------------------------------\n\n 🗲 Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/* eslint-disable no-console */\n\nimport type { CreateNodesResultV2, CreateNodesV2 } from \"@nx/devkit\";\nimport { createNodesFromFiles } from \"@nx/devkit\";\nimport type { ProjectTagVariant } from \"@storm-software/workspace-tools/types\";\nimport { withNamedInputs } from \"@storm-software/workspace-tools/utils/nx-json\";\nimport {\n getProjectConfigFromProjectRoot,\n getProjectRoot,\n getRoot\n} from \"@storm-software/workspace-tools/utils/plugin-helpers\";\nimport {\n addProjectTag,\n setDefaultProjectTags\n} from \"@storm-software/workspace-tools/utils/project-tags\";\nimport { isDevelopment } from \"@stryke/env/environment-checks\";\nimport { getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { readFile } from \"node:fs/promises\";\nimport { readNxJson } from \"nx/src/config/nx-json.js\";\nimport type {\n ProjectConfiguration,\n TargetConfiguration\n} from \"nx/src/config/workspace-json-project-json.js\";\nimport type { PackageJson as PackageJsonNx } from \"nx/src/utils/package-json.js\";\nimport { readTargetsFromPackageJson } from \"nx/src/utils/package-json.js\";\nimport {\n detectPackageManager,\n getPackageManagerCommand\n} from \"nx/src/utils/package-manager.js\";\nimport type { NxPluginOptions } from \"../types/plugin\";\nimport { CONFIG_INPUTS } from \"./constants\";\n\n/**\n * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.\n *\n * @param framework - The framework name to use in the input strings\n * @returns An array of Nx input strings for the configuration file\n */\nexport function getNxTargetInputs(framework: string): string[] {\n return CONFIG_INPUTS.map(input => input.replace(\"{framework}\", framework));\n}\n\n/**\n * Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.\n *\n * @param framework - The framework name to use in the input strings\n * @returns An array of Nx input strings for the configuration file\n */\nexport function getNxPluginInputs(framework: string): string {\n return `**/{${getNxTargetInputs(framework)\n .map(input => input.replace(\"{projectRoot}/\", \"\"))\n .join(\",\")}}`;\n}\n\nexport interface CreateNxPluginOptions {\n /**\n * The name of the Nx plugin to create\n *\n * @remarks\n * This will be used in logging and project tagging.\n *\n * @defaultValue \"\\{framework\\}/plugin/nx\"\n */\n name?: string;\n\n /**\n * The folder where the generated runtime artifacts will be located\n *\n * @remarks\n * This folder will contain all runtime artifacts and builtins generated during the \"prepare\" phase.\n *\n * @defaultValue \"\\{projectRoot\\}/.powerlines\"\n */\n artifactsFolder?: string;\n\n /**\n * A string identifier that allows a child framework or tool to identify itself when using Powerlines.\n *\n * @remarks\n * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsFolder | output.artifactsFolder}, this value will be used as the default.\n *\n * @defaultValue \"powerlines\"\n */\n framework?: string;\n}\n\n// type LoadUserConfigFileFunction = (\n// cwd: string,\n// root: string,\n// mode: Mode,\n// command: string,\n// framework?: PartialKeys<FrameworkOptions, \"orgId\">,\n// configFile?: string\n// ) => Promise<ParsedUserConfig>;\n\n/**\n * Creates an Nx plugin that integrates Powerlines into the Nx build process.\n *\n * @param opts - Options for creating the Nx plugin\n * @returns A CreateNodesV2 function that can be used as an Nx plugin\n */\nexport function createNxPlugin<\n TOptions extends NxPluginOptions = NxPluginOptions\n>(opts?: CreateNxPluginOptions): CreateNodesV2<TOptions> {\n const framework = kebabCase(opts?.framework) || \"powerlines\";\n const title = `${titleCase(framework)} Nx Plugin`;\n\n try {\n const name = opts?.name || `${framework}/nx/plugin`;\n const artifactsFolder =\n opts?.artifactsFolder || `{projectRoot}/.${framework}`;\n\n const targetInputs = getNxTargetInputs(framework);\n const pluginInputs = getNxPluginInputs(framework);\n\n return [\n pluginInputs,\n async (configFiles, options, contextV2): Promise<CreateNodesResultV2> => {\n if (options?.verboseOutput) {\n console.debug(\n `[${title}] - ${new Date().toISOString()} - Initializing the ${title} for the following inputs: ${pluginInputs}`\n );\n }\n\n const envPaths = getEnvPaths({\n orgId: \"storm-software\",\n appId: framework,\n workspaceRoot: contextV2.workspaceRoot\n });\n if (!envPaths.cache) {\n throw new Error(\"The cache directory could not be determined.\");\n }\n\n const nxJson = readNxJson(contextV2.workspaceRoot);\n const packageManagerCommand = getPackageManagerCommand(\n detectPackageManager(contextV2.workspaceRoot),\n contextV2.workspaceRoot\n );\n // const resolver = createJiti(contextV2.workspaceRoot, {\n // debug: !!options?.debug,\n // interopDefault: true,\n // fsCache: joinPaths(\n // envPaths.cache,\n // \"nx-plugin\",\n // murmurhash(contextV2.workspaceRoot, {\n // maxLength: 45\n // }),\n // \"jiti\"\n // ),\n // moduleCache: true\n // });\n\n // let loadUserConfigFile: LoadUserConfigFileFunction | undefined;\n // try {\n // loadUserConfigFile = await resolver\n // .import<{\n // loadUserConfigFile: LoadUserConfigFileFunction;\n // }>(resolver.esmResolve(\"powerlines/config\"))\n // .then(mod => mod?.loadUserConfigFile);\n // } catch (error) {\n // console.warn(\n // `[${title}] - ${new Date().toISOString()} - Failed to load user configuration file function: ${\n // isError(error) ? error.message : \"Unknown error\"\n // }`\n // );\n // }\n\n return createNodesFromFiles(\n async (configFile, _, context) => {\n try {\n const projectRoot = getProjectRoot(\n configFile,\n contextV2.workspaceRoot\n );\n if (!projectRoot) {\n console.error(\n `[${title}] - ${new Date().toISOString()} - package.json and ${\n framework\n } configuration files (i.e. ${\n framework\n }.config.ts) must be located in the project root directory: ${\n configFile\n }`\n );\n\n return {};\n }\n\n const root = getRoot(projectRoot, context);\n\n if (options?.verboseOutput) {\n console.debug(\n `[${title}] - ${new Date().toISOString()} - Loading ${\n framework\n } user configuration for project in root directory ${\n projectRoot\n }.`\n );\n }\n\n // let userConfig = {} as UserConfig;\n // try {\n // if (loadUserConfigFile) {\n // const parsedConfig = await loadUserConfigFile(\n // contextV2.workspaceRoot,\n // projectRoot,\n // isDevelopment\n // ? \"development\"\n // : isTest\n // ? \"test\"\n // : \"production\",\n // \"build\",\n // { name: framework },\n // configFile\n // );\n // if (isSetObject(parsedConfig)) {\n // userConfig = parsedConfig.config as UserConfig;\n // }\n // }\n // } catch (error) {\n // console.warn(\n // `[${title}] - ${new Date().toISOString()} - Failed to load user configuration for project in ${\n // projectRoot\n // } - ${\n // isError(error)\n // ? error.message\n // : isSetString(error)\n // ? error\n // : \"Unknown error\"\n // } \\n\\nPlease note: This error can occur if the project depends on another package in the workspace and the dependent package has not been built yet. To resolve this issue, please ensure that all dependent packages have been built successfully.${\n // isError(error) && error.stack\n // ? `\\n\\nStack trace:\\n${error.stack}`\n // : \"\"\n // }`\n // );\n // }\n\n if (\n !existsSync(\n joinPaths(\n contextV2.workspaceRoot,\n projectRoot,\n \"package.json\"\n )\n )\n ) {\n if (options?.verboseOutput) {\n console.warn(\n `[${\n title\n }] - ${new Date().toISOString()} - Cannot find \\`package.json\\` file in the project's root directory (path: \"${joinPaths(\n contextV2.workspaceRoot,\n projectRoot\n )}\"). Skipping project configuration.`\n );\n }\n\n return {};\n }\n\n const packageJsonContent = await readFile(\n joinPaths(contextV2.workspaceRoot, projectRoot, \"package.json\"),\n \"utf8\"\n );\n if (!packageJsonContent) {\n if (options?.verboseOutput) {\n console.warn(\n `[${title}] - ${new Date().toISOString()} - No package.json file found for project in root directory ${projectRoot}`\n );\n }\n\n return {};\n }\n\n const packageJson = JSON.parse(\n packageJsonContent\n ) as PackageJsonNx;\n // if (\n // !(userConfig && Object.keys(userConfig).length > 0) &&\n // !packageJson?.[camelCase(framework)]\n // ) {\n // if (options?.verboseOutput) {\n // console.debug(\n // `[${title}] - ${new Date().toISOString()} - Skipping ${projectRoot} - no ${\n // framework\n // } configuration found for project in root directory.`\n // );\n // }\n\n // return {};\n // }\n\n const projectConfig = getProjectConfigFromProjectRoot(\n projectRoot,\n packageJson as Parameters<\n typeof getProjectConfigFromProjectRoot\n >[1]\n );\n if (!projectConfig) {\n if (options?.verboseOutput) {\n console.warn(\n `[${title}] - ${new Date().toISOString()} - No project configuration found for project in root directory ${\n projectRoot\n }`\n );\n }\n\n return {};\n }\n\n const targets: ProjectConfiguration[\"targets\"] =\n readTargetsFromPackageJson(\n packageJson,\n nxJson,\n projectRoot,\n context.workspaceRoot,\n packageManagerCommand\n );\n\n if (options?.verboseOutput) {\n console.debug(\n `[${title}] - ${new Date().toISOString()} - Preparing Nx targets for project in root directory ${\n projectRoot\n }.`\n );\n }\n\n if (\n options?.clean !== false &&\n !targets[options?.clean?.targetName || \"clean\"]\n ) {\n targets[options?.clean?.targetName || \"clean\"] = {\n cache: options?.clean?.cache ?? options?.cache ?? true,\n inputs: Array.isArray(options?.clean?.inputs)\n ? options.clean.inputs\n : withNamedInputs(targetInputs, [\n options?.clean?.inputs || \"typescript\"\n ]),\n outputs: options?.clean?.outputs,\n executor:\n options?.clean?.executor ||\n `@${framework}/nx:${options?.clean?.targetName || \"clean\"}`,\n dependsOn: options?.clean?.dependsOn ?? [\n `^${options?.clean?.targetName || \"clean\"}`\n ],\n defaultConfiguration:\n options?.clean?.defaultConfiguration || \"production\",\n options: {\n root: projectRoot,\n configFile,\n projectType: projectConfig.projectType,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n if (\n options?.prepare !== false &&\n !targets[options?.prepare?.targetName || \"prepare\"]\n ) {\n targets[options?.prepare?.targetName || \"prepare\"] = {\n cache: options?.prepare?.cache ?? options?.cache ?? true,\n inputs: Array.isArray(options?.prepare?.inputs)\n ? options.prepare.inputs\n : withNamedInputs(targetInputs, [\n options?.prepare?.inputs || \"typescript\"\n ]),\n outputs: options?.prepare?.outputs ?? [artifactsFolder],\n executor:\n options?.prepare?.executor ||\n `@${framework}/nx:${options?.prepare?.targetName || \"prepare\"}`,\n dependsOn:\n options?.prepare?.dependsOn ??\n [`^${options?.prepare?.targetName || \"build\"}`].filter(\n Boolean\n ),\n defaultConfiguration:\n options?.prepare?.defaultConfiguration || \"production\",\n options: {\n projectType: projectConfig.projectType,\n configFile,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n if (\n options?.build !== false &&\n !targets[options?.build?.targetName || \"build\"]\n ) {\n targets[options?.build?.targetName || \"build\"] = {\n cache: options?.build?.cache ?? options?.cache ?? true,\n inputs: Array.isArray(options?.build?.inputs)\n ? options.build.inputs\n : withNamedInputs(targetInputs, [\n options?.build?.inputs || \"typescript\"\n ]),\n outputs: options?.build?.outputs ?? [\"{options.outputPath}\"],\n executor:\n options?.build?.executor ||\n `@${framework}/nx:${options?.build?.targetName || \"build\"}`,\n dependsOn:\n options?.build?.dependsOn ??\n ([\n `^${options?.build?.targetName || \"build\"}`,\n isDevelopment\n ? undefined\n : isSetObject(options?.prepare) &&\n options?.prepare?.targetName\n ? options?.prepare?.targetName\n : \"prepare\"\n ].filter(Boolean) as TargetConfiguration[\"dependsOn\"]),\n defaultConfiguration:\n options?.build?.defaultConfiguration || \"production\",\n options: {\n projectType: projectConfig.projectType,\n configFile,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n if (\n options?.lint !== false &&\n !targets[options?.lint?.targetName || \"lint\"]\n ) {\n targets[options?.lint?.targetName || \"lint\"] = {\n cache: options?.lint?.cache ?? options?.cache ?? true,\n inputs: Array.isArray(options?.lint?.inputs)\n ? options.lint.inputs\n : withNamedInputs(\n [...targetInputs, artifactsFolder],\n options?.lint?.inputs\n ? [options.lint.inputs]\n : [\"linting\", \"typescript\"]\n ),\n outputs: options?.lint?.outputs ?? [\"{options.outputPath}\"],\n executor:\n options?.lint?.executor ||\n `@${framework}/nx:${options?.lint?.targetName || \"lint\"}`,\n dependsOn:\n options?.lint?.dependsOn ??\n ([\n `^${options?.lint?.targetName || \"lint\"}`,\n isDevelopment\n ? undefined\n : isSetObject(options?.prepare) &&\n options?.prepare?.targetName\n ? options?.prepare?.targetName\n : \"prepare\"\n ].filter(Boolean) as TargetConfiguration[\"dependsOn\"]),\n defaultConfiguration:\n options?.lint?.defaultConfiguration || \"production\",\n options: {\n projectType: projectConfig.projectType,\n configFile,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n if (\n options?.docs !== false &&\n !targets[options?.docs?.targetName || \"docs\"]\n ) {\n targets[options?.docs?.targetName || \"docs\"] = {\n cache: options?.docs?.cache ?? options?.cache ?? true,\n inputs: Array.isArray(options?.docs?.inputs)\n ? options.docs.inputs\n : withNamedInputs(\n [...targetInputs, artifactsFolder],\n options?.docs?.inputs\n ? [options.docs.inputs]\n : [\"documentation\", \"typescript\"]\n ),\n outputs: options?.docs?.outputs ?? [\"{options.outputPath}\"],\n executor:\n options?.docs?.executor ||\n `@${framework}/nx:${options?.docs?.targetName || \"docs\"}`,\n dependsOn:\n options?.docs?.dependsOn ??\n ([\n `^${options?.docs?.targetName || \"docs\"}`,\n options?.build !== false &&\n `${options?.build?.targetName || \"build\"}`,\n isDevelopment\n ? undefined\n : isSetObject(options?.prepare) &&\n options?.prepare?.targetName\n ? options?.prepare?.targetName\n : \"prepare\"\n ].filter(Boolean) as TargetConfiguration[\"dependsOn\"]),\n defaultConfiguration:\n options?.docs?.defaultConfiguration || \"production\",\n options: {\n projectType: projectConfig.projectType,\n configFile,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n if (\n options?.deploy !== false &&\n !targets[options?.deploy?.targetName || \"deploy\"]\n ) {\n targets[options?.deploy?.targetName || \"deploy\"] = {\n cache: options?.deploy?.cache ?? false,\n inputs: Array.isArray(options?.deploy?.inputs)\n ? options.deploy.inputs\n : withNamedInputs(\n [...targetInputs, artifactsFolder],\n options?.deploy?.inputs\n ? [options.deploy.inputs]\n : [\"documentation\", \"typescript\"]\n ),\n outputs: options?.deploy?.outputs ?? [\"{options.outputPath}\"],\n executor:\n options?.deploy?.executor ||\n `@${framework}/nx:${options?.deploy?.targetName || \"deploy\"}`,\n dependsOn:\n options?.deploy?.dependsOn ??\n ([\n `^${options?.deploy?.targetName || \"deploy\"}`,\n options?.build !== false &&\n `${options?.build?.targetName || \"build\"}`,\n isDevelopment\n ? undefined\n : isSetObject(options?.prepare) &&\n options?.prepare?.targetName\n ? options?.prepare?.targetName\n : \"prepare\"\n ].filter(Boolean) as TargetConfiguration[\"dependsOn\"]),\n defaultConfiguration:\n options?.deploy?.defaultConfiguration || \"production\",\n options: {\n projectType: projectConfig.projectType,\n configFile,\n outputPath: `{workspaceRoot}/${projectRoot}/dist`,\n copyPath: `{workspaceRoot}/dist/${projectRoot}`\n },\n configurations: {\n production: {\n mode: \"production\"\n },\n test: {\n mode: \"test\"\n },\n development: {\n mode: \"development\",\n skipCache: true\n }\n }\n };\n }\n\n setDefaultProjectTags(projectConfig, name);\n addProjectTag(\n projectConfig,\n framework as ProjectTagVariant,\n projectConfig.projectType || \"library\",\n {\n overwrite: true\n }\n );\n\n if (options?.verboseOutput) {\n console.debug(\n `[${\n title\n }] - ${new Date().toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`\n );\n }\n\n return {\n projects: {\n [root]: defu(projectConfig, {\n projectType: projectConfig.projectType || \"library\",\n root,\n sourceRoot: joinPaths(root, \"src\"),\n targets\n })\n }\n };\n } catch (error) {\n console.error(\n `[${title}] - ${new Date().toISOString()} - Failed to process the project configuration for file \"${\n configFile\n }\" - ${\n isError(error)\n ? error.message\n : isSetString(error)\n ? error\n : \"Unknown fatal error\"\n }`\n );\n\n return {};\n }\n },\n configFiles,\n options,\n contextV2\n );\n }\n ];\n } catch (error) {\n console.error(\n `[${title}] - ${new Date().toISOString()} - ${\n isError(error)\n ? error.message\n : isSetString(error)\n ? error\n : \"Unknown fatal error during plugin initialization\"\n }`\n );\n\n throw new Error(\n `Failed to initialize the ${title} - ${\n isError(error)\n ? error.message\n : isSetString(error)\n ? error\n : \"See previous logs for more details\"\n }`,\n {\n cause: error instanceof Error ? error : undefined\n }\n );\n }\n}\n","/* -------------------------------------------------------------------\n\n 🗲 Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createNxPlugin } from \"../helpers/plugin-utilities\";\nimport { NxPluginOptions } from \"../types/plugin\";\n\nexport const createNodesV2 = createNxPlugin<NxPluginOptions>({\n framework: \"powerlines\"\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;ACkBA,SAAgB,kBAAkB,WAA6B;CAC7D,OAAO,cAAc,KAAI,UAAS,MAAM,QAAQ,eAAe,SAAS,CAAC;AAC3E;;;;;;;AAQA,SAAgB,kBAAkB,WAA2B;CAC3D,OAAO,OAAO,kBAAkB,SAAS,CAAC,CACvC,KAAI,UAAS,MAAM,QAAQ,kBAAkB,EAAE,CAAC,CAAC,CACjD,KAAK,GAAG,EAAE;AACf;;;;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T,MAAM,UACN,YAAY,KAAK,IACf,QACA,wCAER,EACE,OAAO,iBAAiB,QAAQ,QAAQ,OAC1C,CACF;CACF;AACF;;;;AC5rBA,MAAa,gBAAgB,eAAgC,EAC3D,WAAW,aACb,CAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/plugin/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n 🗲 Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createNxPlugin } from \"../helpers/plugin-utilities\";\nimport { NxPluginOptions } from \"../types/plugin\";\n\nexport const createNodesV2 = createNxPlugin<NxPluginOptions>({\n framework: \"powerlines\"\n});\n"],"mappings":";;;AAqBA,MAAa,gBAAgB,eAAgC,EAC3D,WAAW,aACb,CAAC"}
@@ -0,0 +1,288 @@
1
+ //#region src/types/plugin.d.ts
2
+ interface NxPluginOptions {
3
+ /**
4
+ * Configuration options for the clean target added by the Nx plugin
5
+ */
6
+ clean?: false | {
7
+ /**
8
+ * The name of the clean target to use when cleaning the project
9
+ *
10
+ * @defaultValue "clean"
11
+ */
12
+ targetName?: string;
13
+ /**
14
+ * An indicator to control the behavior of Nx caching for the target
15
+ *
16
+ * @defaultValue true
17
+ */
18
+ cache?: boolean;
19
+ /**
20
+ * The name of the clean configuration to use when cleaning the project
21
+ *
22
+ * @defaultValue "production"
23
+ */
24
+ defaultConfiguration?: "production" | "test" | "development";
25
+ /**
26
+ * An array specifying any other target identifiers the clean target depends on
27
+ *
28
+ * @defaultValue ["^clean"]
29
+ */
30
+ dependsOn?: string[];
31
+ /**
32
+ * An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
33
+ */
34
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
35
+ /**
36
+ * An array specifying the output files or globs generated by the clean target
37
+ */
38
+ outputs?: string[];
39
+ /**
40
+ * The executor to use for the clean target
41
+ *
42
+ * @defaultValue "\@powerlines/nx:clean"
43
+ */
44
+ executor?: string;
45
+ };
46
+ /**
47
+ * Configuration options for the prepare target added by the Nx plugin
48
+ */
49
+ prepare?: false | {
50
+ /**
51
+ * The name of the prepare target to use when preparing the project
52
+ *
53
+ * @defaultValue "prepare"
54
+ */
55
+ targetName?: string;
56
+ /**
57
+ * An indicator to control the behavior of Nx caching for the target
58
+ *
59
+ * @defaultValue true
60
+ */
61
+ cache?: boolean;
62
+ /**
63
+ * The name of the prepare configuration to use when preparing the project
64
+ *
65
+ * @defaultValue "production"
66
+ */
67
+ defaultConfiguration?: "production" | "test" | "development";
68
+ /**
69
+ * An array specifying any other target identifiers the prepare target depends on
70
+ *
71
+ * @defaultValue ["^build", "clean"]
72
+ */
73
+ dependsOn?: string[];
74
+ /**
75
+ * An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
76
+ */
77
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
78
+ /**
79
+ * An array specifying the output files or globs generated by the prepare target
80
+ */
81
+ outputs?: string[];
82
+ /**
83
+ * The executor to use for the prepare target
84
+ *
85
+ * @defaultValue "\@powerlines/nx:prepare"
86
+ */
87
+ executor?: string;
88
+ };
89
+ /**
90
+ * Configuration options for the lint target added by the Nx plugin
91
+ */
92
+ lint?: false | {
93
+ /**
94
+ * The name of the lint target to use when linting the project
95
+ *
96
+ * @defaultValue "lint"
97
+ */
98
+ targetName?: string;
99
+ /**
100
+ * An indicator to control the behavior of Nx caching for the target
101
+ *
102
+ * @defaultValue true
103
+ */
104
+ cache?: boolean;
105
+ /**
106
+ * The name of the lint configuration to use when linting the project
107
+ *
108
+ * @defaultValue "production"
109
+ */
110
+ defaultConfiguration?: "production" | "test" | "development";
111
+ /**
112
+ * An array specifying any other target identifiers the lint target depends on
113
+ *
114
+ * @defaultValue ["^lint"]
115
+ */
116
+ dependsOn?: string[];
117
+ /**
118
+ * An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
119
+ */
120
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
121
+ /**
122
+ * An array specifying the output files or globs generated by the lint target
123
+ */
124
+ outputs?: string[];
125
+ /**
126
+ * The executor to use for the lint target
127
+ *
128
+ * @defaultValue "\@powerlines/nx:lint"
129
+ */
130
+ executor?: string;
131
+ };
132
+ /**
133
+ * Configuration options for the build target added by the Nx plugin
134
+ */
135
+ build?: false | {
136
+ /**
137
+ * The name of the build target to use when building the project
138
+ *
139
+ * @defaultValue "build"
140
+ */
141
+ targetName?: string;
142
+ /**
143
+ * An indicator to control the behavior of Nx caching for the target
144
+ *
145
+ * @defaultValue true
146
+ */
147
+ cache?: boolean;
148
+ /**
149
+ * The name of the build configuration to use when building the project
150
+ *
151
+ * @defaultValue "production"
152
+ */
153
+ defaultConfiguration?: "production" | "test" | "development";
154
+ /**
155
+ * An array specifying any other target identifiers the build target depends on
156
+ *
157
+ * @defaultValue ["^build"]
158
+ */
159
+ dependsOn?: string[];
160
+ /**
161
+ * An array specifying any input files or globs to consider when determining if the build target needs to be re-run
162
+ */
163
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
164
+ /**
165
+ * An array specifying the output files or globs generated by the build target
166
+ */
167
+ outputs?: string[];
168
+ /**
169
+ * The executor to use for the build target
170
+ *
171
+ * @defaultValue "\@powerlines/nx:build"
172
+ */
173
+ executor?: string;
174
+ };
175
+ /**
176
+ * Configuration options for the docs target added by the Nx plugin
177
+ */
178
+ docs?: false | {
179
+ /**
180
+ * The name of the docs target to use when generating documentation for the project
181
+ *
182
+ * @defaultValue "docs"
183
+ */
184
+ targetName?: string;
185
+ /**
186
+ * An indicator to control the behavior of Nx caching for the target
187
+ *
188
+ * @defaultValue true
189
+ */
190
+ cache?: boolean;
191
+ /**
192
+ * The name of the docs configuration to use when generating documentation for the project
193
+ *
194
+ * @defaultValue "production"
195
+ */
196
+ defaultConfiguration?: "production" | "test" | "development";
197
+ /**
198
+ * An array specifying any other target identifiers the docs target depends on
199
+ *
200
+ * @defaultValue ["^docs", "build"]
201
+ */
202
+ dependsOn?: string[];
203
+ /**
204
+ * An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
205
+ */
206
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
207
+ /**
208
+ * An array specifying the output files or globs generated by the docs target
209
+ */
210
+ outputs?: string[];
211
+ /**
212
+ * The executor to use for the docs target
213
+ *
214
+ * @defaultValue "\@powerlines/nx:docs"
215
+ */
216
+ executor?: string;
217
+ };
218
+ /**
219
+ * Configuration options for the deploy target added by the Nx plugin
220
+ */
221
+ deploy?: false | {
222
+ /**
223
+ * The name of the deploy target to use when deploying the project
224
+ *
225
+ * @defaultValue "deploy"
226
+ */
227
+ targetName?: string;
228
+ /**
229
+ * An indicator to control the behavior of Nx caching for the target
230
+ *
231
+ * @defaultValue false
232
+ */
233
+ cache?: boolean;
234
+ /**
235
+ * The name of the deploy configuration to use when deploying the project
236
+ *
237
+ * @defaultValue "production"
238
+ */
239
+ defaultConfiguration?: "production" | "test" | "development";
240
+ /**
241
+ * An array specifying any other target identifiers the deploy target depends on
242
+ *
243
+ * @defaultValue ["^deploy", "build"]
244
+ */
245
+ dependsOn?: string[];
246
+ /**
247
+ * An array specifying any input files or globs to consider when determining if the deploy target needs to be re-run
248
+ */
249
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "rust" | "typescript";
250
+ /**
251
+ * An array specifying the output files or globs generated by the deploy target
252
+ */
253
+ outputs?: string[];
254
+ /**
255
+ * The executor to use for the deploy target
256
+ *
257
+ * @defaultValue "\@powerlines/nx:deploy"
258
+ */
259
+ executor?: string;
260
+ };
261
+ /**
262
+ * Whether to enable verbose logging for the Nx plugin.
263
+ *
264
+ * @remarks
265
+ * If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
266
+ *
267
+ * @defaultValue false
268
+ */
269
+ verboseOutput?: boolean;
270
+ /**
271
+ * Enable resolver debug logging for the plugin
272
+ *
273
+ * @defaultValue false
274
+ */
275
+ debug?: boolean;
276
+ /**
277
+ * An indicator to control the behavior of Nx caching for all of the targets
278
+ *
279
+ * @remarks
280
+ * The `cache` value on the target specific options will override the value provided in this field.
281
+ *
282
+ * @defaultValue true
283
+ */
284
+ cache?: boolean;
285
+ }
286
+ //#endregion
287
+ export { NxPluginOptions as t };
288
+ //# sourceMappingURL=plugin-B94-9IvO.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-B94-9IvO.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";UAkBiB;;;;EAIf;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAWA;;;;;;IAOA;;;;;;;;;;EAWN;;;;;;EAOA;;;;;;;;;EAUA"}
@@ -0,0 +1,288 @@
1
+ //#region src/types/plugin.d.ts
2
+ interface NxPluginOptions {
3
+ /**
4
+ * Configuration options for the clean target added by the Nx plugin
5
+ */
6
+ clean?: false | {
7
+ /**
8
+ * The name of the clean target to use when cleaning the project
9
+ *
10
+ * @defaultValue "clean"
11
+ */
12
+ targetName?: string;
13
+ /**
14
+ * An indicator to control the behavior of Nx caching for the target
15
+ *
16
+ * @defaultValue true
17
+ */
18
+ cache?: boolean;
19
+ /**
20
+ * The name of the clean configuration to use when cleaning the project
21
+ *
22
+ * @defaultValue "production"
23
+ */
24
+ defaultConfiguration?: "production" | "test" | "development";
25
+ /**
26
+ * An array specifying any other target identifiers the clean target depends on
27
+ *
28
+ * @defaultValue ["^clean"]
29
+ */
30
+ dependsOn?: string[];
31
+ /**
32
+ * An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
33
+ */
34
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
35
+ /**
36
+ * An array specifying the output files or globs generated by the clean target
37
+ */
38
+ outputs?: string[];
39
+ /**
40
+ * The executor to use for the clean target
41
+ *
42
+ * @defaultValue "\@powerlines/nx:clean"
43
+ */
44
+ executor?: string;
45
+ };
46
+ /**
47
+ * Configuration options for the prepare target added by the Nx plugin
48
+ */
49
+ prepare?: false | {
50
+ /**
51
+ * The name of the prepare target to use when preparing the project
52
+ *
53
+ * @defaultValue "prepare"
54
+ */
55
+ targetName?: string;
56
+ /**
57
+ * An indicator to control the behavior of Nx caching for the target
58
+ *
59
+ * @defaultValue true
60
+ */
61
+ cache?: boolean;
62
+ /**
63
+ * The name of the prepare configuration to use when preparing the project
64
+ *
65
+ * @defaultValue "production"
66
+ */
67
+ defaultConfiguration?: "production" | "test" | "development";
68
+ /**
69
+ * An array specifying any other target identifiers the prepare target depends on
70
+ *
71
+ * @defaultValue ["^build", "clean"]
72
+ */
73
+ dependsOn?: string[];
74
+ /**
75
+ * An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
76
+ */
77
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
78
+ /**
79
+ * An array specifying the output files or globs generated by the prepare target
80
+ */
81
+ outputs?: string[];
82
+ /**
83
+ * The executor to use for the prepare target
84
+ *
85
+ * @defaultValue "\@powerlines/nx:prepare"
86
+ */
87
+ executor?: string;
88
+ };
89
+ /**
90
+ * Configuration options for the lint target added by the Nx plugin
91
+ */
92
+ lint?: false | {
93
+ /**
94
+ * The name of the lint target to use when linting the project
95
+ *
96
+ * @defaultValue "lint"
97
+ */
98
+ targetName?: string;
99
+ /**
100
+ * An indicator to control the behavior of Nx caching for the target
101
+ *
102
+ * @defaultValue true
103
+ */
104
+ cache?: boolean;
105
+ /**
106
+ * The name of the lint configuration to use when linting the project
107
+ *
108
+ * @defaultValue "production"
109
+ */
110
+ defaultConfiguration?: "production" | "test" | "development";
111
+ /**
112
+ * An array specifying any other target identifiers the lint target depends on
113
+ *
114
+ * @defaultValue ["^lint"]
115
+ */
116
+ dependsOn?: string[];
117
+ /**
118
+ * An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
119
+ */
120
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
121
+ /**
122
+ * An array specifying the output files or globs generated by the lint target
123
+ */
124
+ outputs?: string[];
125
+ /**
126
+ * The executor to use for the lint target
127
+ *
128
+ * @defaultValue "\@powerlines/nx:lint"
129
+ */
130
+ executor?: string;
131
+ };
132
+ /**
133
+ * Configuration options for the build target added by the Nx plugin
134
+ */
135
+ build?: false | {
136
+ /**
137
+ * The name of the build target to use when building the project
138
+ *
139
+ * @defaultValue "build"
140
+ */
141
+ targetName?: string;
142
+ /**
143
+ * An indicator to control the behavior of Nx caching for the target
144
+ *
145
+ * @defaultValue true
146
+ */
147
+ cache?: boolean;
148
+ /**
149
+ * The name of the build configuration to use when building the project
150
+ *
151
+ * @defaultValue "production"
152
+ */
153
+ defaultConfiguration?: "production" | "test" | "development";
154
+ /**
155
+ * An array specifying any other target identifiers the build target depends on
156
+ *
157
+ * @defaultValue ["^build"]
158
+ */
159
+ dependsOn?: string[];
160
+ /**
161
+ * An array specifying any input files or globs to consider when determining if the build target needs to be re-run
162
+ */
163
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
164
+ /**
165
+ * An array specifying the output files or globs generated by the build target
166
+ */
167
+ outputs?: string[];
168
+ /**
169
+ * The executor to use for the build target
170
+ *
171
+ * @defaultValue "\@powerlines/nx:build"
172
+ */
173
+ executor?: string;
174
+ };
175
+ /**
176
+ * Configuration options for the docs target added by the Nx plugin
177
+ */
178
+ docs?: false | {
179
+ /**
180
+ * The name of the docs target to use when generating documentation for the project
181
+ *
182
+ * @defaultValue "docs"
183
+ */
184
+ targetName?: string;
185
+ /**
186
+ * An indicator to control the behavior of Nx caching for the target
187
+ *
188
+ * @defaultValue true
189
+ */
190
+ cache?: boolean;
191
+ /**
192
+ * The name of the docs configuration to use when generating documentation for the project
193
+ *
194
+ * @defaultValue "production"
195
+ */
196
+ defaultConfiguration?: "production" | "test" | "development";
197
+ /**
198
+ * An array specifying any other target identifiers the docs target depends on
199
+ *
200
+ * @defaultValue ["^docs", "build"]
201
+ */
202
+ dependsOn?: string[];
203
+ /**
204
+ * An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
205
+ */
206
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
207
+ /**
208
+ * An array specifying the output files or globs generated by the docs target
209
+ */
210
+ outputs?: string[];
211
+ /**
212
+ * The executor to use for the docs target
213
+ *
214
+ * @defaultValue "\@powerlines/nx:docs"
215
+ */
216
+ executor?: string;
217
+ };
218
+ /**
219
+ * Configuration options for the deploy target added by the Nx plugin
220
+ */
221
+ deploy?: false | {
222
+ /**
223
+ * The name of the deploy target to use when deploying the project
224
+ *
225
+ * @defaultValue "deploy"
226
+ */
227
+ targetName?: string;
228
+ /**
229
+ * An indicator to control the behavior of Nx caching for the target
230
+ *
231
+ * @defaultValue false
232
+ */
233
+ cache?: boolean;
234
+ /**
235
+ * The name of the deploy configuration to use when deploying the project
236
+ *
237
+ * @defaultValue "production"
238
+ */
239
+ defaultConfiguration?: "production" | "test" | "development";
240
+ /**
241
+ * An array specifying any other target identifiers the deploy target depends on
242
+ *
243
+ * @defaultValue ["^deploy", "build"]
244
+ */
245
+ dependsOn?: string[];
246
+ /**
247
+ * An array specifying any input files or globs to consider when determining if the deploy target needs to be re-run
248
+ */
249
+ inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "rust" | "typescript";
250
+ /**
251
+ * An array specifying the output files or globs generated by the deploy target
252
+ */
253
+ outputs?: string[];
254
+ /**
255
+ * The executor to use for the deploy target
256
+ *
257
+ * @defaultValue "\@powerlines/nx:deploy"
258
+ */
259
+ executor?: string;
260
+ };
261
+ /**
262
+ * Whether to enable verbose logging for the Nx plugin.
263
+ *
264
+ * @remarks
265
+ * If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
266
+ *
267
+ * @defaultValue false
268
+ */
269
+ verboseOutput?: boolean;
270
+ /**
271
+ * Enable resolver debug logging for the plugin
272
+ *
273
+ * @defaultValue false
274
+ */
275
+ debug?: boolean;
276
+ /**
277
+ * An indicator to control the behavior of Nx caching for all of the targets
278
+ *
279
+ * @remarks
280
+ * The `cache` value on the target specific options will override the value provided in this field.
281
+ *
282
+ * @defaultValue true
283
+ */
284
+ cache?: boolean;
285
+ }
286
+ //#endregion
287
+ export { NxPluginOptions as t };
288
+ //# sourceMappingURL=plugin-B94-9IvO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-B94-9IvO.d.ts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";UAkBiB;;;;EAIf;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAcA;;;;;;IAOA;;;;;EAMN;;;;;;IAQM;;;;;;IAOA;;;;;;IAOA;;;;;;IAOA;;;;IAKA;;;;IAWA;;;;;;IAOA;;;;;;;;;;EAWN;;;;;;EAOA;;;;;;;;;EAUA"}