gant-core 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli/index.js CHANGED
@@ -6675,7 +6675,7 @@ class Webpack {
6675
6675
  };
6676
6676
  }
6677
6677
 
6678
- function main$4(type = 'development') {
6678
+ function main$5(type = 'development') {
6679
6679
  const cwd = process.cwd();
6680
6680
  const configManager = new Config({ cwd });
6681
6681
  let userConfig = configManager.getUserConfig();
@@ -7352,7 +7352,7 @@ const escapeStringRegexp = escapeStringRegexp$1;
7352
7352
 
7353
7353
  const {platform: platform$2} = process;
7354
7354
 
7355
- const main$3 = {
7355
+ const main$4 = {
7356
7356
  tick: '✔',
7357
7357
  cross: '✖',
7358
7358
  star: '★',
@@ -7439,12 +7439,12 @@ const windows = {
7439
7439
  hamburger: '≡',
7440
7440
  smiley: '☺',
7441
7441
  mustache: '┌─┐',
7442
- heart: main$3.heart,
7442
+ heart: main$4.heart,
7443
7443
  nodejs: '♦',
7444
- arrowUp: main$3.arrowUp,
7445
- arrowDown: main$3.arrowDown,
7446
- arrowLeft: main$3.arrowLeft,
7447
- arrowRight: main$3.arrowRight,
7444
+ arrowUp: main$4.arrowUp,
7445
+ arrowDown: main$4.arrowDown,
7446
+ arrowLeft: main$4.arrowLeft,
7447
+ arrowRight: main$4.arrowRight,
7448
7448
  radioOn: '(*)',
7449
7449
  radioOff: '( )',
7450
7450
  checkboxOn: '[×]',
@@ -7474,17 +7474,17 @@ const windows = {
7474
7474
 
7475
7475
  if (platform$2 === 'linux') {
7476
7476
  // The main one doesn't look that good on Ubuntu.
7477
- main$3.questionMarkPrefix = '?';
7477
+ main$4.questionMarkPrefix = '?';
7478
7478
  }
7479
7479
 
7480
- const figures = platform$2 === 'win32' ? windows : main$3;
7480
+ const figures = platform$2 === 'win32' ? windows : main$4;
7481
7481
 
7482
7482
  const fn = string => {
7483
- if (figures === main$3) {
7483
+ if (figures === main$4) {
7484
7484
  return string;
7485
7485
  }
7486
7486
 
7487
- for (const [key, value] of Object.entries(main$3)) {
7487
+ for (const [key, value] of Object.entries(main$4)) {
7488
7488
  if (value === figures[key]) {
7489
7489
  continue;
7490
7490
  }
@@ -7496,7 +7496,7 @@ const fn = string => {
7496
7496
  };
7497
7497
 
7498
7498
  figures$2.exports = Object.assign(fn, figures);
7499
- figures$2.exports.main = main$3;
7499
+ figures$2.exports.main = main$4;
7500
7500
  figures$2.exports.windows = windows;
7501
7501
 
7502
7502
  var figuresExports = figures$2.exports;
@@ -28024,7 +28024,7 @@ var isUnicodeSupported$2 = () => {
28024
28024
  const chalk$1 = source;
28025
28025
  const isUnicodeSupported$1 = isUnicodeSupported$2;
28026
28026
 
28027
- const main$2 = {
28027
+ const main$3 = {
28028
28028
  info: chalk$1.blue('ℹ'),
28029
28029
  success: chalk$1.green('✔'),
28030
28030
  warning: chalk$1.yellow('⚠'),
@@ -28038,7 +28038,7 @@ const fallback = {
28038
28038
  error: chalk$1.red('×')
28039
28039
  };
28040
28040
 
28041
- var logSymbols$1 = isUnicodeSupported$1() ? main$2 : fallback;
28041
+ var logSymbols$1 = isUnicodeSupported$1() ? main$3 : fallback;
28042
28042
 
28043
28043
  var wcwidth$2 = {exports: {}};
28044
28044
 
@@ -34344,7 +34344,7 @@ class PasswordPrompt extends Prompt {
34344
34344
  }
34345
34345
  }
34346
34346
 
34347
- var main$1 = {};
34347
+ var main$2 = {};
34348
34348
 
34349
34349
  var chardet = {};
34350
34350
 
@@ -47897,11 +47897,11 @@ function setGracefulCleanup() {
47897
47897
  _gracefulCleanup = true;
47898
47898
  }
47899
47899
 
47900
- const version$1 = process.versions.node.split('.').map(function (value) {
47900
+ const version$2 = process.versions.node.split('.').map(function (value) {
47901
47901
  return parseInt(value, 10);
47902
47902
  });
47903
47903
 
47904
- if (version$1[0] === 0 && (version$1[1] < 9 || version$1[1] === 9 && version$1[2] < 5)) {
47904
+ if (version$2[0] === 0 && (version$2[1] < 9 || version$2[1] === 9 && version$2[2] < 5)) {
47905
47905
  process.addListener('uncaughtException', function _uncaughtExceptionThrown(err) {
47906
47906
  _uncaughtException = true;
47907
47907
  _garbageCollector();
@@ -48159,20 +48159,20 @@ RemoveFileError$1.RemoveFileError = RemoveFileError;
48159
48159
  * Kevin Gravier <kevin@mrkmg.com>
48160
48160
  * MIT 2019
48161
48161
  */
48162
- Object.defineProperty(main$1, "__esModule", { value: true });
48162
+ Object.defineProperty(main$2, "__esModule", { value: true });
48163
48163
  var chardet_1 = chardet;
48164
48164
  var child_process_1 = require$$1$2;
48165
48165
  var fs_1 = fs$6;
48166
48166
  var iconv_lite_1 = libExports;
48167
48167
  var tmp_1 = tmp;
48168
48168
  var CreateFileError_1 = CreateFileError$1;
48169
- main$1.CreateFileError = CreateFileError_1.CreateFileError;
48169
+ main$2.CreateFileError = CreateFileError_1.CreateFileError;
48170
48170
  var LaunchEditorError_1 = LaunchEditorError$1;
48171
- main$1.LaunchEditorError = LaunchEditorError_1.LaunchEditorError;
48171
+ main$2.LaunchEditorError = LaunchEditorError_1.LaunchEditorError;
48172
48172
  var ReadFileError_1 = ReadFileError$1;
48173
- main$1.ReadFileError = ReadFileError_1.ReadFileError;
48173
+ main$2.ReadFileError = ReadFileError_1.ReadFileError;
48174
48174
  var RemoveFileError_1 = RemoveFileError$1;
48175
- main$1.RemoveFileError = RemoveFileError_1.RemoveFileError;
48175
+ main$2.RemoveFileError = RemoveFileError_1.RemoveFileError;
48176
48176
  function edit(text, fileOptions) {
48177
48177
  if (text === void 0) { text = ""; }
48178
48178
  var editor = new ExternalEditor(text, fileOptions);
@@ -48180,7 +48180,7 @@ function edit(text, fileOptions) {
48180
48180
  editor.cleanup();
48181
48181
  return editor.text;
48182
48182
  }
48183
- main$1.edit = edit;
48183
+ main$2.edit = edit;
48184
48184
  function editAsync(text, callback, fileOptions) {
48185
48185
  if (text === void 0) { text = ""; }
48186
48186
  var editor = new ExternalEditor(text, fileOptions);
@@ -48199,7 +48199,7 @@ function editAsync(text, callback, fileOptions) {
48199
48199
  }
48200
48200
  });
48201
48201
  }
48202
- var editAsync_1 = main$1.editAsync = editAsync;
48202
+ var editAsync_1 = main$2.editAsync = editAsync;
48203
48203
  var ExternalEditor = /** @class */ (function () {
48204
48204
  function ExternalEditor(text, fileOptions) {
48205
48205
  if (text === void 0) { text = ""; }
@@ -48344,7 +48344,7 @@ var ExternalEditor = /** @class */ (function () {
48344
48344
  };
48345
48345
  return ExternalEditor;
48346
48346
  }());
48347
- main$1.ExternalEditor = ExternalEditor;
48347
+ main$2.ExternalEditor = ExternalEditor;
48348
48348
 
48349
48349
  /**
48350
48350
  * `editor` type prompt
@@ -50269,20 +50269,20 @@ var utils$2 = {};
50269
50269
  })();
50270
50270
  } (utils$2));
50271
50271
 
50272
- var name = "ejs";
50273
- var description = "Embedded JavaScript templates";
50272
+ var name$1 = "ejs";
50273
+ var description$1 = "Embedded JavaScript templates";
50274
50274
  var keywords = [
50275
50275
  "template",
50276
50276
  "engine",
50277
50277
  "ejs"
50278
50278
  ];
50279
- var version = "3.1.9";
50280
- var author = "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)";
50281
- var license = "Apache-2.0";
50282
- var bin = {
50279
+ var version$1 = "3.1.9";
50280
+ var author$1 = "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)";
50281
+ var license$1 = "Apache-2.0";
50282
+ var bin$1 = {
50283
50283
  ejs: "./bin/cli.js"
50284
50284
  };
50285
- var main = "./lib/ejs.js";
50285
+ var main$1 = "./lib/ejs.js";
50286
50286
  var jsdelivr = "ejs.min.js";
50287
50287
  var unpkg = "ejs.min.js";
50288
50288
  var repository = {
@@ -50291,10 +50291,10 @@ var repository = {
50291
50291
  };
50292
50292
  var bugs = "https://github.com/mde/ejs/issues";
50293
50293
  var homepage = "https://github.com/mde/ejs";
50294
- var dependencies = {
50294
+ var dependencies$1 = {
50295
50295
  jake: "^10.8.5"
50296
50296
  };
50297
- var devDependencies = {
50297
+ var devDependencies$1 = {
50298
50298
  browserify: "^16.5.1",
50299
50299
  eslint: "^6.8.0",
50300
50300
  "git-directory-deploy": "^1.5.1",
@@ -50306,27 +50306,27 @@ var devDependencies = {
50306
50306
  var engines = {
50307
50307
  node: ">=0.10.0"
50308
50308
  };
50309
- var scripts = {
50309
+ var scripts$1 = {
50310
50310
  test: "mocha -u tdd"
50311
50311
  };
50312
50312
  var require$$3 = {
50313
- name: name,
50314
- description: description,
50313
+ name: name$1,
50314
+ description: description$1,
50315
50315
  keywords: keywords,
50316
- version: version,
50317
- author: author,
50318
- license: license,
50319
- bin: bin,
50320
- main: main,
50316
+ version: version$1,
50317
+ author: author$1,
50318
+ license: license$1,
50319
+ bin: bin$1,
50320
+ main: main$1,
50321
50321
  jsdelivr: jsdelivr,
50322
50322
  unpkg: unpkg,
50323
50323
  repository: repository,
50324
50324
  bugs: bugs,
50325
50325
  homepage: homepage,
50326
- dependencies: dependencies,
50327
- devDependencies: devDependencies,
50326
+ dependencies: dependencies$1,
50327
+ devDependencies: devDependencies$1,
50328
50328
  engines: engines,
50329
- scripts: scripts
50329
+ scripts: scripts$1
50330
50330
  };
50331
50331
 
50332
50332
  /*
@@ -51296,6 +51296,101 @@ const createCwdConfig = (cwd, name, vue) => {
51296
51296
  fs$6.writeFileSync(path$5.resolve(cwd, 'config/proxy.ts'), templatelateProxy({}));
51297
51297
  };
51298
51298
 
51299
+ var name = "gant-core";
51300
+ var version = "0.1.11";
51301
+ var description = "";
51302
+ var main = "lib/index.js";
51303
+ var bin = {
51304
+ "gant-cli": "bin/index.js"
51305
+ };
51306
+ var devDependencies = {
51307
+ "@ant-design/colors": "^7.0.2",
51308
+ "@rollup/plugin-alias": "^5.1.0",
51309
+ "@rollup/plugin-commonjs": "^25.0.7",
51310
+ "@rollup/plugin-json": "^6.1.0",
51311
+ "@rollup/plugin-node-resolve": "^15.2.3",
51312
+ "@rollup/plugin-terser": "^0.4.4",
51313
+ "@rollup/plugin-typescript": "^11.1.6",
51314
+ "@root/walk": "^1.1.0",
51315
+ "@types/crypto-js": "^4.2.2",
51316
+ "@types/ejs": "^3.1.5",
51317
+ "@types/html-minifier-terser": "^7.0.2",
51318
+ "@types/inquirer": "^9.0.7",
51319
+ "@types/lodash-es": "^4.17.12",
51320
+ "@types/node": "^20.11.16",
51321
+ "@types/tmp": "^0.2.6",
51322
+ "cli-progress": "^3.12.0",
51323
+ commander: "^11.1.0",
51324
+ ejs: "^3.1.9",
51325
+ "fast-glob": "^3.3.2",
51326
+ fs: "^0.0.1-security",
51327
+ "html-webpack-tags-plugin": "^3.0.2",
51328
+ i18next: "^23.10.1",
51329
+ inquirer: "^9.2.14",
51330
+ "js-base64": "^3.7.7",
51331
+ "lodash-es": "^4.17.21",
51332
+ "md5-node": "^1.0.1",
51333
+ path: "^0.12.7",
51334
+ picocolors: "^1.0.0",
51335
+ rollup: "^4.9.6",
51336
+ "rollup-plugin-copy": "^3.5.0",
51337
+ "rollup-plugin-dts": "^6.1.0",
51338
+ "rollup-plugin-typescript2": "^0.36.0",
51339
+ tmp: "^0.2.3",
51340
+ typescript: "^5.3.3",
51341
+ url: "^0.11.3"
51342
+ };
51343
+ var scripts = {
51344
+ build: "rollup --config rollup.config.js",
51345
+ dev: "rollup --config rollup.config.js --watch",
51346
+ "tag-publish": "npm publish --registry=https://registry.npmjs.org/"
51347
+ };
51348
+ var author = "vvey";
51349
+ var license = "ISC";
51350
+ var dependencies = {
51351
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
51352
+ "@swc/core": "^1.4.11",
51353
+ axios: "^1.6.8",
51354
+ chokidar: "^3.6.0",
51355
+ "crypto-js": "^4.2.0",
51356
+ "css-loader": "^6.10.0",
51357
+ "css-minimizer-webpack-plugin": "^6.0.0",
51358
+ esbuild: "^0.20.1",
51359
+ "file-loader": "^6.2.0",
51360
+ "html-loader": "^5.0.0",
51361
+ "html-webpack-plugin": "^5.0.0",
51362
+ less: "^4.2.0",
51363
+ "less-loader": "^12.2.0",
51364
+ "loader-utils": "^3.2.1",
51365
+ "mini-css-extract-plugin": "^2.8.1",
51366
+ mitt: "^3.0.1",
51367
+ postcss: "^8.4.35",
51368
+ "postcss-loader": "^8.1.1",
51369
+ "postcss-preset-env": "^9.5.1",
51370
+ "postcss-short": "^5.0.0",
51371
+ prettier: "^3.2.5",
51372
+ "react-refresh": "^0.14.0",
51373
+ "style-loader": "^3.3.4",
51374
+ "swc-loader": "^0.2.6",
51375
+ "url-loader": "^4.1.1",
51376
+ "vue-loader": "^17.4.2",
51377
+ webpack: "^5.90.3",
51378
+ "webpack-bundle-analyzer": "^4.10.1",
51379
+ "webpack-dev-server": "^4.7.4"
51380
+ };
51381
+ var corepack = {
51382
+ name: name,
51383
+ version: version,
51384
+ description: description,
51385
+ main: main,
51386
+ bin: bin,
51387
+ devDependencies: devDependencies,
51388
+ scripts: scripts,
51389
+ author: author,
51390
+ license: license,
51391
+ dependencies: dependencies
51392
+ };
51393
+
51299
51394
  const cwd = process.cwd();
51300
51395
  var createModule = async () => {
51301
51396
  const pkg = await loadJSON(path$5.resolve(cwd, 'package.json'));
@@ -51357,7 +51452,7 @@ var createModule = async () => {
51357
51452
  createCwdConfig(packagePath, info.name, vue);
51358
51453
  fs$6.mkdirSync(path$5.resolve(packagePath, 'public'));
51359
51454
  fs$6.mkdirSync(path$5.resolve(packagePath, 'src'));
51360
- fs$6.writeFileSync(path$5.resolve(packagePath, 'package.json'), templatelateConfig(info));
51455
+ fs$6.writeFileSync(path$5.resolve(packagePath, 'package.json'), templatelateConfig({ ...info, coreVersion: `^${corepack.version}` }));
51361
51456
  fs$6.writeFileSync(path$5.resolve(packagePath, 'tsconfig.json'), `{
51362
51457
  "extends": ["./src/.gant/tsconfig.json"]
51363
51458
  }`);
@@ -74945,15 +75040,15 @@ program.version('1.0.0', '-v, --version', 'gant-core version');
74945
75040
  // 默认命令 启动服务
74946
75041
  program
74947
75042
  .command('default', { isDefault: true, noHelp: true, hidden: true })
74948
- .action(() => main$4());
75043
+ .action(() => main$5());
74949
75044
  program
74950
75045
  .command('build')
74951
75046
  .description('build cli')
74952
- .action(() => main$4('build'));
75047
+ .action(() => main$5('build'));
74953
75048
  program
74954
75049
  .command('analyzer')
74955
75050
  .description('bundle-analyzer')
74956
- .action(() => main$4('analyzer'));
75051
+ .action(() => main$5('analyzer'));
74957
75052
  program
74958
75053
  .command('i18n')
74959
75054
  .arguments('[currentLanguage] [targetLanguage]')