Extract building lib into separate gulp task