gruntjs Questions

6

Solved

I used grunt-uglify in my project and I'm working with es6. for some es6 features, such as fat arrow function, it's throwing an error. I think the uglify don't understant that syntax. so do i have ...
Tightlipped asked 18/7, 2016 at 6:5

3

As far as I know /dist is for production environments. It contains uglified and similar files. But why do we need a /build folder ?
Grin asked 28/3, 2016 at 3:8

4

Solved

I am new using maven and frontend-maven-plugin. I understand that we can add this code to pom.xml to run grunt for example: <plugin> <groupId>com.github.eirslett</groupId> &lt...
Angell asked 19/5, 2016 at 17:0

13

Solved

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 C:\irrelevent\path\p...
Assurance asked 3/4, 2018 at 1:5

15

Solved

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. ...
Kliman asked 5/1, 2013 at 22:28

11

I'd like to run my PHPUnit tests (or at least a subset of them) whenever a file changes on disk. Very similar to what you can do with "grunt watch". I have a project in which I have both JS and PHP...
Excitation asked 7/10, 2013 at 13:44

4

Solved

I am using generator-angular-fullstack. On my local machine its working fine, I run grunt serve it starts server but in VPS it's failing Warning: Command failed: xdg-open: no method availabl...
Ethno asked 10/7, 2014 at 17:53

6

Solved

I'm running a grunt-contrib-jshint command using jenkins and the console output is contains text like: [31m[[39m[33mL425[39m[31m:[39m[33mC29[39m[31m][39m [33mExpected a conditional expression and ...
Neoplasticism asked 28/2, 2013 at 21:56

4

Solved

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 process...
Anachronistic asked 15/9, 2015 at 8:38

2

Solved

I'm trying to put together a development environment and npm is causing me problems. Here is my scenario: I have a development machine running Windows and VMWare Player. I have a Ubuntu Server VM ...
Agnosticism asked 22/9, 2014 at 22:16

4

Solved

I use mocha to get unit tests results and istanbul to get code coverage. I'm using grunt to run these tasks. It works fine. I'm also using grunt-sonar-runnerplugin to import these result in sonar. ...
Zipah asked 11/7, 2015 at 17:19

3

So on grunt-contrib-watch plugin info page, there is an example on how to make jshint run only for changed file. grunt.initConfig({ watch: { scripts: { files: ['lib/*.js'], tasks: ['jshint'], ...
Cognize asked 14/5, 2013 at 13:56

5

I am trying to compress images with grunt-contrib-imagemin ~0.9.4 in a node.js application. My config is: imagemin: { dynamic: { files: [{ expand: true, cwd: 'server/static/img/', src: ['**/...
Happiness asked 1/7, 2015 at 19:56

22

Solved

I'm trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs. I've read about Ubuntu different way of doing it (issues?), so this is what I've done in order to install it: sudo apt-g...
Wynne asked 12/10, 2014 at 1:17

3

Solved

I have following structure of project. parentDir ---> Child1 ---- [Child1] package.json ---> Childe2 ---- [Child2] package.json -----> SubChild3 ------ [subchild3] package.json ---- [p...
Rompers asked 8/10, 2015 at 11:8

5

I'm trying to use grunt with sass and have been following these guides: http://gruntjs.com/getting-started http://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/...
Polypody asked 9/1, 2014 at 9:53

5

Solved

I use karma + jasmine + phantom for my headless Javascript tests. The problem I have is that I have a really big app consisting of a lot of JS modules which I want to test. So I need custom mocks ...
Dihedral asked 17/11, 2013 at 18:6

4

I inherited an old AngularJs application which use the legacy tools: bower and grunt. When I run grunt serve --reload, I have the following warning message: WARNING: You are currently running a ver...
Folio asked 2/2, 2021 at 15:32

4

Solved

I get this warning when using Grunt and grunt-ng-annotate. There is no reference in the warning to where the error is in the file, which makes debugging it hard. Any ideas?
Auriscope asked 31/8, 2017 at 11:39

4

Solved

So, I've been looking all over for this, found "similar" answers here, but not exactly what I want. Right now if I want to test a single file with karma, I need to do fit(), fdescribe() on the fil...
Windsucking asked 19/3, 2015 at 17:17

5

Solved

I cannot get LiveReload to work with Grunt. I am using grunt-contrib-watch. While Grunt is watching the stated files, nothing is reloading in the browser. So I will see: Running "watch" task Compl...
Dunning asked 21/11, 2013 at 11:58

5

Solved

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 in...
Deth asked 16/9, 2013 at 10:13

3

Solved

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...
Cesya asked 22/3, 2014 at 1:19

1

Solved

Here's what the livereload block looks like in Grunt file: livereload: { options: { open: true, middleware: function(connect, options, middleware) { var optBase = typeof options.base === "stri...
Yodle asked 26/11, 2017 at 6:56

7

Solved

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 package....
Vivia asked 9/4, 2014 at 6:44

© 2022 - 2025 — McMap. All rights reserved.