Skip to content

Commit

Permalink
feat: add PUPPETEER_DOWNLOAD_HOST=https://storage.googleapis.com.cnpm…
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 3, 2017
1 parent 745cad3 commit 5008633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"OPERADRIVER_CDNURL": "https://npm.taobao.org/mirrors/operadriver",
"ELECTRON_MIRROR": "https://npm.taobao.org/mirrors/electron/",
"SASS_BINARY_SITE": "https://npm.taobao.org/mirrors/node-sass",
"FLOW_BINARY_MIRROR": "https://github.com/facebook/flow/releases/download/v"
"FLOW_BINARY_MIRROR": "https://github.com/facebook/flow/releases/download/v",
"PUPPETEER_DOWNLOAD_HOST": "https://storage.googleapis.com.cnpmjs.org"
},
"utf-8-validate": {
"host": "https://npm.taobao.org/mirrors/utf-8-validate/v{version}"
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const config = require('..');
describe('test/index.test.js', () => {
it('should config exists', () => {
console.log(config);
assert.deepEqual(Object.keys(config), ['china']);
assert.deepEqual(Object.keys(config), [ 'china' ]);
assert.equal(config.china.sqlite3.host, 'https://npm.taobao.org/mirrors');
assert.equal(config.china.fsevents.host, 'https://npm.taobao.org/mirrors/fsevents');
assert.equal(config.china['flow-bin'].host, 'https://npm.taobao.org/mirrors/flow/v');
assert.equal(config.china.ENVS['CHROMEDRIVER_CDNURL'], 'https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/chromedriver');
assert.equal(config.china.ENVS.CHROMEDRIVER_CDNURL, 'https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/chromedriver');
});
});

1 comment on commit 5008633

@mrtoorich
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Headache solved, love this commit 💘

Please sign in to comment.