import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; import { Schema } from './schema'; import { updatePackage } from './update.package'; import { updateTravis } from './update.travis'; import { updateWchtoolsOptions } from './update.wchtoolsoptions'; export function addCiBuild(options: Schema): Rule { return (host: Tree, context: SchematicContext) => { return chain([ updateTravis(options), updateWchtoolsOptions(options), updatePackage(options) ])(host, context); }; }