{"action":"created","issue":{"url":"https://api.github.com/repos/TrueCar/gluestick/issues/13","labels_url":"https://api.github.com/repos/TrueCar/gluestick/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/TrueCar/gluestick/issues/13/comments","events_url":"https://api.github.com/repos/TrueCar/gluestick/issues/13/events","html_url":"https://github.com/TrueCar/gluestick/pull/13","id":125660295,"number":13,"title":"remove default params from cli.js","user":{"login":"joyvuu-dave","id":68452,"avatar_url":"https://avatars.githubusercontent.com/u/68452?v=3","gravatar_id":"","url":"https://api.github.com/users/joyvuu-dave","html_url":"https://github.com/joyvuu-dave","followers_url":"https://api.github.com/users/joyvuu-dave/followers","following_url":"https://api.github.com/users/joyvuu-dave/following{/other_user}","gists_url":"https://api.github.com/users/joyvuu-dave/gists{/gist_id}","starred_url":"https://api.github.com/users/joyvuu-dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyvuu-dave/subscriptions","organizations_url":"https://api.github.com/users/joyvuu-dave/orgs","repos_url":"https://api.github.com/users/joyvuu-dave/repos","events_url":"https://api.github.com/users/joyvuu-dave/events{/privacy}","received_events_url":"https://api.github.com/users/joyvuu-dave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cybrass","id":59530,"avatar_url":"https://avatars.githubusercontent.com/u/59530?v=3","gravatar_id":"","url":"https://api.github.com/users/cybrass","html_url":"https://github.com/cybrass","followers_url":"https://api.github.com/users/cybrass/followers","following_url":"https://api.github.com/users/cybrass/following{/other_user}","gists_url":"https://api.github.com/users/cybrass/gists{/gist_id}","starred_url":"https://api.github.com/users/cybrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybrass/subscriptions","organizations_url":"https://api.github.com/users/cybrass/orgs","repos_url":"https://api.github.com/users/cybrass/repos","events_url":"https://api.github.com/users/cybrass/events{/privacy}","received_events_url":"https://api.github.com/users/cybrass/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-01-08T17:53:12Z","updated_at":"2016-01-08T21:44:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TrueCar/gluestick/pulls/13","html_url":"https://github.com/TrueCar/gluestick/pull/13","diff_url":"https://github.com/TrueCar/gluestick/pull/13.diff","patch_url":"https://github.com/TrueCar/gluestick/pull/13.patch"},"body":"Version 0.1.8 of gluestick generates an app that can't be started:\r\n\r\n```\r\n$ npm start\r\n\r\n> AppName@1.0.0 start /Users/a/FooApp\r\n> gluestick start\r\n\r\n/Users/a/FooApp/node_modules/gluestick/src/cli.js:90\r\nfunction startAll(withoutTests=false) {\r\n                              ^\r\n\r\nSyntaxError: Unexpected token =\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:374:25)\r\n    at Module._extensions..js (module.js:405:10)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/a/FooApp/node_modules/babel-core/lib/api/register/node.js:214:7)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Module.require (module.js:354:17)\r\n    at require (internal/module.js:12:17)\r\n    at Object.<anonymous> (/Users/a/FooApp/node_modules/gluestick/src/cli-harmony.js:17:1)\r\n    at Module._compile (module.js:398:26)\r\n```\r\n\r\nThis is due to the fact that default params haven't yet landed in node: https://github.com/nodejs/node/issues/3070\r\n\r\nThis pull request puts the default value within the function and re-generates the build files. Writing a test for this is beyond my testing abilities, but I did generate and start an app with this branch on my machine and confirmed it works."},"comment":{"url":"https://api.github.com/repos/TrueCar/gluestick/issues/comments/170136612","html_url":"https://github.com/TrueCar/gluestick/pull/13#issuecomment-170136612","issue_url":"https://api.github.com/repos/TrueCar/gluestick/issues/13","id":170136612,"user":{"login":"joyvuu-dave","id":68452,"avatar_url":"https://avatars.githubusercontent.com/u/68452?v=3","gravatar_id":"","url":"https://api.github.com/users/joyvuu-dave","html_url":"https://github.com/joyvuu-dave","followers_url":"https://api.github.com/users/joyvuu-dave/followers","following_url":"https://api.github.com/users/joyvuu-dave/following{/other_user}","gists_url":"https://api.github.com/users/joyvuu-dave/gists{/gist_id}","starred_url":"https://api.github.com/users/joyvuu-dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyvuu-dave/subscriptions","organizations_url":"https://api.github.com/users/joyvuu-dave/orgs","repos_url":"https://api.github.com/users/joyvuu-dave/repos","events_url":"https://api.github.com/users/joyvuu-dave/events{/privacy}","received_events_url":"https://api.github.com/users/joyvuu-dave/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T21:44:40Z","updated_at":"2016-01-08T21:44:40Z","body":"@cybass, that doesn't seem to work either, and in fact I'm not able to generate an app with v0.1.8 either:\r\n\r\n```\r\n$ gluestick new BarApp\r\n/Users/a/n/lib/node_modules/gluestick/src/cli.js:90\r\nfunction startAll(withoutTests=false) {\r\n                              ^\r\n\r\nSyntaxError: Unexpected token =\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:374:25)\r\n    at Module._extensions..js (module.js:405:10)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/a/n/lib/node_modules/gluestick/node_modules/babel-core/lib/api/register/node.js:214:7)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Module.require (module.js:354:17)\r\n    at require (internal/module.js:12:17)\r\n    at Object.<anonymous> (/Users/a/n/lib/node_modules/gluestick/src/cli-harmony.js:17:1)\r\n    at Module._compile (module.js:398:26)\r\n```"}}