-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- upgrade dependencies versions - remove a re-generate yarn.lock - fix formatting due to prettier upgrade - fix deprecations in schematics - remove usage of getFileContent (which doesn't exist anymore) in schematics spec - revert @types/node dependency to 16.x (because the 17 version, which I guess is unstable caused a typing error) - upgrade eslint version, and Ecmascript version of generated JS files - fix compilation error caused by TypeScript upgrade in api-doc generation - add missing formatter property in ResultTemplateContext (the formatter was passed but not declared, and it now fails with a compilation error) - fix deprecation in ssr-app module
- Loading branch information
1 parent
194da18
commit 2928430
Showing
11 changed files
with
2,486 additions
and
1,932 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; | ||
|
||
function createWorkspace(runner: SchematicTestRunner): Promise<UnitTestTree> { | ||
return runner | ||
.runExternalSchematicAsync('@schematics/angular', 'workspace', { | ||
name: 'workspace', | ||
version: '13.0.0', | ||
newProjectRoot: 'projects', | ||
}) | ||
.toPromise(); | ||
return runner.runExternalSchematic('@schematics/angular', 'workspace', { | ||
name: 'workspace', | ||
version: '16.0.0', | ||
newProjectRoot: 'projects', | ||
}); | ||
} | ||
|
||
/** | ||
* Creates a sample workspace with two applications: 'app' (default) and 'second-app' | ||
*/ | ||
export async function createTestApp(runner: SchematicTestRunner, appOptions = {}): Promise<UnitTestTree> { | ||
let tree = await createWorkspace(runner); | ||
tree = await runner | ||
.runExternalSchematicAsync('@schematics/angular', 'application', { name: 'app', ...appOptions }, tree) | ||
.toPromise(); | ||
tree = await runner.runExternalSchematic('@schematics/angular', 'application', { name: 'app', ...appOptions }, tree); | ||
|
||
return runner | ||
.runExternalSchematicAsync('@schematics/angular', 'application', { name: 'second-app', ...appOptions }, tree) | ||
.toPromise(); | ||
return runner.runExternalSchematic('@schematics/angular', 'application', { name: 'second-app', ...appOptions }, tree); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.