import { RECOMMENDED_NODE_VERSION } from "../generator-constants.js";
import { JAVA_JAVASCRIPT_TEST_DIR, JAVA_WEBAPP_SOURCES_DIR } from "../index.js";
export const mutateApplicationLoading = {
    __override__: false,
    packageJsonScripts: () => ({}),
    clientPackageJsonScripts: () => ({}),
    prettierFolders: () => ['', '.blueprint/**/'],
    prettierExtensions: () => 'md,json,yml,js,cjs,mjs,ts,cts,mts'.split(','),
};
export const mutateApplicationPreparing = {
    __override__: false,
    typescriptEslint: true,
    nodeVersion: RECOMMENDED_NODE_VERSION,
    nodePackageManager: 'npm',
    nodePackageManagerCommand: ({ nodePackageManager }) => nodePackageManager,
    nodeWebappBuildTarget: (_, { delayMarker }) => delayMarker ?? 'webapp:build',
    clientRootDir: (_, { delayMarker }) => delayMarker ?? '',
    clientDistDir: (_, { delayMarker }) => delayMarker ?? 'dist/',
    clientTestDir: ({ clientRootDir }) => (clientRootDir === '' ? JAVA_JAVASCRIPT_TEST_DIR : `${clientRootDir}test/`),
    clientSrcDir: ({ clientRootDir }) => (clientRootDir === '' ? JAVA_WEBAPP_SOURCES_DIR : `${clientRootDir}src/`),
};
