Skip to content

Commit

Permalink
fix: 调整依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Oct 13, 2023
1 parent 9e9f2ce commit ad85ea0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 68 deletions.
6 changes: 1 addition & 5 deletions config/default/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
*/
'use strict'
/* eslint-disable @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires */
const BunyanPrettyStream = require('bunyan-prettystream')

const prettyStream = new BunyanPrettyStream()
prettyStream.pipe(process.stdout)

const streams = [
{
type: 'raw',
stream: prettyStream,
stream: process.stdout,
}, {
level: 'fatal',
stream: process.stderr,
Expand Down
63 changes: 7 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
"umzug": "^3.2.1",
"unplugin-element-plus": "^0.7.0",
"validator": "^13.6.0",
"vue": "^3.2.45",
"vue-fetch": "^2.0.0",
"vue-router": "^4.1.6",
"vuex": "^4.0.2",
"webpack-node-externals": "^3.0.0"
},
Expand Down Expand Up @@ -118,14 +121,12 @@
"@types/nodemailer": "^6.4.0",
"@types/prismjs": "^1.26.0",
"@types/serve-favicon": "^2.5.0",
"@types/webpack": "^5.28.0",
"@types/webpack-node-externals": "^2.5.3",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"@vue/cli-plugin-babel": "^5.0.1",
"@vue/cli-service": "^5.0.1",
"babel-loader": "^8.1.0",
"bunyan-prettystream": "^0.1.3",
"css-loader": "^3.4.2",
"es6-promise": "^4.2.8",
"eslint": "^8.27.0",
Expand All @@ -144,10 +145,7 @@
"typescript": "^4.8.4",
"url": "^0.11.0",
"url-loader": "^4.0.0",
"vue": "^3.2.45",
"vue-fetch": "^2.0.0",
"vue-loader": "^17.0.1",
"vue-router": "^4.1.6",
"vue-style-loader": "^4.1.2",
"webpack": "^5.76.0",
"webpack-dev-middleware": "^6.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/setup-dev-server.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {Application} from 'express'
import {join} from 'path'
import {App} from 'vue'
import webpack from 'webpack'


export async function setupDevServer(app: Application): Promise<(args: unknown) => Promise<App>> {
const wdm = require('webpack-dev-middleware')
const webpack: typeof import('webpack') = require('webpack')
const [clientConfig, adminConfig, serverConfig] = await Promise.all([
import('./webpack/webpack.conf').then((m) => m.default),
import('./webpack/webpack.admin').then((m) => m.default),
Expand Down

0 comments on commit ad85ea0

Please sign in to comment.