Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "feat(core): update to next version of angular deps"" (#…
- Loading branch information
1 parent
1c40789
commit b6e6b3f
Showing
61 changed files
with
1,723 additions
and
1,832 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
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
37 changes: 37 additions & 0 deletions
37
packages/angular/src/migrations/update-9-0-0/add-postinstall.spec.ts
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Tree } from '@angular-devkit/schematics'; | ||
import { readJsonInTree, updateJsonInTree } from '@nrwl/workspace'; | ||
import { callRule, runMigration } from '../../utils/testing'; | ||
|
||
describe('add-postinstall', () => { | ||
let tree: Tree; | ||
beforeEach(async () => { | ||
tree = Tree.empty(); | ||
tree = await callRule(updateJsonInTree('package.json', () => ({})), tree); | ||
}); | ||
it('should add a postinstall for "ngcc"', async () => { | ||
const result = await runMigration('add-postinstall', {}, tree); | ||
|
||
const packageJson = readJsonInTree(result, 'package.json'); | ||
|
||
expect(packageJson.scripts.postinstall).toEqual( | ||
'ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points' | ||
); | ||
}); | ||
|
||
it('should not add a postinstall if one exists', async () => { | ||
tree = await callRule( | ||
updateJsonInTree('package.json', json => { | ||
json.scripts = { | ||
postinstall: './postinstall.sh' | ||
}; | ||
return json; | ||
}), | ||
tree | ||
); | ||
const result = await runMigration('add-postinstall', {}, tree); | ||
|
||
const packageJson = readJsonInTree(result, 'package.json'); | ||
|
||
expect(packageJson.scripts.postinstall).toEqual('./postinstall.sh'); | ||
}); | ||
}); |
Oops, something went wrong.