Failure of Gulp Dest() to Generate File Output

Struggling to make gulp.dest output correctly. I'm aiming to output to the root of an ASP.NET Core project that I'm repurposing for TypeScript development. Any guidance on how to achieve this would be greatly appreciated. Below is the current content of my gulpfile.js:

/// <binding AfterBuild="build" Clean="clean" ProjectOpened="watch" />

"use strict";

const del = require("del"),
    gulp = require("gulp"),
    gulpConcat = require("gulp-concat"),
    gulpRename = require("gulp-rename"),
    gulpTerser = require("gulp-terser");

gulp.task("concatenate", () => {
    return gulp.src([
        "*.js",
        "!gulpfile.js"
    ])
        .pipe(gulpConcat("concatenated.js"))
        .pipe(gulp.dest("/"));
});

gulp.task("minify", () => {
    return gulp.src("concatenated.js")
        .pipe(gulpTerser())
        .pipe(gulpRename("min.js"))
        .pipe(gulp.dest("/"));
});

gulp.task("clean", () => del([
    "*.js",
    "!gulpfile.js"
]));

gulp.task("build", gulp.series(
    "concatenate",
    "minify"
));

gulp.task("watch", () => {
    gulp.watch([
        "*.ts"
    ], gulp.series(
        "build"
    ));
});

Answer №1

I believe

  .pipe(gulp.dest('.'))

is exactly what you're looking for.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Running concurrent codes is not possible in Node.js serialport

I am attempting to stream data from the MSP432 xds110 in order to display it on my website in real-time. To achieve this, I have opted to utilize the node.js serialport library for data retrieval. You can find more information about serialport here: In m ...

Troubleshooting three.js problem: Unexpected application malfunction in Chrome due to outdated code incompatible with the latest three.js library

Several weeks ago, my three.js (R48) applications were running smoothly until I encountered issues with Chrome where they no longer work. Here are the initial error messages I received: WebGL: INVALID_OPERATION: getAttribLocation: program not linked skyW ...

Identify the nature of the output received after dispatching

I'm developing a functional component within the realm of Redux, and I have configured it to return specific values for a particular action. The new value being returned is derived from a Promise, meaning that if the type is designated as "Ival," the ...

Is my JSON data causing the error of invalid React child components?

Although this question has been asked multiple times on Stack Overflow, the solutions provided have not worked for me. My main goal is to retrieve notifications from a JSON file located here: I suspect that my JSON file may be poorly structured, especial ...

Gallery of images resembling Getty Images without the use of a database

I want to put together an image display, similar to the functionality on Getty Images where clicking on an image brings up more details. Here is an example link from Getty Images: The image I am working with can be found here: All I need is a way to nav ...

Difficulty encountered when trying to update intricate model using Angular UI modal

My current project involves managing a model containing nested arrays that represent different sections of a floor plan. Each section contains an array of booth objects. To optimize user interaction, I've created a view that displays all the booths on ...

JavaScript - Sort an array containing mixed data types into separate arrays based on data

If I have an array such as a=[1,3,4,{roll:3},7,8,{roll:2},9], how can I split it into two arrays with the following elements: b=[1,3,4,7,8,9] c=[{roll:3},{roll:2}]. What is the best way to separate the contents of the array? ...

How to retrieve the initial element of a specific tag using jQuery

As I am transitioning from standard JavaScript to jQuery in order to achieve cross browser compatibility, I am seeking guidance on how to rewrite certain functions in jQuery. Specifically, I am looking for the correct way to find the first element using jQ ...

The closest comparison to the For In method in JavaScript in the Apex programming

I am looking for a way in Apex to iterate through all the fields of a list of account objects without having to resort to using JavaScript. Currently, I can achieve this with the following code snippet in JavaScript, but I prefer to keep things within the ...

Error: JSONP Label Validation Failed

My JSON URL is: The above URL returns the following JSON: { token: "2cd3e37b-5d61-4070-96d5-3dfce0d0acd9%a00a5e34-b017-4899-8171-299781c48c72" } Edit: Changed it to {"token": "2cd3e37b-5d61-4070-96d5-3dfce0d0acd9%a00a5e34-b017-4899-8171-299781c48c72"} ...

Versioning resources in Spring MVC with Thymeleaf

https://i.sstatic.net/ArllV.png Struggling with resource versioning in Spring Mvc 4 while using thymeleaf template engine. Despite the code provided, I am unable to see the new version URL when viewing the page source. What could be causing this issue? Wh ...

Rendering objects in React is not allowed (encountered: [object Promise]). If you intended to display a group of children,

I am encountering an issue when trying to render this code, it keeps showing the message: "objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead." Can someone please assist ...

Prerender is running independently of the dynamic page title and meta tags rendering process

As part of a POC, I was integrating prerender.io with an angular-node application for SEO purposes. My application can be found HERE. The good news is that all three links are being crawled successfully, as confirmed by receiving a 200 OK status for all li ...

Are we on the correct path for breaking down code using react JS?

As I work on creating reusable table components, each column comes with its own set of functionalities, which results in dealing with numerous components. To streamline the process, I have been separating every component piece into individual files and ex ...

Applying a condition to filter elements using AngularJS

I have created an array in my controller with the following data: var people = [ { name:"Alice", number:'808574629632', email:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail ...

Is there a way to automatically set all object properties to false if one property is set to true in React?

The Issue: My task at work involves creating 3 buttons with separate filters to display different tickets in a table. All the functionality is completed, and the filtered tickets are displayed correctly. However, I am facing an issue that is preventing m ...

The functionality of socketio can only be activated within a function by utilizing the window.alert

I encountered a strange issue while working on my web development project using Flask and vanilla JavaScript. I'm attempting to create a basic chat feature with socketio. Strangely, the functionality only seems to work when I include a window.alert in ...

How can I temporarily change an image when clicking on it using JavaScript?

I am working on an image section where I want to change the image for a few seconds when clicked and then revert back to the original image. Here is the code I have tried: <img src="contacticons.jpg" usemap="#image-map" id="imgName"> <a onclick ...

What is the best way to determine the variable height of a div in Angular 7?

I'm currently trying to use console.log in order to determine the height of a div based on the size of a table inside it. This information is crucial for me to be able to ascertain whether or not a scrollbar will be present, especially within a dialog ...

Retrieving Parameter from DHTMLWindow

Hey there, I've run into a bit of a dilemma with my HTML web page. I have a DHTMLWindow that opens, and I want to send a parameter from the 'parent' HTML web page to that window. The goal is for the DHTMLWindow to then pass on the parameter ...