extracting core library out of front-end project