{"action":"created","issue":{"url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/6","labels_url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/6/comments","events_url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/6/events","html_url":"https://github.com/kenhkan/angular-templates-brunch/issues/6","id":94592045,"number":6,"title":"Is angular-templates-brunch only working with commonJs enabled?","user":{"login":"AWolf81","id":3046542,"avatar_url":"https://avatars.githubusercontent.com/u/3046542?v=3","gravatar_id":"","url":"https://api.github.com/users/AWolf81","html_url":"https://github.com/AWolf81","followers_url":"https://api.github.com/users/AWolf81/followers","following_url":"https://api.github.com/users/AWolf81/following{/other_user}","gists_url":"https://api.github.com/users/AWolf81/gists{/gist_id}","starred_url":"https://api.github.com/users/AWolf81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWolf81/subscriptions","organizations_url":"https://api.github.com/users/AWolf81/orgs","repos_url":"https://api.github.com/users/AWolf81/repos","events_url":"https://api.github.com/users/AWolf81/events{/privacy}","received_events_url":"https://api.github.com/users/AWolf81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-12T19:15:27Z","updated_at":"2015-07-13T18:23:33Z","closed_at":null,"body":"In my `brunch.config` I have these lines:\r\n    \r\n    modules:\r\n        wrapper: false\r\n        definition: false\r\n\r\nWhich deactivates any wrapping of my files and I need that because I'm using a jQuery library that's difficult to wrap into AMD/commonjs modules. So I decided to use globals for jQuery and Angular.\r\n\r\nBut it seems that `angular-templates-brunch` requires `commonJS` to work, is that right or am I doing something wrong? How can I make it work?\r\n\r\nAs a work-around I'm wrapping the data from preprocessor into a comment, so it can be extracted later.\r\n\r\nPlease have a look at this [gist](https://gist.github.com/AWolf81/c777e919f7d50f186d56).\r\n\r\nWith-out my code addition im getting in the browser console. The error `SyntaxError: expected expression, got '<'.`.\r\n\r\nThat's because the html text from the preprocessor gets directly inserted with-out any wrapping into the js file of the template. "},"comment":{"url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/comments/121014327","html_url":"https://github.com/kenhkan/angular-templates-brunch/issues/6#issuecomment-121014327","issue_url":"https://api.github.com/repos/kenhkan/angular-templates-brunch/issues/6","id":121014327,"user":{"login":"kenhkan","id":1072977,"avatar_url":"https://avatars.githubusercontent.com/u/1072977?v=3","gravatar_id":"","url":"https://api.github.com/users/kenhkan","html_url":"https://github.com/kenhkan","followers_url":"https://api.github.com/users/kenhkan/followers","following_url":"https://api.github.com/users/kenhkan/following{/other_user}","gists_url":"https://api.github.com/users/kenhkan/gists{/gist_id}","starred_url":"https://api.github.com/users/kenhkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenhkan/subscriptions","organizations_url":"https://api.github.com/users/kenhkan/orgs","repos_url":"https://api.github.com/users/kenhkan/repos","events_url":"https://api.github.com/users/kenhkan/events{/privacy}","received_events_url":"https://api.github.com/users/kenhkan/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T18:23:33Z","updated_at":"2015-07-13T18:23:33Z","body":"If I remember correctly, it used to be the case it *wouldn't* work unless it's CommonJS. Then again, it was when AngularJS was a baby. Do you want to make a PR that would make it jQuery-compatible without breaking CommonJS support?"}}