@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.
- package/dist/cjs/{babel/babel.config.cjs → babel.config.cjs} +1 -1
- package/dist/cjs/cli.js +13 -13
- package/dist/cjs/{cli-commands → commands}/build.js +0 -0
- package/dist/cjs/{cli-commands → commands}/codemod.js +0 -0
- package/dist/cjs/{cli-commands → commands}/gendoc.js +1 -1
- package/dist/cjs/{cli-commands → commands}/lint.js +2 -2
- package/dist/cjs/{cli-commands → commands}/pack.js +2 -2
- package/dist/cjs/{cli-commands → commands}/start.js +0 -0
- package/dist/cjs/{cli-commands → commands}/storybook.js +0 -0
- package/dist/cjs/{cli-commands → commands}/test.js +0 -0
- package/dist/cjs/{cli-commands → commands}/tscheck.js +0 -0
- package/dist/cjs/{cli-commands → commands}/utils.js +0 -0
- package/dist/cjs/{cli-commands → commands}/version.js +0 -0
- package/dist/cjs/{cli-commands → commands}/vitest.js +0 -0
- package/dist/cjs/index.cjs +6 -6
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{docgen/jsdoc.conf.json → jsdoc.conf.json} +0 -0
- package/dist/cjs/{lint → lint-config}/commitlint.config.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/common.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/non-react.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/react.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/typescript/common.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/typescript/non-react.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/eslint/typescript/react.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/lint-staged.config.js +0 -0
- package/dist/cjs/{lint → lint-config}/prettier.config.cjs +0 -0
- package/dist/cjs/{lint → lint-config}/stylelint.config.cjs +0 -0
- package/dist/cjs/{pui-config/index.js → pui-config.js} +0 -0
- package/dist/cjs/{release/release.config.cjs → release.config.cjs} +0 -0
- package/dist/cjs/server/{util/app-routes.cjs → app-routes.cjs} +0 -0
- package/dist/cjs/server/index.js +4 -4
- package/dist/cjs/server/{util/index.js → utils.js} +12 -12
- package/dist/cjs/{scripts/update-notifier.js → update-notifier.js} +2 -2
- package/dist/cjs/utils.cjs +3 -0
- package/dist/cjs/webpack/webpack.dev.babel.js +2 -2
- package/dist/esm/{babel/babel.config.cjs → babel.config.cjs} +1 -1
- package/dist/esm/cli.js +12 -12
- package/dist/esm/{cli-commands → commands}/build.js +0 -0
- package/dist/esm/{cli-commands → commands}/codemod.js +0 -0
- package/dist/esm/{cli-commands → commands}/gendoc.js +1 -1
- package/dist/esm/{cli-commands → commands}/lint.js +1 -1
- package/dist/esm/{cli-commands → commands}/pack.js +1 -1
- package/dist/esm/{cli-commands → commands}/start.js +0 -0
- package/dist/esm/{cli-commands → commands}/storybook.js +0 -0
- package/dist/esm/{cli-commands → commands}/test.js +0 -0
- package/dist/esm/{cli-commands → commands}/tscheck.js +0 -0
- package/dist/esm/{cli-commands → commands}/utils.js +0 -0
- package/dist/esm/{cli-commands → commands}/version.js +0 -0
- package/dist/esm/{cli-commands → commands}/vitest.js +0 -0
- package/dist/esm/index.cjs +6 -6
- package/dist/esm/index.js +8 -8
- package/dist/esm/{docgen/jsdoc.conf.json → jsdoc.conf.json} +0 -0
- package/dist/esm/{lint → lint-config}/commitlint.config.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/common.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/non-react.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/react.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/typescript/common.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/typescript/non-react.cjs +0 -0
- package/dist/esm/{lint → lint-config}/eslint/typescript/react.cjs +0 -0
- package/dist/esm/{lint → lint-config}/lint-staged.config.js +0 -0
- package/dist/esm/{lint → lint-config}/prettier.config.cjs +0 -0
- package/dist/esm/{lint → lint-config}/stylelint.config.cjs +0 -0
- package/dist/esm/{pui-config/index.js → pui-config.js} +0 -0
- package/dist/esm/{release/release.config.cjs → release.config.cjs} +0 -0
- package/dist/esm/server/{util/app-routes.cjs → app-routes.cjs} +0 -0
- package/dist/esm/server/index.js +1 -1
- package/dist/esm/server/{util/index.js → utils.js} +2 -2
- package/dist/esm/{scripts/update-notifier.js → update-notifier.js} +2 -2
- package/dist/esm/utils.cjs +3 -0
- package/dist/esm/webpack/webpack.dev.babel.js +1 -1
- package/dist/types/{babel/babel.config.d.cts → babel.config.d.cts} +0 -0
- package/dist/types/{cli-commands → commands}/build.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/codemod.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/gendoc.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/lint.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/pack.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/start.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/storybook.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/test.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/tscheck.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/utils.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/version.d.ts +0 -0
- package/dist/types/{cli-commands → commands}/vitest.d.ts +0 -0
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.ts +8 -8
- package/dist/types/{lint → lint-config}/commitlint.config.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/common.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/non-react.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/react.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/typescript/common.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/typescript/non-react.d.cts +0 -0
- package/dist/types/{lint → lint-config}/eslint/typescript/react.d.cts +0 -0
- package/dist/types/{lint → lint-config}/lint-staged.config.d.ts +0 -0
- package/dist/types/{lint → lint-config}/prettier.config.d.cts +0 -0
- package/dist/types/{lint → lint-config}/stylelint.config.d.cts +0 -0
- package/dist/types/{pui-config/index.d.ts → pui-config.d.ts} +0 -0
- package/dist/types/{release/release.config.d.cts → release.config.d.cts} +0 -0
- package/dist/types/server/{util/app-routes.d.cts → app-routes.d.cts} +0 -0
- package/dist/types/server/{util/index.d.ts → utils.d.ts} +0 -0
- package/dist/types/update-notifier.d.ts +1 -0
- package/dist/types/utils.d.cts +1 -0
- package/package.json +4 -1
- package/dist/cjs/scripts/helpers/checkmark.js +0 -32
- package/dist/cjs/scripts/helpers/get-npm-config.js +0 -27
- package/dist/cjs/scripts/helpers/progress.js +0 -35
- package/dist/cjs/scripts/helpers/xmark.js +0 -31
- package/dist/cjs/scripts/npmcheckversion.js +0 -8
- package/dist/cjs/typescript/util.js +0 -28
- package/dist/esm/scripts/helpers/checkmark.js +0 -10
- package/dist/esm/scripts/helpers/get-npm-config.js +0 -5
- package/dist/esm/scripts/helpers/progress.js +0 -13
- package/dist/esm/scripts/helpers/xmark.js +0 -9
- package/dist/esm/scripts/npmcheckversion.js +0 -8
- package/dist/esm/typescript/util.js +0 -6
- package/dist/types/scripts/helpers/checkmark.d.ts +0 -7
- package/dist/types/scripts/helpers/get-npm-config.d.ts +0 -2
- package/dist/types/scripts/helpers/progress.d.ts +0 -7
- package/dist/types/scripts/helpers/xmark.d.ts +0 -6
- package/dist/types/scripts/npmcheckversion.d.ts +0 -1
- package/dist/types/scripts/update-notifier.d.ts +0 -2
- package/dist/types/typescript/util.d.ts +0 -1
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 =
|
|
23
|
-
var import_build = require("./
|
|
24
|
-
var import_pack = require("./
|
|
25
|
-
var import_start = require("./
|
|
26
|
-
var import_test = require("./
|
|
27
|
-
var import_lint = require("./
|
|
28
|
-
var import_gendoc = require("./
|
|
29
|
-
var import_codemod = require("./
|
|
30
|
-
var import_storybook = require("./
|
|
31
|
-
var import_vitest = require("./
|
|
32
|
-
var import_version = require("./
|
|
33
|
-
var import_tscheck = require("./
|
|
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.
|
|
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, "../
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const { babelConfig } = require('./babel
|
|
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: () =>
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/cjs/server/index.js
CHANGED
|
@@ -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
|
|
19
|
+
var import_utils = require("./utils.js");
|
|
20
20
|
const app = (0, import_express.default)();
|
|
21
21
|
(0, import_middlewares.setupDefaultMiddlewares)(app);
|
|
22
|
-
(0,
|
|
22
|
+
(0, import_utils.loadRoutes)(app);
|
|
23
23
|
(0, import_middlewares.setupAdditionalMiddlewars)(app);
|
|
24
|
-
app.listen(
|
|
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(
|
|
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
|
|
22
|
-
__export(
|
|
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(
|
|
29
|
-
var
|
|
30
|
-
var
|
|
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 (!
|
|
40
|
+
if (!import_node_fs.default.existsSync(dir))
|
|
41
41
|
return routeFiles;
|
|
42
|
-
|
|
43
|
-
const fullPath =
|
|
44
|
-
if (
|
|
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(
|
|
57
|
-
routeFiles.push(...getServiceEndpoints(
|
|
58
|
-
routeFiles.push(...getServiceEndpoints(
|
|
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
|
-
|
|
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
|
-
|
|
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();
|
package/dist/cjs/utils.cjs
CHANGED
|
@@ -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
|
|
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,
|
|
133
|
+
(0, import_utils.loadRoutes)(devServer.app);
|
|
134
134
|
return middlewares;
|
|
135
135
|
}
|
|
136
136
|
}
|
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 "./
|
|
8
|
-
import { buildCmd } from "./
|
|
9
|
-
import { packCmd } from "./
|
|
10
|
-
import { startCmd } from "./
|
|
11
|
-
import { testCmd } from "./
|
|
12
|
-
import { lintCmd } from "./
|
|
13
|
-
import { gendocCmd } from "./
|
|
14
|
-
import { codemodCmd } from "./
|
|
15
|
-
import { storybookCmd } from "./
|
|
16
|
-
import { vitestCmd } from "./
|
|
17
|
-
import { versionCmd } from "./
|
|
18
|
-
import { tscheckCmd } from "./
|
|
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, "../
|
|
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 "../
|
|
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 "../
|
|
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
|
package/dist/esm/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const { babelConfig } = require('./babel
|
|
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
|
|
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/
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/server/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
setupDefaultMiddlewares,
|
|
5
5
|
setupAdditionalMiddlewars
|
|
6
6
|
} from "./middlewares.js";
|
|
7
|
-
import { loadRoutes, port, host } from "./
|
|
7
|
+
import { loadRoutes, port, host } from "./utils.js";
|
|
8
8
|
const app = express();
|
|
9
9
|
setupDefaultMiddlewares(app);
|
|
10
10
|
loadRoutes(app);
|
|
@@ -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
|
-
|
|
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
|
-
|
|
10
|
+
notifyUpdates
|
|
11
11
|
};
|
package/dist/esm/utils.cjs
CHANGED
|
@@ -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/
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { babelConfig } from "./babel
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { babelConfig } from "./babel
|
|
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/
|
|
9
|
+
export { lintStagedConfig } from "./lint-config/lint-staged.config.js";
|
|
10
|
+
export { loadRoutes } from "./server/utils.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function notifyUpdates(): Promise<void>;
|
package/dist/types/utils.d.cts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
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,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,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,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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function isTypeScriptEnabled(): boolean;
|