Skip to content

Commit

Permalink
chore: 去掉多余模块
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaoju committed Nov 27, 2017
1 parent fe5ac7b commit f0efbcd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
3 changes: 1 addition & 2 deletions lib/commands/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ var connect = require('connect'),
logSymbols = require('log-symbols'),
favicon = require('serve-favicon'),
webpackDevMiddleware = require('webpack-dev-middleware'),
hostReplaceMiddleware = require('../modules/HostReplaceMiddleware'),
httpProxy = require('http-proxy-middleware');
hostReplaceMiddleware = require('../modules/HostReplaceMiddleware');

var Manager = require('../modules/GlobalManager.js');
var ServerManager = require('../modules/ServerManager.js');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"fs-extra": "^1.0.0",
"globby": "^5.0.0",
"happypack": "^4.0.0",
"http-proxy-middleware": "^0.17.4",
"json-loader": "^0.5.4",
"json5": "^0.5.0",
"left-pad": "^1.1.3",
Expand Down
3 changes: 1 addition & 2 deletions src/commands/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const connect = require('connect'),
logSymbols = require('log-symbols'),
favicon = require('serve-favicon'),
webpackDevMiddleware = require('webpack-dev-middleware'),
hostReplaceMiddleware = require('../modules/HostReplaceMiddleware'),
httpProxy = require('http-proxy-middleware');
hostReplaceMiddleware = require('../modules/HostReplaceMiddleware');

const Manager = require('../modules/GlobalManager.js');
const ServerManager = require('../modules/ServerManager.js');
Expand Down
28 changes: 2 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2023,10 +2023,6 @@ event-stream@~3.3.0:
stream-combiner "~0.0.4"
through "~2.3.1"

[email protected]:
version "1.2.0"
resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508"

events@^1.0.0:
version "1.1.1"
resolved "https://registry.npm.taobao.org/events/download/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
Expand Down Expand Up @@ -2856,22 +2852,6 @@ http-errors@~1.6.1:
setprototypeof "1.0.3"
statuses ">= 1.3.1 < 2"

http-proxy-middleware@^0.17.4:
version "0.17.4"
resolved "https://registry.npm.taobao.org/http-proxy-middleware/download/http-proxy-middleware-0.17.4.tgz#642e8848851d66f09d4f124912846dbaeb41b833"
dependencies:
http-proxy "^1.16.2"
is-glob "^3.1.0"
lodash "^4.17.2"
micromatch "^2.3.11"

http-proxy@^1.16.2:
version "1.16.2"
resolved "https://registry.npm.taobao.org/http-proxy/download/http-proxy-1.16.2.tgz#06dff292952bf64dbe8471fa9df73066d4f37742"
dependencies:
eventemitter3 "1.x.x"
requires-port "1.x.x"

http-signature@~1.1.0:
version "1.1.1"
resolved "https://registry.npm.taobao.org/http-signature/download/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
Expand Down Expand Up @@ -3547,7 +3527,7 @@ lodash.uniq@^4.5.0:
version "4.5.0"
resolved "https://registry.npm.taobao.org/lodash.uniq/download/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"

lodash@^4.0.0, lodash@^4.1.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
lodash@^4.0.0, lodash@^4.1.0, lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
version "4.17.4"
resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

Expand Down Expand Up @@ -3659,7 +3639,7 @@ methods@~1.1.2:
version "1.1.2"
resolved "https://registry.npm.taobao.org/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"

micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7:
micromatch@^2.1.5, micromatch@^2.3.7:
version "2.3.11"
resolved "https://registry.npm.taobao.org/micromatch/download/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
dependencies:
Expand Down Expand Up @@ -4842,10 +4822,6 @@ requireg@^0.1.5:
rc "~1.0.0"
resolve "~0.6.1"

[email protected]:
version "1.0.0"
resolved "https://registry.npm.taobao.org/requires-port/download/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"

resolve-dir@^0.1.0:
version "0.1.1"
resolved "https://registry.npm.taobao.org/resolve-dir/download/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e"
Expand Down

0 comments on commit f0efbcd

Please sign in to comment.