{"action":"created","issue":{"url":"https://api.github.com/repos/electronjs/electron-compilers/issues/23","labels_url":"https://api.github.com/repos/electronjs/electron-compilers/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/electronjs/electron-compilers/issues/23/comments","events_url":"https://api.github.com/repos/electronjs/electron-compilers/issues/23/events","html_url":"https://github.com/electronjs/electron-compilers/pull/23","id":125668590,"number":23,"title":"Add support for Sass/SCSS and CJSX","user":{"login":"ezekg","id":6979737,"avatar_url":"https://avatars.githubusercontent.com/u/6979737?v=3","gravatar_id":"","url":"https://api.github.com/users/ezekg","html_url":"https://github.com/ezekg","followers_url":"https://api.github.com/users/ezekg/followers","following_url":"https://api.github.com/users/ezekg/following{/other_user}","gists_url":"https://api.github.com/users/ezekg/gists{/gist_id}","starred_url":"https://api.github.com/users/ezekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezekg/subscriptions","organizations_url":"https://api.github.com/users/ezekg/orgs","repos_url":"https://api.github.com/users/ezekg/repos","events_url":"https://api.github.com/users/ezekg/events{/privacy}","received_events_url":"https://api.github.com/users/ezekg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-08T18:43:36Z","updated_at":"2016-01-08T22:35:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/electronjs/electron-compilers/pulls/23","html_url":"https://github.com/electronjs/electron-compilers/pull/23","diff_url":"https://github.com/electronjs/electron-compilers/pull/23.diff","patch_url":"https://github.com/electronjs/electron-compilers/pull/23.patch"},"body":"In addition to https://github.com/electronjs/electron-compile/pull/55, this pull request adds support for Sass and SCSS compilation via [node-sass](https://github.com/sass/node-sass); used like:\r\n\r\n```jade\r\n-// Include via link tag\r\nlink(rel=\"stylesheet\" type=\"text/sass\" href=\"index.sass\")\r\n\r\n-// Or inline styles\r\nstyle(type=\"text/scss\").\r\n  div {\r\n    display: none;\r\n    \r\n    a {\r\n      display: block;\r\n    }\r\n  }\r\n\r\nstyle(type=\"text/sass\").\r\n  div\r\n    display: none\r\n    \r\n    section\r\n      prop: val\r\n```\r\n\r\nAs well as support for inline CJSX via [coffee-react-transform](https://github.com/jsdf/coffee-react-transform); used like:\r\n\r\n```coffee\r\nCar = React.createClass\r\n  render: ->\r\n    <Vehicle doors={4} locked={isLocked()} data-colour=\"red\" on>\r\n      <Parts.FrontSeat />\r\n      <Parts.BackSeat />\r\n      <p className=\"seat\">Which seat can I take? {@props?.seat or 'none'}</p>\r\n      {# also, this is a comment }\r\n    </Vehicle>\r\n```\r\n\r\nAlso via inline script tag:\r\n```jade\r\nscript(type=\"text/cjsx\").\r\n  render: -> <div {... this.props}>hello</div>\r\n```\r\n\r\nLet me know if you'd like me to break these up. I've tested them locally via `npm link` and they seem to work perfectly. Thanks!"},"comment":{"url":"https://api.github.com/repos/electronjs/electron-compilers/issues/comments/170146697","html_url":"https://github.com/electronjs/electron-compilers/pull/23#issuecomment-170146697","issue_url":"https://api.github.com/repos/electronjs/electron-compilers/issues/23","id":170146697,"user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T22:35:31Z","updated_at":"2016-01-08T22:35:31Z","body":"@ezekg Being able to add custom compilers is :gem: but we have to figure out how to handle this mime-types bizness. Shouldn't be so bad though"}}