import { strings } from '@angular-devkit/core' ; export function buildSelector ( options , projectPrefix ) { const selector = strings . dasherize ( options . name ) ; if ( options . prefix === '' ) { return selector ; } const prefix = options . prefix || projectPrefix ; if ( ! selector . startsWith ( `${ prefix }-` ) ) { return `${ prefix }-${ selector }` ; } return selector ; }