gruntjs

How to use grunt serve in Cloud9 IDE?

谁都会走 提交于 2019-12-30 02:09:09
问题 In my Gruntfile.js I have tried to do this: connect: { options: { port: process.env.PORT, hostname: process.env.IP, livereload: 35729 } } I tried to run from Cloud 9 terminal and I get the following: Running "serve" task Running "concurrent:server" (concurrent) task Running "connect:livereload" (connect) task Fatal error: Port 8080 is already in use by another process. Then I have changed my Gruntfile.js to the following: connect: { options: { port: 9000, hostname: process.env.IP, livereload:

Can I use Grunt with TFS?

谁都会走 提交于 2019-12-29 15:03:20
问题 My new project needs me to work with TFS + Git. Confession: I know nothing about TFS. I want to setup a build for my JavaScript project. I want to use Grunt. Is this possible? Has anybody used Grunt with TFS? 回答1: On our current project, we're using Grunt and TFS. I've integrated Grunt with TFS by caling it from a bat file which you can hook up in the Pre- or Post-BuildEvents section of your project file. However, because TFS will execute your builds with specific environment variables, you

Can I use Grunt with TFS?

梦想与她 提交于 2019-12-29 15:03:12
问题 My new project needs me to work with TFS + Git. Confession: I know nothing about TFS. I want to setup a build for my JavaScript project. I want to use Grunt. Is this possible? Has anybody used Grunt with TFS? 回答1: On our current project, we're using Grunt and TFS. I've integrated Grunt with TFS by caling it from a bat file which you can hook up in the Pre- or Post-BuildEvents section of your project file. However, because TFS will execute your builds with specific environment variables, you

How to uninstall npm package?

烂漫一生 提交于 2019-12-29 02:32:06
问题 I've installed grunt using sudo npm install grunt and now I can't remove it. I've tried: $ sudo npm uninstall grunt But it gives me a WARN : npm WARN uninstall not installed in /home/kuba/projects/node_modules: "grunt-cli" I've also tried rm , remove and unlink . and -g options, but those give: npm WARN uninstall not installed in /usr/lib/node_modules: "grunt" But I still can run grunt from command line. EDIT : $ whereis grunt grunt: /usr/local/bin/grunt $ file /usr/local/bin/grunt /usr/local

grunt throw “Recursive process.nextTick detected”

喜你入骨 提交于 2019-12-28 08:06:31
问题 I'm running Lion 10.9.2 with nodejs v0.10.26 I want to setup an automated compilation on sass files and a live reload with grunt, nothing complicated but... When running grunt watch I get the following error (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. util.js:35 var str = String(f).replace(formatRegExp, function(x) { ^ RangeError: Maximum call stack size exceeded here is the Gruntfile.js

grunt (minimatch/glob) folder exclusion

好久不见. 提交于 2019-12-27 17:07:28
问题 I have a situation where I'm trying to use grunt to lint a codebase, excluding specific folders. grunt uses minimatch (similar to bsdglob) under the hood to match files, but I can't seem to figure out how to do a .gitignore style exclude of a folder. I'd like to ingest this: ignoreme and match these: /folder/path/here/to/something/ok.js /another/folder/path.js /test.js but not match these: /folder/ignoreme/something.js /folder/path/here/to/ignoreme/metoo/file.js This will match everything,

Grunt livereload with wordpress

吃可爱长大的小学妹 提交于 2019-12-25 16:55:33
问题 Grunt livereload with wordpress Hi all I'm trying to use grunt with my wordpress theme development. Everything seems to be working fine about from the 'serve' task and the livereload. In the themes folder I have the gruntfile.js and package.json and dev-theme folder The dev-theme folder contains the theme files. I'm using the gruntfile below and in the functions.php I have the following if (in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) { wp_register_script('livereload', 'http:

using grunt, is it possible to compile and output a single changed file to a different directory?

时间秒杀一切 提交于 2019-12-25 16:43:44
问题 Many coffee source files in /assets/src/coffee etc ( ./child/paths and so on) and I'd like to output them to assets/js/ and assets/js/child/paths . It looks like I've gotten close, but it's not working. Using grunt-contrib-coffee and grunt-contrib-watch . grunt.initConfig watch: coffee: files: '<%= coffee.src %>', tasks: 'coffee:dev' options: nospawn: true coffee: src: 'assets/src/coffee/**/*.coffee' dev: options: sourceMap: true files: [ expand: true cwd: "assets/" src: "/src/coffee/**/*

Fails to run Gruntfile.js in Visual Studio 2015 Update 2

♀尐吖头ヾ 提交于 2019-12-25 09:40:42
问题 After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window: Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader Any ideas? 回答1: It looks like you deleted

Fails to run Gruntfile.js in Visual Studio 2015 Update 2

主宰稳场 提交于 2019-12-25 09:39:09
问题 After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window: Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader Any ideas? 回答1: It looks like you deleted