(name: string)
| 39 | } |
| 40 | |
| 41 | export async function prepareProjectForE2e(name: string) { |
| 42 | const argv: Record<string, unknown> = getGlobalVariable('argv'); |
| 43 | |
| 44 | await git('config', 'user.email', 'angular-core+e2e@google.com'); |
| 45 | await git('config', 'user.name', 'Angular CLI E2E'); |
| 46 | await git('config', 'commit.gpgSign', 'false'); |
| 47 | await git('config', 'core.longpaths', 'true'); |
| 48 | |
| 49 | if (argv['ng-snapshots'] || argv['ng-tag']) { |
| 50 | await useSha(); |
| 51 | } |
| 52 | |
| 53 | console.log(`Project ${name} created... Installing packages.`); |
| 54 | await installWorkspacePackages(); |
| 55 | |
| 56 | await useCIChrome(name, ''); |
| 57 | await useCIDefaults(name); |
| 58 | |
| 59 | // Force sourcemaps to be from the root of the filesystem. |
| 60 | await updateJsonFile('tsconfig.json', (json) => { |
| 61 | json['compilerOptions']['sourceRoot'] = '/'; |
| 62 | }); |
| 63 | await gitCommit('prepare-project-for-e2e'); |
| 64 | } |
| 65 | |
| 66 | export function useBuiltPackagesVersions(): Promise<void> { |
| 67 | const packages: { [name: string]: PkgInfo } = getGlobalVariable('package-tars'); |
no test coverage detected