I have a problem when I try to overwrite a file with gulp. To make you understand my problem here's an example of what I am trying to do: My project file path:  - Project  |- clients    |- clientBase      |- JS        |- jsexample.js        |- js...
I've seen plenty of stackoverflow solutions to this, but none of the appear to work in my scenario.   My gulp watch appears to be watching the file but the output file is not being updated.  Running gulp works okay as it default is set to call th...
I'm stucked with the problem of watching my Swig.js html templates and compiling them on every change, I use Gulp.js task runner for that purpose. Here is my gulpfile.js:  var gulp = require('gulp'); var myth = require('gulp-myth'...
Besides lazy execution, are Tasks and Promises pretty much the same thing? When I refer to a task, I refer to a class that is in its most basic behavior like the following:  class Task {   constructor(then) {     this.then = then;   }   map(mapper) {...
I installed gulp-tag-version, but when I am running the command 'gulp tag v1.1.1', it will not confirm this as a task  var gulp = require('gulp'); var tag_version = require('gulp-tag-version');    gulp.task('tag', func...
I am newbie in Gulp. What I am trying to do is copy the full directory and its files to another folder. The source has this structure source-submodule > app_A > www. I only want to copy the www folder and its subdirectories and files inside. Th...
I want to execute a repeated task in every two hours in a Node JS app.   Is it efficient to use setInterval(function() {...}, 7200000) to do this or is it suggested to use maybe a module to achieve the same thing?...
Hello i have problem about change state after onClick with this function i dont know why this is doesnt work because console.log displayed difference value and i dont know why i cant set the same state.  `doneUndone = (index) => {       console.lo...
I have many js scripts in one folder (scripts/*.js).  How to execute them all from the gulp task (instead of using 'node script.js' many times)?  something like  gulp.task('exec_all_scripts', function () {   gulp.src(path.join(__dirna...
I have a very simple grunt task:  module.exports = function(grunt){     grunt.initConfig({         pkg: grunt.file.readJSON('package.json'),         php2html: {             default: {               files: [                 {expand: true, cwd:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.