-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.js
27 lines (22 loc) · 889 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var util = require('util');
var EventEmitter = require('events').EventEmitter;
util.inherits(module.exports, EventEmitter);
exports = module.exports;
exports.version = require('./package').version;
exports.plugin = require('./lib/plugin');
exports.config = require('./lib/config');
exports.install = require('./lib/install');
exports.info = require('./lib/info');
exports.login = require('./lib/login');
exports.publish = require('./lib/publish').publish;
exports.upload = require('./lib/publish').upload;
exports.unpublish = require('./lib/unpublish');
exports.search = require('./lib/search');
// plugins should use spm.log
exports.log = require('./lib/utils/log');
exports.run = require('./lib/utils/run');
// register sdk
exports.sdk = {};
exports.sdk.iduri = require('./lib/sdk/iduri');
exports.sdk.yuan = require('./lib/sdk/yuan');
exports.sdk.file = require('./lib/sdk/file');