{"action":"created","issue":{"url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/109","labels_url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/109/comments","events_url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/109/events","html_url":"https://github.com/tonyganch/gonzales-pe/pull/109","id":111706106,"number":109,"title":"[api] client side Javascript support","user":{"login":"fredericlb","id":326828,"avatar_url":"https://avatars.githubusercontent.com/u/326828?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericlb","html_url":"https://github.com/fredericlb","followers_url":"https://api.github.com/users/fredericlb/followers","following_url":"https://api.github.com/users/fredericlb/following{/other_user}","gists_url":"https://api.github.com/users/fredericlb/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericlb/subscriptions","organizations_url":"https://api.github.com/users/fredericlb/orgs","repos_url":"https://api.github.com/users/fredericlb/repos","events_url":"https://api.github.com/users/fredericlb/events{/privacy}","received_events_url":"https://api.github.com/users/fredericlb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-15T20:56:22Z","updated_at":"2015-10-16T14:54:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tonyganch/gonzales-pe/pulls/109","html_url":"https://github.com/tonyganch/gonzales-pe/pull/109","diff_url":"https://github.com/tonyganch/gonzales-pe/pull/109.diff","patch_url":"https://github.com/tonyganch/gonzales-pe/pull/109.patch"},"body":"Hi,\r\n\r\nI've added a script and made some changes to the library to allow compilation for client side Javascript. I had to : \r\n\r\n- Add another way to add syntax modules to the library (conditional requires are not supported when compiling through Webpack) ;\r\n- Add a specific file for syntax inclusion (```get-syntax.node.js``` - this file is only read by NodeJS but is ignore by Webpack) ;\r\n- Add an index to each module to ease the import process ;\r\n\r\nI also added a paragraph in the README for those who are interested in compiling these files.\r\n\r\nTests are passing. I haven't found a way to make it easier (ie. changing less files) but it works and it does not change the way the library works for NodeJS."},"comment":{"url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/comments/148738533","html_url":"https://github.com/tonyganch/gonzales-pe/pull/109#issuecomment-148738533","issue_url":"https://api.github.com/repos/tonyganch/gonzales-pe/issues/109","id":148738533,"user":{"login":"tonyganch","id":872004,"avatar_url":"https://avatars.githubusercontent.com/u/872004?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyganch","html_url":"https://github.com/tonyganch","followers_url":"https://api.github.com/users/tonyganch/followers","following_url":"https://api.github.com/users/tonyganch/following{/other_user}","gists_url":"https://api.github.com/users/tonyganch/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyganch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyganch/subscriptions","organizations_url":"https://api.github.com/users/tonyganch/orgs","repos_url":"https://api.github.com/users/tonyganch/repos","events_url":"https://api.github.com/users/tonyganch/events{/privacy}","received_events_url":"https://api.github.com/users/tonyganch/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:54:25Z","updated_at":"2015-10-16T14:54:25Z","body":"Okay, I haven't thought of client-side support, but I will.\r\nCan we start with tests please?\r\nYou can duplicate [test/parser.js](https://github.com/tonyganch/gonzales-pe/blob/dev/test/parser.js) and just modify the first line to use web-built version."}}