Skip to content

Commit 8aafba1

Browse files
committed
fix: generaione file json
1 parent 0b6bf38 commit 8aafba1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

gulpfile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ export function release(done) {
544544
'!settings.json',
545545
'!views.json',
546546
'!modules.json',
547+
'!widgets.json',
547548
'!manifest.json',
548549
'!.idea/**',
549550
'!.git/**',
@@ -559,6 +560,9 @@ export function release(done) {
559560
'!psalm.xml',
560561
'!update/structure.php',
561562
'!update/settings.php',
563+
'!update/modules.php',
564+
'!update/views.php',
565+
'!update/widgets.php',
562566
'!**/*.(lock|phar|log|zip|bak|jar|txt)',
563567
'!**/~*',
564568
'!vendor/tecnickcom/tcpdf/examples/**',
@@ -635,6 +639,13 @@ export function release(done) {
635639
bufferStream.push(null);
636640
archive.append(bufferStream, { name: 'modules.json' });
637641

642+
// Aggiunta del file per il controllo dei widget
643+
bufferStream = new Readable();
644+
bufferStream.push(shell.exec('php update/widgets.php', {
645+
silent: true
646+
}).stdout);
647+
bufferStream.push(null);
648+
archive.append(bufferStream, { name: 'widgets.json' });
638649

639650
// Aggiunta del commit corrente nel file REVISION
640651
bufferStream = new Readable();

0 commit comments

Comments
 (0)