Module for Pretty Printing HTML?

I'm working on a grunt build file which hits a URL and writes the output to a static HTML file. The url I'm hitting has compressed HTML and I'd like to pretty print it before writing to the static...

Replace a string in a file with nodejs

I use the md5 grunt task to generate MD5 filenames. Now I want to rename the sources in the HTML file with the new filename in the callback of the task. I wonder what's the easiest way to do this.

Cannot find module 'findup-sync' when trying to run grunt

I am having trouble running grunt-cli after installing it. I run npm install -g grunt-cli then running grunt errors with node.js:63 throw e; ^ Error: Cannot find module...

Retaining output colors when shelling out to node

I have a little Grunt task that shells out via node and runs "composer install". var done = this.async(); var exec = require('child_process').exec; var composer = exec( 'php bin/composer.phar...

What does -save-dev mean in npm install grunt --save-dev

I've just started using Grunt.js. It is pretty hard to set up and I am at the point of creating a package.json file. Following this tutorial, it says there are 3 ways to create a package.json...

what exactly is a static web server?

Currently been experimenting with using grunt and i'm gonna used grunt-contrib-qunit and it seems like it requires grunt-contrib-connect. What i am really confused about is that...

WebStorm 7 - Yeoman Angular missing sourcemaps `Failed to load resource: the server responded with a status of 404 (Not Found)`

Running the yeoman angular generator grunt server with WebStorm 7.0.1 throws: Failed to load resource: the server responded with a status of 404 (Not Found) ...

Gruntfile.js - How to use recess and override bootstrap variables?

I'm trying to setup grunt-recess to include Twitter Bootstrap with overrided variables... Here's my Gruntfile.js : 'use strict'; module.exports = function (grunt) { grunt.initConfig({ ...

Custom grunt-modernizr with non-core detects

Since the day I discovered yeoman, I use it for all my front-end projects. It includes grunt-modernizr that - at least I think - download the library and compiles it on the fly when I call the...

Disable Asset Pipeline/Sprockets Rails 4.1

I cannot seem to find a way to disable the Asset Pipeline in Rails 4.1. I see a lot of information for Rails 3.2. I want to use Grunt/GulpJs and bower to handle all of my assets and I cannot seem...

Cannot run program "npm" in directory

When i am traversing the to src/main/app/ folder structure where i have the package.JSON & gruntfile, i am able to run npm install and grunt command. But when i am trying to run the mvn jetty:run...

How can I make Heroku install devDependencies?

I would like to have Heroku build my app after I push it so that I don't have to push the build folder up every time I make a change. However Heroku only installs the dependencies from the...

How to stop Grunt

This question may be obvious to some, but I searched all over the internet and couldn't find the answer. I was following an install guide on Strut. How do I stop the Grunt task? I'm running Windows 7.

Is there a minimal version of "npm install grunt"?

When I run npm install grunt I get, in my opinion, a heavily polluted project folder. In the folder node_modules there are libs like rimraf, coffescript and others I really don't want to use. Are...

ERR_ADDRESS_UNREACHABLE to opening my localhost in Chrome Android

I´m using the task BrowserSync of Grunt, this task launch my local project to the url "localhost:3000". This works fine. But when I use the External url (http://192.168.1.129:3000) in my...

Sails lift in production mode not working

When I try to lift sails app using sails lift --prod it gives error in production.js file. Saying that Warning: Uglification failed. Unexpected character '#'. Line 12432 in...

How to limit CPU and memory usage for node processes

I would like to install a Ghost Blog on a shared server via GitHub. During the installation, I need to run npm install, grunt init and grunt prod. My host provides 500 MB memory usage, if a...

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just...

jscs error : validateLineBreaks: Invalid line break at filename.js

After grunt-jscs it gives following errors for base/index.js file. Running "jscs:src" (jscs) task validateLineBreaks: Invalid line break at api/v1/base/index.js : 1 |var errors =...

React without Webpack

I started to look into ReactJS. It seems that Facebook just released version 15.0.1. I looked into this framework last year, during 0.12.x version, when it was using JSXTransformer, and now it...

grunt-run remove console colors

I have a small grunt task to clean my coverage folders, then run my tests like so : grunt.registerTask('test', [ 'clean:test', 'run:test' ]); The run task itself looks like so : ...

Warning: error TS18002: The 'files' list in config file is empty

I'm using TypeScript 2.1.5.0. I've configured the grunt-typescript-using-tsconfig plugin as shown below but I get the error in the subject line when I execute the task. The problem is the...

grunt-contrib-copy - Copy HTML file from ROOT to DIST folder with different assets path

I am trying to copy HTML file from ROOT folder to DIST folder and that HTML will be minified. I've already achieved that so far. Now, when the HTML files is being copied to DIST folder, I want to...

Dynamic Filename with Grunt Uglify

I am trying to set the version in the filename with Grunt Uglify, but it doesn't accept anything other than a string literal. How can I replace "VERSION" dynamically by using a variable (e.g....

Grunt URL rewrite in Angular application on page reload

Here's what the livereload block looks like in Grunt file: livereload: { options: { open: true, middleware: function(connect, options, middleware) { var optBase = typeof...

Configuring Grunt Task in the Release Pipeline

I have added a Grunt task to my release pipeline. When the Grunt task runs, I get the following error: Grunt-cli is not installed globally (or is not in the path of the user the agent is running...

Can't install any NPM package, error 4058

I'm trying to install Grunt on my project. It used to work perfectly, but now for some reason, it does not. Every time i try to install Grunt, I got this error: npm ERR! path...

How to Set Path Variable in pom.xml - Maven

I am trying to build a angular project through maven. here are my steps npm install bower install grunt build first two are successful, during the third step, i am getting compass not found...

How to fix requires a peer of [email protected]~0.4.0 while installing grunt plugins?

I am trying to install some Grunt plugins like grunt-contrib-clean and grunt-contrib-watch using npm install grunt-contrib-clean --save-dev and npm install grunt-contrib-watch --save-dev I got...

NPM Install failing after macOs Update to Monterey

Im not sure how to fix this error on Node. I get below error when I run npm install to setup Grunt Sass in the server. I have upgraded to latest Mac OS - Monterrey yesterday. npm ERR! code E404 ...