@elliemae/pui-cli 7.0.0-alpha.8 → 7.0.0-alpha.9

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.
Files changed (121) hide show
  1. package/dist/cjs/{babel/babel.config.cjs → babel.config.cjs} +1 -1
  2. package/dist/cjs/cli.js +13 -13
  3. package/dist/cjs/{cli-commands → commands}/build.js +0 -0
  4. package/dist/cjs/{cli-commands → commands}/codemod.js +0 -0
  5. package/dist/cjs/{cli-commands → commands}/gendoc.js +1 -1
  6. package/dist/cjs/{cli-commands → commands}/lint.js +2 -2
  7. package/dist/cjs/{cli-commands → commands}/pack.js +2 -2
  8. package/dist/cjs/{cli-commands → commands}/start.js +0 -0
  9. package/dist/cjs/{cli-commands → commands}/storybook.js +0 -0
  10. package/dist/cjs/{cli-commands → commands}/test.js +0 -0
  11. package/dist/cjs/{cli-commands → commands}/tscheck.js +0 -0
  12. package/dist/cjs/{cli-commands → commands}/utils.js +0 -0
  13. package/dist/cjs/{cli-commands → commands}/version.js +0 -0
  14. package/dist/cjs/{cli-commands → commands}/vitest.js +0 -0
  15. package/dist/cjs/index.cjs +6 -6
  16. package/dist/cjs/index.js +9 -9
  17. package/dist/cjs/{docgen/jsdoc.conf.json → jsdoc.conf.json} +0 -0
  18. package/dist/cjs/{lint → lint-config}/commitlint.config.cjs +0 -0
  19. package/dist/cjs/{lint → lint-config}/eslint/common.cjs +0 -0
  20. package/dist/cjs/{lint → lint-config}/eslint/non-react.cjs +0 -0
  21. package/dist/cjs/{lint → lint-config}/eslint/react.cjs +0 -0
  22. package/dist/cjs/{lint → lint-config}/eslint/typescript/common.cjs +0 -0
  23. package/dist/cjs/{lint → lint-config}/eslint/typescript/non-react.cjs +0 -0
  24. package/dist/cjs/{lint → lint-config}/eslint/typescript/react.cjs +0 -0
  25. package/dist/cjs/{lint → lint-config}/lint-staged.config.js +0 -0
  26. package/dist/cjs/{lint → lint-config}/prettier.config.cjs +0 -0
  27. package/dist/cjs/{lint → lint-config}/stylelint.config.cjs +0 -0
  28. package/dist/cjs/{pui-config/index.js → pui-config.js} +0 -0
  29. package/dist/cjs/{release/release.config.cjs → release.config.cjs} +0 -0
  30. package/dist/cjs/server/{util/app-routes.cjs → app-routes.cjs} +0 -0
  31. package/dist/cjs/server/index.js +4 -4
  32. package/dist/cjs/server/{util/index.js → utils.js} +12 -12
  33. package/dist/cjs/{scripts/update-notifier.js → update-notifier.js} +2 -2
  34. package/dist/cjs/utils.cjs +3 -0
  35. package/dist/cjs/webpack/webpack.dev.babel.js +2 -2
  36. package/dist/esm/{babel/babel.config.cjs → babel.config.cjs} +1 -1
  37. package/dist/esm/cli.js +12 -12
  38. package/dist/esm/{cli-commands → commands}/build.js +0 -0
  39. package/dist/esm/{cli-commands → commands}/codemod.js +0 -0
  40. package/dist/esm/{cli-commands → commands}/gendoc.js +1 -1
  41. package/dist/esm/{cli-commands → commands}/lint.js +1 -1
  42. package/dist/esm/{cli-commands → commands}/pack.js +1 -1
  43. package/dist/esm/{cli-commands → commands}/start.js +0 -0
  44. package/dist/esm/{cli-commands → commands}/storybook.js +0 -0
  45. package/dist/esm/{cli-commands → commands}/test.js +0 -0
  46. package/dist/esm/{cli-commands → commands}/tscheck.js +0 -0
  47. package/dist/esm/{cli-commands → commands}/utils.js +0 -0
  48. package/dist/esm/{cli-commands → commands}/version.js +0 -0
  49. package/dist/esm/{cli-commands → commands}/vitest.js +0 -0
  50. package/dist/esm/index.cjs +6 -6
  51. package/dist/esm/index.js +8 -8
  52. package/dist/esm/{docgen/jsdoc.conf.json → jsdoc.conf.json} +0 -0
  53. package/dist/esm/{lint → lint-config}/commitlint.config.cjs +0 -0
  54. package/dist/esm/{lint → lint-config}/eslint/common.cjs +0 -0
  55. package/dist/esm/{lint → lint-config}/eslint/non-react.cjs +0 -0
  56. package/dist/esm/{lint → lint-config}/eslint/react.cjs +0 -0
  57. package/dist/esm/{lint → lint-config}/eslint/typescript/common.cjs +0 -0
  58. package/dist/esm/{lint → lint-config}/eslint/typescript/non-react.cjs +0 -0
  59. package/dist/esm/{lint → lint-config}/eslint/typescript/react.cjs +0 -0
  60. package/dist/esm/{lint → lint-config}/lint-staged.config.js +0 -0
  61. package/dist/esm/{lint → lint-config}/prettier.config.cjs +0 -0
  62. package/dist/esm/{lint → lint-config}/stylelint.config.cjs +0 -0
  63. package/dist/esm/{pui-config/index.js → pui-config.js} +0 -0
  64. package/dist/esm/{release/release.config.cjs → release.config.cjs} +0 -0
  65. package/dist/esm/server/{util/app-routes.cjs → app-routes.cjs} +0 -0
  66. package/dist/esm/server/index.js +1 -1
  67. package/dist/esm/server/{util/index.js → utils.js} +2 -2
  68. package/dist/esm/{scripts/update-notifier.js → update-notifier.js} +2 -2
  69. package/dist/esm/utils.cjs +3 -0
  70. package/dist/esm/webpack/webpack.dev.babel.js +1 -1
  71. package/dist/types/{babel/babel.config.d.cts → babel.config.d.cts} +0 -0
  72. package/dist/types/{cli-commands → commands}/build.d.ts +0 -0
  73. package/dist/types/{cli-commands → commands}/codemod.d.ts +0 -0
  74. package/dist/types/{cli-commands → commands}/gendoc.d.ts +0 -0
  75. package/dist/types/{cli-commands → commands}/lint.d.ts +0 -0
  76. package/dist/types/{cli-commands → commands}/pack.d.ts +0 -0
  77. package/dist/types/{cli-commands → commands}/start.d.ts +0 -0
  78. package/dist/types/{cli-commands → commands}/storybook.d.ts +0 -0
  79. package/dist/types/{cli-commands → commands}/test.d.ts +0 -0
  80. package/dist/types/{cli-commands → commands}/tscheck.d.ts +0 -0
  81. package/dist/types/{cli-commands → commands}/utils.d.ts +0 -0
  82. package/dist/types/{cli-commands → commands}/version.d.ts +0 -0
  83. package/dist/types/{cli-commands → commands}/vitest.d.ts +0 -0
  84. package/dist/types/index.d.cts +6 -6
  85. package/dist/types/index.d.ts +8 -8
  86. package/dist/types/{lint → lint-config}/commitlint.config.d.cts +0 -0
  87. package/dist/types/{lint → lint-config}/eslint/common.d.cts +0 -0
  88. package/dist/types/{lint → lint-config}/eslint/non-react.d.cts +0 -0
  89. package/dist/types/{lint → lint-config}/eslint/react.d.cts +0 -0
  90. package/dist/types/{lint → lint-config}/eslint/typescript/common.d.cts +0 -0
  91. package/dist/types/{lint → lint-config}/eslint/typescript/non-react.d.cts +0 -0
  92. package/dist/types/{lint → lint-config}/eslint/typescript/react.d.cts +0 -0
  93. package/dist/types/{lint → lint-config}/lint-staged.config.d.ts +0 -0
  94. package/dist/types/{lint → lint-config}/prettier.config.d.cts +0 -0
  95. package/dist/types/{lint → lint-config}/stylelint.config.d.cts +0 -0
  96. package/dist/types/{pui-config/index.d.ts → pui-config.d.ts} +0 -0
  97. package/dist/types/{release/release.config.d.cts → release.config.d.cts} +0 -0
  98. package/dist/types/server/{util/app-routes.d.cts → app-routes.d.cts} +0 -0
  99. package/dist/types/server/{util/index.d.ts → utils.d.ts} +0 -0
  100. package/dist/types/update-notifier.d.ts +1 -0
  101. package/dist/types/utils.d.cts +1 -0
  102. package/package.json +4 -1
  103. package/dist/cjs/scripts/helpers/checkmark.js +0 -32
  104. package/dist/cjs/scripts/helpers/get-npm-config.js +0 -27
  105. package/dist/cjs/scripts/helpers/progress.js +0 -35
  106. package/dist/cjs/scripts/helpers/xmark.js +0 -31
  107. package/dist/cjs/scripts/npmcheckversion.js +0 -8
  108. package/dist/cjs/typescript/util.js +0 -28
  109. package/dist/esm/scripts/helpers/checkmark.js +0 -10
  110. package/dist/esm/scripts/helpers/get-npm-config.js +0 -5
  111. package/dist/esm/scripts/helpers/progress.js +0 -13
  112. package/dist/esm/scripts/helpers/xmark.js +0 -9
  113. package/dist/esm/scripts/npmcheckversion.js +0 -8
  114. package/dist/esm/typescript/util.js +0 -6
  115. package/dist/types/scripts/helpers/checkmark.d.ts +0 -7
  116. package/dist/types/scripts/helpers/get-npm-config.d.ts +0 -2
  117. package/dist/types/scripts/helpers/progress.d.ts +0 -7
  118. package/dist/types/scripts/helpers/xmark.d.ts +0 -6
  119. package/dist/types/scripts/npmcheckversion.d.ts +0 -1
  120. package/dist/types/scripts/update-notifier.d.ts +0 -2
  121. package/dist/types/typescript/util.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- const { isApp } = require('../utils.cjs');
1
+ const { isApp } = require('./utils.cjs');
2
2
 
3
3
  const nodeEnvPreset = {
4
4
  modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
package/dist/cjs/cli.js CHANGED
@@ -19,18 +19,18 @@ var import_node_url = require("node:url");
19
19
  var import_yargs = __toESM(require("yargs"), 1);
20
20
  var import_helpers = require("yargs/helpers");
21
21
  var import_dotenv = require("dotenv");
22
- var import_update_notifier = __toESM(require("./scripts/update-notifier.js"), 1);
23
- var import_build = require("./cli-commands/build.js");
24
- var import_pack = require("./cli-commands/pack.js");
25
- var import_start = require("./cli-commands/start.js");
26
- var import_test = require("./cli-commands/test.js");
27
- var import_lint = require("./cli-commands/lint.js");
28
- var import_gendoc = require("./cli-commands/gendoc.js");
29
- var import_codemod = require("./cli-commands/codemod.js");
30
- var import_storybook = require("./cli-commands/storybook.js");
31
- var import_vitest = require("./cli-commands/vitest.js");
32
- var import_version = require("./cli-commands/version.js");
33
- var import_tscheck = require("./cli-commands/tscheck.js");
22
+ var import_update_notifier = require("./update-notifier.js");
23
+ var import_build = require("./commands/build.js");
24
+ var import_pack = require("./commands/pack.js");
25
+ var import_start = require("./commands/start.js");
26
+ var import_test = require("./commands/test.js");
27
+ var import_lint = require("./commands/lint.js");
28
+ var import_gendoc = require("./commands/gendoc.js");
29
+ var import_codemod = require("./commands/codemod.js");
30
+ var import_storybook = require("./commands/storybook.js");
31
+ var import_vitest = require("./commands/vitest.js");
32
+ var import_version = require("./commands/version.js");
33
+ var import_tscheck = require("./commands/tscheck.js");
34
34
  const import_meta = {};
35
35
  const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
36
36
  (0, import_dotenv.config)();
@@ -46,4 +46,4 @@ process.env.PATH += import_node_path.default.delimiter + import_node_path.defaul
46
46
  (0, import_yargs.default)((0, import_helpers.hideBin)(process.argv)).command(import_vitest.vitestCmd).help().argv;
47
47
  (0, import_yargs.default)((0, import_helpers.hideBin)(process.argv)).command(import_version.versionCmd).help().argv;
48
48
  (0, import_yargs.default)((0, import_helpers.hideBin)(process.argv)).command(import_tscheck.tscheckCmd).help().argv;
49
- (0, import_update_notifier.default)();
49
+ (0, import_update_notifier.notifyUpdates)();
File without changes
File without changes
@@ -34,7 +34,7 @@ const isApp = () => import_node_fs.default.existsSync(import_node_path.default.j
34
34
  const generateDocs = async () => {
35
35
  (0, import_utils.logInfo)("Documentation Generation inprogress...");
36
36
  const srcPath = import_node_path.default.join(process.cwd(), isApp() ? "app" : "lib");
37
- await (0, import_utils.exec)(`jsdoc ${srcPath} -r -c ${import_node_path.default.resolve(__dirname, "../docgen/jsdoc.conf.json")} -d docs`);
37
+ await (0, import_utils.exec)(`jsdoc ${srcPath} -r -c ${import_node_path.default.resolve(__dirname, "../jsdoc.conf.json")} -d docs`);
38
38
  };
39
39
  const gendocCmd = {
40
40
  handler: async () => {
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(lint_exports);
26
26
  var import_node_path = __toESM(require("node:path"), 1);
27
27
  var import_yargs = __toESM(require("yargs"), 1);
28
28
  var import_utils = require("./utils.js");
29
- var import_util = require("../typescript/util.js");
29
+ var import_utils2 = require("../utils.cjs");
30
30
  const { CI = false } = process.env;
31
31
  const lintCSS = async (fix = false) => {
32
32
  const fixIssues = fix ? "--fix" : "";
@@ -39,7 +39,7 @@ const lintJS = async (fix = false) => {
39
39
  const lintCmd = {
40
40
  handler: async (argv) => {
41
41
  if (argv.js) {
42
- if ((0, import_util.isTypeScriptEnabled)())
42
+ if ((0, import_utils2.isTypeScriptEnabled)())
43
43
  await (0, import_utils.exec)("tsc --noEmit --emitDeclarationOnly false");
44
44
  try {
45
45
  await (0, import_utils.exec)("rimraf ./reports/eslint.json");
@@ -27,7 +27,7 @@ var import_node_path = __toESM(require("node:path"), 1);
27
27
  var import_node_url = require("node:url");
28
28
  var import_yargs = __toESM(require("yargs"), 1);
29
29
  var import_utils = require("./utils.js");
30
- var import_util = require("../typescript/util.js");
30
+ var import_utils2 = require("../utils.cjs");
31
31
  var import_esbuild = require("../transpile/esbuild.js");
32
32
  const import_meta = {};
33
33
  const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
@@ -46,7 +46,7 @@ const webBuild = async (productionBuild) => {
46
46
  const pack = async ({ production, target, srcPath }) => {
47
47
  (0, import_utils.logInfo)("Build in-progress...");
48
48
  await (0, import_utils.exec)("rimraf ./dist");
49
- if ((0, import_util.isTypeScriptEnabled)()) {
49
+ if ((0, import_utils2.isTypeScriptEnabled)()) {
50
50
  await compileTypeScript();
51
51
  }
52
52
  if (target !== "node")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
- const { babelConfig } = require('./babel/babel.config.cjs');
2
- const { esConfig: eslintBaseConfig } = require('./lint/eslint/non-react.cjs');
3
- const { esReactConfig: eslintConfig } = require('./lint/eslint/react.cjs');
4
- const { stylelintConfig } = require('./lint/stylelint.config.cjs');
5
- const { prettierConfig } = require('./lint/prettier.config.cjs');
6
- const { commitlintConfig } = require('./lint/commitlint.config.cjs');
1
+ const { babelConfig } = require('./babel.config.cjs');
2
+ const { esConfig: eslintBaseConfig } = require('./lint-config/eslint/non-react.cjs');
3
+ const { esReactConfig: eslintConfig } = require('./lint-config/eslint/react.cjs');
4
+ const { stylelintConfig } = require('./lint-config/stylelint.config.cjs');
5
+ const { prettierConfig } = require('./lint-config/prettier.config.cjs');
6
+ const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
7
7
  const { jestConfig } = require('./testing/jest.config.cjs');
8
8
  const { jestNodeConfig } = require('./testing/jest.node.config.cjs');
9
9
 
package/dist/cjs/index.js CHANGED
@@ -24,18 +24,18 @@ __export(lib_exports, {
24
24
  jestConfig: () => import_jest_config.jestConfig,
25
25
  jestNodeConfig: () => import_jest_node_config.jestNodeConfig,
26
26
  lintStagedConfig: () => import_lint_staged_config.lintStagedConfig,
27
- loadRoutes: () => import_util.loadRoutes,
27
+ loadRoutes: () => import_utils.loadRoutes,
28
28
  prettierConfig: () => import_prettier_config.prettierConfig,
29
29
  stylelintConfig: () => import_stylelint_config.stylelintConfig
30
30
  });
31
31
  module.exports = __toCommonJS(lib_exports);
32
- var import_babel_config = require("./babel/babel.config.cjs");
33
- var import_non_react = require("./lint/eslint/non-react.cjs");
34
- var import_react = require("./lint/eslint/react.cjs");
35
- var import_stylelint_config = require("./lint/stylelint.config.cjs");
36
- var import_prettier_config = require("./lint/prettier.config.cjs");
37
- var import_commitlint_config = require("./lint/commitlint.config.cjs");
32
+ var import_babel_config = require("./babel.config.cjs");
33
+ var import_non_react = require("./lint-config/eslint/non-react.cjs");
34
+ var import_react = require("./lint-config/eslint/react.cjs");
35
+ var import_stylelint_config = require("./lint-config/stylelint.config.cjs");
36
+ var import_prettier_config = require("./lint-config/prettier.config.cjs");
37
+ var import_commitlint_config = require("./lint-config/commitlint.config.cjs");
38
38
  var import_jest_config = require("./testing/jest.config.cjs");
39
39
  var import_jest_node_config = require("./testing/jest.node.config.cjs");
40
- var import_lint_staged_config = require("./lint/lint-staged.config.js");
41
- var import_util = require("./server/util/index.js");
40
+ var import_lint_staged_config = require("./lint-config/lint-staged.config.js");
41
+ var import_utils = require("./server/utils.js");
File without changes
File without changes
File without changes
@@ -16,14 +16,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
16
16
  var import_express = __toESM(require("express"), 1);
17
17
  var import_logger = require("./logger.js");
18
18
  var import_middlewares = require("./middlewares.js");
19
- var import_util = require("./util/index.js");
19
+ var import_utils = require("./utils.js");
20
20
  const app = (0, import_express.default)();
21
21
  (0, import_middlewares.setupDefaultMiddlewares)(app);
22
- (0, import_util.loadRoutes)(app);
22
+ (0, import_utils.loadRoutes)(app);
23
23
  (0, import_middlewares.setupAdditionalMiddlewars)(app);
24
- app.listen(import_util.port, import_util.host, async (err) => {
24
+ app.listen(import_utils.port, import_utils.host, async (err) => {
25
25
  if (err) {
26
26
  return import_logger.logger.error(err.message);
27
27
  }
28
- import_logger.logger.appStarted(import_util.port, import_util.host || "localhost");
28
+ import_logger.logger.appStarted(import_utils.port, import_utils.host || "localhost");
29
29
  });
@@ -18,16 +18,16 @@ var __copyProps = (to, from, except, desc) => {
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var util_exports = {};
22
- __export(util_exports, {
21
+ var utils_exports = {};
22
+ __export(utils_exports, {
23
23
  getCWD: () => getCWD,
24
24
  host: () => host,
25
25
  loadRoutes: () => loadRoutes,
26
26
  port: () => port
27
27
  });
28
- module.exports = __toCommonJS(util_exports);
29
- var import_fs = __toESM(require("fs"), 1);
30
- var import_path = __toESM(require("path"), 1);
28
+ module.exports = __toCommonJS(utils_exports);
29
+ var import_node_fs = __toESM(require("node:fs"), 1);
30
+ var import_node_path = __toESM(require("node:path"), 1);
31
31
  var import_minimist = __toESM(require("minimist"), 1);
32
32
  var import_app_routes = require("./app-routes.cjs");
33
33
  const argv = (0, import_minimist.default)(process.argv.slice(2));
@@ -37,11 +37,11 @@ const serviceEndpoints = /\.endpoint\.js$/;
37
37
  const getFilesMatching = (filePattern) => {
38
38
  const getFiles = (dir) => {
39
39
  let routeFiles = [];
40
- if (!import_fs.default.existsSync(dir))
40
+ if (!import_node_fs.default.existsSync(dir))
41
41
  return routeFiles;
42
- import_fs.default.readdirSync(dir).forEach((file) => {
43
- const fullPath = import_path.default.join(dir, file);
44
- if (import_fs.default.lstatSync(fullPath).isDirectory()) {
42
+ import_node_fs.default.readdirSync(dir).forEach((file) => {
43
+ const fullPath = import_node_path.default.join(dir, file);
44
+ if (import_node_fs.default.lstatSync(fullPath).isDirectory()) {
45
45
  routeFiles = routeFiles.concat(getFiles(fullPath));
46
46
  } else if (filePattern.test(fullPath))
47
47
  routeFiles.push(fullPath);
@@ -53,9 +53,9 @@ const getFilesMatching = (filePattern) => {
53
53
  const getServerRouteFiles = getFilesMatching(allJS);
54
54
  const getServiceEndpoints = getFilesMatching(serviceEndpoints);
55
55
  const loadRoutes = (app) => {
56
- const routeFiles = getServerRouteFiles(import_path.default.join(getCWD(), "server/routes"));
57
- routeFiles.push(...getServiceEndpoints(import_path.default.join(getCWD(), "app")));
58
- routeFiles.push(...getServiceEndpoints(import_path.default.join(getCWD(), "lib")));
56
+ const routeFiles = getServerRouteFiles(import_node_path.default.join(getCWD(), "server/routes"));
57
+ routeFiles.push(...getServiceEndpoints(import_node_path.default.join(getCWD(), "app")));
58
+ routeFiles.push(...getServiceEndpoints(import_node_path.default.join(getCWD(), "lib")));
59
59
  routeFiles.forEach((routeFile) => (0, import_app_routes.initRoute)(routeFile, app));
60
60
  };
61
61
  const port = parseInt(argv.port || process.env.port || process.env.PORT || "3000", 10);
@@ -20,13 +20,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
21
  var update_notifier_exports = {};
22
22
  __export(update_notifier_exports, {
23
- default: () => update_notifier_default
23
+ notifyUpdates: () => notifyUpdates
24
24
  });
25
25
  module.exports = __toCommonJS(update_notifier_exports);
26
26
  var import_update_notifier = __toESM(require("update-notifier"), 1);
27
27
  var import_node_path = __toESM(require("node:path"), 1);
28
28
  var import_promises = __toESM(require("node:fs/promises"), 1);
29
- var update_notifier_default = async () => {
29
+ const notifyUpdates = async () => {
30
30
  const pkgFile = await import_promises.default.readFile(import_node_path.default.join(process.cwd(), "./package.json"));
31
31
  const pkg = JSON.parse(pkgFile);
32
32
  (0, import_update_notifier.default)({ pkg }).notify();
@@ -18,3 +18,6 @@ exports.getAppConfig = () => {
18
18
  };
19
19
 
20
20
  exports.isApp = isApp;
21
+
22
+ exports.isTypeScriptEnabled = () =>
23
+ fs.existsSync(path.join(process.cwd(), 'tsconfig.json'));
@@ -32,7 +32,7 @@ var import_react_refresh_webpack_plugin = __toESM(require("@pmmmwh/react-refresh
32
32
  var import_speed_measure_webpack_plugin = __toESM(require("speed-measure-webpack-plugin"), 1);
33
33
  var import_express_static_gzip = __toESM(require("express-static-gzip"), 1);
34
34
  var import_middlewares = require("../server/middlewares.js");
35
- var import_util = require("../server/util/index.js");
35
+ var import_utils = require("../server/utils.js");
36
36
  var import_helpers = require("./helpers.js");
37
37
  var import_webpack_base_babel = require("./webpack.base.babel.js");
38
38
  const import_meta = {};
@@ -130,7 +130,7 @@ const devConfig = {
130
130
  setupMiddlewares: (middlewares, devServer) => {
131
131
  (0, import_middlewares.setupDefaultMiddlewares)(devServer.app);
132
132
  devServer.app.use((0, import_express_static_gzip.default)("cdn"));
133
- (0, import_util.loadRoutes)(devServer.app);
133
+ (0, import_utils.loadRoutes)(devServer.app);
134
134
  return middlewares;
135
135
  }
136
136
  }
@@ -1,4 +1,4 @@
1
- const { isApp } = require('../utils.cjs');
1
+ const { isApp } = require('./utils.cjs');
2
2
 
3
3
  const nodeEnvPreset = {
4
4
  modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
package/dist/esm/cli.js CHANGED
@@ -4,18 +4,18 @@ import { fileURLToPath } from "node:url";
4
4
  import yargs from "yargs";
5
5
  import { hideBin } from "yargs/helpers";
6
6
  import { config as envConfig } from "dotenv";
7
- import notifyUpdates from "./scripts/update-notifier.js";
8
- import { buildCmd } from "./cli-commands/build.js";
9
- import { packCmd } from "./cli-commands/pack.js";
10
- import { startCmd } from "./cli-commands/start.js";
11
- import { testCmd } from "./cli-commands/test.js";
12
- import { lintCmd } from "./cli-commands/lint.js";
13
- import { gendocCmd } from "./cli-commands/gendoc.js";
14
- import { codemodCmd } from "./cli-commands/codemod.js";
15
- import { storybookCmd } from "./cli-commands/storybook.js";
16
- import { vitestCmd } from "./cli-commands/vitest.js";
17
- import { versionCmd } from "./cli-commands/version.js";
18
- import { tscheckCmd } from "./cli-commands/tscheck.js";
7
+ import { notifyUpdates } from "./update-notifier.js";
8
+ import { buildCmd } from "./commands/build.js";
9
+ import { packCmd } from "./commands/pack.js";
10
+ import { startCmd } from "./commands/start.js";
11
+ import { testCmd } from "./commands/test.js";
12
+ import { lintCmd } from "./commands/lint.js";
13
+ import { gendocCmd } from "./commands/gendoc.js";
14
+ import { codemodCmd } from "./commands/codemod.js";
15
+ import { storybookCmd } from "./commands/storybook.js";
16
+ import { vitestCmd } from "./commands/vitest.js";
17
+ import { versionCmd } from "./commands/version.js";
18
+ import { tscheckCmd } from "./commands/tscheck.js";
19
19
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
20
20
  envConfig();
21
21
  process.env.PATH += path.delimiter + path.join(__dirname, "..", "node_modules", ".bin");
File without changes
File without changes
@@ -8,7 +8,7 @@ const isApp = () => fs.existsSync(path.join(process.cwd(), "app"));
8
8
  const generateDocs = async () => {
9
9
  logInfo("Documentation Generation inprogress...");
10
10
  const srcPath = path.join(process.cwd(), isApp() ? "app" : "lib");
11
- await exec(`jsdoc ${srcPath} -r -c ${path.resolve(__dirname, "../docgen/jsdoc.conf.json")} -d docs`);
11
+ await exec(`jsdoc ${srcPath} -r -c ${path.resolve(__dirname, "../jsdoc.conf.json")} -d docs`);
12
12
  };
13
13
  const gendocCmd = {
14
14
  handler: async () => {
@@ -1,7 +1,7 @@
1
1
  import path from "node:path";
2
2
  import yargs from "yargs";
3
3
  import { exec, logError, logSuccess } from "./utils.js";
4
- import { isTypeScriptEnabled } from "../typescript/util.js";
4
+ import { isTypeScriptEnabled } from "../utils.cjs";
5
5
  const { CI = false } = process.env;
6
6
  const lintCSS = async (fix = false) => {
7
7
  const fixIssues = fix ? "--fix" : "";
@@ -2,7 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import yargs from "yargs";
4
4
  import { exec, logInfo, logError, logSuccess } from "./utils.js";
5
- import { isTypeScriptEnabled } from "../typescript/util.js";
5
+ import { isTypeScriptEnabled } from "../utils.cjs";
6
6
  import { esBuild } from "../transpile/esbuild.js";
7
7
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
8
  const compileTypeScript = async () => {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
- const { babelConfig } = require('./babel/babel.config.cjs');
2
- const { esConfig: eslintBaseConfig } = require('./lint/eslint/non-react.cjs');
3
- const { esReactConfig: eslintConfig } = require('./lint/eslint/react.cjs');
4
- const { stylelintConfig } = require('./lint/stylelint.config.cjs');
5
- const { prettierConfig } = require('./lint/prettier.config.cjs');
6
- const { commitlintConfig } = require('./lint/commitlint.config.cjs');
1
+ const { babelConfig } = require('./babel.config.cjs');
2
+ const { esConfig: eslintBaseConfig } = require('./lint-config/eslint/non-react.cjs');
3
+ const { esReactConfig: eslintConfig } = require('./lint-config/eslint/react.cjs');
4
+ const { stylelintConfig } = require('./lint-config/stylelint.config.cjs');
5
+ const { prettierConfig } = require('./lint-config/prettier.config.cjs');
6
+ const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
7
7
  const { jestConfig } = require('./testing/jest.config.cjs');
8
8
  const { jestNodeConfig } = require('./testing/jest.node.config.cjs');
9
9
 
package/dist/esm/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { babelConfig } from "./babel/babel.config.cjs";
2
- import { esConfig } from "./lint/eslint/non-react.cjs";
3
- import { esReactConfig } from "./lint/eslint/react.cjs";
4
- import { stylelintConfig } from "./lint/stylelint.config.cjs";
5
- import { prettierConfig } from "./lint/prettier.config.cjs";
6
- import { commitlintConfig } from "./lint/commitlint.config.cjs";
1
+ import { babelConfig } from "./babel.config.cjs";
2
+ import { esConfig } from "./lint-config/eslint/non-react.cjs";
3
+ import { esReactConfig } from "./lint-config/eslint/react.cjs";
4
+ import { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
+ import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
+ import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  import { jestConfig } from "./testing/jest.config.cjs";
8
8
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
- import { lintStagedConfig } from "./lint/lint-staged.config.js";
10
- import { loadRoutes } from "./server/util/index.js";
9
+ import { lintStagedConfig } from "./lint-config/lint-staged.config.js";
10
+ import { loadRoutes } from "./server/utils.js";
11
11
  export {
12
12
  babelConfig,
13
13
  commitlintConfig,
File without changes
File without changes
File without changes
@@ -4,7 +4,7 @@ import {
4
4
  setupDefaultMiddlewares,
5
5
  setupAdditionalMiddlewars
6
6
  } from "./middlewares.js";
7
- import { loadRoutes, port, host } from "./util/index.js";
7
+ import { loadRoutes, port, host } from "./utils.js";
8
8
  const app = express();
9
9
  setupDefaultMiddlewares(app);
10
10
  loadRoutes(app);
@@ -1,5 +1,5 @@
1
- import fs from "fs";
2
- import path from "path";
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
3
  import minimist from "minimist";
4
4
  import { initRoute } from "./app-routes.cjs";
5
5
  const argv = minimist(process.argv.slice(2));
@@ -1,11 +1,11 @@
1
1
  import updateNotifier from "update-notifier";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
- var update_notifier_default = async () => {
4
+ const notifyUpdates = async () => {
5
5
  const pkgFile = await fs.readFile(path.join(process.cwd(), "./package.json"));
6
6
  const pkg = JSON.parse(pkgFile);
7
7
  updateNotifier({ pkg }).notify();
8
8
  };
9
9
  export {
10
- update_notifier_default as default
10
+ notifyUpdates
11
11
  };
@@ -18,3 +18,6 @@ exports.getAppConfig = () => {
18
18
  };
19
19
 
20
20
  exports.isApp = isApp;
21
+
22
+ exports.isTypeScriptEnabled = () =>
23
+ fs.existsSync(path.join(process.cwd(), 'tsconfig.json'));
@@ -7,7 +7,7 @@ import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
7
7
  import SpeedMeasurePlugin from "speed-measure-webpack-plugin";
8
8
  import expressStaticGzip from "express-static-gzip";
9
9
  import { setupDefaultMiddlewares } from "../server/middlewares.js";
10
- import { loadRoutes } from "../server/util/index.js";
10
+ import { loadRoutes } from "../server/utils.js";
11
11
  import {
12
12
  isAppLoaderEnabled,
13
13
  getPaths,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,9 +1,9 @@
1
- import { babelConfig } from "./babel/babel.config.cjs";
2
- import { esConfig as eslintBaseConfig } from "./lint/eslint/non-react.cjs";
3
- import { esReactConfig as eslintConfig } from "./lint/eslint/react.cjs";
4
- import { stylelintConfig } from "./lint/stylelint.config.cjs";
5
- import { prettierConfig } from "./lint/prettier.config.cjs";
6
- import { commitlintConfig } from "./lint/commitlint.config.cjs";
1
+ import { babelConfig } from "./babel.config.cjs";
2
+ import { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
3
+ import { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
4
+ import { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
+ import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
+ import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  import { jestConfig } from "./testing/jest.config.cjs";
8
8
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
9
  export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
@@ -1,10 +1,10 @@
1
- export { babelConfig } from "./babel/babel.config.cjs";
2
- export { esConfig as eslintBaseConfig } from "./lint/eslint/non-react.cjs";
3
- export { esReactConfig as eslintConfig } from "./lint/eslint/react.cjs";
4
- export { stylelintConfig } from "./lint/stylelint.config.cjs";
5
- export { prettierConfig } from "./lint/prettier.config.cjs";
6
- export { commitlintConfig } from "./lint/commitlint.config.cjs";
1
+ export { babelConfig } from "./babel.config.cjs";
2
+ export { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
3
+ export { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
4
+ export { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
+ export { prettierConfig } from "./lint-config/prettier.config.cjs";
6
+ export { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  export { jestConfig } from "./testing/jest.config.cjs";
8
8
  export { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
- export { lintStagedConfig } from "./lint/lint-staged.config.js";
10
- export { loadRoutes } from "./server/util/index.js";
9
+ export { lintStagedConfig } from "./lint-config/lint-staged.config.js";
10
+ export { loadRoutes } from "./server/utils.js";
@@ -0,0 +1 @@
1
+ export function notifyUpdates(): Promise<void>;
@@ -1,3 +1,4 @@
1
1
  export var basePath: string;
2
2
  export function getAppConfig(): Buffer | "{}";
3
+ export function isTypeScriptEnabled(): boolean;
3
4
  export function isApp(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "7.0.0-alpha.8",
3
+ "version": "7.0.0-alpha.9",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -14,6 +14,9 @@
14
14
  ".": {
15
15
  "import": "./dist/esm/index.js",
16
16
  "require": "./dist/cjs/index.cjs"
17
+ },
18
+ "./releaseConfig": {
19
+ "require": "./dist/cjs/release.config.cjs"
17
20
  }
18
21
  },
19
22
  "files": [
@@ -1,32 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var checkmark_exports = {};
22
- __export(checkmark_exports, {
23
- default: () => checkmark_default
24
- });
25
- module.exports = __toCommonJS(checkmark_exports);
26
- var import_chalk = __toESM(require("chalk"), 1);
27
- function checkmark_default(callback, message = "") {
28
- process.stdout.write("\n\n");
29
- process.stdout.write(import_chalk.default.green(" \u2713"));
30
- if (callback)
31
- callback(message);
32
- }
@@ -1,27 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var get_npm_config_exports = {};
22
- __export(get_npm_config_exports, {
23
- default: () => get_npm_config_default
24
- });
25
- module.exports = __toCommonJS(get_npm_config_exports);
26
- var import_node_fs = __toESM(require("node:fs"), 1);
27
- var get_npm_config_default = JSON.parse(import_node_fs.default.readFileSync("package.json", "utf8"));
@@ -1,35 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var progress_exports = {};
22
- __export(progress_exports, {
23
- default: () => progress_default
24
- });
25
- module.exports = __toCommonJS(progress_exports);
26
- var import_readline = __toESM(require("readline"), 1);
27
- function progress_default(message, amountOfDots = 3) {
28
- let i = 0;
29
- return setInterval(() => {
30
- import_readline.default.cursorTo(process.stdout, 0);
31
- i = (i + 1) % (amountOfDots + 1);
32
- const dots = new Array(i + 1).join(".");
33
- process.stdout.write(message + dots);
34
- }, 500);
35
- }
@@ -1,31 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var xmark_exports = {};
22
- __export(xmark_exports, {
23
- default: () => xmark_default
24
- });
25
- module.exports = __toCommonJS(xmark_exports);
26
- var import_chalk = __toESM(require("chalk"), 1);
27
- function xmark_default(callback) {
28
- process.stdout.write(import_chalk.default.red(" \u2718"));
29
- if (callback)
30
- callback();
31
- }
@@ -1,8 +0,0 @@
1
- var import_child_process = require("child_process");
2
- (0, import_child_process.exec)("npm -v", (err, stdout) => {
3
- if (err)
4
- throw err;
5
- if (parseFloat(stdout) < 5) {
6
- throw new Error(`[ERROR] You need npm version @>=5 but you have ${stdout}`);
7
- }
8
- });
@@ -1,28 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var util_exports = {};
22
- __export(util_exports, {
23
- isTypeScriptEnabled: () => isTypeScriptEnabled
24
- });
25
- module.exports = __toCommonJS(util_exports);
26
- var import_node_fs = __toESM(require("node:fs"), 1);
27
- var import_node_path = __toESM(require("node:path"), 1);
28
- const isTypeScriptEnabled = () => import_node_fs.default.existsSync(import_node_path.default.join(process.cwd(), "tsconfig.json"));
@@ -1,10 +0,0 @@
1
- import chalk from "chalk";
2
- function checkmark_default(callback, message = "") {
3
- process.stdout.write("\n\n");
4
- process.stdout.write(chalk.green(" \u2713"));
5
- if (callback)
6
- callback(message);
7
- }
8
- export {
9
- checkmark_default as default
10
- };
@@ -1,5 +0,0 @@
1
- import fs from "node:fs";
2
- var get_npm_config_default = JSON.parse(fs.readFileSync("package.json", "utf8"));
3
- export {
4
- get_npm_config_default as default
5
- };
@@ -1,13 +0,0 @@
1
- import readline from "readline";
2
- function progress_default(message, amountOfDots = 3) {
3
- let i = 0;
4
- return setInterval(() => {
5
- readline.cursorTo(process.stdout, 0);
6
- i = (i + 1) % (amountOfDots + 1);
7
- const dots = new Array(i + 1).join(".");
8
- process.stdout.write(message + dots);
9
- }, 500);
10
- }
11
- export {
12
- progress_default as default
13
- };
@@ -1,9 +0,0 @@
1
- import chalk from "chalk";
2
- function xmark_default(callback) {
3
- process.stdout.write(chalk.red(" \u2718"));
4
- if (callback)
5
- callback();
6
- }
7
- export {
8
- xmark_default as default
9
- };
@@ -1,8 +0,0 @@
1
- import { exec } from "child_process";
2
- exec("npm -v", (err, stdout) => {
3
- if (err)
4
- throw err;
5
- if (parseFloat(stdout) < 5) {
6
- throw new Error(`[ERROR] You need npm version @>=5 but you have ${stdout}`);
7
- }
8
- });
@@ -1,6 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- const isTypeScriptEnabled = () => fs.existsSync(path.join(process.cwd(), "tsconfig.json"));
4
- export {
5
- isTypeScriptEnabled
6
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * Adds mark check symbol
3
- *
4
- * @param callback
5
- * @param message
6
- */
7
- export default function _default(callback: any, message?: string): void;
@@ -1,2 +0,0 @@
1
- declare var _default: any;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- /**
2
- * Adds an animated progress indicator
3
- *
4
- * @param {string} message The message to write next to the indicator
5
- * @param {number} [amountOfDots=3] The amount of dots you want to animate
6
- */
7
- export default function _default(message: string, amountOfDots?: number | undefined): NodeJS.Timer;
@@ -1,6 +0,0 @@
1
- /**
2
- * Adds mark cross symbol
3
- *
4
- * @param callback
5
- */
6
- export default function _default(callback: any): void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare function _default(): Promise<void>;
2
- export default _default;
@@ -1 +0,0 @@
1
- export function isTypeScriptEnabled(): boolean;