mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
18 lines
448 B
TypeScript
18 lines
448 B
TypeScript
import { Version } from '../upgrade/version';
|
|
import Build from '../tasks/build';
|
|
import { BuildTaskOptions } from './build';
|
|
|
|
export default function buildRun(commandOptions: BuildTaskOptions) {
|
|
const project = this.project;
|
|
|
|
// Check angular version.
|
|
Version.assertAngularVersionIs2_3_1OrHigher(project.root);
|
|
|
|
const buildTask = new Build({
|
|
cliProject: project,
|
|
ui: this.ui,
|
|
});
|
|
|
|
return buildTask.run(commandOptions);
|
|
}
|