gulp

Gulp-sass will not compile to CSS

纵然是瞬间 提交于 2019-12-02 13:42:53
问题 I'm not able to get grunt-sass to compile to .css. Have seen a load of other similar posts and utilized suggestions but nothing seems to work. I can get other plugins working fine (for example 'del' to delete stuff, shown here) so it seems my environment is ok, and i can get ordinary vanilla sass compile/watch to work fine. Here's my setup just in case: OSX Maverics 10.9.5 $ ruby -v ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13] $ sass -v Sass 3.4.9 (Selective Steve) $

Gulp wouldn't watch any changes

冷暖自知 提交于 2019-12-02 12:36:59
I am scratching my head around but can't seem to figure out whats wrong with the following gulpfile which simply watch and compile less file. This simply won't watch less changes, I have tried all gulp , gulp watch . I have to manually run gulp after each change to compile them. Is there something wrong that causing watch to not work as expected? Gulp Version CLI version 1.4.0 Local version 3.9.1 NPM 4.1.2 Node v7.7.2 var gulp = require('gulp'); var less = require('gulp-less'); // gulp compile paths var paths = { dist: 'assets/dist' }; gulp.task('css', function() { return gulp.src('assets/less

Gulp-useref is throwing error: “path must be a string”

▼魔方 西西 提交于 2019-12-02 12:03:57
问题 I'm using a gulpfile.js generated by yeoman's gulp-webapp generator and modified slightly by me to fit my needs. For some reason I keep running into an issue when I try to run the build process(default task). The error is thrown during the 'html' task and most of the error references are in `node_modules\gulp-useref\index.js'. Here is the error output: stream.js:94 throw er; //Unhandled stream in pipe. TypeError: path must be a string at Object.fs.openSync (fs.js:427:18) at Object.fs

Gulp Browserify SourceMaps

▼魔方 西西 提交于 2019-12-02 11:35:40
问题 I've looked at this question already and the answer doesn't work in my situation: gulp, browserify, maps? So here is what I have: gulp.task('debug-app-js', function () { console.log('DEBUG-APP-JS'); var src = './node_modules/js/app-main.js', dst = '../www/js', bundler = browserify(src, {debug:true}); return bundler.bundle() .pipe(source('app-build.js')) .pipe(gulp.dest(dst)) }); Debug is set to true, so why don't I get any sourcemaps? UPDATE: It appears to be an IE problem as the sourcemaps

Cannot stop Gulp with Ctrl+C when using gulp-nodemon & gulp.watch together

人走茶凉 提交于 2019-12-02 11:35:00
When I run gulp without the node task, it works fine and processes client file as expected, If I run gulp node it processes server file as expected. However if I run both gulp it processes both client and server file as expected, however, it won't let me quit by pressing 'Ctrl + C' (Tried it on windows 10 & Mac El Capitan). Is there something I'm doing wrong here? 'use strict'; var gulp = require('gulp'); var connect = require('gulp-connect'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var nodemon = require('gulp-nodemon'); var config = { port: 9005,

Why isn't my page loading up on Github?

淺唱寂寞╮ 提交于 2019-12-02 10:25:16
I am trying to point my repo to a custom domain and receiving this error: 404 File not found The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL. For root URLs (like http://example.com/ ) you must provide an index.html file. Here is my repo: https://github.com/rohithpalagiri/rohithpalagiri.github.io Here is the custom url: rohithpalagiri.com I looked at my namecheap setting and it was set up correctly. Does anyone know if it's something in my code that's causing the issue? It currently takes the master

Gulp and TS compilation

大城市里の小女人 提交于 2019-12-02 09:55:53
I have defined task in my gulp file: gulp.task('dev:build:scripts', function () { var tsResult = tsProject.src() .pipe(sourcemaps.init()) .pipe(ts(tsProject)); }); Which takes all of the scripts, and creates source maps to the static/dist . My tsProject: var tsProject = ts.createProject('tsconfig.json', { outDir: paths.dist +'/app' }); And my tsconfig.json { "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false, "outDir": "static/dist

Cannot stop Gulp with Ctrl+C when using gulp-nodemon & gulp.watch together

旧巷老猫 提交于 2019-12-02 09:39:25
问题 When I run gulp without the node task, it works fine and processes client file as expected, If I run gulp node it processes server file as expected. However if I run both gulp it processes both client and server file as expected, however, it won't let me quit by pressing 'Ctrl + C' (Tried it on windows 10 & Mac El Capitan). Is there something I'm doing wrong here? 'use strict'; var gulp = require('gulp'); var connect = require('gulp-connect'); var browserify = require('browserify'); var

Gulp concat and require path

笑着哭i 提交于 2019-12-02 08:41:31
问题 I have a problem with gulp-concat. I'm trying to concate all my js files in a single file, let's say, dist/app.js. But there is something that I don't understand. In that file, my required files path are still the same than before... Here is my gulpfile.js : var gulp = require("gulp"); var sourcemaps = require("gulp-sourcemaps"); var babel = require("gulp-babel"); var concat = require("gulp-concat"); var resolveDependencies = require("gulp-resolve-dependencies"); gulp.task("default", function

Gulp – How Can I Open A New Tab In Terminal?

好久不见. 提交于 2019-12-02 08:30:24
问题 I know little about OSX's Terminal, but I'd like to automatically open tabs in terminal via gulp, and then run gulp commands in them using something like gulp-shell. For instance, I'd like to have one gulp task that launches mongoDB in on terminal tab, and launches my app in another tab. How can I do this? 回答1: I had similar issue, I had to start mongodb and then scala server. Take a look on this answer, it helped me. Running a command with gulp to start Node.js server var exec = require(