nx/packages/workspace/index.ts
Jonathan Cammisuli 3b8a10f073
feat(testing): add setupFilesAfterEnv and other configs to project's jest config file (#3224)
* feat(testing): add util to update jest configs.

* feat(testing): place configurations in jest config file rather than just the builder

* feat(testing): create migration and unit tests

* feat(testing): fix jest template

* feat(testing): fix jest template to correct unit tests

* feat(testing): include globals.ts-jest for all non babel configs

* feat(testing): include globals.ts-jest for node e2e

* feat(testing): fix migration to run properly. Also check for angular tests using the setupfile rather than builder

* feat(testing): clean up jest config functions and fix errors with some migrations

* feat(testing): add new line to package.json

* feat(testing): update object check to actually check for undefined

* chore(testing): loop through all project targets as well as targets

* chore(testing): update migration to be 10.0.0-beta.2
2020-07-13 10:45:04 -04:00

80 lines
2.3 KiB
TypeScript

export { readTsConfig } from './src/utils/typescript';
export {
toPropertyName,
toClassName,
toFileName,
names,
findModuleParent,
} from './src/utils/name-utils';
export { ProjectType, projectRootDir } from './src/utils/project-type';
export {
serializeJson,
renameSync,
updateJsonFile,
readJsonFile,
readWorkspaceConfigPath,
copyFile,
createDirectory,
} from './src/utils/fileutils';
export {
offsetFromRoot,
ExistingPrettierConfig,
resolveUserExistingPrettierConfig,
} from './src/utils/common';
export { output } from './src/utils/output';
export { commandsObject } from './src/command-line/nx-commands';
export { supportedNxCommands } from './src/command-line/supported-nx-commands';
export { readWorkspaceJson, readNxJson } from './src/core/file-utils';
export { NxJson } from './src/core/shared-interfaces';
export {
readJsonInTree,
updateJsonInTree,
updateWorkspaceInTree,
insert,
replaceNodeValue,
addDepsToPackageJson,
addMethod,
addIncludeToTsConfig,
addGlobal,
getProjectConfig,
addParameterToConstructor,
createOrUpdate,
findNodes,
updatePackageJsonDependencies,
getProjectGraphFromHost,
readWorkspace,
renameSyncInTree,
renameDirSyncInTree,
updateNxJsonInTree,
addProjectToNxJsonInTree,
readNxJsonInTree,
InsertChange,
ReplaceChange,
RemoveChange,
} from './src/utils/ast-utils';
export {
getNpmScope,
getWorkspacePath,
replaceAppNameWithPath,
editTarget,
parseTarget,
serializeTarget,
} from './src/utils/cli-config-utils';
export { getWorkspace, updateWorkspace } from './src/utils/workspace';
export { addUpdateTask } from './src/utils/update-task';
export { addLintFiles, generateProjectLint, Linter } from './src/utils/lint';
export { addInstallTask } from './src/utils/rules/add-install-task';
export { formatFiles } from './src/utils/rules/format-files';
export { deleteFile } from './src/utils/rules/deleteFile';
export * from './src/utils/rules/ng-add';
export { updateKarmaConf } from './src/utils/rules/update-karma-conf';
export { setDefaultCollection } from './src/utils/rules/workspace';
import * as strings from './src/utils/strings';
export { checkAndCleanWithSemver } from './src/utils/version-utils';
export { updatePackagesInPackageJson } from './src/utils/update-packages-in-package-json';
export const stringUtils = strings;