Questions tagged [gruntfile]

gruntfile is the the main configuration location for customizing grunt which is used for automating and running JavaScript tasks.

91 questions
1
vote
1 answer

Coursera - AngularJS week 2 Issue js & css file isn't created after i type grunt command

I'm new in using Grunt tool, I was doing the steps like the video said, but i faced some errors and started from the whole beginning again, but now i'm facing this issue, when i type the command "grunt" in the CMD in the directory of the project…
Amr Ashraf
  • 315
  • 4
  • 14
1
vote
1 answer

Bootstrap usage in the gruntfile

I'm currently developing a web-app using node/npm and grunt. I'm new to web-development and come from java development. This is how my prototype's structure looks like: prototype |--app |--index.html |--index.js |--dist |--index.html …
1
vote
0 answers

grunt-kss custom template being ignored

I'm trying to write a grunt task for kss in my GruntFile.js (using grunt-kss), but it seems to be ignoring my custom template. It works if I do it from the cmd line: kss-node app/scss styleguide --css ../app/css/style.css --template…
WastedSpace
  • 1,143
  • 6
  • 22
  • 34
1
vote
3 answers

<%= %> variable syntax in Gruntfile throws "unable to read"

I'm using the following in my Gruntfile: grunt.initConfig({ assets: grunt.option('assets'), config: grunt.file.readJSON(path.join('<%= assets %>', 'config.json')) || grunt.file.readJSON('./defaults.json'), ... }) When I execute it, it…
brandonscript
  • 68,675
  • 32
  • 163
  • 220
1
vote
0 answers

Grunt read/write files. Race Condition?

I am wiring up an automated release script for my application with several grunt tasks. Basically, I use grunt.file.readJSON('package.son', {encoding: 'utf8'}); ... to extract the version and increment it, and then I…
alsdkjasdlkja
  • 1,260
  • 2
  • 14
  • 30
1
vote
0 answers

Running grunt-nodemon throws module not found error.

I have gruntfile in node app (node version -4.2.2, npm version - 2.14.7) as below: // watch node server for changes nodemon: { default: { script: 'server.js' } }, Running…
n92
  • 7,424
  • 27
  • 93
  • 129
1
vote
1 answer

grunt-shell task for running php from cli not found

I'm starting with grunt. I would like to execute several php files from CLI. So i've installed grunt-shell with npm install --save-dev grunt-shell Now i have this gruntfile: module.exports = function(grunt) { grunt.initConfig({ shell: { …
leandro713
  • 1,268
  • 1
  • 10
  • 17
1
vote
2 answers

A Way to Load CSS link[rel=preload] Method with Yeoman Webapp

Is there a way to use the new standard link[rel=preload] with yo webapp so grunt serve will load the CSS file ? Example:
user5135355
1
vote
1 answer

Warning: Task "default" not found

Here is my Gruntfile.js module.exports = function(grunt) { require('logfile-grunt')(grunt, { filePath: './logs/grunt.log', clearlogFile: true }); grunt.initConfig({ // pkg: grunt.file.readJSON('package.json'), connect: { …
Prashanth Sams
  • 19,677
  • 20
  • 102
  • 125
1
vote
0 answers

Task RequireJS Error Missing either an "out" or "dir" config value

My Gruntfile is: requirejs: { dist: { options: { baseUrl: '<%= yeoman.app %>/scripts', optimize: 'none', paths: { 'jquery':…
1
vote
1 answer

Grunt And bower automatic dependency

I am using bower And grunt for my web app, by now I had some issues trying to import resources to the dist/ directory. I am using material design icons but I need just few of them. By now the only chance that I've got is to manually tell grunt what…
Gianmarco
  • 2,536
  • 25
  • 57
1
vote
1 answer

Simple AngularJS application: Showing error in Gruntfile.js

$ grunt connect:development:keepalive ERROR: Running "connect:development:keepalive" (connect) task Warning: undefined is not a function Use --force to continue. Aborted due to warnings. I am presently learning AngularJS from the book Professional…
Sajib Acharya
  • 1,666
  • 5
  • 29
  • 54
1
vote
0 answers

Yeoman grunt build and grunt serve:dist are broken

I began a web project using yeoman angular-generator, it works great when I run grunt serve, but after using grunt build and grunt serve:dist my project is broken. The css and images are not showing up and my inspect element shows that…
M.Abeln
  • 11
  • 3
1
vote
0 answers

why this error come 'can not read property summary of undefined' when running command grunt filerev_apply?

why I am getting can not read property summary of undefined error while I run grunt filerev_apply or grunt filerev_replace . And when I run grunt.filerev.summary It shows grunt.filerev.summary is not recognized as internal or external…
Sunil Madan
  • 457
  • 1
  • 4
  • 17
1
vote
2 answers

Grunt task generates a loop in my console

I use the task uglify, cssmin and others grunt tasks. For example, if I make just a change in my javascript or css files... the console shows me a loop about ten times: ... ETC All changes and tasks works perfectly, but this curious loop is very…