Questions tagged [gulp-plugin]
20 questions
4
votes
0 answers
Gulp - list all files as a separated tasks
I want to list all the .ts files from a partucar folder, and present them as an individual tasks using gulp.
So, i have a folder which have those files:
/src
- app.ts
- items.ts
Right now I'm using this command to build all those files and send…

ToTa
- 3,304
- 2
- 19
- 39
4
votes
1 answer
Why does vinyl.isVinyl() return false for vinyl files emitted by gulp?
I am learning about the gulp source code and tried to write a gulp plugin.
Now I am confused about something.
This is my plugin code below:
module.exports = function(){
return through2.obj(function(file,encode,callback){
…

kwoktung
- 572
- 1
- 4
- 12
3
votes
1 answer
Custom Gulp.js plugin: TypeError "Path must be a string. Received undefined"
I've found several threads on StackOverflow about TypeError: Path must be a string, even though I've not been able to apply the suggested solutions to my very case.
I'm trying to build a Gulp plugin that connects to the (paid)…

Davide Barranca
- 339
- 1
- 3
- 14
3
votes
1 answer
What's the difference between using autoprefixer within gulp-postcss or outside of it?
I'm using Gulp and have used the Gulp Autoprefixer standalone such as:
gulp.task('styles', function() {
gulp.src('scss/**/*.scss')
//.................
.pipe(sass())
.pipe(autoprefixer({
browsers: [
…

Brett
- 19,449
- 54
- 157
- 290
2
votes
0 answers
Getting empty values in coverage report when using Gulp+Karma+Jasmine+Angular 4
I'm getting empty coverage report
Please find my gulpfile.js
var gulp=require('gulp');
gulp.task('hello',function(){
console.log("Hello");
});
var tsc=require('gulp-typescript');
…

Shreelakshmi G
- 119
- 2
- 16
1
vote
2 answers
How to run two separate plugins in parallel in a Gulp pipe?
I'm trying to setup a Gulp task to convert .ttf fonts to webfont formats, by using gulp-ttf2woff and gulp-ttf2woff2 plugins. The respectively convert the source fonts to .woff and .woff2.
I've come out with these two separate functions, one for each…

Sekhemty
- 1,222
- 2
- 13
- 33
1
vote
2 answers
gulp - wrap plugin (which uses through2) output with string
I would like to know how exactly can I manipulate the output of my Gulp plugin so, for example, no matter how many files are passed to the plugin, it will wrap the output with a string. Currently I cannot know when does the last file is done.
The…

vsync
- 118,978
- 58
- 307
- 400
1
vote
1 answer
Gulp-coffee remove nonexistent files
I'm using gulp-coffee to compile my coffee files to js, nothing fancy.
I'm having a hard time figuring how to remove js files (in the dest js directory) that DO NOT exist anymore in the source coffee folder.
I'm quite sure this does not concern…

Leonardo
- 4,046
- 5
- 44
- 85
1
vote
2 answers
Gulp html templating
Has anyone knew any "gulp" plugin which compiles(bundles) different files with something .html extension into one file? Or which closer to what I am trying to
achieve?
ex.
build
|- html
|- header.html
|-…

MeetMahPuppy
- 305
- 1
- 3
- 13
1
vote
1 answer
The gulp plugin gulp-ruby-sass version 2.0.4 does not compile
The gulp plugin gulp-ruby-sass doesn't work "gulp-ruby-sass": "^2.0.4" for the compiler at the same time it does work with its own old version "gulp-ruby-sass": "^0.7.1"
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
notify =…

Mo.
- 26,306
- 36
- 159
- 225
0
votes
1 answer
How to automate check variable existence in react?
I have react components which render variables through props.
main.jsx
{props.name &&
personal.jsx
{props.name}
} {props.id &&{props.id}
}
{props.city &&
{props.city}
} {props.country &&…
Mr.Pandya
- 1,899
- 1
- 13
- 24
0
votes
0 answers
Gulp plugin log output is only written for single file
I'm trying to write a gulp plugin for the first time. The plugin is later supposed to validate some styleguide requirements for all css and js files in a project.
In order to properly debug the plugin while testing, I want to use gutil.log() for…

Diana
- 75
- 1
- 9
0
votes
1 answer
How to make options for a gulp plugin?
Context:
I'm trying to make a gulp plugin that uses phantomJS and possibly cheerio to crawl a website, grab sources (images & font files for example) and put them into a folder. The plugin is is based off Stylify-Me.
I've gone over the…

HansDev
- 70
- 10
0
votes
2 answers
Accessing typescript file variable values using gulp
I have several typescript files, some of them export a const named APIS.
I'm trying to access those exports (I want to concatenated all of them to a single file), but it doesn't seem to work. I'm obviously doing something wrong, but I'm not sure…

Ayelet
- 1,713
- 9
- 29
- 43
0
votes
2 answers
Can't get gulp-ejs to compile EJS to .html
Hi im using gulp to automate my compiling of .ejs files into html files, but when gulp-ejs compiles the files, it out it as ejs. I thing i need to define the .html extension in the ejs() object, but I can get it to work.
This is what I got so…

mkelle
- 214
- 1
- 3
- 9