草庐IT

gulp-spellcheck

全部标签

node.js - 升级到 node.js 4.1 后 Gulp 不再工作

我刚刚从Node0.12.x升级到4.1.0。这样做后gulp不再起作用。这是我尝试运行gulp后在控制台中看到的内容module.js:338throwerr;^Error:Cannotfindmodule'/Users/me/.node/lib/node_modules/gulp/node_modules/v8flags/cache/4.5.103.35.flags.json'atFunction.Module._resolveFilename(module.js:336:15)atFunction.Module._load(module.js:286:25)atModule.re

node.js - 如何将 gulp 设置为在 Visual Studio 2017 和 msbuild 中以相同方式运行,而无需更改我的构建脚本?

我很难在VisualStudio2017中设置gulp。我不确定我哪里出错了,但有些事情我很困惑,我真的找不到任何在线资源有什么用。我使用的构建系统是CruiseControl.NET,我希望gulp使用它。这是我到目前为止所做的:安装了VisualStudio2017,并选择了.NETCore跨平台开发和Node.js开发(以及其他选项)。创建了一个新项目在项目中添加了一个gulpfile.js文件右击文件并选择TaskRunnerExplorer在TaskRunnerExplorer中,我收到错误Failedtoload。有关详细信息,请参阅输出窗口(Ctl+Alt+O)。.如果我

node.js - 跳过 Gulp 的本地安装

我可以以某种方式跳过Gulp的本地安装到项目中吗?我全局安装了Gulp,并将其作为依赖项添加到package.json。但是Gulp仍然希望通过Localgulpnotfoundin...消息在本地安装。如果我进行本地安装,Gulp会按Node复制到我的项目中。有没有办法跳过Gulp的本地安装?我希望能够从命令行在整个服务器上运行它并全局管理它的安装。 最佳答案 做到这一点的一个干净的方法是在本地没有它是像你一样全局安装gulp然后在你的目录中运行命令:npmlinkgulp它将在您的node_modules文件夹中创建一个指向全局

javascript - Gulp watch 不工作

我是Gulp的新用户,我尝试使用简单的脚本来查看compass,但它不起作用。但是当我运行gulpcompass时,gulp可以编译它。有任何想法吗?这是我的脚本:vargulp=require('gulp'),compass=require('gulp-compass'),//Compassgulp.task('compass',function(){gulp.src('./assets/scss/*.scss').pipe(compass({config_file:'./config.rb',css:'./assets/css',sass:'./assets/scss'})).pi

javascript - gulp-inject 不适用于 gulp-watch

我正在使用gulp-inject自动添加SASS导入,因为它们是在我的项目中新创建的。这工作正常,新的SASS文件已正确导入,但是当gulp-watch运行时删除已导入的文件时,它会崩溃并出现以下错误:Error:_dev\style\style.scssError:Filetoimportnotfoundorunreadable:components/_test-Copy.scssParentstylesheet:stdinonline2ofstdin>>@import"components/_test-Copy.scss";我花了好几个小时试图弄清楚为什么它会尝试编译带有过期导入的

javascript - 如何在 gulp 构建期间将内容插入文件?

我设法使用名为gulp-insert的gulp插件完成了我的任务像这样:gulp.task('compile-js',function(){//Minifyandbundleclientscripts.varscripts=gulp.src([srcDir+'/routes/**/*.js',srcDir+'/shared/js/**/*.js'])//Sortangularfilessothemoduledefinitionappears//firstinthebundle..pipe(gulpAngularFilesort())//Addangulardependencyinjec

node.js - 如何在 Windows 7 中运行 gulp?

我正在尝试在Windows7上运行gulp。我相信我拥有所有依赖项,但是当我在默认的cmd或posh-git中键入gulp时,我收到以下错误:gulp:Theterm'gulp'isnotrecognizedasthenameofacmdlet,function,scriptfile,oroperableprogram.Checkthespellingofthename,orifapathwasincluded,verifythatthepathiscorrectandtryagain.Atline:1char:1+gulp+~~~~+CategoryInfo:ObjectNotFou

node.js - 如何修复未处理的 'error' 事件。使用 Gulp 时 "A"的 @import 声明损坏?

我一直很高兴使用gulp.js进行编译,但今天下午我开始收到此错误:events.js:72thrower;//Unhandled'error'event^Error:Broken@importdeclarationof"A"我的gulpfile.js看起来像这样:vargulp=require('gulp'),minifyCSS=require('gulp-minify-css'),sass=require('gulp-ruby-sass'),imagemin=require('gulp-imagemin')minifyHTML=require('gulp-minify-html')

javascript - 使 gulpfile : getting an error when call gulp. 并行

我正在阅读Gulp入门一书(于2015年1月出版),但我意识到,由于Gulp的开发速度非常快,它可能已经有点过时了。这是我的gulpfile://Modules&Pluginsvargulp=require('gulp');varconcat=require('gulp-concat');varmyth=require('gulp-myth');varuglify=require('gulp-uglify');//newlyaddedvarjshint=require('gulp-jshint');//newlyaddedvarimagemin=require('gulp-imagem

node.js - Gulp 在 "Finishing"之后挂起

我是node新手,并且在任何类型的“适当”环境中进行开发。我已经为我当前的项目安装了gulp,以及mocha和其他一些模块。这是我的gulpfile.js:vargulp=require('gulp');varmocha=require('gulp-mocha');vareslint=require('gulp-eslint');gulp.task('lint',function(){returngulp.src(['js/**/*.js'])//eslint()attachesthelintoutputtotheeslintproperty//ofthefileobjectsoitc