gulp-rename | Rename files easily | File Utils library
kandi X-RAY | gulp-rename Summary
kandi X-RAY | gulp-rename Summary
Rename files easily
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gulp-rename
gulp-rename Key Features
gulp-rename Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-rename
QUESTION
I have had to recently upgrade to gulp 4 and I found this error:
Did you forget to signal async completion?
My gulpfile looks as follows:
...ANSWER
Answered 2021-May-20 at 20:10This code is gulp v3 syntax:
QUESTION
The Problem
We're building a new application and have opted to go with a GULP and Webpack pipeline for compiling SCSS, Vue 3 and Typescript files. Unfortunately, I've spent the last day looking for an answer to a recursive issue where I fix one problem and it reverts back to the previous problem, fix that problem it reverts to the one I've already fixed and so on.
As part of pulling in vue-loader
an initial error is thrown stating vue-template-compiler
is a required dependency. Downloading the missing dependency fixes the issue but now a new error is thrown stating a version mismatch with Vue as they both need to be on the same version.
After looking around I'm aware vue-template-compiler
was replaced with @vue/compiler-sfc
in v3, so naturally I've uninstalled the former and installed the latter. However, it lead me right back to square one where it stated vue-template-compiler
needs installing or to specify a compatible compiler via the options.
I've looked at various questions and answers on specifing the compiler in webpack.config
but constantly got lead back to stuff I'd viewed.
Attempted Solutions
Vue 3 Problem with Vue Template Webpack for Vue 3 Vue 3 Supporting Typescript
Error One
...ANSWER
Answered 2021-May-05 at 10:52Just as I was about to post this question I figured out the problem. Essentially the vue-loader
version is incorrect and answering this so another developer doesn't spend hours looking for an answer.
Early on in building the frontend structure for the application I hit an issue where the latest version of Vue in NPM is v2.6.12 and the next version is v3.0.11. Simple enough to resolve just specify the version.
Turns out it's the same issue with vue-loader
and at the time of writing the latest version is v15.9.6 whilst the next version is v16.2.0. As you'll note from the included package.json
file, the version specified is v15.9.6.
For Vue 3 to work alongside vue-loader
it's imperative that the version installed is not below '16.2.0'.
QUESTION
I am making a WordPress plugin that uses gulp to control all my assets and when I try to trigger the gulp-watch function it gives me this error:
...ANSWER
Answered 2021-Feb-28 at 03:12You need to add add/install gulp-watch
... i dont see it in your package.json
. To add it try:
QUESTION
I want to install a list of packages from a simple text file (yes, package.json is what this was designed for)
my first approach was this:
npm i $(cat builder-dev-packages.txt) -g
similar to this: docker rm $(docker ps -a -f status=exited -q)
But I'm still getting that command evaluated as an invalid tag name.
npm ERR! code EINVALIDTAGNAME ": Tags may not have any characters that encodeURIComponent encodes.
Do I need to run through my npm command with a while loop instead of evaluating the output of a cat
statement? This script still provides the same error for each line in the txt file.
ANSWER
Answered 2021-Feb-26 at 19:54npm install
accept a list of packages delimited by space, but you are passing it a list of packages delimited with new line, this is why you experience issues.
try the following
QUESTION
New to gulp, everything is installed and it runs properly
gulp --version CLI version: 2.3.0 Local version: 4.0.2
when I change my scss file, nothing at all happens.. gulp is happily running in terminal
...ANSWER
Answered 2020-Nov-20 at 19:34You need to tell gulp what function to run when it detects a change. So try this instead:
QUESTION
I'm encountering a problem with the npm install step during my CI/CD build in Azure DevOps.
The specific package that is causing this problem appears to be node-sass. This package has given me a lot of trouble in the past as well but I did get it working and builds have been running fine for a while. Now for some reason they are failing again but I cannot seem to reproduce the problem on my machine and the error doesn't make any sense to me.
Here is the output from the failed build: https://pastebin.com/w4aK4dEh.
The error message is "Error: Cannot find module './version'"
I have tried to modify the step and changed it from a simple npm install to npm install --save-dev --unsafe-perm but it didn't seem to have any effect.
package.json
...ANSWER
Answered 2020-Nov-18 at 23:26I am not entirely sure which of the following was the key to success but here's what I did to resolve this:
Delete the node_modules folder from my project, commit and then modify my .gitignore to exclude it from the repository permanently (yes, I know this one is a bit controversial as some people say the folder should be checked in)
Update the versions of the dependencies in the package.json file
Specify the specific version of NodeJs (and thus npm) to use. I did this by simply adding a step in the Azure build pipeline. Interestingly, the very latest version (15.2.1 at the time of writing this) did not work, however the LTS version 14.15.1 did work.
Some combination of those three changes did resolve the problem for me. I am leaving this information here in case someone else faces this same error message.
QUESTION
I'm trying to load a texture into a 2d plane like demonstrated on this post How to draw 2D image with TWGL (WebGL helper Library).
It works fine when including the script tag like so
But when when trying to do so with the exact same code with es6 modules I get the following error [.WebGL-0x7f90b084f000]RENDER WARNING: Render count or primcount is 0.
Using gulp and browserify like so
...ANSWER
Answered 2020-Nov-05 at 05:52The example was using twgl 1.x and your gulp is using 4.x, things changed. In particular twgl.drawBufferInfo
changed from
QUESTION
I've attempted to update the gulpfile below to Gulp v4 from v3 but am still getting an error: AssertionError [ERR_ASSERTION]: Task never defined: client
Not sure what I am missing but realise that the functions may not be written correctly. The tasks in series are correct I believe: gulp.task('build', gulp.series('client', 'sass'));
for example.
ANSWER
Answered 2020-Oct-21 at 00:12When you use the gulp.task
form of defining tasks (rather that as functions) then you cannot refer to those tasknames until after they have been declared. That would be a forward reference
(see below). So just put your
QUESTION
Hello I have a project that uses gulp and the gulpfile.js suddenly has stop working despite not being changed.
my output reads
cmd.exe /c gulp --tasks-simple The system cannot find the path specified.
gulpfile.js
...ANSWER
Answered 2020-Sep-21 at 18:50After spending more time than I care to admit debugging this I finally figured it out. It ended up being that I had to move my $(PATH) up under visual studio locations of external tools. I figured it out based on this answer over here
QUESTION
This is my Dockerfile:
...ANSWER
Answered 2020-Sep-18 at 11:16I fixed the problem by CD back into my dir before running gulp:
RUN cd /mcvitty && gulp
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-rename
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page