@raisenow/tamaro-cli 1.0.5 → 1.0.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/.eslintrc.js +0 -6
- package/.gitignore +2 -2
- package/.nvmrc +1 -1
- package/.prettierignore +1 -0
- package/dist/cli.js +476 -129
- package/dist/webpack.config.js +204 -159
- package/package.json +54 -58
- package/readme.html +55 -0
- package/readme.md +227 -0
- package/src/cli.ts +100 -16
- package/src/commands/build.ts +97 -0
- package/src/commands/deploy-email-config.ts +107 -0
- package/src/commands/deploy.ts +151 -0
- package/src/commands/dev.ts +61 -0
- package/src/commands/list-deployed.ts +102 -0
- package/src/commands/serve.ts +29 -0
- package/src/lib/aws.ts +119 -0
- package/src/lib/helpers.ts +104 -27
- package/src/webpack.config.ts +156 -121
- package/src/assets/rnw-logo.png +0 -0
- package/src/commands/build/index.ts +0 -41
- package/src/commands/deploy/index.ts +0 -25
- package/src/commands/dev/index.ts +0 -32
- package/src/commands/serve/index.ts +0 -12
package/dist/webpack.config.js
CHANGED
|
@@ -20,51 +20,54 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
};
|
|
21
21
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
22
|
var __export = (target, all) => {
|
|
23
|
-
__markAsModule(target);
|
|
24
23
|
for (var name in all)
|
|
25
24
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
25
|
};
|
|
27
|
-
var __reExport = (target, module2, desc) => {
|
|
26
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
28
27
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
29
28
|
for (let key of __getOwnPropNames(module2))
|
|
30
|
-
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
29
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
31
30
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
32
31
|
}
|
|
33
32
|
return target;
|
|
34
33
|
};
|
|
35
|
-
var
|
|
36
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default",
|
|
37
|
-
};
|
|
38
|
-
var __publicField = (obj, key, value) => {
|
|
39
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
40
|
-
return value;
|
|
34
|
+
var __toESM = (module2, isNodeMode) => {
|
|
35
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
41
36
|
};
|
|
37
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
38
|
+
return (module2, temp) => {
|
|
39
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
40
|
+
};
|
|
41
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
42
42
|
|
|
43
43
|
// src/webpack.config.ts
|
|
44
|
-
|
|
44
|
+
var webpack_config_exports = {};
|
|
45
|
+
__export(webpack_config_exports, {
|
|
45
46
|
default: () => webpack_config_default
|
|
46
47
|
});
|
|
47
|
-
var import_path2 =
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
48
|
+
var import_path2 = require("path");
|
|
49
|
+
var import_fs2 = require("fs");
|
|
50
|
+
var import_glob = __toESM(require("glob"));
|
|
51
|
+
var import_webpack_config_utils2 = require("webpack-config-utils");
|
|
52
|
+
var import_webpack = __toESM(require("webpack"));
|
|
53
|
+
var import_portfinder = require("portfinder");
|
|
54
|
+
var import_tsconfig_paths_webpack_plugin = require("tsconfig-paths-webpack-plugin");
|
|
55
|
+
var import_clean_webpack_plugin = require("clean-webpack-plugin");
|
|
56
|
+
var import_html_webpack_plugin2 = __toESM(require("html-webpack-plugin"));
|
|
57
|
+
var import_fork_ts_checker_webpack_plugin = __toESM(require("fork-ts-checker-webpack-plugin"));
|
|
58
|
+
var import_react_refresh_webpack_plugin = __toESM(require("@pmmmwh/react-refresh-webpack-plugin"));
|
|
59
|
+
var import_mini_css_extract_plugin = __toESM(require("mini-css-extract-plugin"));
|
|
60
|
+
var import_css_minimizer_webpack_plugin = __toESM(require("css-minimizer-webpack-plugin"));
|
|
61
|
+
var import_eslint_webpack_plugin = __toESM(require("eslint-webpack-plugin"));
|
|
62
|
+
var import_copy_webpack_plugin = __toESM(require("copy-webpack-plugin"));
|
|
63
|
+
var import_webpack_plugin = __toESM(require("@statoscope/webpack-plugin"));
|
|
61
64
|
|
|
62
65
|
// src/lib/InterpolateHtmlPlugin.ts
|
|
63
|
-
var import_html_webpack_plugin =
|
|
64
|
-
var import_escape_string_regexp =
|
|
66
|
+
var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"));
|
|
67
|
+
var import_escape_string_regexp = __toESM(require("escape-string-regexp"));
|
|
65
68
|
var InterpolateHtmlPlugin = class {
|
|
69
|
+
replacements;
|
|
66
70
|
constructor(replacements) {
|
|
67
|
-
__publicField(this, "replacements");
|
|
68
71
|
this.replacements = __spreadValues({}, replacements);
|
|
69
72
|
}
|
|
70
73
|
apply(compiler) {
|
|
@@ -86,21 +89,20 @@ var InterpolateHtmlPlugin = class {
|
|
|
86
89
|
var InterpolateHtmlPlugin_default = InterpolateHtmlPlugin;
|
|
87
90
|
|
|
88
91
|
// src/lib/helpers.ts
|
|
89
|
-
var import_path =
|
|
90
|
-
var import_fs =
|
|
91
|
-
var import_chalk =
|
|
92
|
-
var import_node_notifier =
|
|
93
|
-
var import_webpack_config_utils =
|
|
94
|
-
var import_columnify =
|
|
95
|
-
var import_boxen =
|
|
96
|
-
var import_dotenv_expand =
|
|
97
|
-
var import_dotenv =
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
];
|
|
92
|
+
var import_path = require("path");
|
|
93
|
+
var import_fs = require("fs");
|
|
94
|
+
var import_chalk = __toESM(require("chalk"));
|
|
95
|
+
var import_node_notifier = __toESM(require("node-notifier"));
|
|
96
|
+
var import_webpack_config_utils = require("webpack-config-utils");
|
|
97
|
+
var import_columnify = __toESM(require("columnify"));
|
|
98
|
+
var import_boxen = __toESM(require("boxen"));
|
|
99
|
+
var import_dotenv_expand = require("dotenv-expand");
|
|
100
|
+
var import_dotenv = require("dotenv");
|
|
101
|
+
var import_open = __toESM(require("open"));
|
|
102
|
+
var import_strip_indent = __toESM(require("strip-indent"));
|
|
103
|
+
var import_execa = require("execa");
|
|
104
|
+
var TAMARO_CORE_PACKAGE_NAMES = ["@raisenow/tamaro-core"];
|
|
105
|
+
var TAMARO_CONFIGURATIONS_PACKAGE_NAMES = ["@raisenow/tamaro-configurations"];
|
|
104
106
|
var getIfCoreFns = () => {
|
|
105
107
|
const corePkgPath = resolveApp("package.json");
|
|
106
108
|
const configsPkgPath = resolveApp("../../package.json");
|
|
@@ -116,12 +118,12 @@ var getIfCoreFns = () => {
|
|
|
116
118
|
return (0, import_webpack_config_utils.getIfUtils)({ core: false }, ["core"]);
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
|
-
|
|
121
|
+
logError((0, import_strip_indent.default)(` You must run "npx @raisenow/tamaro-cli" commands from:
|
|
120
122
|
1. Root of "${import_chalk.default.bold(TAMARO_CORE_PACKAGE_NAMES[0])}" package folder.
|
|
121
123
|
2. Root of particular customer configuration folder of "${import_chalk.default.bold(TAMARO_CONFIGURATIONS_PACKAGE_NAMES[0])}" package.
|
|
122
124
|
You are currently in "${import_chalk.default.bold((0, import_fs.realpathSync)(process.cwd()))}".
|
|
123
|
-
`))
|
|
124
|
-
process.exit(
|
|
125
|
+
`));
|
|
126
|
+
process.exit(1);
|
|
125
127
|
};
|
|
126
128
|
var moduleFileExtensions = ["ts", "tsx", "js", "jsx"];
|
|
127
129
|
var extensions = moduleFileExtensions.map((v) => `.${v}`);
|
|
@@ -156,9 +158,18 @@ var getPaths = (ifCore) => {
|
|
|
156
158
|
appTailwindConfig: void 0
|
|
157
159
|
});
|
|
158
160
|
};
|
|
161
|
+
var getRelativePaths = (paths) => {
|
|
162
|
+
const relativePaths = {};
|
|
163
|
+
for (const [type, absPath] of Object.entries(paths)) {
|
|
164
|
+
if (absPath) {
|
|
165
|
+
relativePaths[type] = (0, import_path.relative)("./", absPath) || ".";
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return relativePaths;
|
|
169
|
+
};
|
|
159
170
|
var getEnvVars = (filePath, ifMin, ifCore, ifLocalCore) => {
|
|
160
171
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
161
|
-
(0, import_dotenv_expand.
|
|
172
|
+
(0, import_dotenv_expand.expand)((0, import_dotenv.config)({ path: filePath }));
|
|
162
173
|
(_b = (_a = process.env).NODE_ENV) != null ? _b : _a.NODE_ENV = ifMin("production", "development");
|
|
163
174
|
(_d = (_c = process.env).BABEL_ENV) != null ? _d : _c.BABEL_ENV = ifMin("production", "development");
|
|
164
175
|
(_f = (_e = process.env).EXPOSE_VAR) != null ? _f : _e.EXPOSE_VAR = ifCore("rnw.tamaroCore", "rnw.tamaro");
|
|
@@ -174,7 +185,7 @@ var getEnvVars = (filePath, ifMin, ifCore, ifLocalCore) => {
|
|
|
174
185
|
if (!ifCore()) {
|
|
175
186
|
process.env.WIDGET_UUID = getWidgetUuid();
|
|
176
187
|
if (ifLocalCore()) {
|
|
177
|
-
process.env.CORE_URL = `http://0.0.0.0:
|
|
188
|
+
process.env.CORE_URL = `http://0.0.0.0:1234/index.js`;
|
|
178
189
|
} else {
|
|
179
190
|
let version = process.env.CORE_VERSION;
|
|
180
191
|
version = version ? `@${version}` : "";
|
|
@@ -206,12 +217,23 @@ var getEnvVars = (filePath, ifMin, ifCore, ifLocalCore) => {
|
|
|
206
217
|
};
|
|
207
218
|
return { raw, stringified };
|
|
208
219
|
};
|
|
220
|
+
var logError = (message) => {
|
|
221
|
+
if (message) {
|
|
222
|
+
console.log(import_chalk.default.red(message));
|
|
223
|
+
}
|
|
224
|
+
};
|
|
209
225
|
var logDataTable = (vars, title) => {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
logTable((0, import_columnify.default)(vars, { showHeaders: false }), title);
|
|
227
|
+
};
|
|
228
|
+
var logTable = (text, title) => {
|
|
229
|
+
let out = "";
|
|
230
|
+
const boxTitle = title ? import_chalk.default.bold(`${title}`) : void 0;
|
|
231
|
+
if (boxTitle) {
|
|
232
|
+
out += `${boxTitle}
|
|
233
|
+
`;
|
|
234
|
+
}
|
|
235
|
+
out += text;
|
|
236
|
+
console.log((0, import_boxen.default)(out, {
|
|
215
237
|
margin: 0,
|
|
216
238
|
padding: {
|
|
217
239
|
top: 0,
|
|
@@ -234,7 +256,9 @@ var getWebpackConfig = async (env) => {
|
|
|
234
256
|
const appHtmlFiles = import_glob.default.sync(paths.appHtml);
|
|
235
257
|
const envVars = getEnvVars(paths.appEnv, ifMin, ifCore, ifLocalCore);
|
|
236
258
|
const { ifHmr } = (0, import_webpack_config_utils2.getIfUtils)({ hmr: process.env.HMR_ENABLED === "true" }, ["hmr"]);
|
|
237
|
-
|
|
259
|
+
const port = await (0, import_portfinder.getPortPromise)({ port: 1234 });
|
|
260
|
+
const useTailwind = ifCore() && paths.appTailwindConfig && (0, import_fs2.existsSync)(paths.appTailwindConfig);
|
|
261
|
+
logDataTable(getRelativePaths(paths), "Paths");
|
|
238
262
|
logDataTable(envVars.raw, "Environment variables");
|
|
239
263
|
const getCssLoaders = (cssOptions = {}) => {
|
|
240
264
|
return (0, import_webpack_config_utils2.removeEmpty)([
|
|
@@ -251,8 +275,7 @@ var getWebpackConfig = async (env) => {
|
|
|
251
275
|
loader: require.resolve("css-loader"),
|
|
252
276
|
options: __spreadValues({
|
|
253
277
|
sourceMap: ifNotMin(),
|
|
254
|
-
importLoaders: 3
|
|
255
|
-
esModule: false
|
|
278
|
+
importLoaders: 3
|
|
256
279
|
}, cssOptions)
|
|
257
280
|
},
|
|
258
281
|
{
|
|
@@ -260,7 +283,12 @@ var getWebpackConfig = async (env) => {
|
|
|
260
283
|
options: {
|
|
261
284
|
postcssOptions: {
|
|
262
285
|
plugins: (0, import_webpack_config_utils2.removeEmpty)([
|
|
263
|
-
|
|
286
|
+
useTailwind ? [
|
|
287
|
+
require.resolve("tailwindcss", {
|
|
288
|
+
paths: [paths.appNodeModules]
|
|
289
|
+
}),
|
|
290
|
+
paths.appTailwindConfig
|
|
291
|
+
] : void 0,
|
|
264
292
|
require.resolve("postcss-custom-properties"),
|
|
265
293
|
require.resolve("autoprefixer")
|
|
266
294
|
])
|
|
@@ -320,127 +348,143 @@ var getWebpackConfig = async (env) => {
|
|
|
320
348
|
use: require.resolve("source-map-loader")
|
|
321
349
|
}),
|
|
322
350
|
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
351
|
+
oneOf: [
|
|
352
|
+
{
|
|
353
|
+
test: /\.(js|ts)x?$/,
|
|
354
|
+
include: ifCore([
|
|
355
|
+
resolveApp("src"),
|
|
356
|
+
resolveApp("node_modules/micromark"),
|
|
357
|
+
resolveApp("node_modules/decode-named-character-reference")
|
|
358
|
+
], [resolveApp("."), resolveApp("../../src")]),
|
|
359
|
+
loader: require.resolve("babel-loader"),
|
|
360
|
+
options: {
|
|
361
|
+
babelrc: false,
|
|
362
|
+
configFile: false,
|
|
363
|
+
sourceMaps: ifNotMin(),
|
|
364
|
+
inputSourceMap: ifNotMin(),
|
|
365
|
+
presets: [
|
|
366
|
+
require.resolve("@babel/preset-env"),
|
|
367
|
+
[
|
|
368
|
+
require.resolve("@babel/preset-typescript"),
|
|
369
|
+
{
|
|
370
|
+
allowDeclareFields: true
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
require.resolve("@babel/preset-react")
|
|
374
|
+
],
|
|
375
|
+
plugins: (0, import_webpack_config_utils2.removeEmpty)([
|
|
376
|
+
[
|
|
377
|
+
require.resolve("@babel/plugin-transform-runtime"),
|
|
378
|
+
{
|
|
379
|
+
corejs: {
|
|
380
|
+
version: 3,
|
|
381
|
+
proposals: true
|
|
382
|
+
},
|
|
383
|
+
absoluteRuntime: (0, import_path2.dirname)(require.resolve("@babel/runtime-corejs3/package.json"))
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
[
|
|
387
|
+
require.resolve("@babel/plugin-proposal-decorators"),
|
|
388
|
+
{
|
|
389
|
+
legacy: true
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
require.resolve("@babel/plugin-syntax-dynamic-import"),
|
|
393
|
+
require.resolve("babel-plugin-lodash"),
|
|
394
|
+
ifHmr(require.resolve("react-refresh/babel"))
|
|
395
|
+
])
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
test: /\.(js|mjs)$/
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
test: /\.s?css$/,
|
|
403
|
+
exclude: /\.module\.s?css$/,
|
|
404
|
+
use: getCssLoaders({
|
|
405
|
+
modules: false
|
|
406
|
+
})
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
test: /\.module\.s?css$/,
|
|
410
|
+
use: getCssLoaders({
|
|
411
|
+
modules: { localIdentName: "[local]__[hash:base64]" }
|
|
412
|
+
})
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
test: /\.svg$/,
|
|
416
|
+
issuer: [/\.html$/, /\.s?css$/],
|
|
417
|
+
type: "asset",
|
|
418
|
+
parser: {
|
|
419
|
+
dataUrlCondition: {
|
|
420
|
+
maxSize: imageInlineSizeLimit
|
|
337
421
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
[
|
|
343
|
-
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
test: /\.svg$/,
|
|
426
|
+
issuer: [/\.(ts|tsx|js|jsx|md|mdx)$/],
|
|
427
|
+
use: [
|
|
344
428
|
{
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
429
|
+
loader: require.resolve("@svgr/webpack"),
|
|
430
|
+
options: {
|
|
431
|
+
svgoConfig: {
|
|
432
|
+
plugins: [
|
|
433
|
+
{
|
|
434
|
+
removeHiddenElems: false,
|
|
435
|
+
moveGroupAttrsToElems: false,
|
|
436
|
+
collapseGroups: false
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
prettier: false,
|
|
441
|
+
titleProp: true,
|
|
442
|
+
ref: true
|
|
443
|
+
}
|
|
444
|
+
},
|
|
354
445
|
{
|
|
355
|
-
|
|
446
|
+
loader: require.resolve("url-loader"),
|
|
447
|
+
options: {
|
|
448
|
+
name: "assets/[name]-[contenthash:16].[ext]",
|
|
449
|
+
limit: imageInlineSizeLimit
|
|
450
|
+
}
|
|
356
451
|
}
|
|
357
|
-
]
|
|
358
|
-
|
|
359
|
-
require.resolve("babel-plugin-lodash"),
|
|
360
|
-
ifHmr(require.resolve("react-refresh/babel"))
|
|
361
|
-
])
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
test: /\.s?css$/,
|
|
366
|
-
exclude: /\.module\.s?css$/,
|
|
367
|
-
use: getCssLoaders({
|
|
368
|
-
modules: false
|
|
369
|
-
})
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
test: /\.module\.s?css$/,
|
|
373
|
-
use: getCssLoaders({
|
|
374
|
-
modules: { localIdentName: "[local]__[hash:base64]" }
|
|
375
|
-
})
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
test: /\.svg$/,
|
|
379
|
-
issuer: /\.html$/,
|
|
380
|
-
type: "asset",
|
|
381
|
-
parser: {
|
|
382
|
-
dataUrlCondition: {
|
|
383
|
-
maxSize: imageInlineSizeLimit
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
test: /\.svg$/,
|
|
389
|
-
issuer: {
|
|
390
|
-
not: [/\.html$/]
|
|
391
|
-
},
|
|
392
|
-
use: [
|
|
452
|
+
]
|
|
453
|
+
},
|
|
393
454
|
{
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
removeHiddenElems: false,
|
|
400
|
-
moveGroupAttrsToElems: false,
|
|
401
|
-
collapseGroups: false
|
|
402
|
-
}
|
|
403
|
-
]
|
|
455
|
+
test: /\.(png|jpe?g|webp|gif|ico|ttf|eot|woff2?)$/,
|
|
456
|
+
type: "asset",
|
|
457
|
+
parser: {
|
|
458
|
+
dataUrlCondition: {
|
|
459
|
+
maxSize: imageInlineSizeLimit
|
|
404
460
|
}
|
|
405
461
|
}
|
|
406
462
|
},
|
|
407
463
|
{
|
|
408
|
-
|
|
464
|
+
test: /\.ya?ml$/,
|
|
465
|
+
use: [
|
|
466
|
+
{ loader: require.resolve("json-loader") },
|
|
467
|
+
{ loader: require.resolve("yaml-loader") }
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
test: /\.html$/,
|
|
472
|
+
loader: require.resolve("html-loader"),
|
|
409
473
|
options: {
|
|
410
|
-
|
|
411
|
-
limit: imageInlineSizeLimit
|
|
474
|
+
minimize: false
|
|
412
475
|
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
exclude: [/^$/, /\.(js|jsx|ts|tsx|mjs)$/, /\.html$/, /\.json$/],
|
|
479
|
+
type: "asset/resource"
|
|
413
480
|
}
|
|
414
481
|
]
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
test: /\.(png|jpe?g|webp|gif|ico|ttf|eot|woff2?)$/,
|
|
418
|
-
type: "asset",
|
|
419
|
-
parser: {
|
|
420
|
-
dataUrlCondition: {
|
|
421
|
-
maxSize: imageInlineSizeLimit
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
test: /\.ya?ml$/,
|
|
427
|
-
use: [
|
|
428
|
-
{ loader: require.resolve("json-loader") },
|
|
429
|
-
{ loader: require.resolve("yaml-loader") }
|
|
430
|
-
]
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
test: /\.html$/,
|
|
434
|
-
loader: require.resolve("html-loader"),
|
|
435
|
-
options: {
|
|
436
|
-
esModule: false,
|
|
437
|
-
minimize: false
|
|
438
|
-
}
|
|
439
482
|
}
|
|
440
483
|
])
|
|
441
484
|
},
|
|
442
485
|
devtool: ifMin(false, "cheap-module-source-map"),
|
|
443
486
|
devServer: {
|
|
487
|
+
port,
|
|
444
488
|
static: false,
|
|
445
489
|
historyApiFallback: {
|
|
446
490
|
disableDotRule: true
|
|
@@ -526,5 +570,6 @@ var getWebpackConfig = async (env) => {
|
|
|
526
570
|
return (0, import_webpack_config_utils2.removeEmpty)(config);
|
|
527
571
|
};
|
|
528
572
|
var webpack_config_default = getWebpackConfig;
|
|
573
|
+
module.exports = __toCommonJS(webpack_config_exports);
|
|
529
574
|
// Annotate the CommonJS export names for ESM import in node:
|
|
530
575
|
0 && (module.exports = {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raisenow/tamaro-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "RaiseNow",
|
|
6
6
|
"email": "development@raisenow.com"
|
|
@@ -11,94 +11,90 @@
|
|
|
11
11
|
"start": "npm run dev",
|
|
12
12
|
"dev": "npm run build -- --watch --ignore-watch .idea",
|
|
13
13
|
"build": "tsup src/cli.ts src/webpack.config.ts --format cjs",
|
|
14
|
-
"
|
|
15
|
-
"lint
|
|
14
|
+
"docs": "npx -y http-server . --cors -o /readme.html",
|
|
15
|
+
"lint": "eslint . --fix && prettier --write ."
|
|
16
16
|
},
|
|
17
17
|
"bin": "dist/cli.js",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=16",
|
|
20
20
|
"npm": ">=8"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/cli": "^7.
|
|
24
|
-
"@babel/core": "^7.
|
|
25
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
23
|
+
"@babel/cli": "^7.17.0",
|
|
24
|
+
"@babel/core": "^7.17.0",
|
|
25
|
+
"@babel/plugin-proposal-decorators": "^7.17.0",
|
|
26
26
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
27
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
28
|
-
"@babel/preset-env": "^7.
|
|
29
|
-
"@babel/preset-react": "^7.
|
|
30
|
-
"@babel/preset-typescript": "^7.
|
|
31
|
-
"@babel/runtime-corejs3": "^7.
|
|
32
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.
|
|
33
|
-
"@statoscope/webpack-plugin": "^5.
|
|
34
|
-
"@svgr/webpack": "^
|
|
27
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
28
|
+
"@babel/preset-env": "^7.16.11",
|
|
29
|
+
"@babel/preset-react": "^7.16.7",
|
|
30
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
31
|
+
"@babel/runtime-corejs3": "^7.17.0",
|
|
32
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
|
|
33
|
+
"@statoscope/webpack-plugin": "^5.20.1",
|
|
34
|
+
"@svgr/webpack": "^6.2.1",
|
|
35
35
|
"@types/columnify": "^1.5.1",
|
|
36
|
-
"@types/
|
|
37
|
-
"@types/css-
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/node": "^16.11.6",
|
|
41
|
-
"@types/node-notifier": "^8.0.1",
|
|
36
|
+
"@types/lodash": "^4.14.178",
|
|
37
|
+
"@types/mini-css-extract-plugin": "^2.5.1",
|
|
38
|
+
"@types/node": "^17.0.16",
|
|
39
|
+
"@types/node-notifier": "^8.0.2",
|
|
42
40
|
"@types/resolve-bin": "^0.4.1",
|
|
43
41
|
"@types/webpack-config-utils": "^2.3.1",
|
|
44
|
-
"@
|
|
45
|
-
"@typescript-eslint/
|
|
46
|
-
"
|
|
47
|
-
"autoprefixer": "^10.3.7",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.11.0",
|
|
44
|
+
"autoprefixer": "^10.4.2",
|
|
48
45
|
"babel-loader": "^8.2.3",
|
|
49
46
|
"babel-plugin-lodash": "^3.3.4",
|
|
50
47
|
"boxen": "^5.1.2",
|
|
51
48
|
"chalk": "^4.1.2",
|
|
52
49
|
"clean-webpack-plugin": "^4.0.0",
|
|
53
|
-
"columnify": "^1.
|
|
54
|
-
"commander": "^
|
|
55
|
-
"copy-webpack-plugin": "^
|
|
56
|
-
"core-js": "^3.
|
|
57
|
-
"css-loader": "^6.
|
|
58
|
-
"css-minimizer-webpack-plugin": "^3.
|
|
50
|
+
"columnify": "^1.6.0",
|
|
51
|
+
"commander": "^9.0.0",
|
|
52
|
+
"copy-webpack-plugin": "^10.2.4",
|
|
53
|
+
"core-js": "^3.21.0",
|
|
54
|
+
"css-loader": "^6.6.0",
|
|
55
|
+
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
59
56
|
"current-script-polyfill": "^1.0.0",
|
|
60
|
-
"dotenv": "^
|
|
61
|
-
"dotenv-expand": "^
|
|
57
|
+
"dotenv": "^16.0.0",
|
|
58
|
+
"dotenv-expand": "^8.0.1",
|
|
62
59
|
"element-closest": "^3.0.2",
|
|
63
60
|
"escape-string-regexp": "^4.0.0",
|
|
64
|
-
"eslint": "^8.
|
|
65
|
-
"eslint-config-prettier": "^8.3.0",
|
|
61
|
+
"eslint": "^8.8.0",
|
|
66
62
|
"eslint-plugin-node": "^11.1.0",
|
|
67
|
-
"eslint-plugin-
|
|
68
|
-
"eslint-plugin
|
|
69
|
-
"eslint-webpack-plugin": "^3.0.1",
|
|
63
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
64
|
+
"eslint-webpack-plugin": "^3.1.0",
|
|
70
65
|
"execa": "^5.1.1",
|
|
71
66
|
"file-loader": "^6.2.0",
|
|
72
|
-
"fork-ts-checker-webpack-plugin": "^
|
|
67
|
+
"fork-ts-checker-webpack-plugin": "^7.1.1",
|
|
73
68
|
"glob": "^7.2.0",
|
|
74
|
-
"html-loader": "^3.
|
|
69
|
+
"html-loader": "^3.1.0",
|
|
75
70
|
"html-webpack-plugin": "^5.5.0",
|
|
76
71
|
"json-loader": "^0.5.7",
|
|
77
72
|
"lodash": "^4.17.21",
|
|
78
|
-
"mini-css-extract-plugin": "^2.
|
|
79
|
-
"node-notifier": "^10.0.
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"postcss
|
|
83
|
-
"
|
|
84
|
-
"
|
|
73
|
+
"mini-css-extract-plugin": "^2.5.3",
|
|
74
|
+
"node-notifier": "^10.0.1",
|
|
75
|
+
"open": "^8.4.0",
|
|
76
|
+
"portfinder": "^1.0.28",
|
|
77
|
+
"postcss": "^8.4.6",
|
|
78
|
+
"postcss-custom-properties": "^12.1.4",
|
|
79
|
+
"postcss-loader": "^6.2.1",
|
|
80
|
+
"prettier": "^2.5.1",
|
|
81
|
+
"react-refresh": "^0.11.0",
|
|
85
82
|
"resolve-bin": "^1.0.0",
|
|
86
|
-
"resolve-url-loader": "^
|
|
87
|
-
"sass": "^1.
|
|
88
|
-
"sass-loader": "^12.
|
|
89
|
-
"source-map-loader": "^3.0.
|
|
83
|
+
"resolve-url-loader": "^5.0.0",
|
|
84
|
+
"sass": "^1.49.7",
|
|
85
|
+
"sass-loader": "^12.4.0",
|
|
86
|
+
"source-map-loader": "^3.0.1",
|
|
90
87
|
"strip-indent": "^3.0.0",
|
|
91
88
|
"style-loader": "^3.3.1",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"typescript": "^4.4.4",
|
|
89
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
90
|
+
"tsup": "^5.11.13",
|
|
91
|
+
"typescript": "^4.5.5",
|
|
96
92
|
"unfetch": "^4.2.0",
|
|
97
93
|
"url-loader": "^4.1.1",
|
|
98
|
-
"webpack": "^5.
|
|
99
|
-
"webpack-cli": "^4.9.
|
|
94
|
+
"webpack": "^5.68.0",
|
|
95
|
+
"webpack-cli": "^4.9.2",
|
|
100
96
|
"webpack-config-utils": "^2.3.1",
|
|
101
|
-
"webpack-dev-server": "^4.
|
|
97
|
+
"webpack-dev-server": "^4.7.4",
|
|
102
98
|
"yaml-loader": "^0.6.0"
|
|
103
99
|
}
|
|
104
100
|
}
|