{"id":2845,"date":"2014-02-24T00:41:20","date_gmt":"2014-02-24T00:41:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/24\/grunt-build-not-working-with-bower-installed-components-collection-of-common-programming-errors\/"},"modified":"2014-02-24T00:41:20","modified_gmt":"2014-02-24T00:41:20","slug":"grunt-build-not-working-with-bower-installed-components-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/02\/24\/grunt-build-not-working-with-bower-installed-components-collection-of-common-programming-errors\/","title":{"rendered":"Grunt Build not working with Bower-installed components-Collection of common programming errors"},"content":{"rendered":"<p>If you have installed ui-bootstrap via bower, you will also need to update your <code>karma.conf.js<\/code> in order to make the grunt tests pass.<\/p>\n<p>Add an entry for <code>ui-bootstrap-tpls.min.js<\/code> in the file <code>karma.conf.js<\/code>:<\/p>\n<pre><code>\/\/ list of files \/ patterns to load in the browser\nfiles = [\n  JASMINE,\n  JASMINE_ADAPTER,\n  'app\/components\/angular\/angular.js',\n  'app\/components\/angular-mocks\/angular-mocks.js',\n  'app\/components\/angular-bootstrap\/ui-bootstrap-tpls.js',\n  'app\/scripts\/*.js',\n  'app\/scripts\/**\/*.js',\n  'test\/mock\/**\/*.js',\n  'test\/spec\/**\/*.js'\n];\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you have installed ui-bootstrap via bower, you will also need to update your karma.conf.js in order to make the grunt tests pass. Add an entry for ui-bootstrap-tpls.min.js in the file karma.conf.js: \/\/ list of files \/ patterns to load in the browser files = [ JASMINE, JASMINE_ADAPTER, &#8216;app\/components\/angular\/angular.js&#8217;, &#8216;app\/components\/angular-mocks\/angular-mocks.js&#8217;, &#8216;app\/components\/angular-bootstrap\/ui-bootstrap-tpls.js&#8217;, &#8216;app\/scripts\/*.js&#8217;, &#8216;app\/scripts\/**\/*.js&#8217;, &#8216;test\/mock\/**\/*.js&#8217;, &#8216;test\/spec\/**\/*.js&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2845","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2845"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2845\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}