@dypnb/dev-tools 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -9348,14 +9348,14 @@
9348
9348
  };
9349
9349
 
9350
9350
  async function getGlobalConfig(type) {
9351
- const name = findup('dyp.config.js', {
9351
+ const name = findup("dyp.config.js", {
9352
9352
  cwd: process.env.PWD
9353
9353
  });
9354
9354
  const dypConfig = await import(name);
9355
9355
  if (type) {
9356
- return dypConfig['default'][type];
9356
+ return dypConfig["default"][type];
9357
9357
  }
9358
- return dypConfig['default'];
9358
+ return dypConfig["default"];
9359
9359
  }
9360
9360
 
9361
9361
  // 首字母大写
@@ -9368,15 +9368,15 @@
9368
9368
  return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.browser.js', document.baseURI).href))));
9369
9369
  }
9370
9370
  function log(mainMsg, laterMsg) {
9371
- return chalkLog('blue', mainMsg, laterMsg);
9371
+ return chalkLog("blue", mainMsg, laterMsg);
9372
9372
  }
9373
- function successLog(mainMsg, laterMsg = '') {
9374
- return chalkLog('green', mainMsg, laterMsg);
9373
+ function successLog(mainMsg, laterMsg = "") {
9374
+ return chalkLog("green", mainMsg, laterMsg);
9375
9375
  }
9376
- function errorLog(mainMsg, laterMsg = '') {
9377
- return chalkLog('red', mainMsg, laterMsg);
9376
+ function errorLog(mainMsg, laterMsg = "") {
9377
+ return chalkLog("red", mainMsg, laterMsg);
9378
9378
  }
9379
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9379
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9380
9380
  if (!laterMsg) {
9381
9381
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9382
9382
  }
@@ -9357,14 +9357,14 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9357
9357
  };
9358
9358
 
9359
9359
  async function getGlobalConfig(type) {
9360
- const name = findup('dyp.config.js', {
9360
+ const name = findup("dyp.config.js", {
9361
9361
  cwd: process.env.PWD
9362
9362
  });
9363
9363
  const dypConfig = await import(name);
9364
9364
  if (type) {
9365
- return dypConfig['default'][type];
9365
+ return dypConfig["default"][type];
9366
9366
  }
9367
- return dypConfig['default'];
9367
+ return dypConfig["default"];
9368
9368
  }
9369
9369
 
9370
9370
  // 首字母大写
@@ -9374,18 +9374,18 @@ function strCase(str) {
9374
9374
 
9375
9375
  // 获取根路径
9376
9376
  function getDirname() {
9377
- return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs.js', document.baseURI).href))));
9377
+ return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
9378
9378
  }
9379
9379
  function log(mainMsg, laterMsg) {
9380
- return chalkLog('blue', mainMsg, laterMsg);
9380
+ return chalkLog("blue", mainMsg, laterMsg);
9381
9381
  }
9382
- function successLog(mainMsg, laterMsg = '') {
9383
- return chalkLog('green', mainMsg, laterMsg);
9382
+ function successLog(mainMsg, laterMsg = "") {
9383
+ return chalkLog("green", mainMsg, laterMsg);
9384
9384
  }
9385
- function errorLog(mainMsg, laterMsg = '') {
9386
- return chalkLog('red', mainMsg, laterMsg);
9385
+ function errorLog(mainMsg, laterMsg = "") {
9386
+ return chalkLog("red", mainMsg, laterMsg);
9387
9387
  }
9388
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9388
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9389
9389
  if (!laterMsg) {
9390
9390
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9391
9391
  }
@@ -9354,14 +9354,14 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9354
9354
  };
9355
9355
 
9356
9356
  async function getGlobalConfig(type) {
9357
- const name = findup('dyp.config.js', {
9357
+ const name = findup("dyp.config.js", {
9358
9358
  cwd: process.env.PWD
9359
9359
  });
9360
9360
  const dypConfig = await import(name);
9361
9361
  if (type) {
9362
- return dypConfig['default'][type];
9362
+ return dypConfig["default"][type];
9363
9363
  }
9364
- return dypConfig['default'];
9364
+ return dypConfig["default"];
9365
9365
  }
9366
9366
 
9367
9367
  // 首字母大写
@@ -9374,15 +9374,15 @@ function getDirname() {
9374
9374
  return dirname(fileURLToPath(import.meta.url));
9375
9375
  }
9376
9376
  function log(mainMsg, laterMsg) {
9377
- return chalkLog('blue', mainMsg, laterMsg);
9377
+ return chalkLog("blue", mainMsg, laterMsg);
9378
9378
  }
9379
- function successLog(mainMsg, laterMsg = '') {
9380
- return chalkLog('green', mainMsg, laterMsg);
9379
+ function successLog(mainMsg, laterMsg = "") {
9380
+ return chalkLog("green", mainMsg, laterMsg);
9381
9381
  }
9382
- function errorLog(mainMsg, laterMsg = '') {
9383
- return chalkLog('red', mainMsg, laterMsg);
9382
+ function errorLog(mainMsg, laterMsg = "") {
9383
+ return chalkLog("red", mainMsg, laterMsg);
9384
9384
  }
9385
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9385
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9386
9386
  if (!laterMsg) {
9387
9387
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9388
9388
  }
@@ -9348,14 +9348,14 @@
9348
9348
  };
9349
9349
 
9350
9350
  async function getGlobalConfig(type) {
9351
- const name = findup('dyp.config.js', {
9351
+ const name = findup("dyp.config.js", {
9352
9352
  cwd: process.env.PWD
9353
9353
  });
9354
9354
  const dypConfig = await import(name);
9355
9355
  if (type) {
9356
- return dypConfig['default'][type];
9356
+ return dypConfig["default"][type];
9357
9357
  }
9358
- return dypConfig['default'];
9358
+ return dypConfig["default"];
9359
9359
  }
9360
9360
 
9361
9361
  // 获取根路径
@@ -9363,15 +9363,15 @@
9363
9363
  return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.browser.js', document.baseURI).href))));
9364
9364
  }
9365
9365
  function log(mainMsg, laterMsg) {
9366
- return chalkLog('blue', mainMsg, laterMsg);
9366
+ return chalkLog("blue", mainMsg, laterMsg);
9367
9367
  }
9368
- function successLog(mainMsg, laterMsg = '') {
9369
- return chalkLog('green', mainMsg, laterMsg);
9368
+ function successLog(mainMsg, laterMsg = "") {
9369
+ return chalkLog("green", mainMsg, laterMsg);
9370
9370
  }
9371
- function errorLog(mainMsg, laterMsg = '') {
9372
- return chalkLog('red', mainMsg, laterMsg);
9371
+ function errorLog(mainMsg, laterMsg = "") {
9372
+ return chalkLog("red", mainMsg, laterMsg);
9373
9373
  }
9374
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9374
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9375
9375
  if (!laterMsg) {
9376
9376
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9377
9377
  }
@@ -9358,30 +9358,30 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9358
9358
  };
9359
9359
 
9360
9360
  async function getGlobalConfig(type) {
9361
- const name = findup('dyp.config.js', {
9361
+ const name = findup("dyp.config.js", {
9362
9362
  cwd: process.env.PWD
9363
9363
  });
9364
9364
  const dypConfig = await import(name);
9365
9365
  if (type) {
9366
- return dypConfig['default'][type];
9366
+ return dypConfig["default"][type];
9367
9367
  }
9368
- return dypConfig['default'];
9368
+ return dypConfig["default"];
9369
9369
  }
9370
9370
 
9371
9371
  // 获取根路径
9372
9372
  function getDirname() {
9373
- return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs.js', document.baseURI).href))));
9373
+ return node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
9374
9374
  }
9375
9375
  function log(mainMsg, laterMsg) {
9376
- return chalkLog('blue', mainMsg, laterMsg);
9376
+ return chalkLog("blue", mainMsg, laterMsg);
9377
9377
  }
9378
- function successLog(mainMsg, laterMsg = '') {
9379
- return chalkLog('green', mainMsg, laterMsg);
9378
+ function successLog(mainMsg, laterMsg = "") {
9379
+ return chalkLog("green", mainMsg, laterMsg);
9380
9380
  }
9381
- function errorLog(mainMsg, laterMsg = '') {
9382
- return chalkLog('red', mainMsg, laterMsg);
9381
+ function errorLog(mainMsg, laterMsg = "") {
9382
+ return chalkLog("red", mainMsg, laterMsg);
9383
9383
  }
9384
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9384
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9385
9385
  if (!laterMsg) {
9386
9386
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9387
9387
  }
@@ -9355,14 +9355,14 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9355
9355
  };
9356
9356
 
9357
9357
  async function getGlobalConfig(type) {
9358
- const name = findup('dyp.config.js', {
9358
+ const name = findup("dyp.config.js", {
9359
9359
  cwd: process.env.PWD
9360
9360
  });
9361
9361
  const dypConfig = await import(name);
9362
9362
  if (type) {
9363
- return dypConfig['default'][type];
9363
+ return dypConfig["default"][type];
9364
9364
  }
9365
- return dypConfig['default'];
9365
+ return dypConfig["default"];
9366
9366
  }
9367
9367
 
9368
9368
  // 获取根路径
@@ -9370,15 +9370,15 @@ function getDirname() {
9370
9370
  return dirname(fileURLToPath(import.meta.url));
9371
9371
  }
9372
9372
  function log(mainMsg, laterMsg) {
9373
- return chalkLog('blue', mainMsg, laterMsg);
9373
+ return chalkLog("blue", mainMsg, laterMsg);
9374
9374
  }
9375
- function successLog(mainMsg, laterMsg = '') {
9376
- return chalkLog('green', mainMsg, laterMsg);
9375
+ function successLog(mainMsg, laterMsg = "") {
9376
+ return chalkLog("green", mainMsg, laterMsg);
9377
9377
  }
9378
- function errorLog(mainMsg, laterMsg = '') {
9379
- return chalkLog('red', mainMsg, laterMsg);
9378
+ function errorLog(mainMsg, laterMsg = "") {
9379
+ return chalkLog("red", mainMsg, laterMsg);
9380
9380
  }
9381
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9381
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9382
9382
  if (!laterMsg) {
9383
9383
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9384
9384
  }
@@ -59563,34 +59563,34 @@
59563
59563
  var execa$1 = /*@__PURE__*/getDefaultExportFromCjs(_execa_5_1_1_execaExports);
59564
59564
 
59565
59565
  async function getGlobalConfig(type) {
59566
- const name = findup('dyp.config.js', {
59566
+ const name = findup("dyp.config.js", {
59567
59567
  cwd: process.env.PWD
59568
59568
  });
59569
59569
  const dypConfig = await import(name);
59570
59570
  if (type) {
59571
- return dypConfig['default'][type];
59571
+ return dypConfig["default"][type];
59572
59572
  }
59573
- return dypConfig['default'];
59573
+ return dypConfig["default"];
59574
59574
  }
59575
59575
  function log(mainMsg, laterMsg) {
59576
- return chalkLog('blue', mainMsg, laterMsg);
59576
+ return chalkLog("blue", mainMsg, laterMsg);
59577
59577
  }
59578
- function cyanLog(mainMsg, laterMsg = '') {
59579
- return chalkLog('cyan', mainMsg, laterMsg);
59578
+ function cyanLog(mainMsg, laterMsg = "") {
59579
+ return chalkLog("cyan", mainMsg, laterMsg);
59580
59580
  }
59581
- function magentaLog(mainMsg, laterMsg = '') {
59582
- return chalkLog('magenta', mainMsg, laterMsg);
59581
+ function magentaLog(mainMsg, laterMsg = "") {
59582
+ return chalkLog("magenta", mainMsg, laterMsg);
59583
59583
  }
59584
- function successLog(mainMsg, laterMsg = '') {
59585
- return chalkLog('green', mainMsg, laterMsg);
59584
+ function successLog(mainMsg, laterMsg = "") {
59585
+ return chalkLog("green", mainMsg, laterMsg);
59586
59586
  }
59587
- function warningLog(mainMsg, laterMsg = '') {
59588
- return chalkLog('yellow', mainMsg, laterMsg);
59587
+ function warningLog(mainMsg, laterMsg = "") {
59588
+ return chalkLog("yellow", mainMsg, laterMsg);
59589
59589
  }
59590
- function errorLog(mainMsg, laterMsg = '') {
59591
- return chalkLog('red', mainMsg, laterMsg);
59590
+ function errorLog(mainMsg, laterMsg = "") {
59591
+ return chalkLog("red", mainMsg, laterMsg);
59592
59592
  }
59593
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
59593
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
59594
59594
  if (!laterMsg) {
59595
59595
  return console.log(chalk$1[chalkType](`${mainMsg}`));
59596
59596
  }
@@ -59604,7 +59604,7 @@
59604
59604
  */
59605
59605
 
59606
59606
  function getGitInfo() {
59607
- const shortCommid = execa$1.commandSync('git rev-parse --short HEAD');
59607
+ const shortCommid = execa$1.commandSync("git rev-parse --short HEAD");
59608
59608
  const gitComMsg = `git log --pretty=format:“%s” ${shortCommid.stdout} -1`;
59609
59609
  const {
59610
59610
  stdout,
@@ -37919,156 +37919,156 @@ var hasRequired_colorName_1_1_4_colorName;
37919
37919
  function require_colorName_1_1_4_colorName () {
37920
37920
  if (hasRequired_colorName_1_1_4_colorName) return _colorName_1_1_4_colorName;
37921
37921
  hasRequired_colorName_1_1_4_colorName = 1;
37922
-
37923
- _colorName_1_1_4_colorName = {
37924
- "aliceblue": [240, 248, 255],
37925
- "antiquewhite": [250, 235, 215],
37926
- "aqua": [0, 255, 255],
37927
- "aquamarine": [127, 255, 212],
37928
- "azure": [240, 255, 255],
37929
- "beige": [245, 245, 220],
37930
- "bisque": [255, 228, 196],
37931
- "black": [0, 0, 0],
37932
- "blanchedalmond": [255, 235, 205],
37933
- "blue": [0, 0, 255],
37934
- "blueviolet": [138, 43, 226],
37935
- "brown": [165, 42, 42],
37936
- "burlywood": [222, 184, 135],
37937
- "cadetblue": [95, 158, 160],
37938
- "chartreuse": [127, 255, 0],
37939
- "chocolate": [210, 105, 30],
37940
- "coral": [255, 127, 80],
37941
- "cornflowerblue": [100, 149, 237],
37942
- "cornsilk": [255, 248, 220],
37943
- "crimson": [220, 20, 60],
37944
- "cyan": [0, 255, 255],
37945
- "darkblue": [0, 0, 139],
37946
- "darkcyan": [0, 139, 139],
37947
- "darkgoldenrod": [184, 134, 11],
37948
- "darkgray": [169, 169, 169],
37949
- "darkgreen": [0, 100, 0],
37950
- "darkgrey": [169, 169, 169],
37951
- "darkkhaki": [189, 183, 107],
37952
- "darkmagenta": [139, 0, 139],
37953
- "darkolivegreen": [85, 107, 47],
37954
- "darkorange": [255, 140, 0],
37955
- "darkorchid": [153, 50, 204],
37956
- "darkred": [139, 0, 0],
37957
- "darksalmon": [233, 150, 122],
37958
- "darkseagreen": [143, 188, 143],
37959
- "darkslateblue": [72, 61, 139],
37960
- "darkslategray": [47, 79, 79],
37961
- "darkslategrey": [47, 79, 79],
37962
- "darkturquoise": [0, 206, 209],
37963
- "darkviolet": [148, 0, 211],
37964
- "deeppink": [255, 20, 147],
37965
- "deepskyblue": [0, 191, 255],
37966
- "dimgray": [105, 105, 105],
37967
- "dimgrey": [105, 105, 105],
37968
- "dodgerblue": [30, 144, 255],
37969
- "firebrick": [178, 34, 34],
37970
- "floralwhite": [255, 250, 240],
37971
- "forestgreen": [34, 139, 34],
37972
- "fuchsia": [255, 0, 255],
37973
- "gainsboro": [220, 220, 220],
37974
- "ghostwhite": [248, 248, 255],
37975
- "gold": [255, 215, 0],
37976
- "goldenrod": [218, 165, 32],
37977
- "gray": [128, 128, 128],
37978
- "green": [0, 128, 0],
37979
- "greenyellow": [173, 255, 47],
37980
- "grey": [128, 128, 128],
37981
- "honeydew": [240, 255, 240],
37982
- "hotpink": [255, 105, 180],
37983
- "indianred": [205, 92, 92],
37984
- "indigo": [75, 0, 130],
37985
- "ivory": [255, 255, 240],
37986
- "khaki": [240, 230, 140],
37987
- "lavender": [230, 230, 250],
37988
- "lavenderblush": [255, 240, 245],
37989
- "lawngreen": [124, 252, 0],
37990
- "lemonchiffon": [255, 250, 205],
37991
- "lightblue": [173, 216, 230],
37992
- "lightcoral": [240, 128, 128],
37993
- "lightcyan": [224, 255, 255],
37994
- "lightgoldenrodyellow": [250, 250, 210],
37995
- "lightgray": [211, 211, 211],
37996
- "lightgreen": [144, 238, 144],
37997
- "lightgrey": [211, 211, 211],
37998
- "lightpink": [255, 182, 193],
37999
- "lightsalmon": [255, 160, 122],
38000
- "lightseagreen": [32, 178, 170],
38001
- "lightskyblue": [135, 206, 250],
38002
- "lightslategray": [119, 136, 153],
38003
- "lightslategrey": [119, 136, 153],
38004
- "lightsteelblue": [176, 196, 222],
38005
- "lightyellow": [255, 255, 224],
38006
- "lime": [0, 255, 0],
38007
- "limegreen": [50, 205, 50],
38008
- "linen": [250, 240, 230],
38009
- "magenta": [255, 0, 255],
38010
- "maroon": [128, 0, 0],
38011
- "mediumaquamarine": [102, 205, 170],
38012
- "mediumblue": [0, 0, 205],
38013
- "mediumorchid": [186, 85, 211],
38014
- "mediumpurple": [147, 112, 219],
38015
- "mediumseagreen": [60, 179, 113],
38016
- "mediumslateblue": [123, 104, 238],
38017
- "mediumspringgreen": [0, 250, 154],
38018
- "mediumturquoise": [72, 209, 204],
38019
- "mediumvioletred": [199, 21, 133],
38020
- "midnightblue": [25, 25, 112],
38021
- "mintcream": [245, 255, 250],
38022
- "mistyrose": [255, 228, 225],
38023
- "moccasin": [255, 228, 181],
38024
- "navajowhite": [255, 222, 173],
38025
- "navy": [0, 0, 128],
38026
- "oldlace": [253, 245, 230],
38027
- "olive": [128, 128, 0],
38028
- "olivedrab": [107, 142, 35],
38029
- "orange": [255, 165, 0],
38030
- "orangered": [255, 69, 0],
38031
- "orchid": [218, 112, 214],
38032
- "palegoldenrod": [238, 232, 170],
38033
- "palegreen": [152, 251, 152],
38034
- "paleturquoise": [175, 238, 238],
38035
- "palevioletred": [219, 112, 147],
38036
- "papayawhip": [255, 239, 213],
38037
- "peachpuff": [255, 218, 185],
38038
- "peru": [205, 133, 63],
38039
- "pink": [255, 192, 203],
38040
- "plum": [221, 160, 221],
38041
- "powderblue": [176, 224, 230],
38042
- "purple": [128, 0, 128],
38043
- "rebeccapurple": [102, 51, 153],
38044
- "red": [255, 0, 0],
38045
- "rosybrown": [188, 143, 143],
38046
- "royalblue": [65, 105, 225],
38047
- "saddlebrown": [139, 69, 19],
38048
- "salmon": [250, 128, 114],
38049
- "sandybrown": [244, 164, 96],
38050
- "seagreen": [46, 139, 87],
38051
- "seashell": [255, 245, 238],
38052
- "sienna": [160, 82, 45],
38053
- "silver": [192, 192, 192],
38054
- "skyblue": [135, 206, 235],
38055
- "slateblue": [106, 90, 205],
38056
- "slategray": [112, 128, 144],
38057
- "slategrey": [112, 128, 144],
38058
- "snow": [255, 250, 250],
38059
- "springgreen": [0, 255, 127],
38060
- "steelblue": [70, 130, 180],
38061
- "tan": [210, 180, 140],
38062
- "teal": [0, 128, 128],
38063
- "thistle": [216, 191, 216],
38064
- "tomato": [255, 99, 71],
38065
- "turquoise": [64, 224, 208],
38066
- "violet": [238, 130, 238],
38067
- "wheat": [245, 222, 179],
38068
- "white": [255, 255, 255],
38069
- "whitesmoke": [245, 245, 245],
38070
- "yellow": [255, 255, 0],
38071
- "yellowgreen": [154, 205, 50]
37922
+
37923
+ _colorName_1_1_4_colorName = {
37924
+ "aliceblue": [240, 248, 255],
37925
+ "antiquewhite": [250, 235, 215],
37926
+ "aqua": [0, 255, 255],
37927
+ "aquamarine": [127, 255, 212],
37928
+ "azure": [240, 255, 255],
37929
+ "beige": [245, 245, 220],
37930
+ "bisque": [255, 228, 196],
37931
+ "black": [0, 0, 0],
37932
+ "blanchedalmond": [255, 235, 205],
37933
+ "blue": [0, 0, 255],
37934
+ "blueviolet": [138, 43, 226],
37935
+ "brown": [165, 42, 42],
37936
+ "burlywood": [222, 184, 135],
37937
+ "cadetblue": [95, 158, 160],
37938
+ "chartreuse": [127, 255, 0],
37939
+ "chocolate": [210, 105, 30],
37940
+ "coral": [255, 127, 80],
37941
+ "cornflowerblue": [100, 149, 237],
37942
+ "cornsilk": [255, 248, 220],
37943
+ "crimson": [220, 20, 60],
37944
+ "cyan": [0, 255, 255],
37945
+ "darkblue": [0, 0, 139],
37946
+ "darkcyan": [0, 139, 139],
37947
+ "darkgoldenrod": [184, 134, 11],
37948
+ "darkgray": [169, 169, 169],
37949
+ "darkgreen": [0, 100, 0],
37950
+ "darkgrey": [169, 169, 169],
37951
+ "darkkhaki": [189, 183, 107],
37952
+ "darkmagenta": [139, 0, 139],
37953
+ "darkolivegreen": [85, 107, 47],
37954
+ "darkorange": [255, 140, 0],
37955
+ "darkorchid": [153, 50, 204],
37956
+ "darkred": [139, 0, 0],
37957
+ "darksalmon": [233, 150, 122],
37958
+ "darkseagreen": [143, 188, 143],
37959
+ "darkslateblue": [72, 61, 139],
37960
+ "darkslategray": [47, 79, 79],
37961
+ "darkslategrey": [47, 79, 79],
37962
+ "darkturquoise": [0, 206, 209],
37963
+ "darkviolet": [148, 0, 211],
37964
+ "deeppink": [255, 20, 147],
37965
+ "deepskyblue": [0, 191, 255],
37966
+ "dimgray": [105, 105, 105],
37967
+ "dimgrey": [105, 105, 105],
37968
+ "dodgerblue": [30, 144, 255],
37969
+ "firebrick": [178, 34, 34],
37970
+ "floralwhite": [255, 250, 240],
37971
+ "forestgreen": [34, 139, 34],
37972
+ "fuchsia": [255, 0, 255],
37973
+ "gainsboro": [220, 220, 220],
37974
+ "ghostwhite": [248, 248, 255],
37975
+ "gold": [255, 215, 0],
37976
+ "goldenrod": [218, 165, 32],
37977
+ "gray": [128, 128, 128],
37978
+ "green": [0, 128, 0],
37979
+ "greenyellow": [173, 255, 47],
37980
+ "grey": [128, 128, 128],
37981
+ "honeydew": [240, 255, 240],
37982
+ "hotpink": [255, 105, 180],
37983
+ "indianred": [205, 92, 92],
37984
+ "indigo": [75, 0, 130],
37985
+ "ivory": [255, 255, 240],
37986
+ "khaki": [240, 230, 140],
37987
+ "lavender": [230, 230, 250],
37988
+ "lavenderblush": [255, 240, 245],
37989
+ "lawngreen": [124, 252, 0],
37990
+ "lemonchiffon": [255, 250, 205],
37991
+ "lightblue": [173, 216, 230],
37992
+ "lightcoral": [240, 128, 128],
37993
+ "lightcyan": [224, 255, 255],
37994
+ "lightgoldenrodyellow": [250, 250, 210],
37995
+ "lightgray": [211, 211, 211],
37996
+ "lightgreen": [144, 238, 144],
37997
+ "lightgrey": [211, 211, 211],
37998
+ "lightpink": [255, 182, 193],
37999
+ "lightsalmon": [255, 160, 122],
38000
+ "lightseagreen": [32, 178, 170],
38001
+ "lightskyblue": [135, 206, 250],
38002
+ "lightslategray": [119, 136, 153],
38003
+ "lightslategrey": [119, 136, 153],
38004
+ "lightsteelblue": [176, 196, 222],
38005
+ "lightyellow": [255, 255, 224],
38006
+ "lime": [0, 255, 0],
38007
+ "limegreen": [50, 205, 50],
38008
+ "linen": [250, 240, 230],
38009
+ "magenta": [255, 0, 255],
38010
+ "maroon": [128, 0, 0],
38011
+ "mediumaquamarine": [102, 205, 170],
38012
+ "mediumblue": [0, 0, 205],
38013
+ "mediumorchid": [186, 85, 211],
38014
+ "mediumpurple": [147, 112, 219],
38015
+ "mediumseagreen": [60, 179, 113],
38016
+ "mediumslateblue": [123, 104, 238],
38017
+ "mediumspringgreen": [0, 250, 154],
38018
+ "mediumturquoise": [72, 209, 204],
38019
+ "mediumvioletred": [199, 21, 133],
38020
+ "midnightblue": [25, 25, 112],
38021
+ "mintcream": [245, 255, 250],
38022
+ "mistyrose": [255, 228, 225],
38023
+ "moccasin": [255, 228, 181],
38024
+ "navajowhite": [255, 222, 173],
38025
+ "navy": [0, 0, 128],
38026
+ "oldlace": [253, 245, 230],
38027
+ "olive": [128, 128, 0],
38028
+ "olivedrab": [107, 142, 35],
38029
+ "orange": [255, 165, 0],
38030
+ "orangered": [255, 69, 0],
38031
+ "orchid": [218, 112, 214],
38032
+ "palegoldenrod": [238, 232, 170],
38033
+ "palegreen": [152, 251, 152],
38034
+ "paleturquoise": [175, 238, 238],
38035
+ "palevioletred": [219, 112, 147],
38036
+ "papayawhip": [255, 239, 213],
38037
+ "peachpuff": [255, 218, 185],
38038
+ "peru": [205, 133, 63],
38039
+ "pink": [255, 192, 203],
38040
+ "plum": [221, 160, 221],
38041
+ "powderblue": [176, 224, 230],
38042
+ "purple": [128, 0, 128],
38043
+ "rebeccapurple": [102, 51, 153],
38044
+ "red": [255, 0, 0],
38045
+ "rosybrown": [188, 143, 143],
38046
+ "royalblue": [65, 105, 225],
38047
+ "saddlebrown": [139, 69, 19],
38048
+ "salmon": [250, 128, 114],
38049
+ "sandybrown": [244, 164, 96],
38050
+ "seagreen": [46, 139, 87],
38051
+ "seashell": [255, 245, 238],
38052
+ "sienna": [160, 82, 45],
38053
+ "silver": [192, 192, 192],
38054
+ "skyblue": [135, 206, 235],
38055
+ "slateblue": [106, 90, 205],
38056
+ "slategray": [112, 128, 144],
38057
+ "slategrey": [112, 128, 144],
38058
+ "snow": [255, 250, 250],
38059
+ "springgreen": [0, 255, 127],
38060
+ "steelblue": [70, 130, 180],
38061
+ "tan": [210, 180, 140],
38062
+ "teal": [0, 128, 128],
38063
+ "thistle": [216, 191, 216],
38064
+ "tomato": [255, 99, 71],
38065
+ "turquoise": [64, 224, 208],
38066
+ "violet": [238, 130, 238],
38067
+ "wheat": [245, 222, 179],
38068
+ "white": [255, 255, 255],
38069
+ "whitesmoke": [245, 245, 245],
38070
+ "yellow": [255, 255, 0],
38071
+ "yellowgreen": [154, 205, 50]
38072
38072
  };
38073
38073
  return _colorName_1_1_4_colorName;
38074
38074
  }
@@ -59580,34 +59580,34 @@ var _execa_5_1_1_execaExports = _execa_5_1_1_execa.exports;
59580
59580
  var execa$1 = /*@__PURE__*/getDefaultExportFromCjs(_execa_5_1_1_execaExports);
59581
59581
 
59582
59582
  async function getGlobalConfig(type) {
59583
- const name = findup('dyp.config.js', {
59583
+ const name = findup("dyp.config.js", {
59584
59584
  cwd: process.env.PWD
59585
59585
  });
59586
59586
  const dypConfig = await import(name);
59587
59587
  if (type) {
59588
- return dypConfig['default'][type];
59588
+ return dypConfig["default"][type];
59589
59589
  }
59590
- return dypConfig['default'];
59590
+ return dypConfig["default"];
59591
59591
  }
59592
59592
  function log(mainMsg, laterMsg) {
59593
- return chalkLog('blue', mainMsg, laterMsg);
59593
+ return chalkLog("blue", mainMsg, laterMsg);
59594
59594
  }
59595
- function cyanLog(mainMsg, laterMsg = '') {
59596
- return chalkLog('cyan', mainMsg, laterMsg);
59595
+ function cyanLog(mainMsg, laterMsg = "") {
59596
+ return chalkLog("cyan", mainMsg, laterMsg);
59597
59597
  }
59598
- function magentaLog(mainMsg, laterMsg = '') {
59599
- return chalkLog('magenta', mainMsg, laterMsg);
59598
+ function magentaLog(mainMsg, laterMsg = "") {
59599
+ return chalkLog("magenta", mainMsg, laterMsg);
59600
59600
  }
59601
- function successLog(mainMsg, laterMsg = '') {
59602
- return chalkLog('green', mainMsg, laterMsg);
59601
+ function successLog(mainMsg, laterMsg = "") {
59602
+ return chalkLog("green", mainMsg, laterMsg);
59603
59603
  }
59604
- function warningLog(mainMsg, laterMsg = '') {
59605
- return chalkLog('yellow', mainMsg, laterMsg);
59604
+ function warningLog(mainMsg, laterMsg = "") {
59605
+ return chalkLog("yellow", mainMsg, laterMsg);
59606
59606
  }
59607
- function errorLog(mainMsg, laterMsg = '') {
59608
- return chalkLog('red', mainMsg, laterMsg);
59607
+ function errorLog(mainMsg, laterMsg = "") {
59608
+ return chalkLog("red", mainMsg, laterMsg);
59609
59609
  }
59610
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
59610
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
59611
59611
  if (!laterMsg) {
59612
59612
  return console.log(chalk$1[chalkType](`${mainMsg}`));
59613
59613
  }
@@ -59621,7 +59621,7 @@ function chalkLog(chalkType, mainMsg, laterMsg = '') {
59621
59621
  */
59622
59622
 
59623
59623
  function getGitInfo() {
59624
- const shortCommid = execa$1.commandSync('git rev-parse --short HEAD');
59624
+ const shortCommid = execa$1.commandSync("git rev-parse --short HEAD");
59625
59625
  const gitComMsg = `git log --pretty=format:“%s” ${shortCommid.stdout} -1`;
59626
59626
  const {
59627
59627
  stdout,
@@ -59578,34 +59578,34 @@ var _execa_5_1_1_execaExports = _execa_5_1_1_execa.exports;
59578
59578
  var execa$1 = /*@__PURE__*/getDefaultExportFromCjs(_execa_5_1_1_execaExports);
59579
59579
 
59580
59580
  async function getGlobalConfig(type) {
59581
- const name = findup('dyp.config.js', {
59581
+ const name = findup("dyp.config.js", {
59582
59582
  cwd: process.env.PWD
59583
59583
  });
59584
59584
  const dypConfig = await import(name);
59585
59585
  if (type) {
59586
- return dypConfig['default'][type];
59586
+ return dypConfig["default"][type];
59587
59587
  }
59588
- return dypConfig['default'];
59588
+ return dypConfig["default"];
59589
59589
  }
59590
59590
  function log(mainMsg, laterMsg) {
59591
- return chalkLog('blue', mainMsg, laterMsg);
59591
+ return chalkLog("blue", mainMsg, laterMsg);
59592
59592
  }
59593
- function cyanLog(mainMsg, laterMsg = '') {
59594
- return chalkLog('cyan', mainMsg, laterMsg);
59593
+ function cyanLog(mainMsg, laterMsg = "") {
59594
+ return chalkLog("cyan", mainMsg, laterMsg);
59595
59595
  }
59596
- function magentaLog(mainMsg, laterMsg = '') {
59597
- return chalkLog('magenta', mainMsg, laterMsg);
59596
+ function magentaLog(mainMsg, laterMsg = "") {
59597
+ return chalkLog("magenta", mainMsg, laterMsg);
59598
59598
  }
59599
- function successLog(mainMsg, laterMsg = '') {
59600
- return chalkLog('green', mainMsg, laterMsg);
59599
+ function successLog(mainMsg, laterMsg = "") {
59600
+ return chalkLog("green", mainMsg, laterMsg);
59601
59601
  }
59602
- function warningLog(mainMsg, laterMsg = '') {
59603
- return chalkLog('yellow', mainMsg, laterMsg);
59602
+ function warningLog(mainMsg, laterMsg = "") {
59603
+ return chalkLog("yellow", mainMsg, laterMsg);
59604
59604
  }
59605
- function errorLog(mainMsg, laterMsg = '') {
59606
- return chalkLog('red', mainMsg, laterMsg);
59605
+ function errorLog(mainMsg, laterMsg = "") {
59606
+ return chalkLog("red", mainMsg, laterMsg);
59607
59607
  }
59608
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
59608
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
59609
59609
  if (!laterMsg) {
59610
59610
  return console.log(chalk$1[chalkType](`${mainMsg}`));
59611
59611
  }
@@ -59619,7 +59619,7 @@ function chalkLog(chalkType, mainMsg, laterMsg = '') {
59619
59619
  */
59620
59620
 
59621
59621
  function getGitInfo() {
59622
- const shortCommid = execa$1.commandSync('git rev-parse --short HEAD');
59622
+ const shortCommid = execa$1.commandSync("git rev-parse --short HEAD");
59623
59623
  const gitComMsg = `git log --pretty=format:“%s” ${shortCommid.stdout} -1`;
59624
59624
  const {
59625
59625
  stdout,
@@ -9347,22 +9347,22 @@
9347
9347
  };
9348
9348
 
9349
9349
  async function getGlobalConfig(type) {
9350
- const name = findup('dyp.config.js', {
9350
+ const name = findup("dyp.config.js", {
9351
9351
  cwd: process.env.PWD
9352
9352
  });
9353
9353
  const dypConfig = await import(name);
9354
9354
  if (type) {
9355
- return dypConfig['default'][type];
9355
+ return dypConfig["default"][type];
9356
9356
  }
9357
- return dypConfig['default'];
9357
+ return dypConfig["default"];
9358
9358
  }
9359
- function successLog(mainMsg, laterMsg = '') {
9360
- return chalkLog('green', mainMsg, laterMsg);
9359
+ function successLog(mainMsg, laterMsg = "") {
9360
+ return chalkLog("green", mainMsg, laterMsg);
9361
9361
  }
9362
- function errorLog(mainMsg, laterMsg = '') {
9363
- return chalkLog('red', mainMsg, laterMsg);
9362
+ function errorLog(mainMsg, laterMsg = "") {
9363
+ return chalkLog("red", mainMsg, laterMsg);
9364
9364
  }
9365
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9365
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9366
9366
  if (!laterMsg) {
9367
9367
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9368
9368
  }
@@ -9360,22 +9360,22 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9360
9360
  };
9361
9361
 
9362
9362
  async function getGlobalConfig(type) {
9363
- const name = findup('dyp.config.js', {
9363
+ const name = findup("dyp.config.js", {
9364
9364
  cwd: process.env.PWD
9365
9365
  });
9366
9366
  const dypConfig = await import(name);
9367
9367
  if (type) {
9368
- return dypConfig['default'][type];
9368
+ return dypConfig["default"][type];
9369
9369
  }
9370
- return dypConfig['default'];
9370
+ return dypConfig["default"];
9371
9371
  }
9372
- function successLog(mainMsg, laterMsg = '') {
9373
- return chalkLog('green', mainMsg, laterMsg);
9372
+ function successLog(mainMsg, laterMsg = "") {
9373
+ return chalkLog("green", mainMsg, laterMsg);
9374
9374
  }
9375
- function errorLog(mainMsg, laterMsg = '') {
9376
- return chalkLog('red', mainMsg, laterMsg);
9375
+ function errorLog(mainMsg, laterMsg = "") {
9376
+ return chalkLog("red", mainMsg, laterMsg);
9377
9377
  }
9378
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9378
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9379
9379
  if (!laterMsg) {
9380
9380
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9381
9381
  }
@@ -9358,22 +9358,22 @@ _execa_5_1_1_execa.exports.node = (scriptPath, args, options = {}) => {
9358
9358
  };
9359
9359
 
9360
9360
  async function getGlobalConfig(type) {
9361
- const name = findup('dyp.config.js', {
9361
+ const name = findup("dyp.config.js", {
9362
9362
  cwd: process.env.PWD
9363
9363
  });
9364
9364
  const dypConfig = await import(name);
9365
9365
  if (type) {
9366
- return dypConfig['default'][type];
9366
+ return dypConfig["default"][type];
9367
9367
  }
9368
- return dypConfig['default'];
9368
+ return dypConfig["default"];
9369
9369
  }
9370
- function successLog(mainMsg, laterMsg = '') {
9371
- return chalkLog('green', mainMsg, laterMsg);
9370
+ function successLog(mainMsg, laterMsg = "") {
9371
+ return chalkLog("green", mainMsg, laterMsg);
9372
9372
  }
9373
- function errorLog(mainMsg, laterMsg = '') {
9374
- return chalkLog('red', mainMsg, laterMsg);
9373
+ function errorLog(mainMsg, laterMsg = "") {
9374
+ return chalkLog("red", mainMsg, laterMsg);
9375
9375
  }
9376
- function chalkLog(chalkType, mainMsg, laterMsg = '') {
9376
+ function chalkLog(chalkType, mainMsg, laterMsg = "") {
9377
9377
  if (!laterMsg) {
9378
9378
  return console.log(chalk$1[chalkType](`${mainMsg}`));
9379
9379
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dypnb/dev-tools",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "开发时的提效工具",
5
5
  "main": "lib/bundle.cjs.js",
6
6
  "jsnext:main": "lib/bundle.esm.js",
@@ -16,11 +16,12 @@
16
16
  "genPage": "node ./dist/genPage/index.esm.js",
17
17
  "docs:dev": "vitepress dev docs --host ",
18
18
  "docs:build": "vitepress build docs",
19
- "docs:preview": "vitepress preview docs",
20
- "publishD": "dyp-publish"
19
+ "docs:preview": "vitepress preview docs"
21
20
  },
22
21
  "bin": {
23
- "dyp-publish": "src/publish-server/index.mjs"
22
+ "dyp-publish": "dist/publishServer/index.cjs",
23
+ "dyp-genSwagger": "dist/genSwagger/index.cjs",
24
+ "dyp-genPage": "dist/genPage/index.cjs"
24
25
  },
25
26
  "dependencies": {
26
27
  "@dypnb/dev-tools": "^1.0.5",