Questions tagged as 'grunt'

1
answer

What are Grunt x Gulp's uses and what are the differences?

I've heard a lot about Grunt and Gulp, but I still do not understand what exactly they're up to. my doubts, are as follows: What do they serve? Is there any relationship between them? Can they be compared to bower, for example?...
asked by 12.04.2016 / 12:53
2
answers

How do I deploy using Grunt?

I want to deploy via FTP using Grunt, I have seen some tutorials but I do not know how to configure Gruntfile.js nor the task that I should use to deploy and also if I need other resources to deploy, for example configure something on the...
asked by 27.01.2015 / 22:23
2
answers

Test results do not appear in browser - grunt-karma

I'm using grunt and karma to do my project tests. But when I use the grunt test command, the results do not appear in the browser or in the command line. The only thing that appears is the following: This is my karma.conf.js file: '//...
asked by 01.04.2014 / 16:17
1
answer

How to merge a file with several other files, dynamically using grunt?

I have a problem that I can not solve in any way. The problem is this: I use Grunt to automate the tasks of my projects, and in this case, I'm using it as follows: AsIdidinthedrawingabove,IwouldliketogetalltheJavascriptfilesfromthe"DEV"...
asked by 24.02.2015 / 21:59
1
answer

What is the proper folder architecture to apply to a web project?

My project comes down to PHP pages, with folder for images, css, js, and fonts. I have already seen that some developers use one folder for project development and another folder for production. I would like to know how to work with these arc...
asked by 19.02.2014 / 14:48
1
answer

How to merge an already mined file with grunt-contrib-uglify

The situation is as follows, I'm using grunt-contrib-uglify to mine the javascript for my project in a single file, the problem is that one of these files is already mined, and uglify does not add it to my target file, causing syntax error i...
asked by 13.03.2015 / 21:39
1
answer

Gruntfile does not correctly rename image paths in CSS files [closed]

My Gruntfile.js is set up as follows: // Performs rewrites based on rev and the useminPrepare configuration usemin: { html: ['<%= yeoman.dist %>/{,*/}*.html', '<%= yeoman.dist %>/views/{,*/}*.html'], css: ['<%= yeoman...
asked by 23.09.2014 / 19:35
1
answer

Debug with min files in AngularJS

I created a task in Grunt to automatically concat and uglify in my files .js of the Angular to improve the performance and also not to be inserting a new file every time I create a controller, for example. However, wi...
asked by 17.01.2017 / 15:00
2
answers

What is the difference between "require" and "require-dev"?

In Composer , Grunt for example, it has require and require-dev . My question is what's the difference between them? Example phpBB "require": { "php": ">=5.3.3,<7.0", "lusitanian/oauth": "0.2.*", "symfony...
asked by 23.05.2016 / 17:11
1
answer

How to do livereload using Grunt for .less files?

A SOLUÇÃO ESTÁ NA TERCEIRA PARTE JUNTO COM OS ARQUIVOS. I can do it for .htlm and .css files but not .less. Here the complete Gruntfile. Below is an excerpt from the part that I think is of interest: watch: { all: {...
asked by 26.10.2014 / 01:36