gulp

VS Task Runner Explorer - Node Sass could not find a binding

假如想象 提交于 2019-12-10 10:44:32
问题 When opening the Visual Studio Task Runner Explorer, the gulpfile.js fails to load and this error is emitted in the Output window. Failed to run "C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\Gulpfile.js"... cmd.exe /c gulp --tasks-simple C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\lib\binding.js:15 throw new Error(errors.missingBinary()); ^ Error: Missing binding C:\DATA\Git\MyApp\MyBiz.MyApp\MyBiz.MyApp.WebsiteCore\node_modules\node-sass\vendor\win32

NativeScript Sidekick - UnhandledPromiseRejectionWarning: primordials is not defined

南楼画角 提交于 2019-12-10 10:35:01
问题 When starting up NativeScript Sidekick, I am presented an exception from the Windows stating the following (this error message also shows up in the output Errors in Sidekick): UnhandledPromiseRejectionWarning: ReferenceError: primordials is not defined (for easier reading the full stack trace of the error can be found at the bottom) I have literally not done anything except install NativeScript Sidekick and open the application. How do I resolve this issue? (CLI) (node:6632)

Issue when using gulp to run protractor and selenium

你。 提交于 2019-12-10 10:13:46
问题 I am new to protractor and also new to gulp task.I had gulp file which looks like this: 'use strict'; var global = { app_files: { spec: './e2e/**/*_spec.js' }, folders: { specs: './specs' } }; var gulp = require('gulp'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var beautify = require('gulp-jsbeautifier'); var protractor = require('gulp-protractor').protractor; // Download and update the selenium driver var webdriver_update = require('gulp-protractor')

Empty object require angular browserify

我们两清 提交于 2019-12-10 07:34:10
问题 I m facing a problem when I try to use bowserify, angularjs and coffeescript. In fact, when I try to require('angular'), I get an empty object : angular = require('angular') console.log angular ## return an empty object {} configuration = require('../../config/config') console.log configuration ## returns my fully config file correctly I dont know why it doesn't work properly in this case :-/. This is my package.json where I put the my personnal angular dependencies : { "dependencies": {

Gulp Typescript + Browserify; Bundled sourcemap points to transpiled JS rather than source TS

冷暖自知 提交于 2019-12-10 06:36:27
问题 I'm working on a Typescript project that is transpiled to ES5 JS and then run through browserify to create a single .js bundle and sourcemap. The bundled sourcemaps point to the transpiled JS rather than the source TS even though I am generating sourcemaps which properly point to the source TS when transpiling to JS. It's as if browserify is ignoring the existing sourcemaps pointing to the TS code and creating its own new maps to the transpiled JS code. Here are my gulp tasks for reference-

How to use Gulp Browsersync with Django?

北慕城南 提交于 2019-12-10 06:18:17
问题 First time using Gulp and I'm following a couple of tutorials that don't seem to be working quite right for me. I have a real basic project and I just want to learn how to use Gulp for standard things like JavaScript/CSS minification, image reduction, and browser sync. When I run my watch task with Browsersync, it goes to the right URL of localhost:8000 , but it shows Cannot GET / instead of rendering my page. How do I fix this so I can use Browsersync with Django? File directory: gulpfile.js

Indented Sass syntax not working with node-sass and gulp-sass

时间秒杀一切 提交于 2019-12-10 03:28:53
问题 Libsass 2.0 brought the indented syntax to libsass users, but so far I've been unable to make it work with node-sass and gulp-sass . I have all of the latest versions: node-sass : 0.93 gulp-sass : 0.7.2 gulp : 3.8.2 This setup compiles .scss files and even .sass files using the bracket syntax but it will not compile the indented syntax. Has anyone successfully compiled the indented syntax with node-sass and gulp? My gulpfile.js var gulp = require('gulp'); var sass = require('gulp-sass'); gulp

How to use gulp webpack-stream to generate a proper named file?

回眸只為那壹抹淺笑 提交于 2019-12-10 01:58:38
问题 Currently we're using Webpack for our Module loader, and Gulp for everything else (sass -> css, and the dev/production build process) I want to wrap the webpack stuff into gulp, so all I have to do is type gulp and it starts, watches and runs webpack and the rest of what our gulp is setup to do. So I found webpack-stream and implemented it. gulp.task('webpack', function() { return gulp.src('entry.js') .pipe(webpack({ watch: true, module: { loaders: [ { test: /\.css$/, loader: 'style!css' }, ]

gulp silently failing - no errors printed to console

◇◆丶佛笑我妖孽 提交于 2019-12-10 01:48:13
问题 My gulp file is not emitting any errors on either standard gulp methods like gulp.src() with non existant paths nor are stream errors being called by their handler. I've included a simple file that silently fails, printing only the starting.. and finished.. default messages. var // gulp = require( "gulp" ), gulpUtil = require( "gulp-util" ), sass = require( "gulp-ruby-sass"); gulp.task( "default", function() { gulp.src( "path-that-does-not-exist.scss" ) .pipe( sass() ) .on( "error", function(

Gulp4. “AssertionError : Task never defined” when calling or importing tasks

狂风中的少年 提交于 2019-12-10 01:32:07
问题 Below you can see simplified view of an issue. Basically, I'm able to call task1.js using gulp.series in tasks task2,3.js , but once I add same code to call task1.js in task4.js - Task never defined: task1 error gets thrown. There are more tasks in the tasks folder than in file structure example below. I've got three tasks, ... /tasks build.js clean.js dev.js gulpfile.babel.js ... all of them required in gulpfile.babel.js using the require-dir package import requireDir from 'require-dir';