gulp

Installing gulp-sass throwing error

◇◆丶佛笑我妖孽 提交于 2019-12-25 04:33:39
问题 This question seems to be repeated of this link but I cannot figure out how to map a drive letter or share network. I am really sorry for repeating but I need help. I have a command prompt with default directory pointing to my www folder of wamp server. D:\wamp\www\ I have install other gulp plugin such as gulp-minify. It works fine without any error. But when I try to install gulp-sass it throws error It happens to me most of the time like, I have been trying to install plugin such as

Error No such file or directory during Gulp-Ruby-Sass Task

[亡魂溺海] 提交于 2019-12-25 04:26:50
问题 I'm using Gulp as my task runner, and gulp-ruby-sass to compile my sass files into css. The error I'm getting on my gulp default task: My default Gulp task: gulp.task('default', ['delete', 'web_css', 'dash_css', 'web_js', 'dash_js']); My 2 compile SASS tasks: // Compile public SASS gulp.task('web_css', function() { return sass('client/website/_sources/sass/bitage_web.scss', { style: 'compressed' }) .pipe(sourcemaps.init()) .pipe(sourcemaps.write('./maps')) .pipe(gulp.dest('client/website

Integrating javascripts unit tests code coverage in MSBuild

青春壹個敷衍的年華 提交于 2019-12-25 04:22:23
问题 I am using Jasmine and Karma for writing unit tests and code coverage. I have created the tasks using Gulp and running them through task runner explorer in VS 2015 update 3. var gulp = require("gulp"); var Server = require('karma').Server; var remapIstanbul = require('remap-istanbul/lib/gulpRemapIstanbul'); gulp.task('unit-tests', function (done) { new Server({ configFile: __dirname + '/karma.conf.js' }, done).start(); }); gulp.task('code-coverage', function () { return gulp.src('_reports

gulp-browserify error during compilation of jade in html

血红的双手。 提交于 2019-12-25 03:45:11
问题 Sorry for possible mistakes in the writing - use the Google translator. I use the gulp-browserify gulpfile.js - gulp.task('jade', function(){ gulp.src('app/src/*.jade') .pipe(plumber(/*{ErrorHandler: notify.onError("<% error.massage %>")}*/)) .pipe(browserify({ transform: ['jadeify'], extension: ['.jade'] })) .pipe(rename('*.html')) .pipe(gulp.dest('app/dev')) }) error - [14:20:53] Plumber found unhandled error: SyntaxError in plugin 'gulp-browserify' /home/acopalipsis/proj/app/src/fake

PNGs generated with gulp using imageminPngquant + imageminZopfli don't work on MacOS Safari

南楼画角 提交于 2019-12-25 01:49:11
问题 I have the following gulp code for png minification: function images() { return gulp.src([folder.preimages+'/**/*.png']) .pipe(cache(imagemin([ //png imageminPngquant({ speed: 1, quality: [0.95, 1] //lossy settings }), imageminZopfli({ more: true // iterations: 50 // very slow but more effective }) ]))) .pipe(gulp.dest(folder.public_img)); } The end result is a very nicely compressed png with a low file size. It works fine on Edge, Chrome, Firefox, but when I try to open it on MacOS Safari it

Separating Frontend & Backend Dependencies with Gulp/Yarn

别来无恙 提交于 2019-12-25 01:37:18
问题 I want to use yarn instead of bower + npm . Yarn uses package.json and does not separate between frontend and backend packages. I read so far, that I need to separate my frontend + backend dependencies with gulp: How to use one package manager for backend and frontend? (Yarn/NPM) My app uses the MEAN stack. Currently, I'm using e.g. wiredep to inject all frontend dependencies into my index.html . Question: How can I automatically separate the frontend dependencies from the backend

Gulp browser says Cannot get /

时光怂恿深爱的人放手 提交于 2019-12-25 01:36:12
问题 I am using gulp.The tasks are getting run creating required folders. But I get Cannot GET/ error when run in browser.I have attached the image of my project structure and also the output in Gulp File structure Problem(Cannot get/) My index.html contains the following: <!DOCTYPE html> <html class="no-js" lang="en"> <head> <title>Bootstrap 4 Layout</title> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel=

How to include bower_components files (CSS/JS from any framework) in END PRODUCT that i need to deploy to GIt ot Client?

雨燕双飞 提交于 2019-12-25 01:09:34
问题 I have a Gulp setup. In which i have setup bower for components. I am using these three files just to test the setup 1) Jquery 2) Owl Carousel 3) Font Awesome The problem is that when i have completed my project i want to submit the files to a repository like Git or to a client or to upload to my client's site as WordPress theme. But as like npm_modules folder i need to deleted my bower_components folder from it and then submit it. But when i will submit things like that to a server like as a

Gulp: /usr/local/bin/gulp: No such file or directory

瘦欲@ 提交于 2019-12-24 23:23:20
问题 Whenever I run gulp, I get the following error: /usr/local/bin/gulp: No such file or directory I've followed the answers to several related questions on SO, but none have solved my issue. I've been using gulp without issue for months, but managed to screw it up somehow. I've remove gulp and gulp-cli (using npm) both locally and globally. After running the following: npm install -g gulp-cli npm install --save-dev gulp Any command using gulp, even gulp -v returns the error mentioned above.

CKEditor issue in gulp-concat

烂漫一生 提交于 2019-12-24 21:38:04
问题 In my angularjs application, I'm using angular-ckeditor directive for CKEditor to get user inputs(Description and comments). This is my html code to take description; <div ckeditor="options" ng-model="txtDesc" ng-change="descChange()"></div> and for comments; <div ckeditor="options" ng-model="txtComment"></div> And according to this github article; Note : obviously this plugin expects the presence of AngularJS and CKEditor. This is how I'm referring my JS files; <!-- CK editor --> <script src