Commit 677cb2f8 authored by nanahira's avatar nanahira

make others global

parent a3a77fad
......@@ -12,7 +12,7 @@ spawn = require('child_process').spawn
spawnSync = require('child_process').spawnSync
# 三方库
_ = require 'underscore'
_ = global._ = require 'underscore'
_.str = require 'underscore.string'
_.mixin(_.str.exports())
......@@ -21,7 +21,7 @@ request = require 'request'
bunyan = require 'bunyan'
log = global.log = bunyan.createLogger name: "mycard"
moment = require 'moment'
moment = global.moment = require 'moment'
moment.updateLocale('zh-cn', {
relativeTime: {
future: '%s内',
......
......@@ -24,7 +24,7 @@
spawnSync = require('child_process').spawnSync;
_ = require('underscore');
_ = global._ = require('underscore');
_.str = require('underscore.string');
......@@ -38,7 +38,7 @@
name: "mycard"
});
moment = require('moment');
moment = global.moment = require('moment');
moment.updateLocale('zh-cn', {
relativeTime: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment