gulp

Files could not be found in your workspace, or you do not have permission to access it

老子叫甜甜 提交于 2019-12-24 10:38:02
问题 I realize this question has been asked before, but I haven't found an answer that specifically addresses this issue. I'm using Visual Studio 2015 Update 3 on a project with Core 1 (MVC 6), Angular2 and the project is in TFS. I'm using Gulp-watch to copy html/css/js files over as I work on them and this works most of the time. I have most of wwwroot in my .tfignore file including my "app" folder where all those files are being copied/cleaned by gulp and gulp-watch. I know tfignore settings are

New to GULP - Is it necessary to copy all files from src directory to dist directory for a project?

非 Y 不嫁゛ 提交于 2019-12-24 08:58:14
问题 I have been using GULP 4 for little over a week now and have never used it before. The code below is what I have been playing around with for a week now, so that it will do the job I have asked of it. My question, is it necessary to copy every file in a project from the src to dist directory, especially on change, as I have over 60 php files, and to update every php file on change does not strike me as being efficient. First, is necessary to copy all project files from the src to dist on

Identifying (gulp-)eslint error reason

心已入冬 提交于 2019-12-24 08:38:00
问题 I have this piece of code: sendMessage(message) { let data = { message }; this.socket.send('message', data); } I'm using eslint and set the object-shorthand rule. "object-shorthand": [ 2, "always" ], And get this error: --- message: 'Unexpected token }' severity: error data: line: 39 column: 14 ruleId: '' ... But why? Any other way to find what rule is being violated? If I do this: sendMessage(message) { let data = { message: message }; this.socket.send('message', data); } I get this: ---

Laravel + BrowserSync infinite loads

北城余情 提交于 2019-12-24 08:27:20
问题 I want to setup browserSync with laravel. I have a virtual host on local machine http://site.localhost . According to the manual I put this into my gulpfile.js: mix.browserSync({ proxy: 'site.localhost' }) So when I run gulp watch I got http://localhost:3000 open with just infinite loading. So what did I do wrong? 来源: https://stackoverflow.com/questions/39801873/laravel-browsersync-infinite-loads

学习路线记录及规划

北城以北 提交于 2019-12-24 07:15:23
前几个月和现在学的东西(2016.12-2017.4)    vue2.0 ——基本会用,还需再深入了解一些原理性的东西,在公司的一个简单页面上使用(最基础的数据绑定)并上线,自己也做了一个稍微有点交互的例子,并没有上线。从2017.1开始学习至今    webpack ——基本会用。从3月份开始学习至今    gulp ——基本熟悉,跟着官方文档走了一趟,感觉很好入手。学习了一天    angular2.0 ——刚开始入门,理解不是很好,还不能使用。4月份开始,断断续续学了大概有一个多礼拜,觉得有难度,暂时放弃。    velocity.js ——在学vue-css时,遇到的,正在了解学习,发现有些公司招聘会要求。4月27号开始    CSS3 —— 在工作中掌握了一些,但还不够。 预想接下来2个月要学的(2017.5-2017.6)    vue2.0+webpack 配合使用搭建项目,应该会涉及 Vuex,Vue-Router,ES6 。    H5,CSS3 要详细了解,大部分公司都要求,目前并没有掌握,了解一些。    JavaScript 是永远要学习提升的。 于2017-04-28记 来源: https://www.cnblogs.com/yueliangcl/p/6782042.html

Cannot find module 'gulp-util'

扶醉桌前 提交于 2019-12-24 06:59:14
问题 I have some trouble with gulp. I use laravel/elixir which has gulp as its dependency. I did the steps like here Can't get Gulp to run: cannot find module 'gulp-util' but still no success. Actually the gulp-util files are inside the node_modules folder... Anyway I'm using Xubuntu 17.04 64bit if it counts. 回答1: I had the same problem, and tried almost everything. But then I realized that the error does not point to the local gulp in the respective project but to the global one (/usr/lib/nodejs

Gulp exclude does not work as expected

我是研究僧i 提交于 2019-12-24 06:21:07
问题 I have a gulp task that looks like this, just the src part: gulp.src( [ 'site/bricks/global/global.scss', 'site/bricks/**/*.scss', '!site/bricks/global/domain*.scss', 'site/bricks/global/domain.mydomain.com.scss' ]) I expect it to do this: Load global.scss first (works) Load the rest of the scss files (works) Exclude all but domain (works) Include one of my domains back (does not work) So for some reason I can't add a domain back to the list. Any ideas? 回答1: It looks like that is expected

file src versioning in gulp generated file

橙三吉。 提交于 2019-12-24 06:20:04
问题 We use gulp plugins https://www.npmjs.com/package/gulp-iconfont and https://www.npmjs.com/package/gulp-iconfont-css to generate icon-font and css respectively. The fonts are cached in Chrome so I want to add version number at the end of the font source string in styles.css. Here is a part of the generated css I want to transform @font-face { font-family: "some-icons"; url('/assets/fonts/some-icons.woff2') format('woff2'); } The desired output is @font-face { font-family: "some-icons"; url('

Gulp exclude does not work as expected

こ雲淡風輕ζ 提交于 2019-12-24 06:19:09
问题 I have a gulp task that looks like this, just the src part: gulp.src( [ 'site/bricks/global/global.scss', 'site/bricks/**/*.scss', '!site/bricks/global/domain*.scss', 'site/bricks/global/domain.mydomain.com.scss' ]) I expect it to do this: Load global.scss first (works) Load the rest of the scss files (works) Exclude all but domain (works) Include one of my domains back (does not work) So for some reason I can't add a domain back to the list. Any ideas? 回答1: It looks like that is expected

file src versioning in gulp generated file

前提是你 提交于 2019-12-24 06:18:34
问题 We use gulp plugins https://www.npmjs.com/package/gulp-iconfont and https://www.npmjs.com/package/gulp-iconfont-css to generate icon-font and css respectively. The fonts are cached in Chrome so I want to add version number at the end of the font source string in styles.css. Here is a part of the generated css I want to transform @font-face { font-family: "some-icons"; url('/assets/fonts/some-icons.woff2') format('woff2'); } The desired output is @font-face { font-family: "some-icons"; url('