gulp Questions
11
I am using gulp-karma and facing a simple problem but cannot seems to find what i am doing wrong .
gulp.task('test', function (done) {
karma.start({
configFile: __dirname + '..\\test\\' +'\karm...
Forename asked 15/6, 2015 at 12:39
3
Solved
I'm extremely new to Gulp. I'm basically trying to watch for a modified JavaScript file, and then make a new copy of it with a new name. (eventually there'll be some processing on it, but Rome wasn...
Ethel asked 18/2, 2015 at 20:51
1
Solved
I have Node v14.19.0, NPM v6.14.16 and gulp CLI version 2.3.0 along with the Local version 3.9.1 installed on my Computer (the OS is Ubuntu 22.04).
The issue is, when I run any gulp command I'm get...
4
Solved
The short version:
How do I start up Karma and have it open the debug.html file automatically in the same browser as the Karma start page?
The long version:
I'm not a huge fan of using the con...
Saudra asked 8/10, 2015 at 18:40
2
Solved
My Javascript build process ends up inserting the keyword require() in the file. This is not supported in client side and causes a console error. I have added browserify per other SO answers, howev...
Orrin asked 21/8, 2020 at 20:17
7
Solved
Here is my gulpfile:
// Modules & Plugins
var gulp = require('gulp');
var concat = require('gulp-concat');
var myth = require('gulp-myth');
var uglify = require('gulp-uglify');
var jshint = re...
Kareenkarel asked 23/9, 2016 at 16:45
3
First of all, I'm completely new to web development so if my approach is totally wrong, just say so.
I want to automate build of sass and ts files, so I read about Gulp/Webpack, and seems like web...
0
I am new with react and I want to run json-server and when I run npm run server. I got this error
fs.js:47
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:47:5
at req_ ...
Mi asked 26/6, 2022 at 9:31
3
Solved
So I've upgraded to Visual Studio 16.6.3. When I go to the Task Runner Explorer it doesn't load my gulp file, in the Task Runner Output Window I can see...
Failed to run "E:\Projects\...\Gulpf...
Salver asked 3/7, 2020 at 10:55
13
Solved
I am trying to use Gulp and Node.Js to stream my process for minifying and concatenating CSS/JS files for production.
Here is what I have done.
I installed Node.Js on my Windows 7 machine.
Insta...
3
Solved
I have a project with the following dependencies;
"dependencies": {
"express": "^4.17.1"
},
"devDependencies": {
"browser-sync": "^2.26.1...
13
Solved
I'm trying to run the command below but unfortunately I run into errors.
$ gulp build
In my terminal and I get this assertion error. I've uninstalled node and NPM and reinstalled again using br...
Otha asked 29/6, 2018 at 9:38
2
I have this file, pasted from a tutorial (and let's face it, the disparity between docs, tuts, and examples is astounding):
/scripts/tsconfig.json:
{
"compilerOptions": {
"emitDecoratorMetadata...
Darkish asked 8/9, 2016 at 19:46
2
On my ruby project when I try to run gulp (gulp server, gulp watch) I have the following error :
Users/workspace/website2019/gulpfile.babel.js:1
import del from 'del';
^^^^^^
SyntaxError: Cannot...
Slit asked 28/1, 2020 at 14:27
2
Solved
After renaming my file I am getting the following error when running the gulp build task:
Error: Error: File not found with singular glob: F:\Projects\xyz\HTML\app\css\main.css
at DestroyableTran...
Sniffle asked 25/4, 2016 at 11:54
4
Solved
So, I've been looking all over for this, found "similar" answers here, but not exactly what I want.
Right now if I want to test a single file with karma, I need to do fit(), fdescribe() on the fil...
Windsucking asked 19/3, 2015 at 17:17
2
Solved
I am using gulpfile.js in my project to download files and it is working fine.
var shell = require('gulp-shell');
gulp.task('folder_xyz', shell.task('curl --output xyz.zip --header "PRIVATE-TO...
6
Solved
The error is coming from the postcss plugin, I think I may have written it incorrectly.
I'm trying to add cssnano and autoprefixer to the postcss plugin.
gulp/node_modules/gulp-postcss/node_modu...
4
Solved
I have a series of tasks to be run from a watcher but I can get them to fire in order:
Here is the gulp tasks and watcher.
gulp.task('app_scss', function(){
return gulp.src(appScssDir + '/main.s...
Envelop asked 27/2, 2014 at 23:7
1
Solved
I am getting this error when I try to run Gulp from the task runner I think its related to me updating my npm project but I am not sure how to fix it. Do I need to install a different version of np...
Unzip asked 7/4, 2022 at 18:50
2
Solved
I would like to watch all, but the .min.ext files in my directories with gulp.js. What is the best way to filter out those?
Example:
gulp.task('watch', function(e) {
gulp.watch('./js/*.js', ['c...
2
Solved
Running nodejs on Windows 7 Enterprise at work.
Whenever I install a node_module that needs -g access, from experience I know it's supposed to create a *.bat file in %AppData$/Roaming/npm, but fo...
Coffeng asked 10/9, 2015 at 21:46
1
[12:20:17] Finished 'images' after 12 s
Error from uglify in compress task Error in plugin 'gulp-uglify'
Message:
D:\projects\Source\app\scripts\vendor.js: SyntaxError: Unexpected token: keyword (...
Blinker asked 6/7, 2021 at 16:28
4
Solved
I am a beginner in gulp. I have created a task named task1 in gulp.js and when i tried to execute that task using "gulp task1" in command line, Its opening the gulp.js file on brackets editor rathe...
Hirundine asked 6/7, 2017 at 18:1
3
Solved
I'm trying to require a file with a variable in the path. Something like
const langCode = this.props.langCode; // en
let languageFile = require('../common/languages/' + langCode);
Where langCode...
Meeting asked 14/7, 2016 at 12:34
© 2022 - 2024 — McMap. All rights reserved.