vako 1.3.0 → 1.3.4
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/CHANGELOG.md +63 -63
- package/README.md +311 -1661
- package/bin/commands/setup-executor.js +1 -1
- package/bin/commands/setup.js +10 -10
- package/bin/create-veko-app.js +10 -10
- package/bin/vako.js +188 -0
- package/bin/veko-update.js +15 -15
- package/bin/veko.js +13 -13
- package/error/error.ejs +4 -4
- package/lib/adapters/nextjs-adapter.js +241 -241
- package/lib/app.js +10 -10
- package/lib/core/auth-manager.js +2 -2
- package/lib/core/auto-updater.js +50 -50
- package/lib/core/module-installer.js +2 -2
- package/lib/dev/dev-server.js +3 -3
- package/lib/layout/layout-manager.js +3 -3
- package/lib/plugin-manager.js +2 -2
- package/lib/routing/route-manager.js +3 -3
- package/package.json +12 -13
- package/templates/public/js/main.js +1 -1
- package/tsconfig.json +50 -50
- package/types/index.d.ts +238 -238
package/lib/core/auto-updater.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Fichier de l'auto-updater qui va vérifier si c'est la bonne version de
|
|
1
|
+
// Fichier de l'auto-updater qui va vérifier si c'est la bonne version de vako
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const https = require('https');
|
|
@@ -9,9 +9,9 @@ const chalk = require('chalk');
|
|
|
9
9
|
|
|
10
10
|
class AutoUpdater {
|
|
11
11
|
static packageJsonPath = path.join(process.cwd(), 'package.json');
|
|
12
|
-
static backupDir = path.join(process.cwd(), '.
|
|
13
|
-
static configPath = path.join(process.cwd(), '.
|
|
14
|
-
static logPath = path.join(process.cwd(), '.
|
|
12
|
+
static backupDir = path.join(process.cwd(), '.vako-backups');
|
|
13
|
+
static configPath = path.join(process.cwd(), '.vako-updater.json');
|
|
14
|
+
static logPath = path.join(process.cwd(), '.vako-updater.log');
|
|
15
15
|
static currentVersion = null;
|
|
16
16
|
static latestVersion = null;
|
|
17
17
|
static config = {};
|
|
@@ -52,7 +52,7 @@ class AutoUpdater {
|
|
|
52
52
|
rollbackOnFailure: true,
|
|
53
53
|
updateChannel: 'stable', // stable, beta, alpha
|
|
54
54
|
customRegistry: null,
|
|
55
|
-
excludeFiles: ['.git', 'node_modules', '.
|
|
55
|
+
excludeFiles: ['.git', 'node_modules', '.vako-backups'],
|
|
56
56
|
skipDependencies: false
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -117,8 +117,8 @@ class AutoUpdater {
|
|
|
117
117
|
try {
|
|
118
118
|
if (fs.existsSync(this.packageJsonPath)) {
|
|
119
119
|
const packageJson = JSON.parse(fs.readFileSync(this.packageJsonPath, 'utf8'));
|
|
120
|
-
if (packageJson.
|
|
121
|
-
this.stats = { ...this.stats, ...packageJson.
|
|
120
|
+
if (packageJson.vakoUpdaterStats) {
|
|
121
|
+
this.stats = { ...this.stats, ...packageJson.vakoUpdaterStats };
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
} catch (error) {
|
|
@@ -193,7 +193,7 @@ class AutoUpdater {
|
|
|
193
193
|
const currentVersion = this.getCurrentVersion();
|
|
194
194
|
if (!currentVersion) {
|
|
195
195
|
animation.stop(!silent ?
|
|
196
|
-
this.styles.warning('⚠️
|
|
196
|
+
this.styles.warning('⚠️ Vako n\'est pas installé.') : '');
|
|
197
197
|
return { hasUpdate: false, needsInstall: true };
|
|
198
198
|
}
|
|
199
199
|
|
|
@@ -282,7 +282,7 @@ class AutoUpdater {
|
|
|
282
282
|
'package.json',
|
|
283
283
|
'package-lock.json',
|
|
284
284
|
'yarn.lock',
|
|
285
|
-
'node_modules/
|
|
285
|
+
'node_modules/vako'
|
|
286
286
|
];
|
|
287
287
|
|
|
288
288
|
fs.mkdirSync(backupPath, { recursive: true });
|
|
@@ -436,18 +436,18 @@ class AutoUpdater {
|
|
|
436
436
|
// Désinstallation de l'ancienne version
|
|
437
437
|
console.log(this.styles.info('📦 Désinstallation de l\'ancienne version...'));
|
|
438
438
|
try {
|
|
439
|
-
execSync(`${npmCommand} uninstall
|
|
439
|
+
execSync(`${npmCommand} uninstall vako`, { stdio: 'pipe' });
|
|
440
440
|
} catch (error) {
|
|
441
441
|
// Si echec, essayer avec npx
|
|
442
442
|
console.log(this.styles.warning('⚠️ Tentative alternative avec npx...'));
|
|
443
|
-
execSync(`${isWindows ? 'npx.cmd' : 'npx'} -y npm uninstall
|
|
443
|
+
execSync(`${isWindows ? 'npx.cmd' : 'npx'} -y npm uninstall vako`, { stdio: 'pipe' });
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
// Installation de la nouvelle version
|
|
447
|
-
console.log(this.styles.info(`📦 Installation de
|
|
447
|
+
console.log(this.styles.info(`📦 Installation de vako@${versionInfo.latestVersion}...`));
|
|
448
448
|
|
|
449
449
|
// Utiliser le chemin complet vers npm si disponible
|
|
450
|
-
const installProcess = spawn(npmCommand, ['install', `
|
|
450
|
+
const installProcess = spawn(npmCommand, ['install', `vako@${versionInfo.latestVersion}`], {
|
|
451
451
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
452
452
|
shell: true // Utiliser un shell pour une meilleure compatibilité
|
|
453
453
|
});
|
|
@@ -490,7 +490,7 @@ class AutoUpdater {
|
|
|
490
490
|
console.log(this.styles.success(`✅ Mise à jour réussie vers la version ${versionInfo.latestVersion}!`));
|
|
491
491
|
|
|
492
492
|
if (this.config.notifications) {
|
|
493
|
-
this.showNotification('
|
|
493
|
+
this.showNotification('Vako mis à jour avec succès!', `Version ${versionInfo.latestVersion}`);
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
return true;
|
|
@@ -574,10 +574,10 @@ class AutoUpdater {
|
|
|
574
574
|
const registry = this.config.customRegistry || 'registry.npmjs.org';
|
|
575
575
|
const options = {
|
|
576
576
|
hostname: registry,
|
|
577
|
-
path: '/
|
|
577
|
+
path: '/vako',
|
|
578
578
|
method: 'GET',
|
|
579
579
|
headers: {
|
|
580
|
-
'User-Agent': `
|
|
580
|
+
'User-Agent': `vako-auto-updater/2.0.0 (${os.platform()} ${os.arch()})`,
|
|
581
581
|
'Accept': 'application/json'
|
|
582
582
|
},
|
|
583
583
|
timeout: 5000 // Timeout explicite
|
|
@@ -665,17 +665,17 @@ class AutoUpdater {
|
|
|
665
665
|
|
|
666
666
|
// ❓ Aide simplifiée
|
|
667
667
|
static showHelp() {
|
|
668
|
-
console.log(this.styles.title('\n❓ Aide -
|
|
668
|
+
console.log(this.styles.title('\n❓ Aide - Vako Auto-Updater'));
|
|
669
669
|
console.log(this.styles.separator);
|
|
670
670
|
console.log('Commandes disponibles:');
|
|
671
|
-
console.log('
|
|
672
|
-
console.log('
|
|
673
|
-
console.log('
|
|
674
|
-
console.log('
|
|
675
|
-
console.log('
|
|
676
|
-
console.log('
|
|
677
|
-
console.log('
|
|
678
|
-
console.log('
|
|
671
|
+
console.log(' vako update check - Vérifier les mises à jour');
|
|
672
|
+
console.log(' vako update update - Mettre à jour maintenant');
|
|
673
|
+
console.log(' vako update config - Afficher la configuration');
|
|
674
|
+
console.log(' vako update rollback - Effectuer un rollback');
|
|
675
|
+
console.log(' vako update stats - Afficher les statistiques');
|
|
676
|
+
console.log(' vako update fix - Réparer l\'auto-updater');
|
|
677
|
+
console.log(' vako update help - Afficher l\'aide');
|
|
678
|
+
console.log(' vako update version - Afficher la version');
|
|
679
679
|
console.log(this.styles.separator);
|
|
680
680
|
}
|
|
681
681
|
|
|
@@ -713,10 +713,10 @@ class AutoUpdater {
|
|
|
713
713
|
animation.stop();
|
|
714
714
|
|
|
715
715
|
if (updateInfo.needsInstall) {
|
|
716
|
-
console.log(this.styles.warning('⚠️
|
|
716
|
+
console.log(this.styles.warning('⚠️ Vako n\'est pas installé. Installation en cours...'));
|
|
717
717
|
try {
|
|
718
|
-
execSync('npm install
|
|
719
|
-
console.log(this.styles.success('✅
|
|
718
|
+
execSync('npm install vako@latest', { stdio: 'inherit' });
|
|
719
|
+
console.log(this.styles.success('✅ Vako installé avec succès!'));
|
|
720
720
|
return true;
|
|
721
721
|
} catch (error) {
|
|
722
722
|
console.log(this.styles.error(`❌ Erreur lors de l'installation: ${error.message}`));
|
|
@@ -729,13 +729,13 @@ class AutoUpdater {
|
|
|
729
729
|
if (this.config.autoUpdate) {
|
|
730
730
|
return await this.performUpdate(updateInfo);
|
|
731
731
|
} else {
|
|
732
|
-
console.log(this.styles.info('Pour mettre à jour:
|
|
732
|
+
console.log(this.styles.info('Pour mettre à jour: vako update update'));
|
|
733
733
|
}
|
|
734
734
|
} else if (updateInfo.error) {
|
|
735
735
|
console.log(this.styles.error(`❌ Erreur: ${updateInfo.error}`));
|
|
736
736
|
return false;
|
|
737
737
|
} else {
|
|
738
|
-
console.log(this.styles.success('✅
|
|
738
|
+
console.log(this.styles.success('✅ Vako est à jour!'));
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
return true;
|
|
@@ -789,18 +789,18 @@ class AutoUpdater {
|
|
|
789
789
|
|
|
790
790
|
return await this.performUpdate(updateInfo);
|
|
791
791
|
} else if (updateInfo.needsInstall) {
|
|
792
|
-
console.log(this.styles.warning('⚠️
|
|
792
|
+
console.log(this.styles.warning('⚠️ Vako n\'est pas installé. Installation en cours...'));
|
|
793
793
|
|
|
794
794
|
try {
|
|
795
|
-
execSync('npm install
|
|
796
|
-
console.log(this.styles.success('✅
|
|
795
|
+
execSync('npm install vako@latest', { stdio: 'inherit' });
|
|
796
|
+
console.log(this.styles.success('✅ Vako installé avec succès!'));
|
|
797
797
|
return true;
|
|
798
798
|
} catch (error) {
|
|
799
799
|
console.log(this.styles.error(`❌ Erreur lors de l'installation: ${error.message}`));
|
|
800
800
|
return false;
|
|
801
801
|
}
|
|
802
802
|
} else {
|
|
803
|
-
console.log(this.styles.success('✅
|
|
803
|
+
console.log(this.styles.success('✅ Vako est déjà à jour!'));
|
|
804
804
|
return true;
|
|
805
805
|
}
|
|
806
806
|
} catch (error) {
|
|
@@ -812,7 +812,7 @@ class AutoUpdater {
|
|
|
812
812
|
// 📋 Afficher version
|
|
813
813
|
static showVersion() {
|
|
814
814
|
const version = this.getCurrentVersion() || 'non installé';
|
|
815
|
-
console.log(`
|
|
815
|
+
console.log(`Vako v${version}`);
|
|
816
816
|
console.log(`Auto-updater v1.1.5`);
|
|
817
817
|
return true;
|
|
818
818
|
}
|
|
@@ -843,18 +843,18 @@ class AutoUpdater {
|
|
|
843
843
|
} else {
|
|
844
844
|
console.log(this.styles.success('✅ package.json trouvé'));
|
|
845
845
|
|
|
846
|
-
// Vérifier l'installation de
|
|
847
|
-
const
|
|
848
|
-
if (!
|
|
849
|
-
console.log(this.styles.warning('⚠️
|
|
846
|
+
// Vérifier l'installation de vako
|
|
847
|
+
const vakoInstalled = this.getCurrentVersion();
|
|
848
|
+
if (!vakoInstalled) {
|
|
849
|
+
console.log(this.styles.warning('⚠️ Vako non installé, tentative d\'installation'));
|
|
850
850
|
try {
|
|
851
|
-
execSync('npm install
|
|
852
|
-
console.log(this.styles.success('✅
|
|
851
|
+
execSync('npm install vako@latest', { stdio: 'inherit' });
|
|
852
|
+
console.log(this.styles.success('✅ Vako installé'));
|
|
853
853
|
} catch (error) {
|
|
854
854
|
console.log(this.styles.error(`❌ Erreur d'installation: ${error.message}`));
|
|
855
855
|
}
|
|
856
856
|
} else {
|
|
857
|
-
console.log(this.styles.success(`✅
|
|
857
|
+
console.log(this.styles.success(`✅ Vako v${vakoInstalled} installé`));
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
|
|
@@ -867,7 +867,7 @@ class AutoUpdater {
|
|
|
867
867
|
|
|
868
868
|
console.log(this.styles.separator);
|
|
869
869
|
console.log(this.styles.success('🎉 Réparation terminée!'));
|
|
870
|
-
console.log(this.styles.info('💡 Utilisez "
|
|
870
|
+
console.log(this.styles.info('💡 Utilisez "vako update check" pour vérifier les mises à jour'));
|
|
871
871
|
|
|
872
872
|
return true;
|
|
873
873
|
} catch (error) {
|
|
@@ -885,15 +885,15 @@ class AutoUpdater {
|
|
|
885
885
|
|
|
886
886
|
const packageJson = JSON.parse(fs.readFileSync(this.packageJsonPath, 'utf8'));
|
|
887
887
|
|
|
888
|
-
const
|
|
889
|
-
packageJson.devDependencies?.
|
|
890
|
-
packageJson.peerDependencies?.
|
|
891
|
-
|
|
892
|
-
if (!
|
|
888
|
+
const vakoVersion = packageJson.dependencies?.vako ||
|
|
889
|
+
packageJson.devDependencies?.vako ||
|
|
890
|
+
packageJson.peerDependencies?.vako;
|
|
891
|
+
|
|
892
|
+
if (!vakoVersion) {
|
|
893
893
|
return null;
|
|
894
894
|
}
|
|
895
895
|
|
|
896
|
-
this.currentVersion =
|
|
896
|
+
this.currentVersion = vakoVersion.replace(/[\^~>=<]/g, '');
|
|
897
897
|
return this.currentVersion;
|
|
898
898
|
} catch (error) {
|
|
899
899
|
console.warn(`[Auto-updater] Erreur lors de la lecture de package.json: ${error.message}`);
|
|
@@ -1106,7 +1106,7 @@ class AutoUpdater {
|
|
|
1106
1106
|
try {
|
|
1107
1107
|
if (fs.existsSync(this.packageJsonPath)) {
|
|
1108
1108
|
const packageJson = JSON.parse(fs.readFileSync(this.packageJsonPath, 'utf8'));
|
|
1109
|
-
packageJson.
|
|
1109
|
+
packageJson.vakoUpdaterStats = this.stats;
|
|
1110
1110
|
fs.writeFileSync(this.packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
1111
1111
|
}
|
|
1112
1112
|
} catch (error) {
|
|
@@ -66,9 +66,9 @@ class ModuleInstaller {
|
|
|
66
66
|
console.log('📄 Création du package.json...');
|
|
67
67
|
|
|
68
68
|
const packageJson = {
|
|
69
|
-
name: "
|
|
69
|
+
name: "vako-app",
|
|
70
70
|
version: "1.0.0",
|
|
71
|
-
description: "Application
|
|
71
|
+
description: "Application Vako",
|
|
72
72
|
main: "app.js",
|
|
73
73
|
scripts: {
|
|
74
74
|
dev: "node app.js",
|
package/lib/dev/dev-server.js
CHANGED
|
@@ -53,7 +53,7 @@ class DevServer {
|
|
|
53
53
|
|
|
54
54
|
ws.send(JSON.stringify({
|
|
55
55
|
type: 'connected',
|
|
56
|
-
message: 'Connected to
|
|
56
|
+
message: 'Connected to Vako server ✨'
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
if (this.options.prefetch.enabled) {
|
|
@@ -236,7 +236,7 @@ class DevServer {
|
|
|
236
236
|
(function() {
|
|
237
237
|
const ws = new WebSocket('ws://localhost:${req.app.locals.wsPort || 3008}');
|
|
238
238
|
|
|
239
|
-
ws.onopen = () => console.log('🔗
|
|
239
|
+
ws.onopen = () => console.log('🔗 Vako connected');
|
|
240
240
|
ws.onmessage = (event) => {
|
|
241
241
|
const data = JSON.parse(event.data);
|
|
242
242
|
|
|
@@ -259,7 +259,7 @@ class DevServer {
|
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
ws.onclose = () => console.log('🔌
|
|
262
|
+
ws.onclose = () => console.log('🔌 Vako disconnected');
|
|
263
263
|
})();
|
|
264
264
|
</script>
|
|
265
265
|
`;
|
|
@@ -153,7 +153,7 @@ class LayoutManager {
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
return {
|
|
156
|
-
title: sanitized.title || '
|
|
156
|
+
title: sanitized.title || 'Vako App',
|
|
157
157
|
description: sanitized.description || '',
|
|
158
158
|
keywords: sanitized.keywords || '',
|
|
159
159
|
author: sanitized.author || '',
|
|
@@ -484,7 +484,7 @@ class LayoutManager {
|
|
|
484
484
|
<% } else { %>
|
|
485
485
|
<header>
|
|
486
486
|
<div class="container">
|
|
487
|
-
<h1>🚀
|
|
487
|
+
<h1>🚀 Vako</h1>
|
|
488
488
|
<p>Ultra modern Node.js framework</p>
|
|
489
489
|
</div>
|
|
490
490
|
</header>
|
|
@@ -507,7 +507,7 @@ class LayoutManager {
|
|
|
507
507
|
<% } else { %>
|
|
508
508
|
<footer>
|
|
509
509
|
<div class="container">
|
|
510
|
-
<p>Powered by
|
|
510
|
+
<p>Powered by Vako ⚡</p>
|
|
511
511
|
</div>
|
|
512
512
|
</footer>
|
|
513
513
|
<% } %>
|
package/lib/plugin-manager.js
CHANGED
|
@@ -732,7 +732,7 @@ class PluginManager extends EventEmitter {
|
|
|
732
732
|
return `
|
|
733
733
|
/**
|
|
734
734
|
* Plugin {{name}}
|
|
735
|
-
* Généré automatiquement par
|
|
735
|
+
* Généré automatiquement par Vako PluginManager
|
|
736
736
|
*/
|
|
737
737
|
|
|
738
738
|
module.exports = {
|
|
@@ -897,7 +897,7 @@ module.exports = {
|
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
setupHooks() {
|
|
900
|
-
// Hooks prédéfinis de
|
|
900
|
+
// Hooks prédéfinis de Vako
|
|
901
901
|
const defaultHooks = [
|
|
902
902
|
'app:init',
|
|
903
903
|
'app:start',
|
|
@@ -824,8 +824,8 @@ class RouteManager {
|
|
|
824
824
|
module.exports = {
|
|
825
825
|
get: (req, res) => {
|
|
826
826
|
res.render('index', {
|
|
827
|
-
title: '
|
|
828
|
-
message: 'Welcome to
|
|
827
|
+
title: 'Vako - Ultra modern framework',
|
|
828
|
+
message: 'Welcome to Vako! 🚀',
|
|
829
829
|
description: 'Your application is running successfully.'
|
|
830
830
|
});
|
|
831
831
|
}
|
|
@@ -890,7 +890,7 @@ module.exports = {
|
|
|
890
890
|
|
|
891
891
|
<% layout.section('scripts', \`
|
|
892
892
|
<script>
|
|
893
|
-
console.log('🎉
|
|
893
|
+
console.log('🎉 Vako app loaded successfully!');
|
|
894
894
|
</script>
|
|
895
895
|
\`) %>`;
|
|
896
896
|
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vako",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "🚀 Ultra-modern Node.js framework with hot reload, plugins, authentication, TypeScript support, and Next.js integration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"
|
|
9
|
-
"create-
|
|
10
|
-
"
|
|
8
|
+
"vako": "./bin/vako.js",
|
|
9
|
+
"create-vako-app": "./bin/create-vako-app.js",
|
|
10
|
+
"vako-update": "./bin/vako-update.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "node bin/
|
|
14
|
-
"build": "node bin/
|
|
15
|
-
"start": "node bin/
|
|
13
|
+
"dev": "node bin/vako.js dev",
|
|
14
|
+
"build": "node bin/vako.js build",
|
|
15
|
+
"start": "node bin/vako.js start",
|
|
16
16
|
"test": "jest --coverage",
|
|
17
17
|
"test:watch": "jest --watch",
|
|
18
18
|
"test:security": "npm audit && node scripts/security-check.js",
|
|
19
19
|
"lint": "eslint lib/ bin/ --fix",
|
|
20
20
|
"lint:check": "eslint lib/ bin/",
|
|
21
21
|
|
|
22
|
-
"postinstall": "echo '🚀
|
|
22
|
+
"postinstall": "echo '🚀 Vako installé avec succès!'",
|
|
23
23
|
"demo": "node examples/demo.js",
|
|
24
24
|
"verify": "node verify-code.js",
|
|
25
25
|
"prepublish": "node scripts/pre-publish.js",
|
|
26
26
|
"prepublishOnly": "echo 'Skipping tests for publication'",
|
|
27
|
-
"create-app": "node bin/create-
|
|
27
|
+
"create-app": "node bin/create-vako-app.js",
|
|
28
28
|
"docs": "jsdoc lib/ -d docs/",
|
|
29
29
|
"benchmark": "node scripts/benchmark.js",
|
|
30
30
|
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls"
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"license": "MIT",
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|
|
61
|
-
"url": "https://github.com/
|
|
61
|
+
"url": "git+https://github.com/sdevfr/vako.git"
|
|
62
62
|
},
|
|
63
63
|
"bugs": {
|
|
64
|
-
"url": "https://github.com/
|
|
64
|
+
"url": "https://github.com/sdevfr/vako/issues"
|
|
65
65
|
},
|
|
66
|
-
"homepage": "https://
|
|
66
|
+
"homepage": "https://vako.js.org",
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=16.0.0",
|
|
69
69
|
"npm": ">=8.0.0"
|
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
"README.md",
|
|
169
169
|
"LICENSE",
|
|
170
170
|
"CHANGELOG.md",
|
|
171
|
-
"tsconfig.json",
|
|
172
171
|
"tsconfig.json"
|
|
173
172
|
],
|
|
174
173
|
"preferGlobal": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
console.log('
|
|
1
|
+
console.log('Vako loaded');
|
package/tsconfig.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": ["ES2020"],
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"rootDir": "./",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"allowSyntheticDefaultImports": true,
|
|
15
|
-
"declaration": true,
|
|
16
|
-
"declarationMap": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"experimentalDecorators": true,
|
|
19
|
-
"emitDecoratorMetadata": true,
|
|
20
|
-
"noUnusedLocals": false,
|
|
21
|
-
"noUnusedParameters": false,
|
|
22
|
-
"noImplicitReturns": false,
|
|
23
|
-
"noFallthroughCasesInSwitch": true,
|
|
24
|
-
"allowJs": true,
|
|
25
|
-
"baseUrl": ".",
|
|
26
|
-
"paths": {
|
|
27
|
-
"veko": ["./index.js"],
|
|
28
|
-
"veko/*": ["./lib/*"]
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"include": [
|
|
32
|
-
"lib/**/*",
|
|
33
|
-
"bin/**/*",
|
|
34
|
-
"index.js",
|
|
35
|
-
"types/**/*"
|
|
36
|
-
],
|
|
37
|
-
"exclude": [
|
|
38
|
-
"node_modules",
|
|
39
|
-
"dist",
|
|
40
|
-
"coverage",
|
|
41
|
-
"**/*.test.js",
|
|
42
|
-
"**/*.spec.js"
|
|
43
|
-
],
|
|
44
|
-
"ts-node": {
|
|
45
|
-
"transpileOnly": true,
|
|
46
|
-
"compilerOptions": {
|
|
47
|
-
"module": "commonjs"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2020"],
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "./",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"declaration": true,
|
|
16
|
+
"declarationMap": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"experimentalDecorators": true,
|
|
19
|
+
"emitDecoratorMetadata": true,
|
|
20
|
+
"noUnusedLocals": false,
|
|
21
|
+
"noUnusedParameters": false,
|
|
22
|
+
"noImplicitReturns": false,
|
|
23
|
+
"noFallthroughCasesInSwitch": true,
|
|
24
|
+
"allowJs": true,
|
|
25
|
+
"baseUrl": ".",
|
|
26
|
+
"paths": {
|
|
27
|
+
"veko": ["./index.js"],
|
|
28
|
+
"veko/*": ["./lib/*"]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"include": [
|
|
32
|
+
"lib/**/*",
|
|
33
|
+
"bin/**/*",
|
|
34
|
+
"index.js",
|
|
35
|
+
"types/**/*"
|
|
36
|
+
],
|
|
37
|
+
"exclude": [
|
|
38
|
+
"node_modules",
|
|
39
|
+
"dist",
|
|
40
|
+
"coverage",
|
|
41
|
+
"**/*.test.js",
|
|
42
|
+
"**/*.spec.js"
|
|
43
|
+
],
|
|
44
|
+
"ts-node": {
|
|
45
|
+
"transpileOnly": true,
|
|
46
|
+
"compilerOptions": {
|
|
47
|
+
"module": "commonjs"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|