@powerlines/nx 0.11.294 → 0.11.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/_virtual/_rolldown/runtime.js +29 -0
- package/dist/src/base/base-executor.d.mts +28 -2
- package/dist/src/base/base-executor.d.mts.map +1 -0
- package/dist/src/base/base-executor.d.ts +28 -2
- package/dist/src/base/base-executor.d.ts.map +1 -0
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.untyped.d.mts +7 -2
- package/dist/src/base/base-executor.untyped.d.mts.map +1 -0
- package/dist/src/base/base-executor.untyped.d.ts +6 -2
- package/dist/src/base/base-executor.untyped.d.ts.map +1 -0
- package/dist/src/base/base-executor.untyped.js +1 -1
- package/dist/src/base/index.d.mts +1 -1
- package/dist/src/base/index.d.ts +1 -1
- package/dist/src/base-executor-BOTlYnaD.d.mts +163 -0
- package/dist/src/base-executor-BOTlYnaD.d.mts.map +1 -0
- package/dist/src/base-executor-DH33Fd1U.js +79 -0
- package/dist/src/base-executor-N_ZgvzpA.d.ts +163 -0
- package/dist/src/base-executor-N_ZgvzpA.d.ts.map +1 -0
- package/dist/src/base-executor-dn4QVqZ4.mjs +72 -0
- package/dist/src/base-executor-dn4QVqZ4.mjs.map +1 -0
- package/dist/src/base-executor.untyped-CWwiE6fo.mjs +162 -0
- package/dist/src/base-executor.untyped-CWwiE6fo.mjs.map +1 -0
- package/dist/src/base-executor.untyped-DwcuTgJP.js +167 -0
- package/dist/src/executors/build/executor.d.mts +2 -2
- package/dist/src/executors/build/executor.d.ts +1 -1
- package/dist/src/executors/build/executor.js +2 -2
- package/dist/src/executors/build/executor.mjs +1 -1
- package/dist/src/executors/build/untyped.js +1 -0
- package/dist/src/executors/build/untyped.mjs +1 -0
- package/dist/src/executors/build/untyped.mjs.map +1 -1
- package/dist/src/executors/clean/executor.d.mts +2 -2
- package/dist/src/executors/clean/executor.d.ts +1 -1
- package/dist/src/executors/clean/executor.js +2 -2
- package/dist/src/executors/clean/executor.mjs +1 -1
- package/dist/src/executors/clean/untyped.js +2 -2
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.d.mts +2 -2
- package/dist/src/executors/docs/executor.d.ts +1 -1
- package/dist/src/executors/docs/executor.js +2 -2
- package/dist/src/executors/docs/executor.mjs +1 -1
- package/dist/src/executors/docs/untyped.js +1 -0
- package/dist/src/executors/docs/untyped.mjs +1 -0
- package/dist/src/executors/docs/untyped.mjs.map +1 -1
- package/dist/src/executors/lint/executor.d.mts +2 -2
- package/dist/src/executors/lint/executor.d.ts +1 -1
- package/dist/src/executors/lint/executor.js +2 -2
- package/dist/src/executors/lint/executor.mjs +1 -1
- package/dist/src/executors/lint/untyped.js +1 -0
- package/dist/src/executors/lint/untyped.mjs +1 -0
- package/dist/src/executors/lint/untyped.mjs.map +1 -1
- package/dist/src/executors/prepare/executor.d.mts +2 -2
- package/dist/src/executors/prepare/executor.d.ts +1 -1
- package/dist/src/executors/prepare/executor.js +2 -2
- package/dist/src/executors/prepare/executor.mjs +1 -1
- package/dist/src/executors/prepare/untyped.js +2 -2
- package/dist/src/executors/prepare/untyped.mjs +1 -1
- package/dist/src/helpers/constants.d.mts +8 -2
- package/dist/src/helpers/constants.d.mts.map +1 -0
- package/dist/src/helpers/constants.d.ts +8 -2
- package/dist/src/helpers/constants.d.ts.map +1 -0
- package/dist/src/helpers/index.d.mts +2 -2
- package/dist/src/helpers/index.d.ts +2 -2
- package/dist/src/helpers/plugin-utilities.d.mts +57 -2
- package/dist/src/helpers/plugin-utilities.d.mts.map +1 -0
- package/dist/src/helpers/plugin-utilities.d.ts +57 -2
- package/dist/src/helpers/plugin-utilities.d.ts.map +1 -0
- package/dist/src/helpers/plugin-utilities.js +2 -2
- package/dist/src/helpers/plugin-utilities.mjs +2 -2
- package/dist/src/helpers/plugin-utilities.mjs.map +1 -1
- package/dist/src/index.d.mts +4 -4
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.js +0 -1
- package/dist/src/index.mjs +0 -1
- package/dist/src/plugin/index.d.mts +241 -1
- package/dist/src/plugin/index.d.mts.map +1 -1
- package/dist/src/plugin/index.d.ts +241 -1
- package/dist/src/plugin/index.d.ts.map +1 -1
- package/dist/src/plugin/index.js +296 -2
- package/dist/src/plugin/index.mjs +293 -1
- package/dist/src/plugin/index.mjs.map +1 -1
- package/dist/src/types/index.d.mts +1 -1
- package/dist/src/types/index.d.ts +1 -1
- package/dist/src/types/plugin.d.mts +243 -2
- package/dist/src/types/plugin.d.mts.map +1 -0
- package/dist/src/types/plugin.d.ts +243 -2
- package/dist/src/types/plugin.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/src/base-executor-Bj63x9OE.d.ts +0 -28
- package/dist/src/base-executor-Bj63x9OE.d.ts.map +0 -1
- package/dist/src/base-executor-D6POztG2.d.mts +0 -28
- package/dist/src/base-executor-D6POztG2.d.mts.map +0 -1
- package/dist/src/base-executor.untyped-D4R6pki2.d.ts +0 -7
- package/dist/src/base-executor.untyped-D4R6pki2.d.ts.map +0 -1
- package/dist/src/base-executor.untyped-hmlG6oyC.d.mts +0 -7
- package/dist/src/base-executor.untyped-hmlG6oyC.d.mts.map +0 -1
- package/dist/src/constants-CbG11Mby.d.ts +0 -8
- package/dist/src/constants-CbG11Mby.d.ts.map +0 -1
- package/dist/src/constants-VDvVnoLC.d.mts +0 -8
- package/dist/src/constants-VDvVnoLC.d.mts.map +0 -1
- package/dist/src/plugin-B_ZGdX7U.d.mts +0 -243
- package/dist/src/plugin-B_ZGdX7U.d.mts.map +0 -1
- package/dist/src/plugin-DpyutMl2.d.ts +0 -243
- package/dist/src/plugin-DpyutMl2.d.ts.map +0 -1
- package/dist/src/plugin-utilities-Cg-Ccp4C.d.mts +0 -57
- package/dist/src/plugin-utilities-Cg-Ccp4C.d.mts.map +0 -1
- package/dist/src/plugin-utilities-CmfuC3TZ.d.ts +0 -57
- package/dist/src/plugin-utilities-CmfuC3TZ.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
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,cACZ,CAAC"}
|
|
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 { getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { murmurhash } from \"@stryke/hash\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\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 type { PackageJson } from \"@stryke/types/package-json\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\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 type { ParsedUserConfig } from \"powerlines\";\nimport { loadUserConfigFile } from \"powerlines/config\";\nimport { ROOT_HASH_LENGTH } from \"powerlines/constants\";\nimport { 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/**\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 = 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 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: ROOT_HASH_LENGTH\n }),\n \"jiti\"\n ),\n moduleCache: true\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 ParsedUserConfig;\n try {\n userConfig = await loadUserConfigFile(\n projectRoot,\n contextV2.workspaceRoot,\n resolver,\n \"build\",\n \"development\",\n configFile,\n framework\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\\nThis 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 );\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: PackageJson = JSON.parse(packageJsonContent);\n if (\n !userConfig.configFile &&\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\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 as PackageJsonNx,\n nxJson,\n projectRoot,\n context.workspaceRoot\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: 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 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: 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 ([\n `^${options?.prepare?.targetName || \"build\"}`,\n options?.clean !== false &&\n `${options?.clean?.targetName || \"clean\"}`\n ].filter(Boolean) as string[]),\n defaultConfiguration:\n options?.prepare?.defaultConfiguration || \"production\",\n options: {\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?.build !== false &&\n !targets[options?.build?.targetName || \"build\"]\n ) {\n targets[options?.build?.targetName || \"build\"] = {\n 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 userConfig.skipCache\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 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: 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 userConfig.skipCache\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 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: 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 userConfig.skipCache\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 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 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 userConfig.skipCache\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 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 name: kebabCase(userConfig.name)!,\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;CAC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,SAAQ,MACN,IACE,MACD,uBAAM,IAAI,MAAM,EAAC,aAAa,CAAC,wEAAwE,YAAY,GACrH;AAGH,YAAO,EACL,UAAU,GACP,OAAO,KAAK,eAAe;MAC1B,MAAM,UAAU,WAAW,KAAK;MAChC,aAAa,cAAc,eAAe;MAC1C;MACA,YAAY,UAAU,MAAM,MAAM;MAClC;MACD,CAAC,EACH,EACF;aACM,OAAO;AACd,aAAQ,MACN,IAAI,MAAM,uBAAM,IAAI,MAAM,EAAC,aAAa,CAAC,2DACvC,WACD,MACC,QAAQ,MAAM,GACV,MAAM,UACN,YAAY,MAAM,GAChB,QACA,wBAET;AAED,YAAO,EAAE;;MAGb,aACA,SACA,UACD;IAEJ;UACM,OAAO;AACd,UAAQ,MACN,IAAI,MAAM,uBAAM,IAAI,MAAM,EAAC,aAAa,CAAC,KACvC,QAAQ,MAAM,GACV,MAAM,UACN,YAAY,MAAM,GAChB,QACA,qDAET;AAED,QAAM,IAAI,MACR,4BAA4B,MAAM,KAChC,QAAQ,MAAM,GACV,MAAM,UACN,YAAY,MAAM,GAChB,QACA,wCAER,EACE,OAAO,iBAAiB,QAAQ,QAAQ,QACzC,CACF;;;;;;AC1oBL,MAAa,gBAAgB,eAAgC,EAC3D,WAAW,cACZ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NxPluginOptions } from "./plugin.mjs";
|
|
2
2
|
export { NxPluginOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NxPluginOptions } from "./plugin.js";
|
|
2
2
|
export { NxPluginOptions };
|
|
@@ -1,2 +1,243 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
* The name of the clean configuration to use when cleaning the project
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue "production"
|
|
17
|
+
*/
|
|
18
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
19
|
+
/**
|
|
20
|
+
* An array specifying any other target identifiers the clean target depends on
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue ["^clean"]
|
|
23
|
+
*/
|
|
24
|
+
dependsOn?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
|
|
27
|
+
*/
|
|
28
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
29
|
+
/**
|
|
30
|
+
* An array specifying the output files or globs generated by the clean target
|
|
31
|
+
*/
|
|
32
|
+
outputs?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The executor to use for the clean target
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue "\@powerlines/nx:clean"
|
|
37
|
+
*/
|
|
38
|
+
executor?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Configuration options for the prepare target added by the Nx plugin
|
|
42
|
+
*/
|
|
43
|
+
prepare?: false | {
|
|
44
|
+
/**
|
|
45
|
+
* The name of the prepare target to use when preparing the project
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue "prepare"
|
|
48
|
+
*/
|
|
49
|
+
targetName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the prepare configuration to use when preparing the project
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue "production"
|
|
54
|
+
*/
|
|
55
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
56
|
+
/**
|
|
57
|
+
* An array specifying any other target identifiers the prepare target depends on
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue ["^build", "clean"]
|
|
60
|
+
*/
|
|
61
|
+
dependsOn?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
|
|
64
|
+
*/
|
|
65
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
66
|
+
/**
|
|
67
|
+
* An array specifying the output files or globs generated by the prepare target
|
|
68
|
+
*/
|
|
69
|
+
outputs?: string[];
|
|
70
|
+
/**
|
|
71
|
+
* The executor to use for the prepare target
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue "\@powerlines/nx:prepare"
|
|
74
|
+
*/
|
|
75
|
+
executor?: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Configuration options for the lint target added by the Nx plugin
|
|
79
|
+
*/
|
|
80
|
+
lint?: false | {
|
|
81
|
+
/**
|
|
82
|
+
* The name of the lint target to use when linting the project
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue "lint"
|
|
85
|
+
*/
|
|
86
|
+
targetName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the lint configuration to use when linting the project
|
|
89
|
+
*
|
|
90
|
+
* @defaultValue "production"
|
|
91
|
+
*/
|
|
92
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
93
|
+
/**
|
|
94
|
+
* An array specifying any other target identifiers the lint target depends on
|
|
95
|
+
*
|
|
96
|
+
* @defaultValue ["^lint"]
|
|
97
|
+
*/
|
|
98
|
+
dependsOn?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
|
|
101
|
+
*/
|
|
102
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
103
|
+
/**
|
|
104
|
+
* An array specifying the output files or globs generated by the lint target
|
|
105
|
+
*/
|
|
106
|
+
outputs?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* The executor to use for the lint target
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue "\@powerlines/nx:lint"
|
|
111
|
+
*/
|
|
112
|
+
executor?: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Configuration options for the build target added by the Nx plugin
|
|
116
|
+
*/
|
|
117
|
+
build?: false | {
|
|
118
|
+
/**
|
|
119
|
+
* The name of the build target to use when building the project
|
|
120
|
+
*
|
|
121
|
+
* @defaultValue "build"
|
|
122
|
+
*/
|
|
123
|
+
targetName?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the build configuration to use when building the project
|
|
126
|
+
*
|
|
127
|
+
* @defaultValue "production"
|
|
128
|
+
*/
|
|
129
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
130
|
+
/**
|
|
131
|
+
* An array specifying any other target identifiers the build target depends on
|
|
132
|
+
*
|
|
133
|
+
* @defaultValue ["^build"]
|
|
134
|
+
*/
|
|
135
|
+
dependsOn?: string[];
|
|
136
|
+
/**
|
|
137
|
+
* An array specifying any input files or globs to consider when determining if the build target needs to be re-run
|
|
138
|
+
*/
|
|
139
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
140
|
+
/**
|
|
141
|
+
* An array specifying the output files or globs generated by the build target
|
|
142
|
+
*/
|
|
143
|
+
outputs?: string[];
|
|
144
|
+
/**
|
|
145
|
+
* The executor to use for the build target
|
|
146
|
+
*
|
|
147
|
+
* @defaultValue "\@powerlines/nx:build"
|
|
148
|
+
*/
|
|
149
|
+
executor?: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Configuration options for the docs target added by the Nx plugin
|
|
153
|
+
*/
|
|
154
|
+
docs?: false | {
|
|
155
|
+
/**
|
|
156
|
+
* The name of the docs target to use when generating documentation for the project
|
|
157
|
+
*
|
|
158
|
+
* @defaultValue "docs"
|
|
159
|
+
*/
|
|
160
|
+
targetName?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The name of the docs configuration to use when generating documentation for the project
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue "production"
|
|
165
|
+
*/
|
|
166
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
167
|
+
/**
|
|
168
|
+
* An array specifying any other target identifiers the docs target depends on
|
|
169
|
+
*
|
|
170
|
+
* @defaultValue ["^docs", "build"]
|
|
171
|
+
*/
|
|
172
|
+
dependsOn?: string[];
|
|
173
|
+
/**
|
|
174
|
+
* An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
|
|
175
|
+
*/
|
|
176
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
177
|
+
/**
|
|
178
|
+
* An array specifying the output files or globs generated by the docs target
|
|
179
|
+
*/
|
|
180
|
+
outputs?: string[];
|
|
181
|
+
/**
|
|
182
|
+
* The executor to use for the docs target
|
|
183
|
+
*
|
|
184
|
+
* @defaultValue "\@powerlines/nx:docs"
|
|
185
|
+
*/
|
|
186
|
+
executor?: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Configuration options for the deploy target added by the Nx plugin
|
|
190
|
+
*/
|
|
191
|
+
deploy?: false | {
|
|
192
|
+
/**
|
|
193
|
+
* The name of the deploy target to use when deploying the project
|
|
194
|
+
*
|
|
195
|
+
* @defaultValue "deploy"
|
|
196
|
+
*/
|
|
197
|
+
targetName?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The name of the deploy configuration to use when deploying the project
|
|
200
|
+
*
|
|
201
|
+
* @defaultValue "production"
|
|
202
|
+
*/
|
|
203
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
204
|
+
/**
|
|
205
|
+
* An array specifying any other target identifiers the deploy target depends on
|
|
206
|
+
*
|
|
207
|
+
* @defaultValue ["^deploy", "build"]
|
|
208
|
+
*/
|
|
209
|
+
dependsOn?: string[];
|
|
210
|
+
/**
|
|
211
|
+
* An array specifying any input files or globs to consider when determining if the deploy target needs to be re-run
|
|
212
|
+
*/
|
|
213
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "rust" | "typescript";
|
|
214
|
+
/**
|
|
215
|
+
* An array specifying the output files or globs generated by the deploy target
|
|
216
|
+
*/
|
|
217
|
+
outputs?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* The executor to use for the deploy target
|
|
220
|
+
*
|
|
221
|
+
* @defaultValue "\@powerlines/nx:deploy"
|
|
222
|
+
*/
|
|
223
|
+
executor?: string;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Whether to enable verbose logging for the Nx plugin.
|
|
227
|
+
*
|
|
228
|
+
* @remarks
|
|
229
|
+
* If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
|
|
230
|
+
*
|
|
231
|
+
* @defaultValue false
|
|
232
|
+
*/
|
|
233
|
+
verboseOutput?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Enable resolver debug logging for the plugin
|
|
236
|
+
*
|
|
237
|
+
* @defaultValue false
|
|
238
|
+
*/
|
|
239
|
+
debug?: boolean;
|
|
240
|
+
}
|
|
241
|
+
//#endregion
|
|
242
|
+
export { NxPluginOptions };
|
|
243
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../../src/types/plugin.ts"],"mappings":";UAkBiB,eAAA;EAAA;;;EAIf,KAAA;IAAA;;;;;IAQM,UAAA;IAwCA;;;;;IAjCA,oBAAA;IAgFA;;;;;IAzEA,SAAA;IAiHA;;;IA5GA,MAAA;IA+IA;;;IAjIA,OAAA;IAkKA;;;;;IA3JA,QAAA;EAAA;EAiNA;;;EA3MN,OAAA;IAuOM;;;;;IA/NA,UAAA;IA+QN;;;;;IAxQM,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,KAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,MAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAWA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;;;;;;EAWN,aAAA;;;;;;EAOA,KAAA;AAAA"}
|
|
@@ -1,2 +1,243 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
* The name of the clean configuration to use when cleaning the project
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue "production"
|
|
17
|
+
*/
|
|
18
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
19
|
+
/**
|
|
20
|
+
* An array specifying any other target identifiers the clean target depends on
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue ["^clean"]
|
|
23
|
+
*/
|
|
24
|
+
dependsOn?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* An array specifying any input files or globs to consider when determining if the clean target needs to be re-run
|
|
27
|
+
*/
|
|
28
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
29
|
+
/**
|
|
30
|
+
* An array specifying the output files or globs generated by the clean target
|
|
31
|
+
*/
|
|
32
|
+
outputs?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The executor to use for the clean target
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue "\@powerlines/nx:clean"
|
|
37
|
+
*/
|
|
38
|
+
executor?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Configuration options for the prepare target added by the Nx plugin
|
|
42
|
+
*/
|
|
43
|
+
prepare?: false | {
|
|
44
|
+
/**
|
|
45
|
+
* The name of the prepare target to use when preparing the project
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue "prepare"
|
|
48
|
+
*/
|
|
49
|
+
targetName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the prepare configuration to use when preparing the project
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue "production"
|
|
54
|
+
*/
|
|
55
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
56
|
+
/**
|
|
57
|
+
* An array specifying any other target identifiers the prepare target depends on
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue ["^build", "clean"]
|
|
60
|
+
*/
|
|
61
|
+
dependsOn?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* An array specifying any input files or globs to consider when determining if the prepare target needs to be re-run
|
|
64
|
+
*/
|
|
65
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
66
|
+
/**
|
|
67
|
+
* An array specifying the output files or globs generated by the prepare target
|
|
68
|
+
*/
|
|
69
|
+
outputs?: string[];
|
|
70
|
+
/**
|
|
71
|
+
* The executor to use for the prepare target
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue "\@powerlines/nx:prepare"
|
|
74
|
+
*/
|
|
75
|
+
executor?: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Configuration options for the lint target added by the Nx plugin
|
|
79
|
+
*/
|
|
80
|
+
lint?: false | {
|
|
81
|
+
/**
|
|
82
|
+
* The name of the lint target to use when linting the project
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue "lint"
|
|
85
|
+
*/
|
|
86
|
+
targetName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the lint configuration to use when linting the project
|
|
89
|
+
*
|
|
90
|
+
* @defaultValue "production"
|
|
91
|
+
*/
|
|
92
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
93
|
+
/**
|
|
94
|
+
* An array specifying any other target identifiers the lint target depends on
|
|
95
|
+
*
|
|
96
|
+
* @defaultValue ["^lint"]
|
|
97
|
+
*/
|
|
98
|
+
dependsOn?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* An array specifying any input files or globs to consider when determining if the lint target needs to be re-run
|
|
101
|
+
*/
|
|
102
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
103
|
+
/**
|
|
104
|
+
* An array specifying the output files or globs generated by the lint target
|
|
105
|
+
*/
|
|
106
|
+
outputs?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* The executor to use for the lint target
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue "\@powerlines/nx:lint"
|
|
111
|
+
*/
|
|
112
|
+
executor?: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Configuration options for the build target added by the Nx plugin
|
|
116
|
+
*/
|
|
117
|
+
build?: false | {
|
|
118
|
+
/**
|
|
119
|
+
* The name of the build target to use when building the project
|
|
120
|
+
*
|
|
121
|
+
* @defaultValue "build"
|
|
122
|
+
*/
|
|
123
|
+
targetName?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the build configuration to use when building the project
|
|
126
|
+
*
|
|
127
|
+
* @defaultValue "production"
|
|
128
|
+
*/
|
|
129
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
130
|
+
/**
|
|
131
|
+
* An array specifying any other target identifiers the build target depends on
|
|
132
|
+
*
|
|
133
|
+
* @defaultValue ["^build"]
|
|
134
|
+
*/
|
|
135
|
+
dependsOn?: string[];
|
|
136
|
+
/**
|
|
137
|
+
* An array specifying any input files or globs to consider when determining if the build target needs to be re-run
|
|
138
|
+
*/
|
|
139
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
140
|
+
/**
|
|
141
|
+
* An array specifying the output files or globs generated by the build target
|
|
142
|
+
*/
|
|
143
|
+
outputs?: string[];
|
|
144
|
+
/**
|
|
145
|
+
* The executor to use for the build target
|
|
146
|
+
*
|
|
147
|
+
* @defaultValue "\@powerlines/nx:build"
|
|
148
|
+
*/
|
|
149
|
+
executor?: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Configuration options for the docs target added by the Nx plugin
|
|
153
|
+
*/
|
|
154
|
+
docs?: false | {
|
|
155
|
+
/**
|
|
156
|
+
* The name of the docs target to use when generating documentation for the project
|
|
157
|
+
*
|
|
158
|
+
* @defaultValue "docs"
|
|
159
|
+
*/
|
|
160
|
+
targetName?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The name of the docs configuration to use when generating documentation for the project
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue "production"
|
|
165
|
+
*/
|
|
166
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
167
|
+
/**
|
|
168
|
+
* An array specifying any other target identifiers the docs target depends on
|
|
169
|
+
*
|
|
170
|
+
* @defaultValue ["^docs", "build"]
|
|
171
|
+
*/
|
|
172
|
+
dependsOn?: string[];
|
|
173
|
+
/**
|
|
174
|
+
* An array specifying any input files or globs to consider when determining if the docs target needs to be re-run
|
|
175
|
+
*/
|
|
176
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "testing" | "linting" | "documentation" | "rust" | "typescript";
|
|
177
|
+
/**
|
|
178
|
+
* An array specifying the output files or globs generated by the docs target
|
|
179
|
+
*/
|
|
180
|
+
outputs?: string[];
|
|
181
|
+
/**
|
|
182
|
+
* The executor to use for the docs target
|
|
183
|
+
*
|
|
184
|
+
* @defaultValue "\@powerlines/nx:docs"
|
|
185
|
+
*/
|
|
186
|
+
executor?: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Configuration options for the deploy target added by the Nx plugin
|
|
190
|
+
*/
|
|
191
|
+
deploy?: false | {
|
|
192
|
+
/**
|
|
193
|
+
* The name of the deploy target to use when deploying the project
|
|
194
|
+
*
|
|
195
|
+
* @defaultValue "deploy"
|
|
196
|
+
*/
|
|
197
|
+
targetName?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The name of the deploy configuration to use when deploying the project
|
|
200
|
+
*
|
|
201
|
+
* @defaultValue "production"
|
|
202
|
+
*/
|
|
203
|
+
defaultConfiguration?: "production" | "test" | "development";
|
|
204
|
+
/**
|
|
205
|
+
* An array specifying any other target identifiers the deploy target depends on
|
|
206
|
+
*
|
|
207
|
+
* @defaultValue ["^deploy", "build"]
|
|
208
|
+
*/
|
|
209
|
+
dependsOn?: string[];
|
|
210
|
+
/**
|
|
211
|
+
* An array specifying any input files or globs to consider when determining if the deploy target needs to be re-run
|
|
212
|
+
*/
|
|
213
|
+
inputs?: string[] | "production" | "allProjectFiles" | "sharedGlobals" | "rust" | "typescript";
|
|
214
|
+
/**
|
|
215
|
+
* An array specifying the output files or globs generated by the deploy target
|
|
216
|
+
*/
|
|
217
|
+
outputs?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* The executor to use for the deploy target
|
|
220
|
+
*
|
|
221
|
+
* @defaultValue "\@powerlines/nx:deploy"
|
|
222
|
+
*/
|
|
223
|
+
executor?: string;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Whether to enable verbose logging for the Nx plugin.
|
|
227
|
+
*
|
|
228
|
+
* @remarks
|
|
229
|
+
* If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
|
|
230
|
+
*
|
|
231
|
+
* @defaultValue false
|
|
232
|
+
*/
|
|
233
|
+
verboseOutput?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Enable resolver debug logging for the plugin
|
|
236
|
+
*
|
|
237
|
+
* @defaultValue false
|
|
238
|
+
*/
|
|
239
|
+
debug?: boolean;
|
|
240
|
+
}
|
|
241
|
+
//#endregion
|
|
242
|
+
export { NxPluginOptions };
|
|
243
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","names":[],"sources":["../../../src/types/plugin.ts"],"mappings":";UAkBiB,eAAA;EAAA;;;EAIf,KAAA;IAAA;;;;;IAQM,UAAA;IAwCA;;;;;IAjCA,oBAAA;IAgFA;;;;;IAzEA,SAAA;IAiHA;;;IA5GA,MAAA;IA+IA;;;IAjIA,OAAA;IAkKA;;;;;IA3JA,QAAA;EAAA;EAiNA;;;EA3MN,OAAA;IAuOM;;;;;IA/NA,UAAA;IA+QN;;;;;IAxQM,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,KAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,MAAA;;;;;;IAQM,UAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAWA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;;;;;;EAWN,aAAA;;;;;;EAOA,KAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.295",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"eslint-flat-config-utils": "^2.1.4",
|
|
197
197
|
"jsonc-eslint-parser": "^2.4.2",
|
|
198
198
|
"nx": "22.5.2",
|
|
199
|
-
"powerlines": "^0.42.
|
|
199
|
+
"powerlines": "^0.42.8",
|
|
200
200
|
"untyped": "^1.5.2"
|
|
201
201
|
},
|
|
202
202
|
"peerDependencies": { "nx": ">=22.5.0", "powerlines": ">=0.39.2" },
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
"publishConfig": { "access": "public" },
|
|
208
208
|
"executors": "./executors.json",
|
|
209
209
|
"generators": "./generators.json",
|
|
210
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "d966a1f1b5b109bf5cb2d00835a4be6d1bf123fd"
|
|
211
211
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseExecutorSchema } from "./base/base-executor.schema.js";
|
|
2
|
-
import { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
|
-
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
4
|
-
import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
|
|
5
|
-
import PowerlinesAPI, { InlineConfig, PowerlinesCommand } from "powerlines";
|
|
6
|
-
|
|
7
|
-
//#region src/base/base-executor.d.ts
|
|
8
|
-
type PowerlinesExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema> = ExecutorContext & {
|
|
9
|
-
projectName: string;
|
|
10
|
-
command: TCommand;
|
|
11
|
-
options: TExecutorSchema;
|
|
12
|
-
inlineConfig: InlineConfig;
|
|
13
|
-
workspaceConfig: StormWorkspaceConfig;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.
|
|
20
|
-
*
|
|
21
|
-
* @param command - The command that the executor will handle (e.g., "new", "prepare", "build", etc.).
|
|
22
|
-
* @param executorFn - The function that will be executed when the command is run.
|
|
23
|
-
* @returns A Promise that resolves to the result of the executor function.
|
|
24
|
-
*/
|
|
25
|
-
declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: PowerlinesExecutorContext<TCommand, TExecutorSchema>, api: PowerlinesAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { withExecutor as n, PowerlinesExecutorContext as t };
|
|
28
|
-
//# sourceMappingURL=base-executor-Bj63x9OE.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-Bj63x9OE.d.ts","names":[],"sources":["../../src/base/base-executor.ts"],"mappings":";;;;;;;KAiCY,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
|