Note: This question is only relevant for Grunt 0.3.x and has been left for reference. For help with the latest Grunt 1.x release please see my comment below this question.  I'm currently trying to use Grunt.js to setup an automatic build proces...
I have installed the grunt task grunt-contrib-copy. I embedd it in my Gruntfile.js and load the task via grunt.loadNpmTasks('grunt-contrib-copy');.   Currently I use following configuration to create a folder with a subset of my js files/fold...
I am trying to set up my grunt.js file so it only runs the min task when running on my production server - when running on my local dev server I don't want to min my code with every change as it is unnecessary.  Any ideas on how grunt.js can diff...
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 file in question...  However, what I do want...
I started an Angular.js app with Yeoman's yo angular that includes Karma testing. Then, the grunt test reasonably failed because Karma can't find any browsers. (The browsers has not been set in the app's node_modules/karma config file.)...
In development we test the unminified css files. On build we compress and combine them. I would like to then remove the uncompressed css link elements between the first two comments, and uncomment the link to the generated combined.min.css file. Any...
I am unable to get grunt connect to use the port that I specify in the options.  In my grunt file is the following configuration  connect: {         options: {             port: 9000,             hostname: '0.0.0.0'         },         test: {...
I am looking for a better glob pattern for usemin, i want to to find all .js files but exclude the .spec.js files. I have the following solution so far.  <script src="components/**/*(.js|!(*.spec.js|*.scss))"></script>   The solut...
I have the following grunt concat task. How can I make concat ignore all minified files? This doesn't work.  concat: {     js: {         src:  [              '<%= globalConfig.bar %>',              '<%= globalConfig.foo %>...
I've been exploring Ember.js, along with Grunt.js but I can't understand how Ember.js is able to find and use precompiled Handlebars templates. Right now my Gruntfile.js looks like this:  module.exports = function(grunt) {  // Project configu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.