We use Artifactory to cache our dependent artifacts. In order to seamlessly integrate Slimerjs in our build process we need to be able to override the prefix of the download URL like it is possible for the phantom js npm package:
function getDownloadUrl() {
var cdnUrl = process.env.npm_config_phantomjs_cdnurl ||
process.env.PHANTOMJS_CDNURL ||
'https://bitbucket.org/ariya/phantomjs/downloads'
var downloadUrl = cdnUrl + '/phantomjs-' + helper.version + '-'
...
We use Artifactory to cache our dependent artifacts. In order to seamlessly integrate Slimerjs in our build process we need to be able to override the prefix of the download URL like it is possible for the phantom js npm package:
https://github.com/Medium/phantomjs/blob/master/install.js
Thanks in advance.