vatts 1.2.3 → 1.2.5
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/builder.js +0 -2
- package/dist/helpers.js +6 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/builder.js
CHANGED
|
@@ -265,11 +265,9 @@ async function getFrameworkConfig(entryPoint, outdir, isProduction) {
|
|
|
265
265
|
];
|
|
266
266
|
const pluginConfig = { prePlugins, postPlugins };
|
|
267
267
|
if (framework === 'vue') {
|
|
268
|
-
Console.info("Framework detected: Vue.js");
|
|
269
268
|
return await createVueConfig(entryPoint, outdir, isProduction, pluginConfig);
|
|
270
269
|
}
|
|
271
270
|
else {
|
|
272
|
-
Console.info("Framework detected: React/Standard");
|
|
273
271
|
return await createReactConfig(entryPoint, outdir, isProduction, pluginConfig);
|
|
274
272
|
}
|
|
275
273
|
}
|
package/dist/helpers.js
CHANGED
|
@@ -95,7 +95,7 @@ const sendBox = (options) => {
|
|
|
95
95
|
const localIp = getLocalExternalIp();
|
|
96
96
|
// Estilos Clean
|
|
97
97
|
const labelStyle = console_1.Colors.FgGray;
|
|
98
|
-
const urlStyle = console_1.Colors.Bright + console_1.Colors.
|
|
98
|
+
const urlStyle = console_1.Colors.Bright + console_1.Colors.FgCyan; // Ciano para links é o padrão mais legível
|
|
99
99
|
const now = new Date();
|
|
100
100
|
const time = now.toLocaleTimeString('pt-BR', { hour12: false });
|
|
101
101
|
const timer = ` ${console_1.Colors.FgGray}${time}${console_1.Colors.Reset} `;
|
|
@@ -168,8 +168,6 @@ async function loadVattsConfig(projectDir, phase) {
|
|
|
168
168
|
}
|
|
169
169
|
// Mescla a configuração do usuário com a padrão
|
|
170
170
|
const mergedConfig = { ...defaultConfig, ...userConfig };
|
|
171
|
-
const configFileName = path_1.default.basename(configPath);
|
|
172
|
-
console_1.default.info(`Loaded ${configFileName}`);
|
|
173
171
|
return mergedConfig;
|
|
174
172
|
}
|
|
175
173
|
catch (error) {
|
|
@@ -398,7 +396,7 @@ async function initNativeServer(vattsApp, options, port, hostname) {
|
|
|
398
396
|
else if (statusCode >= 300)
|
|
399
397
|
statusColor = console_1.Colors.FgCyan; // 3xx
|
|
400
398
|
// Formata o método com cor
|
|
401
|
-
let methodColor = console_1.Colors.
|
|
399
|
+
let methodColor = console_1.Colors.FgCyan;
|
|
402
400
|
if (method === 'POST')
|
|
403
401
|
methodColor = console_1.Colors.FgGreen;
|
|
404
402
|
else if (method === 'PUT')
|
|
@@ -602,10 +600,10 @@ function app(options = {}) {
|
|
|
602
600
|
message = `${console_1.Colors.FgGreen} You are on the latest version${console_1.Colors.FgMagenta}`;
|
|
603
601
|
}
|
|
604
602
|
// JS STICK LETTERS
|
|
605
|
-
console.log(`${console_1.Colors.Bright + console_1.Colors.
|
|
606
|
-
${console_1.Colors.Bright + console_1.Colors.
|
|
607
|
-
${console_1.Colors.Bright + console_1.Colors.
|
|
608
|
-
${console_1.Colors.Bright + console_1.Colors.
|
|
603
|
+
console.log(`${console_1.Colors.Bright + console_1.Colors.FgCyan}
|
|
604
|
+
${console_1.Colors.Bright + console_1.Colors.FgCyan} ___ ___ __ ${console_1.Colors.FgWhite} __
|
|
605
|
+
${console_1.Colors.Bright + console_1.Colors.FgCyan} \\ / /\\ | | /__\`${console_1.Colors.FgWhite} | /__\` ${console_1.Colors.Bright + console_1.Colors.FgCyan}Vatts${console_1.Colors.FgWhite}.js ${console_1.Colors.FgGray}(v${require('../package.json').version}) - mfraz
|
|
606
|
+
${console_1.Colors.Bright + console_1.Colors.FgCyan} \\/ /~~\\ | | .__/ .${console_1.Colors.FgWhite} \\__/ .__/ ${message}
|
|
609
607
|
|
|
610
608
|
`);
|
|
611
609
|
const actualPort = options.port || 3000;
|
package/dist/index.js
CHANGED
|
@@ -430,7 +430,7 @@ function vatts(options) {
|
|
|
430
430
|
const spinnerFrames = ['|', '/', '-', '\\'];
|
|
431
431
|
let frameIndex = 0;
|
|
432
432
|
const spinner = setInterval(() => {
|
|
433
|
-
time.update(` ${console_1.Colors.
|
|
433
|
+
time.update(` ${console_1.Colors.FgGreen}${spinnerFrames[frameIndex]}${console_1.Colors.Reset} Building...`);
|
|
434
434
|
frameIndex = (frameIndex + 1) % spinnerFrames.length;
|
|
435
435
|
}, 100);
|
|
436
436
|
const now = Date.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "mfraz",
|