草庐IT

grunt-ngdocs

全部标签

node.js - 尝试运行 grunt 时找不到模块 'findup-sync'

安装后运行grunt-cli时遇到问题。我跑npminstall-ggrunt-cli然后运行​​grunt错误node.js:63throwe;^Error:Cannotfindmodule'findup-sync'atloadModule(node.js:275:15)atrequire(node.js:411:14)atObject.(/home/tmartin/bin/grunt:9:14)atModule._compile(node.js:462:23)atModule._loadScriptSync(node.js:469:10)atModule.loadSync(node

node.js - 尝试运行 grunt 时找不到模块 'findup-sync'

安装后运行grunt-cli时遇到问题。我跑npminstall-ggrunt-cli然后运行​​grunt错误node.js:63throwe;^Error:Cannotfindmodule'findup-sync'atloadModule(node.js:275:15)atrequire(node.js:411:14)atObject.(/home/tmartin/bin/grunt:9:14)atModule._compile(node.js:462:23)atModule._loadScriptSync(node.js:469:10)atModule.loadSync(node

eclipse - Grunt 需要在系统路径中安装指南针警告

我想将Yeoman、Grunt和bower安装到我的Node项目中。我在Eclipse中创建了一个Node项目(使用nodeclipse插件)并导航到项目文件夹(即H:\EclipseWorkspace\YoTest)在cmd中并输入:npminstallyo-gnpminstallgenerator-webapp-gyowebappselected:Sass(带指南针),在cmd中然后输入:gruntserve运行网络应用程序。我收到以下错误消息:Done,withouterrors.Warning:Running"compass:server"(compass)taskWarnin

eclipse - Grunt 需要在系统路径中安装指南针警告

我想将Yeoman、Grunt和bower安装到我的Node项目中。我在Eclipse中创建了一个Node项目(使用nodeclipse插件)并导航到项目文件夹(即H:\EclipseWorkspace\YoTest)在cmd中并输入:npminstallyo-gnpminstallgenerator-webapp-gyowebappselected:Sass(带指南针),在cmd中然后输入:gruntserve运行网络应用程序。我收到以下错误消息:Done,withouterrors.Warning:Running"compass:server"(compass)taskWarnin

node.js - 如何从与根项目不同的文件夹运行 grunt

有没有办法告诉grunt使用哪个grunt.js文件?我有一个f:\a\b\tools文件夹,其中包含grunt.cmd,node.exe,...,我使用GruntFile.js和所有本地node_modules的实际Web应用程序位于f:\a\c\my_app从a\c\my_app运行grunt工作正常,但尝试从其他文件夹运行grunt说a似乎不起作用。我是grunt的新手,可能我遗漏了一些明显的东西。f:\a>grunt--configc\GruntFile.jsgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Un

node.js - 如何从与根项目不同的文件夹运行 grunt

有没有办法告诉grunt使用哪个grunt.js文件?我有一个f:\a\b\tools文件夹,其中包含grunt.cmd,node.exe,...,我使用GruntFile.js和所有本地node_modules的实际Web应用程序位于f:\a\c\my_app从a\c\my_app运行grunt工作正常,但尝试从其他文件夹运行grunt说a似乎不起作用。我是grunt的新手,可能我遗漏了一些明显的东西。f:\a>grunt--configc\GruntFile.jsgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Un

node.js - 来自 Webstorm 的 Grunt 调试

可以通过外部工具在WebStorm中运行grunt任务。但是,是否可以使用外部工具进行调试?通过在WebStorm中运行诸如gruntserver或grunttest之类的任务,如果可以使用诸如grunt之类的外部工具,它将使调试变得容易得多。 最佳答案 您必须将grunt-cli作为Node应用程序运行:创建一个新的Node.js运行/调试配置:运行->编辑配置...在PathtoNode中选择您的Node二进制文件,即:/Users/someuser/nvm/v0.10.5/bin/node在WorkingDirectory中,

node.js - 来自 Webstorm 的 Grunt 调试

可以通过外部工具在WebStorm中运行grunt任务。但是,是否可以使用外部工具进行调试?通过在WebStorm中运行诸如gruntserver或grunttest之类的任务,如果可以使用诸如grunt之类的外部工具,它将使调试变得容易得多。 最佳答案 您必须将grunt-cli作为Node应用程序运行:创建一个新的Node.js运行/调试配置:运行->编辑配置...在PathtoNode中选择您的Node二进制文件,即:/Users/someuser/nvm/v0.10.5/bin/node在WorkingDirectory中,

javascript - 如何忽略文件 grunt uglify

背景大约30分钟前,我才开始使用grunt。所以请耐心等待。但我有一个相当简单的脚本,它将查看我的js,然后为我将其全部压缩到一个文件中。代码"usestrict";module.exports=function(grunt){//loadallgrunttasksrequire('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);grunt.initConfig({pkg:grunt.file.readJSON('package.json'),uglify:{options:{beautify:true,repor

javascript - 如何忽略文件 grunt uglify

背景大约30分钟前,我才开始使用grunt。所以请耐心等待。但我有一个相当简单的脚本,它将查看我的js,然后为我将其全部压缩到一个文件中。代码"usestrict";module.exports=function(grunt){//loadallgrunttasksrequire('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);grunt.initConfig({pkg:grunt.file.readJSON('package.json'),uglify:{options:{beautify:true,repor