grunt-cacheinfo
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -0,0 +0,0 @@ /* |
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"homepage": "http://gitlab.alibaba-inc.com/trip-tools/grunt-cacheinfo", | ||
@@ -40,4 +40,4 @@ "author": { | ||
], | ||
"_id": "grunt-cacheinfo@0.1.6", | ||
"_from": "grunt-cacheinfo@*", | ||
"_id": "grunt-cacheinfo@0.1.3", | ||
"_from": "grunt-cacheinfo@latest", | ||
"maintainers": [ | ||
@@ -47,15 +47,11 @@ { | ||
"email": "bachi@taobao.com" | ||
}, | ||
{ | ||
"name": "dickeylth", | ||
"email": "dickeylth@gmail.com" | ||
} | ||
], | ||
"directories": {}, | ||
"publish_time": 1419303107776, | ||
"_cnpm_publish_time": 1419303107776, | ||
"publish_time": 1418560962568, | ||
"_cnpm_publish_time": 1418560962568, | ||
"bugs": { | ||
"url": "https://github.com/jayli/grunt-combohtml/issues" | ||
}, | ||
"_shasum": "d73af21e983504aa6bdcd5a8a5e86bdca1ca8c47", | ||
"_shasum": "f227b353e47209cdc22e7b790e5516d45f4286af", | ||
"_npmVersion": "1.4.16", | ||
@@ -67,10 +63,9 @@ "_npmUser": { | ||
"dist": { | ||
"shasum": "d73af21e983504aa6bdcd5a8a5e86bdca1ca8c47", | ||
"size": 5066, | ||
"shasum": "f227b353e47209cdc22e7b790e5516d45f4286af", | ||
"size": 4784, | ||
"noattachment": false, | ||
"key": "grunt-cacheinfo/-/grunt-cacheinfo-0.1.6.tgz", | ||
"tarball": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.6.tgz" | ||
"key": "grunt-cacheinfo/-/grunt-cacheinfo-0.1.3.tgz", | ||
"tarball": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.3.tgz" | ||
}, | ||
"_resolved": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.6.tgz", | ||
"gitHead": "9ffb9c2d567853a58b9b5aa241097545e265b948" | ||
"_resolved": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.3.tgz" | ||
} |
@@ -54,3 +54,2 @@ /* | ||
var pkgConfig = getPkgConfig(globalConfig); | ||
console.log(pkgConfig); | ||
if(pkgConfig) { | ||
@@ -133,10 +132,10 @@ generatorCacheInfo(pkgConfig, all_files); | ||
type: 'h5', | ||
main: 'pages/search/index.html', | ||
wapUrl:'http://h5.m.taobao.com/trip/' + abc.name.replace(/^h5-/,'') + '/search/index.html' | ||
main: abc.basePath, | ||
wapUrl:'http://h5.m.taobao.com' + abc.baseUrl | ||
}; | ||
} | ||
// 得到 全局配置 | ||
// 得到 'http://g.alicdn.com/trip/offline-config/index.json' | ||
function getGlobalConfig(ok){ | ||
var config_url = 'http://g.alicdn.com/trip/offline-config/index.json'; | ||
var config_url = options.configUrl || 'http://g.alicdn.com/trip/offline-config/index.json'; | ||
http.get(config_url,function(res){ | ||
@@ -143,0 +142,0 @@ var raw = ''; |
12246
293