module.exports = {
  name: 'NPM加速',
  enabled: false,
  tip: '如果你没有安装nodejs则不需要启动它',
  startup: {
    variables: true,
  },
  setting: {
    'command': 'npm',
    'strict-ssl': true,
    'cafile': false,
    'NODE_EXTRA_CA_CERTS': false,
    'NODE_TLS_REJECT_UNAUTHORIZED': false,
    'yarnRegistry': 'default',
    'registry': 'https://registry.npmjs.org', // 可以选择切换官方或者淘宝镜像
  },
  // intercepts: {
  //   'cdn.cypress.io': [{ regexp: '/desktop/.*', proxy: 'http://npmmirror.com/mirrors/cypress/' }]
  // },
  variables: {
    phantomjs_cdnurl: 'https://npmmirror.com/mirrors/phantomjs',
    chromedriver_cdnurl: 'https://npmmirror.com/mirrors/chromedriver',
    sass_binary_site: 'https://npmmirror.com/mirrors/node-sass',
    ELECTRON_MIRROR: 'https://npmmirror.com/mirrors/electron/',
    // CYPRESS_DOWNLOAD_MIRROR: 'https://cdn.cypress.io',
    NVM_NODEJS_ORG_MIRROR: 'https://npmmirror.com/mirrors/node',
    CHROMEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/chromedriver',
    OPERADRIVER: 'https://npmmirror.com/mirrors/operadriver',
    ELECTRON_BUILDER_BINARIES_MIRROR: 'https://npmmirror.com/mirrors/electron-builder-binaries/',
    PYTHON_MIRROR: 'https://npmmirror.com/mirrors/python',
  },
}
