mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-26 09:21:51 +08:00
The `common-tags` development dependency was only used in several E2E tests. Removing the usage of the dependency also allows it to be removed as a development dependency from the root `package.json`.
20 lines
605 B
TypeScript
20 lines
605 B
TypeScript
import { silentNg } from '../../../utils/process';
|
|
|
|
export default function () {
|
|
return Promise.resolve()
|
|
.then(() => silentNg('--help'))
|
|
.then(({ stdout }) => {
|
|
if (stdout.match(/(easter-egg)|(ng make-this-awesome)|(ng init)/)) {
|
|
throw new Error(
|
|
'Expected to not match "(easter-egg)|(ng make-this-awesome)|(ng init)" in help output.',
|
|
);
|
|
}
|
|
})
|
|
.then(() => silentNg('--help', 'new'))
|
|
.then(({ stdout }) => {
|
|
if (stdout.match(/--link-cli/)) {
|
|
throw new Error('Expected to not match "--link-cli" in help output.');
|
|
}
|
|
});
|
|
}
|