forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsourcemap.ts
More file actions
20 lines (14 loc) · 814 Bytes
/
sourcemap.ts
File metadata and controls
20 lines (14 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import {ng} from '../../utils/process';
import {expectFileToExist} from '../../utils/fs';
import {expectToFail} from '../../utils/utils';
export default function() {
// TODO(architect): Delete this test. It is now in devkit/build-angular.
return ng('build', '--source-map')
.then(() => expectFileToExist('dist/test-project/main.js.map'))
.then(() => ng('build', '--source-map', 'false'))
.then(() => expectToFail(() => expectFileToExist('dist/test-project/main.js.map')))
.then(() => ng('build', '--optimization', '--output-hashing=none'))
.then(() => expectToFail(() => expectFileToExist('dist/test-project/main..js.map')))
.then(() => ng('build', '--optimization', '--output-hashing=none', '--source-map'))
.then(() => expectFileToExist('dist/test-project/main.js.map'));
}