gulp-repl | a simple repl for gulp | Frontend Framework library
kandi X-RAY | gulp-repl Summary
kandi X-RAY | gulp-repl Summary
a simple repl for gulp
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-repl
gulp-repl Key Features
gulp-repl Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-repl
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
Just went back to a very old project and updated to Gulp 4.0.2.
Managed to get it watching and compiling css, but doesn't seem to watch changes to the JavaScript files?
It doesn't throw any errors, just doesn't compile the JS when I make a change.
(I'm a designer and my JS is terrible, so you might have to really spell it out for me 😬)
gulpfile.js
...ANSWER
Answered 2021-Jan-05 at 09:24paths.scripts.src + '/*.js'
and paths.vendor.src + '/*.js'
contained an extra /
Thanks to Thomas Sablik
QUESTION
]*alt="([^"]*))(?=[^>]*src="([^"]*)).*\/>
...ANSWER
Answered 2020-May-26 at 23:24Use $
.
/\k/
is for the regex itself, ?P
for Python syntax.
QUESTION
Am trying to run gulp commands from package.json. But unable to execute.
This is my package.json.
...ANSWER
Answered 2020-May-06 at 10:12I resolved by modifying srcipt section by adding "locale-sass"
and in lint-staged
npm run gulp locale-sass
instead of gulp locale-sass
QUESTION
I am looking for a safe way of doing require aliases using gulp. The idea is similar to what webpack offers with resolve alias.
For example, I put on my source code something like require('@plugin/utils')
and it is translated to something of my choice, like require('$/plugins/longer/namespace/utils')
. You probably have noticed that it does not match to any actual file path, and that is intentional (they are tiddlywiki files if anyone is interested).
The best thing I found is gulp-replace, but that relies on strings replacements at worst and regular expressions at best.
Ideally I would want something more reliable, something that is AST aware,so I'm sure that I never replace the wrong string (for example, a template string).
I am also using babel, so if there is a babel plugin that I can use I will also be happy about that.
As a last resort I may try to write some babel plugin or a gulp plugin using esprima, but esprima is not up to modern JS standard (doesn't parse object spread) and I would prefer creating another tool.
Thanks in advance
...ANSWER
Answered 2020-Apr-26 at 11:28Finally I found a babel module (babel-plugin-module-resolver) that I can integrate with gulp, and with some extra configuration magic with eslint.
So, this is what I added to my gulp pipeline (simplified)
QUESTION
The ProblemNote: See the solution below!
By default both JS and jQuery will remove closing tags for empty 's. Normally this wouldn't be a problem. However, in IE11 the following warning will be thrown due to the self-closing elements.
ANSWER
Answered 2019-Mar-24 at 02:02Feels like a work-around but got the SVG saving by removing .pipe(gulp.dest(paths.svg.out));
and instead making use of fs
.
QUESTION
I am importing bootstrap in my main scss file to use the variables and breakpoints from bootstrap in my own scss files.
This works fine but every change I save it takes about 3 seconds to compile, when i compile it without the bootstrap include it takes 99ms.
Is there a way to let gulp not compile bootstrap each time I make a change and still use all of the variables? (Bootstrap is not changing anyway)
My main scss thar imports all my scss code looks like this
...ANSWER
Answered 2020-Feb-27 at 10:00you can temporary remove .pipe(postcss([ autoprefixer(), cssnano() ]))
to make fast compile
QUESTION
I'm creating a task with gulp that need to change the parameters of a href. For example:
On my html file I have a link:
...ANSWER
Answered 2019-Dec-05 at 20:20You need to define a regex in your replace
call and match the part inside href
:
QUESTION
I have encountered a problem while starting gulp. The info I got is from https://coder-coder.com/gulp-4-walk-through/ and https://www.youtube.com/watch?v=-lG0kDeuSJk.
my gulpfile.js
...ANSWER
Answered 2019-Nov-17 at 10:04It seems you are using the wrong variable name. jsPath
should be used. Either way, try to make it more readable... for example you can use:
QUESTION
I have a gulp project I inherited.
I am supposed to be migrating gulp v3 to v4.
However, I cannot find a gulpfile.js
in this project at all.
Yet, every tutorial requires one. I am assuming there is some setup where the last developer knew about which is probably outdated?
Here is my folder structure:
All tasks are grouped in the Tasks folder. I want to say these exported with the root files which actually run those tasks files are my "gulpfiles".
All gulp tasks are ran using: node platform/build.js
or node platform/deploy.js
I can make changes to this and everything, I see how he called it and wrote tasks. But I don't know the paradigm he is using to do this so it's difficult to know where to start migrating this to gulp v4.
Gulp libraries we are using:
...ANSWER
Answered 2019-Aug-27 at 22:02I inherited a project that used Gulp with no gulpfile a while back. It turned out it was actually inside of a shared gulpfile which was hosted on npm (like https://github.com/jonathantneal/gulp-config-dev). Long shot, but perhaps it's listed as a dependency in package.json
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-repl
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