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...
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 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'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...
I have a couple of products that started off with the yeoman angular generator, and it has been a pretty good dev setup. One thing I haven't been able to find a good solution for is setting a development/production mode flag.  Naturally we use a...
We're going through refactoring the code on a very large site. I would like to enforce linting on any files that get changed, but ignore the rest (as many of them will end up being removed so it's a waste of time to tidy them up).  I would li...
I have a Gruntfile.coffee that has a grunt-contrib-coffee configuration like this:  coffee:   compile:     files:       'public/assets/application.js': [           'multiple/files' #, ...       ]     options:       bare: true   The Pr...
I have struggled a few days to figure this out,, but finally I need your help today. my repo: https://github.com/seoyoochan/bitsnut-web    what I want to achieve:  - Load and optimize r.js  - Write bower tasks for RequireJS and r.js :    tasks are:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.