Incremental gulp less build

In my office we are using gulp to build our less files. I wanted to improve the build task as it took over a second to build on a large project we recently worked on. The idea was to cache the...

Why inline source maps?

Today I learned that it is possible to include source maps directly into your minified JavaScript file instead of having them in a separate example.min.map file. I wonder: why would anybody want...

Best way to concat and uglify js in gulp

I am trying to do automation to concat and uglify js in gulp. Here is my gulpfile.js: gulp.task('compressjs', function()...

npm install packagename --save-dev not updating package.json

Are there simple or subtle reasons that package.json would not update after running a --save-dev? This is my command: npm install modulename --save-dev Run from the root of the project. The...

I can’t install ionic on Mac OS X 10.10.3

My Versions are : Node version is v0.10.33 npm version is 1.4.28 Cordova version is 5.0.0 The error that occurred when I installed ionic: **jce010:~ Tareqalmasri$ sudo npm install -g...

Using `react-bootstrap` with `npm`

I want to create a project using npm, and want to use react-bootstrap inside it. I have package.json with the following dependencies. { "name": "simple-webapp", "version": "0.0.1", ...

Importing lodash into angular2 + typescript application

I am having a hard time trying to get the lodash modules imported. I've setup my project using npm+gulp, and keep hitting the same wall. I've tried the regular lodash, but also lodash-es. The...

Visual Studio Code debugging chrome, Breakpoints wont hit

I have a Angular2/typescript app I am developing in VSCode. I use Gulp to build the typescript files and gulp-sourcemap to create map files. Attaching/launching chrome works well after some...

babel ES7 Async - regeneratorRuntime is not defined

I'm using browserify + gulp + babel in my project, and having problem with ES7 features. These are what I...

npm - not installed; illegal characters in path

Inherited a broken NLog project from a long-gone co-worker... VS2015 update 2 Latest Node install Latest npm update 3.10.3 '.net 5.0' project (pre-core 1.0) My npm node always says 'npm - not...

error TS2304: Cannot find name 'Promise'

Hello guys I went through all solution avaialble on stackoverflow. But none of work for me. Hence posting question. tsconfig.json { "version":"2.13.0", "compilerOptions": { "target":...

Why is gulp complaining about Maximum call stack size exceeded?

I am writting a gulp tasks where I take several js file , concat them , minify those.. same with scss into css etc ...normal stuffs And, it is for Drupal 8 Here is my gulpfile. However on running...

node_modules folder too large

I've been using Gulp for quite a while and either I didn't notice it took this much space from the beginning or the sizes have been growing. I only use it for very normal front-end work. For...

After minify a javascript files using gulp, It gives me error

This is a project I brought from the internet, I think this used laravel framework and compressed using Gulp. It's working fine. But I need to modify js files in it. Here is project...

CSS not updating on Node.js?

Trying to get the css to update on the browser using browser sync via Gulp on Node.js... What am I doing wrong? This is the Gulp.js file var themename = 'playtest haha 1'; var gulp =...

error TS1219: Experimental support for decorators is a feature that is subject to change in a future release

In a ASP.NET Core Web Application project can't fix this errors in the latest Visual Studio 2015: Scripts\app\AppComponent.component.ts(7,14): error TS1219: Experimental support for decorators is...

npm install with error: `gyp` failed with exit code: 1

I am try to install modules on Windows 10 using npm 5.6.0. When I enter npm install I get: gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at...

Running Existing Angular Project locally

I am very new to Angular, I am trying to run an existing project of Angular on my machine. I have done a lot of tests and followed a lot of articles. But cannot run my project. I have the project...

Everytime I run gulp anything, I get a assertion error. - Task function must be specified

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...

npm install permission denied (macOS)

To install a Bootstrap theme I want to run npm install. However I always receive a permission denied error. I already tried nvm and then switched with nvm use 10.9.0 to run npm install. I also...

What does this mean: TypeError: dest.on is not a function

I am a newbie, following a tutorial about modern webdev workflow. I get this error message in my console. TypeError: dest.on is not a function I know, there are related questions and answers here....

TSConfig Unknown compiler option 'lib'

I am taking over an old angular 1 project with typescript 1.8.10. However I can't compile and it keeps throwing me this : Unknown compiler option 'lib' if i comment out the "lib" line, then I...

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object

There was a need to deploy an old project. Corrected gulpfile.js a bit so that the assembly started running, it came across an error: [21:12:57] Finished 'html:build' after 71 ms [21:12:57]...

SASS Compilation works, but Gulp doesn't

I'm just starting out with Gulp but I can't seem to get it working. When I just run the regular sass command everything compiles just fine. Here is my Gulp file: //Gulp Dependencies var gulp =...

Processing arrays within Gulp to create bundles in each directory with ordered files

Like most I have been concatenating my JS/CSS files into one big file within Gulp, however, with HTTP2 becoming the norm nowadays I thought I would change my gulp file instead to make related...

How do I exclude "node_modules" from my code coverage?

I am writing a webapp in TypeScript, using gulp (browserify, tsify, babel, istanbul) to convert my TypeScript code into an instrumented JavaScript bundle along with a sourcemap, and testing my...

How to get Browser-Sync to serve PHP-Files in Gulp 4

I am working on a gulpfile which already works fine when its processing html/scss/js. Now I want to have my site on PHP-basis and need Browser-Sync to serve my PHP instead of showing "Cannot GET...

Gulp rebuild parent js files when partials are modified

I have the following gulp task for my js files: gulp.task("js", () => { return gulp .src([ src_js_folder + "*.js", src_js_folder + "**/*.js" // Include partial js files, to...

Cannot use import statement outside a module - Timber Starter Theme - Gulp

I'm coding a simple website using Timber Starter Theme on Wordpress but I need import some modules in my js files. I use gulp an here is my gulp file // Gulp...

Gulp watch not detecting file changes

my Gulp task is starting correctly but not deteccting file changes. I'm developing a WordPress theme from starter-bootstrap. Run 'npm install' and all dependecies where installed. Now when I run...