批量重命名 npm/* 使用标准前缀 base|core|user

This commit is contained in:
陆柯 2021-09-16 21:53:17 +08:00
parent 2e64e061af
commit c1a7660c38
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "sol.webserver", "name": "base.webserver",
"version": "1.0.0", "version": "1.0.0",
"description": "Launch web server", "description": "Launch web server",
"main": "server.js", "main": "server.js",
@ -25,8 +25,8 @@
"method-override": "^2.3.10", "method-override": "^2.3.10",
"morgan": "^1.9.0", "morgan": "^1.9.0",
"serve-favicon": "^2.5.0", "serve-favicon": "^2.5.0",
"sol.enviconfig": "git+https://git.faronear.org/npm/sol.enviconfig", "base.enviconfig": "git+https://git.faronear.org/npm/base.enviconfig",
"sol.nettool": "git+https://git.faronear.org/npm/sol.nettool", "base.nettool": "git+https://git.faronear.org/npm/base.nettool",
"vhost": "^3.0.2" "vhost": "^3.0.2"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,10 +1,10 @@
const fs = require('fs') const fs = require('fs')
const path = require('path') const path = require('path')
const nettool = require('sol.nettool') const nettool = require('base.nettool')
const express = require('express') const express = require('express')
const wo = (global.wo = { const wo = (global.wo = {
envi : require('sol.enviconfig').mergeConfig({ envi : require('base.enviconfig').mergeConfig({
commanderOptions: [ commanderOptions: [
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。 // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'], ['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],