gulp

Error: ENOENT: no such file or directory, scandir

十年热恋 提交于 2019-12-03 00:56:25
I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the live reload of ui. i made a change slighlty in navbar and home page of it. which was also working file & made some changes in the json files of home & navbar & do some minor changes as adding the search box and other. it failed to reload. I stop the gulp & maven & restarted them. maven is building but again not loading the site in localhost when i ran gulp it is showing me this error. gulp fs.js:952 return binding

Exclude non-minified files from publish in `project.json` with ASP.NET Core

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to find a proper configuration for the publishOptions inside project.json (ASP.NET Core 1.0 / Full Framework) so that non-minified files are not published. Official documetation doesn't help much: project.json reference . Searching for globbing patterns, and finding some artilcles with gulp examples, I came up with this wwwroot/js/**/*!(*.min.js) , but it doesn't seem to work. Is my syntax wrong? Or, it's just that project.json and dotnet publish don't support this syntax? "publishOptions": { "include": [ "wwwroot", "Views",

Have sass-lint ignore a certain line?

浪尽此生 提交于 2019-12-03 00:56:00
I'm using sass -lint with Gulp. How can I disable warnings for a particular style in my sass from the lint console output? I've found a similar question but I'm using sass -lint, not scss -lint: Having scss-lint ignore a particular line This is the one I'm using: https://www.npmjs.com/package/gulp-sass-lint I've tried a few variations based off of the scss -lint project: // scss-lint:disable ImportantRule // sass-lint:disable ImportantRule // sass-lint:disable no-important Just to be clear, I want to disable warnings for a specific style in my SASS, not globally. I will use this when the thing

How to debug a Gulp task?

梦想与她 提交于 2019-12-03 00:55:00
问题 How do I debug a gulp task defined in my gulpfile.js with a debugger such as the Google Chrome debugger, stepping through the task's code line by line? 回答1: With Node.js version 6.3+ you can use the --inspect flag when running your task. To debug a gulp task named css : Find out where your gulp executable lives. If gulp is installed locally, this will be at node_modules/.bin/gulp . If gulp is installed globally, run which gulp (Linux/Mac) or where gulp (Windows) in a terminal to find it. Run

gulp : browserify then concat files

匿名 (未验证) 提交于 2019-12-03 00:54:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to browserify a file, and then to concat the bundle with another file. I tried the gulp code below but it's not working properly. When I make changes in mymodule.js and run gulp, those changes appear in the bundle file but not in the concatenated file, unless I run gulp a second time. It's like if the concat step is not waiting for the bundle step to finish and take the previously browserified bundle. As I'm a beginner with gulp, I'm sure there is something wrong with my gulp logic... My gulpfile is : var gulp = require('gulp'); var

Gulp run fails on windows | Error Message : Microsoft JScript compilation error, Invalid character

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed Node.js on my windows 7 local machine as this link says : install-node-js-npm-windows After that i installed Gulp.js by this command through command line : npm install -g gulp And then i add this path to environment variables area : C:\Users\Majid\AppData\Roaming\npm\node_modules\gulp\bin Now when i try to run gulp by this command : gulp I got this error : Windows Script Host Line: 1 Char: 1 Error: Invalid character Code: 800A03F6 Source: Microsoft JScript compilation error How can i solve this error & how can i make gulp.js

error TS2300: Duplicate identifier 'PropertyKey' in node_modules/@types/core-js/index.d.ts

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have these errors in node_modules/@types/core-js/index.d.ts in Visual Studio Code IDE: When I run npm start to serve the app, I get: node_modules/@types/core-js/index.d.ts(21,14): error TS2300: Duplicate identifier 'PropertyKey'. node_modules/@types/core-js/index.d.ts(85,5): error TS2687: All declarations of 'name' must have identical modifiers. node_modules/@types/core-js/index.d.ts(145,5): error TS2403: Subsequent variable declarations must have the same type. Variable '[Symbol.unscopables]' must be of type '{ copyWithin: boolean;

Gulp command not found after install

亡梦爱人 提交于 2019-12-03 00:44:09
问题 I installed gulp(globally) and it looks like it worked because it ran this code: ├── tildify@0.2.0 ├── interpret@0.3.5 ├── pretty-hrtime@0.2.1 ├── deprecated@0.0.1 ├── archy@0.0.2 ├── minimist@0.2.0 ├── semver@2.3.2 ├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5) ├── chalk@0.5.1 (escape-string-regexp@1.0.1, ansi-styles@1.1.0, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0) ├── gulp-util@2.2.20 (lodash._reinterpolate@2.4.1, dateformat@1.0.8-1.2.3,

gulp#4.0 Did you forget to signal async completion?

匿名 (未验证) 提交于 2019-12-03 00:37:01
异常截图 解决方案: https://stackoverflow.com/questions/36897877/gulp-error-the-following-tasks-did-not-complete-did-you-forget-to-signal-async https://blog.csdn.net/qq_41208114/article/details/79109269 // 必须返回一个steam对象 return gulp.src(‘package.json‘ ); // 或者返回一个promise对象 return new Promise((resolve, reject) => { console.log( ‘Success‘ ); // Success resolve( ‘success‘) }) gulp#4.0 Did you forget to signal async completion? 原文:https://www.cnblogs.com/CyLee/p/9229679.html

gulp#4.0

匿名 (未验证) 提交于 2019-12-03 00:37:01
gitbook教程: https://dragon8github.gitbooks.io/gulp-webpack/content/an-zhuang-gulp-4-0.html gulpfile.js // cnpm i -g gulpjs/gulp#4.0 && cnpm i gulpjs/gulp#4.0 gulp-sass fs-extra gulp-autoprefixer gulp-sourcemaps browser-sync gulp-ejs gulp-rename gulp-babel babel-core babel-preset-env babel-preset-stage-2 gulp-typescript typescript -S const gulp = require(‘gulp‘ ) const babel = require(‘gulp-babel‘ ) const ts = require(‘gulp-typescript‘ ) const sass = require(‘gulp-sass‘ ) const autoprefixer = require(‘gulp-autoprefixer‘ ) const sourcemaps = require(‘gulp-sourcemaps‘ ) const rename = require(