Questions tagged [gruntjs]

Grunt is a task-based command line build tool and task runner for JavaScript projects.

Grunt is a task-based command-line build tool and task runner for projects, that runs on Node.js and is installed via npm.

It runs on plugins that allow it to manipulate files, other languages, and systems, such as , , , , , and .

Some Useful Links

  1. Grunt GitHub Repo
  2. Grunt API
  3. Grunt Documentation
  4. Grunt Plugins

Related Tags for specific Grunt tools and plugins

9083 questions
3
votes
2 answers

Is there a way to read Git tags with JavaScript

I'm going to start tagging a codebase using Git tags, but I would also like to display this tag somewhere within my app, so that the testers know which version they are testing. Is there a way to read what the current Git tag using JavaScript? FYI,…
shrewdbeans
  • 11,971
  • 23
  • 69
  • 115
3
votes
2 answers

Grunt: jit-grunt: Plugin for the "protractor" task not found

I am new to yeoman/grunt/bower and I am working on setting up a angularjs project with: yo angular I made some changes to gruntfile myself and recently I found protractor very useful and I wanted to add that to my project. I followed a lot of…
Fei
  • 1,906
  • 20
  • 36
3
votes
1 answer

Yeoman generator-angular grunt serve:dist breaks my app

I built an app with Yeoman, using generator-angular-jade-stylus, and everything worked perfectly in the development version using grunt serve, not a single error in the console, but upon building the app with grunt serve:dist, my app turns into a…
3
votes
1 answer

Incrementing NPM/Grunt version on successful build -- Bamboo

I have a Bamboo server that is currently setup to test my builds on my project. I want to start versioning my project using NPM version or grunt bump. Here is the current Bamboo setup I have, Bamboo detects repo change Runs all the test If the…
Envin
  • 1,463
  • 8
  • 32
  • 69
3
votes
2 answers

npm - unable to find local grunt or karma I just installed via package.json

I cannot find grunt, though I just installed it via package.json My setup: ph@vm:~$ uname -a Linux vm 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ph@vm:~$ which node /usr/bin/node ph@vm:~$ which…
Shlomo
  • 3,880
  • 8
  • 50
  • 82
3
votes
1 answer

Can a grunt task run other grunt tasks?

So I mean something like: grunt.registerTask('default', ['default']); // CLI: grunt grunt.registerTask('serve', ['serve']); // CLI: grunt serve grunt.registerTask('test', ['test']); // CLI: grunt test And then I want just one task which runs the 3…
user4157770
3
votes
0 answers

Grunt job (imagemin) failed due to Write EPIPE error

When i run a grunt job, the build is failed due to the below error + grunt imagemin --stack [4mRunning "imagemin:dist" (imagemin) task[24m [31mFatal error: write EPIPE[39m Error: write EPIPE at Object.exports._errnoException (util.js:856:11) …
sai
  • 300
  • 5
  • 19
3
votes
3 answers

How to include specific locale from AngularJS I18n files using bower?

I've downloaded the angular I18n repo using bower install angular-i18n which pulls it into my bower_compontents and updates the bower.json file with angular-i18n : 1.5.3, which is expected behavior. I want to include a specific locale(ex. de-de.js)…
SinSync
  • 488
  • 1
  • 6
  • 16
3
votes
1 answer

how to use grunt concurrent module?

i am using grunt concurrent grunt.initConfig({ concurrent: { options: { logConcurrentOutput: true }, prod: { tasks:…
Angu
  • 862
  • 2
  • 13
  • 32
3
votes
1 answer

Sails.js run asset pipeline on js file change

I understand when I run sails lift that the grunt tasks will run and put my assets in .tmp/. However, if I'm doing local development and want to make changes to some files in assets/js and refresh the page in the browser and see the updated code it…
jinglesthula
  • 4,446
  • 4
  • 45
  • 79
3
votes
1 answer

Changing folder structure during npm publish

I have a node module with the following structure: src - folder1 - folder2 - ... dist (Will be generated by grunt) - folder1 - folder2 I want to publish only the contents of dist folder to npm registry. In my package.json, I am using the files…
Varunkumar Nagarajan
  • 1,807
  • 1
  • 24
  • 43
3
votes
1 answer

Trigger grunt task after browserify/watchify run

I'm trying to build my JS-bundle via grunt/browserify. I also use grunt for scss compile. For that I use grunt-watch to trigger scss compile on changes. I wanted the same behavior for JS-browserify. grunt-browserify comes with the "watch" option,…
huehnerhose
  • 615
  • 9
  • 26
3
votes
1 answer

Coverage.json not generated with Jasmine RequireJS and Istanbul in grunt

I have trying to generate coverage report based from grunt using grunt-template-jasmine-istanbul. The Specs are executed correctly but no coverage report is generated. Below is my code in the config file: var name = 'SuperAccounts'; //*** Configure…
Arun Kumar
  • 907
  • 13
  • 33
3
votes
1 answer

How to serve angular app with grunt?

I am an angular newbie and trying to run grunt with angular. My grunt file looks like this, which plugin or module do I need to add to serve an angular app? I tried grunt-contrib-watch: module.exports = function(grunt) { grunt.initConfig({ …
bier hier
  • 20,970
  • 42
  • 97
  • 166
3
votes
1 answer

Grunt dynamic dest location sass

This could possibly be a repeat question but I couldn't figure out a solution for my requirement I am trying to create a sass grunt task which can generate css files in a dynamic location. Here is my structure /components --> xyz --> scss …
Srikanth Kondaparthy
  • 3,247
  • 3
  • 16
  • 19
1 2 3
99
100