add interval var

isekai-main
Barış Soner Uşaklı 2 years ago
parent c92a14abe7
commit c65c2aafd7

@ -65,7 +65,7 @@ module.exports = function (grunt) {
const templatesUpdated = pluginList.map(p => `node_modules/${p}/+(public|static|templates)/**/*.tpl`); const templatesUpdated = pluginList.map(p => `node_modules/${p}/+(public|static|templates)/**/*.tpl`);
const langUpdated = pluginList.map(p => `node_modules/${p}/+(public|static|languages)/**/*.json`); const langUpdated = pluginList.map(p => `node_modules/${p}/+(public|static|languages)/**/*.json`);
const interval = 100;
grunt.config(['watch'], { grunt.config(['watch'], {
styleUpdated: { styleUpdated: {
files: [ files: [
@ -73,7 +73,7 @@ module.exports = function (grunt) {
...styleUpdated_Client, ...styleUpdated_Client,
], ],
options: { options: {
interval: 1000, interval: interval,
}, },
}, },
clientUpdated: { clientUpdated: {
@ -84,7 +84,7 @@ module.exports = function (grunt) {
'node_modules/benchpressjs/build/benchpress.js', 'node_modules/benchpressjs/build/benchpress.js',
], ],
options: { options: {
interval: 1000, interval: interval,
}, },
}, },
serverUpdated: { serverUpdated: {
@ -99,7 +99,7 @@ module.exports = function (grunt) {
'!src/upgrades/**', '!src/upgrades/**',
], ],
options: { options: {
interval: 1000, interval: interval,
}, },
}, },
templatesUpdated: { templatesUpdated: {
@ -108,7 +108,7 @@ module.exports = function (grunt) {
...templatesUpdated, ...templatesUpdated,
], ],
options: { options: {
interval: 1000, interval: interval,
}, },
}, },
langUpdated: { langUpdated: {
@ -118,7 +118,7 @@ module.exports = function (grunt) {
...langUpdated, ...langUpdated,
], ],
options: { options: {
interval: 1000, interval: interval,
}, },
}, },
}); });

Loading…
Cancel
Save