Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #60 from cnpm/mirror-alinode
Browse files Browse the repository at this point in the history
feat: mirror alinode
  • Loading branch information
dead-horse committed Oct 9, 2015
2 parents 55633f3 + 778b66e commit a0b8914
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: false
language: node_js
node_js:
- "iojs"
- "2"
- "4"
addons:
apt:
Expand Down
9 changes: 9 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ var config = {
url: 'https://iojs.org',
description: 'is an npm compatible platform originally based on node.js™.'
},
alinode: {
name: 'alinode',
category: 'alinode',
enable: true,
// interval: ms('5m'),
disturl: 'http://alinode.aliyun.com/dist/alinode/',
url: 'http://alinode.aliyun.com',
description: 'alinode是阿里云出品的Node.js应用服务解决方案。它是基于社区Node改进的运行时环境和服务平台的总称。'
},
python: {
name: 'Python',
category: 'python',
Expand Down
27 changes: 27 additions & 0 deletions sync/alinode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**!
* Copyright(c) cnpm and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
*/

'use strict';

/**
* Module dependencies.
*/

var util = require('util');
var NodeSyncer = require('./node');

module.exports = AlinodeSyncer;

function AlinodeSyncer(options) {
if (!(this instanceof AlinodeSyncer)) {
return new AlinodeSyncer(options);
}
NodeSyncer.call(this, options);
}

util.inherits(AlinodeSyncer, NodeSyncer);
2 changes: 0 additions & 2 deletions sync/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/**!
* mirrors - sync/index.js
*
* Authors:
* dead_horse <dead_horse@qq.com> (https://github.com/dead-horse)
*/
Expand Down
6 changes: 3 additions & 3 deletions views/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ <h1>Usage</h1>

<h2><a href="https://github.com/creationix/nvm" target="_blank">nvm</a></h2>
<textarea rows="2" style="width: 80%; overflow:hidden" readonly>
NVM_NODEJS_ORG_MIRROR=<%= baseUrl %>/node nvm install node-0.12.2
NVM_IOJS_ORG_MIRROR=<%= baseUrl %>/iojs nvm install iojs-1
NVM_NODEJS_ORG_MIRROR=<%= baseUrl %>/node nvm install 4
NVM_IOJS_ORG_MIRROR=<%= baseUrl %>/iojs nvm install 2
</textarea>

<h2><a href="https://github.com/hakobera/nvmw" target="_blank">nvmw</a></h2>
Expand All @@ -50,7 +50,7 @@ <h2><a href="https://npmjs.com" target="_blank">npm</a></h2>

<h2><a href="http://electron.atom.io" target="_blank">electron</a></h2>
<textarea rows="1" style="width: 80%; overflow:hidden" readonly>
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ npm install -g electron-prebuilt
ELECTRON_MIRROR=<%= baseUrl %>/electron/ npm install -g electron-prebuilt
</textarea>

<h2><a href="https://github.com/vvo/selenium-standalone" target="_blank">selenium-standalone</a></h2>
Expand Down

0 comments on commit a0b8914

Please sign in to comment.