{"action":"created","issue":{"url":"https://api.github.com/repos/lacona/lacona/issues/9","labels_url":"https://api.github.com/repos/lacona/lacona/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lacona/lacona/issues/9/comments","events_url":"https://api.github.com/repos/lacona/lacona/issues/9/events","html_url":"https://github.com/lacona/lacona/issues/9","id":124218509,"number":9,"title":"need bare-bone example","user":{"login":"gasolin","id":748808,"avatar_url":"https://avatars.githubusercontent.com/u/748808?v=3","gravatar_id":"","url":"https://api.github.com/users/gasolin","html_url":"https://github.com/gasolin","followers_url":"https://api.github.com/users/gasolin/followers","following_url":"https://api.github.com/users/gasolin/following{/other_user}","gists_url":"https://api.github.com/users/gasolin/gists{/gist_id}","starred_url":"https://api.github.com/users/gasolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasolin/subscriptions","organizations_url":"https://api.github.com/users/gasolin/orgs","repos_url":"https://api.github.com/users/gasolin/repos","events_url":"https://api.github.com/users/gasolin/events{/privacy}","received_events_url":"https://api.github.com/users/gasolin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lacona/lacona/labels/documentation","name":"documentation","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T14:28:47Z","updated_at":"2016-01-31T22:09:04Z","closed_at":null,"body":"lacona looks cool but the [basic usage example](https://github.com/lacona/lacona#usage-example) seems need some react knowledge to execute the script.\r\n\r\nFirst, the script need both lacona, lacona-parse, \r\n`npm install lacona lacona-parse`\r\n\r\nthen it need some tooling like (babel-cli, transform-react-jsx plugin) to execute the script\r\n`npm install babel-cli transform-react-jsx`\r\n\r\nRunning command\r\n\r\n```\r\nbabel --optional runtime --stage 0 --plugins transform-react-jsx  main.jsx > main.js\r\n```\r\n\r\ncan translate jsx to dom-like syntax, but I still got error with lacona\r\n \r\n```\r\n<project folder>/node_modules/lacona/lib/parser.js:61\r\n        throw _iteratorError;\r\n        ^\r\nError\r\n    at Object.<anonymous> (/home/gasolin/Document/laca/node_modules/lacona/lib/error.js:12:25)\r\n    at Module._compile (module.js:435:26)\r\n    at Object.Module._extensions..js (module.js:442:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at Object.<anonymous> (/home/gasolin/Document/laca/node_modules/lacona/lib/descriptor.js:28:14)\r\n    at Module._compile (module.js:435:26)\r\n    at Object.Module._extensions..js (module.js:442:10)\r\n```\r\n\r\nIt will be helpful to setup a bare-bone example (or a sample repo), so people who is new to those tooling can try lacona with less burden.\r\n"},"comment":{"url":"https://api.github.com/repos/lacona/lacona/issues/comments/177631755","html_url":"https://github.com/lacona/lacona/issues/9#issuecomment-177631755","issue_url":"https://api.github.com/repos/lacona/lacona/issues/9","id":177631755,"user":{"login":"bradvogel","id":821706,"avatar_url":"https://avatars.githubusercontent.com/u/821706?v=3","gravatar_id":"","url":"https://api.github.com/users/bradvogel","html_url":"https://github.com/bradvogel","followers_url":"https://api.github.com/users/bradvogel/followers","following_url":"https://api.github.com/users/bradvogel/following{/other_user}","gists_url":"https://api.github.com/users/bradvogel/gists{/gist_id}","starred_url":"https://api.github.com/users/bradvogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradvogel/subscriptions","organizations_url":"https://api.github.com/users/bradvogel/orgs","repos_url":"https://api.github.com/users/bradvogel/repos","events_url":"https://api.github.com/users/bradvogel/events{/privacy}","received_events_url":"https://api.github.com/users/bradvogel/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T22:09:04Z","updated_at":"2016-01-31T22:09:04Z","body":"Here's an example using basic es5: https://gist.github.com/bradvogel/9759b3fe50828ad6bae8"}}