add lib and component.json file