Release one minified .js file with bower and grunt <p>I'm struggling with the release of my reusable bower package. I would like that my "customers" would get only one file containing all necessary stuff when they install my package with bower and I'd prefer it minified. For example these guys <a href="https://github.com/angular-ui/ui-grid" rel="nofollow">https://github.com/angular-ui/ui-grid</a> do not have any ui-grid.js on the root of their repo but when I install it with bower then it comes with one simple file (or two when counting minified files). Obviously I don't want to commit the templateCached-concatted-minified .js file to my git repo. I've been trying different option in the "main" attribute of bower.json file. For example "dest/reusable-component.min.js" and "reusable-component.min.js". My repo has "src" and "test" folders, no css and the bower intall brings "src" but no signs of "reusable-component.min.js". Could you guys help me a bit? I would appreciate that.</p> <p>bower.json</p> <pre><code>{ "name": "reusable-component", "description": "I hope this will be good", "version": "0.0.1", "homepage": "", "license": "MIT", "private": true, "main":["dest/reusable-component.js"], "ignore": [ "node_modules", "bower_components", "test" ], "dependencies": { "angular": "1.5.1", "angular-mocks": "1.5.1", "jquery": "2.1.1", "bootstrap": "3.1.1", "angular-route": "1.5.1", "angular-resource": "1.5.1", "angular-bootstrap": "0.14.3", "ng-lodash": "0.4.0" } } </code></pre> <p>Gruntfile.js</p> <pre><code>(function() { module.exports = function(grunt) { grunt.initConfig( { ngtemplates : { 'reusable-component' : { src : 'src/**/*.html', dest : 'temp/templates.js' } }, concat: { options: { separator: ';' }, dist: { src: ['src/**/*.js'], dest: 'temp/built.js' } }, uglify : { my_target : { files : { 'dest/reusable-component.min.js' : ['temp/**/*.js'] } }, options : { banner : '/*! &lt;%= pkg.name %&gt; - v&lt;%= pkg.version %&gt; - ' + '&lt;%= grunt.template.today("yyyy-mm-dd") %&gt; */' } }, pkg : { name : "reusable-component", "version" : "0.0.1" } } ); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-angular-templates'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.registerTask('default', ['ngtemplates', 'concat', 'uglify']); }; }()); </code></pre> <p>package.json</p> <pre><code>"grunt": "^0.4.5", "grunt-angular-templates": "^1.0.3", "grunt-contrib-concat": "^1.0.0", "grunt-contrib-uglify": "^1.0.1", </code></pre>