File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
packages/angular-cli/models Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 140
140
"@types/rimraf" : " 0.0.25-alpha" ,
141
141
"@types/semver" : " ^5.3.30" ,
142
142
"@types/source-map" : " ^0.5.0" ,
143
- "@types/webpack" : " 2.2.0 " ,
143
+ "@types/webpack" : " ^ 2.2.1 " ,
144
144
"chai" : " ^3.5.0" ,
145
145
"conventional-changelog" : " ^1.1.0" ,
146
146
"dtsgenerator" : " ^0.7.1" ,
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ export function getWebpackCommonConfig(
173
173
] . concat ( extraRules )
174
174
} ,
175
175
plugins : [
176
+ new webpack . NoEmitOnErrorsPlugin ( ) ,
176
177
new ExtractTextPlugin ( {
177
178
filename : `[name]${ hashFormat . extract } .bundle.css` ,
178
179
disable : ! extractCss
Original file line number Diff line number Diff line change 1
1
import { ng } from '../../utils/process' ;
2
2
import { expectToFail } from '../../utils/utils' ;
3
- import { deleteFile } from '../../utils/fs' ;
3
+ import { deleteFile , expectFileToExist } from '../../utils/fs' ;
4
4
5
5
export default function ( ) {
6
6
return deleteFile ( 'src/app/app.component.ts' )
7
7
// This is supposed to fail since there's a missing file
8
- . then ( ( ) => expectToFail ( ( ) => ng ( 'build' ) ) ) ;
8
+ . then ( ( ) => expectToFail ( ( ) => ng ( 'build' ) ) )
9
+ // Failed builds don't leave behind dist/
10
+ . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/' ) ) ) ;
9
11
}
You can’t perform that action at this time.
0 commit comments