Normalize app route info

@inner
@param {Array.<string>} pages the page path list
@param {Array.<Object>=} subPackages the sub packages, optional
@return {Object}
function normalizeRouteInfo(pages, subPackages) {
    let result = {};
    let entryPageName = normalizePages(result, pages);

    subPackages && subPackages.forEach(item => {
        let {root, pages: subPages} = item;
        normalizePages(result, subPages, root);
    });

    return {
        entry: entryPageName,
        pages: result
    };
}