{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/jpm/issues/160","labels_url":"https://api.github.com/repos/mozilla/jpm/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/jpm/issues/160/comments","events_url":"https://api.github.com/repos/mozilla/jpm/issues/160/events","html_url":"https://github.com/mozilla/jpm/issues/160","id":41589182,"number":160,"title":"observations in latest master, tesing \"jpm init\"","user":{"login":"anaran","id":621600,"avatar_url":"https://avatars.githubusercontent.com/u/621600?v=3","gravatar_id":"","url":"https://api.github.com/users/anaran","html_url":"https://github.com/anaran","followers_url":"https://api.github.com/users/anaran/followers","following_url":"https://api.github.com/users/anaran/following{/other_user}","gists_url":"https://api.github.com/users/anaran/gists{/gist_id}","starred_url":"https://api.github.com/users/anaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anaran/subscriptions","organizations_url":"https://api.github.com/users/anaran/orgs","repos_url":"https://api.github.com/users/anaran/repos","events_url":"https://api.github.com/users/anaran/events{/privacy}","received_events_url":"https://api.github.com/users/anaran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/jpm/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mozilla/jpm/labels/good+first+bug","name":"good first bug","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-31T15:43:38Z","updated_at":"2015-01-05T02:38:52Z","closed_at":null,"body":"Using latest\r\n\r\n```\r\n*   commit ed278ae (HEAD, master)\r\n|\\  Merge: 0bc72ea d0f0003\r\n| | Author: Erik Vold <evold@mozilla.com>\r\n| | Date:   Tue Aug 26 07:34:27 2014 -0700\r\n| |\r\n| |     Merge branch 'master' of github.com:mozilla/jpm into 147 r=@erikvold\r\n| |\r\n| |     Conflicts:\r\n| |             package.json\r\n| |\r\n| *   commit d0f0003\r\n```\r\n\r\nset up with\r\n\r\n```\r\ncd jpm\r\nnpm install\r\nnpm link\r\n```\r\n\r\n# Prompting Issues\r\n\r\n`jpm init` defaults and generated files seem inconsistent:\r\n\r\n`name: (IssuePilot)`\r\n- [ ] It should be `issuepilot`, which is what ends up in the generated `package.json`\r\n\r\nNo id is prompted for, nor generated\r\n- [ ] It should prompt for an id\r\n- [ ] It should offer a default for an id value\r\n\r\n# Generation Issues\r\n\r\nGenerated file `test/test-index.js` contains `var main = require(\"../\");`\r\n- [ ] It should explicitly require `../index.js` with `var main = require(\"../index\");`\r\n\r\nI'll update above list from your feedback.\r\n\r\n# Generated package.json\r\n\r\n```\r\n{\r\n  \"title\": \"Issue Pilot\",\r\n  \"name\": \"issuepilot\",\r\n  \"version\": \"0.0.0\",\r\n  \"description\": \"Report issues for supported projects, based on content extracted from webpage.\",\r\n  \"main\": \"index.js\",\r\n  \"author\": \"anaran\",\r\n  \"engines\": {\r\n    \"firefox\": \">=33.0a1\",\r\n    \"fennec\": \">=33.0a1\"\r\n  },\r\n  \"license\": \"MIT\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/jpm/issues/comments/68662148","html_url":"https://github.com/mozilla/jpm/issues/160#issuecomment-68662148","issue_url":"https://api.github.com/repos/mozilla/jpm/issues/160","id":68662148,"user":{"login":"erikvold","id":27379,"avatar_url":"https://avatars.githubusercontent.com/u/27379?v=3","gravatar_id":"","url":"https://api.github.com/users/erikvold","html_url":"https://github.com/erikvold","followers_url":"https://api.github.com/users/erikvold/followers","following_url":"https://api.github.com/users/erikvold/following{/other_user}","gists_url":"https://api.github.com/users/erikvold/gists{/gist_id}","starred_url":"https://api.github.com/users/erikvold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikvold/subscriptions","organizations_url":"https://api.github.com/users/erikvold/orgs","repos_url":"https://api.github.com/users/erikvold/repos","events_url":"https://api.github.com/users/erikvold/events{/privacy}","received_events_url":"https://api.github.com/users/erikvold/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T02:38:52Z","updated_at":"2015-01-05T02:38:52Z","body":"the `id` is not required, so I don't think prompting for an `id` is a good idea, nor providing a default one.  We are actually trying to encourage npm style `package.json` files."}}