-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular/cli): remove deduped licenses
- Loading branch information
1 parent
d1cac32
commit e72693a
Showing
10 changed files
with
47 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import {ng} from '../../utils/process'; | ||
import {expectFileToMatch} from '../../utils/fs'; | ||
import {expectFileToMatch, expectFileToExist} from '../../utils/fs'; | ||
import {expectGitToBeClean} from '../../utils/git'; | ||
import {getGlobalVariable} from '../../utils/env'; | ||
import {expectToFail} from '../../utils/utils'; | ||
|
||
|
||
export default function() { | ||
const ejected = getGlobalVariable('argv').eject; | ||
|
||
return ng('build', '--env=dev') | ||
.then(() => expectFileToMatch('dist/index.html', 'main.bundle.js')) | ||
.then(() => expectToFail(() => expectFileToExist('dist/3rdpartylicenses.txt'))) | ||
// If this is an ejected test, the eject will create files so git will not be clean. | ||
.then(() => !ejected && expectGitToBeClean()); | ||
} |
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,10 @@ | ||
import {join} from 'path'; | ||
import {expectFileToExist} from '../../utils/fs'; | ||
import {expectToFail} from '../../utils/utils'; | ||
import {ng} from '../../utils/process'; | ||
|
||
export default function() { | ||
return ng('build', '--prod', '--extract-licenses=false') | ||
.then(() => expectFileToExist(join(process.cwd(), 'dist'))) | ||
.then(() => expectToFail(() => expectFileToExist('dist/3rdpartylicenses.txt'))); | ||
} |
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