@massimo-cassandro/minimo 1.23.0 → 1.24.1
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.
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"eslint-check": "npx eslint app/ # or src/, frontend/src/ ...",
|
|
24
24
|
"create-favicons INIT": "npx create-favicons init",
|
|
25
25
|
"create-favicons": "npx create-favicons --dir=./favicons # o ./frontend/favicons",
|
|
26
|
-
"UPD-version": "npx update-version
|
|
26
|
+
"UPD-version": "npx update-version --noLogv0 # --log-file=./frontend/changelog.md --log-patch --pkg=alt/path/to/package.json",
|
|
27
27
|
"upd@m": "npx upd@m",
|
|
28
28
|
"launchChrome": "open -n -a 'Google Chrome' --args --profile-directory='Profile 3'",
|
|
29
29
|
"python server": "python3 -m http.server 8000 # --directory __dirname__ # 8000 = default port",
|
|
@@ -52,6 +52,11 @@ async function run() {
|
|
|
52
52
|
params.updateMode = choice; // modalità scelta (init, major, minor o patch)
|
|
53
53
|
updateSemver();
|
|
54
54
|
|
|
55
|
+
// Se noLogv0 è true e la major version è 0, il log non viene registrato (eccetto per l'inizializzazione)
|
|
56
|
+
if (params.noLogv0 && params.updateMode !== 'init' && params.semverArray[0] === 0) {
|
|
57
|
+
params.addLog = false;
|
|
58
|
+
}
|
|
59
|
+
|
|
55
60
|
params.logRow.vers = params.newSemver;
|
|
56
61
|
|
|
57
62
|
// Scrive il log, se richiesto
|
|
@@ -24,5 +24,12 @@ export function getCliParams() {
|
|
|
24
24
|
if (!params.toLog.includes('patch')) params.toLog.push('patch');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// Disabilita il log per major version 0
|
|
28
|
+
if (arg === '--noLogv0') {
|
|
29
|
+
params.noLogv0 = true;
|
|
30
|
+
} else if (arg.startsWith('--noLogv0=')) {
|
|
31
|
+
params.noLogv0 = arg.split('=')[1].trim() !== 'false';
|
|
32
|
+
}
|
|
33
|
+
|
|
27
34
|
});
|
|
28
35
|
}
|
|
@@ -10,7 +10,7 @@ export const params = {
|
|
|
10
10
|
debug: false, // solo sviluppo, non aggiorna nulla ma mostra l'output finale
|
|
11
11
|
|
|
12
12
|
addLog: true, // modificato in base alla scelta del tipo di aggironamento e del valore di toLog
|
|
13
|
-
|
|
13
|
+
noLogv0: true, // se true e la major version è 0 il log non viene registrato (ad esclusione dell'inizializzazione del file)
|
|
14
14
|
|
|
15
15
|
// preRealeaseTags: ['alpha', 'beta', 'rc'],
|
|
16
16
|
logRow: {
|