Tag: gulp

Using Gulp to manage opening and closing MongoDB

So far I have a child_process that executes ‘mongod –dbpath db’ and another child_process which can kill it with ‘mongod –dbpath db –shutdown’. How do I listen for the user to enter ctrl-c or exit the gulp runner, and then run the gulp task to shutdown mongo?

Installing gulp to windows 10

I’ve installed gulp npm install –global gulp and set envidoment variable: – variable: GULP_HOME – Value: C:\Users\myaccount\AppData\Roaming\npm\node_modules\gulp (..\gulp is folder) in environment variables And try to run “gulp”. Then i get a message in cmd: C:\myaccount\workspace\todoparrot>gulp [09:47:24] Local gulp not found in C:\myaccount\workspace\todoparrot How to set gulp to work?

Gulp – throw err cannot find module 'q'

I was to trying to setup Jekyll with Gulp but when I run gulp it gives me the following error: C:\Users\Admin\jekyll-gulp-sass-browser-sync-master>gulp module.js:339 throw err; ^ Error: Cannot find module ‘q’ at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\Users\Admin\jekyll-gulp-sass-browser-sync-master\node_modules\browser-sync\node_modules\portscanner-plus\lib\index.js:3:9) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at […]

How do you close old instances of BrowserSync when stopping Gulp in Terminal?

I’m new to Gulp and BrowserSync, so I’ve been running gulp and stopping (forced by ctrl + z in terminal) it many times. Every time I start gulp again in terminal, BrowserSync gives me a new PORT number. I need help removing the old instances of BrowserSync. Is there a command in terminal where I […]

How to generate Semantic UI offline doc

It’s been a long time I dident generate the docs (since 0.19.3 ), and it seems that the doc was separated. I dont know how to generate the docs, because it is not well explained: Before running server you will need to build your UI files for the docs. Semantic UI includes a special command […]

NPM del throws ENOTEMPTY error when running from a set of gulp tasks

I have a list of tasks in gulpfile.js. One of them is clean, which is supported by del: gulp.task(‘clean’, function (cb) { del([ ‘dist/**’ ], cb); }); Which is executed in a queue: gulp.task(‘default’, [‘clean’, ‘templates’, ‘styles’]); When I run it as a single task, like gulp clean, it works fine and removes the whole […]

Installing CKEditor with npm

I am trying to install CKEditor in my project. I am using Laravel. I know I could download the files but I like making my life difficult and I decided that I want to install CKEditor as a npm dependency. As stated in their documentation here, I added the package to package.json, like this: “dependencies”: […]

How to invoke executing a PowerShell script from gulp?

I am using gulp to build and deploy our application. var msbuild = require(‘gulp-msbuild’); gulp.task(‘build’, [‘clean’], function () { return gulp.src(‘../../*.sln’) .pipe(msbuild({ toolsVersion: 14.0, targets: [‘Rebuild’], errorOnFail: true, properties: { DeployOnBuild: true, DeployTarget: ‘Package’, PublishProfile: ‘Development’ }, maxBuffer: 2048 * 1024, stderr: true, stdout: true, fileLoggerParameters: ‘LogFile=Build.log;Append;Verbosity=detailed’, })); }); However after build I have to […]

Installation of gulp through node.js's npm breaks windows

I want to use gulp on my windows machine and it actually works pretty fine, unless I try to use the created files (like pushing to github or deleting). Then it breaks, because the filepaths are too long and it seems to be a fairly common problem. https://github.com/joyent/node/issues/6960#issuecomment-45569604 I understand that the problem arises through […]

NodeJs Gulp – confirm before starting task

I have a very heavy gulp task that I want to ask the user if he really wants to start the task. I already saw the gulp-confirm and gulp-prompt but it’s not helping me: I don’t want to pipe the ‘confirm’ I just don’t want to start the heavy task before user confirmation. I’m trying […]

Node.js is the Best Javascript runtime in the world.