{"action":"reopened","issue":{"url":"https://api.github.com/repos/glynnbird/couchmigrate/issues/1","labels_url":"https://api.github.com/repos/glynnbird/couchmigrate/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/glynnbird/couchmigrate/issues/1/comments","events_url":"https://api.github.com/repos/glynnbird/couchmigrate/issues/1/events","html_url":"https://github.com/glynnbird/couchmigrate/issues/1","id":99398269,"number":1,"title":"Support JS Design Documents","user":{"login":"jedrichards","id":1078571,"avatar_url":"https://avatars.githubusercontent.com/u/1078571?v=3","gravatar_id":"","url":"https://api.github.com/users/jedrichards","html_url":"https://github.com/jedrichards","followers_url":"https://api.github.com/users/jedrichards/followers","following_url":"https://api.github.com/users/jedrichards/following{/other_user}","gists_url":"https://api.github.com/users/jedrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/jedrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedrichards/subscriptions","organizations_url":"https://api.github.com/users/jedrichards/orgs","repos_url":"https://api.github.com/users/jedrichards/repos","events_url":"https://api.github.com/users/jedrichards/events{/privacy}","received_events_url":"https://api.github.com/users/jedrichards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T09:42:42Z","updated_at":"2015-08-06T10:02:16Z","closed_at":null,"body":"Do you think it makes sense to support importing of valid JavaScript design documents too? That way the design documents could take advantage of linting or other automated checks that happen to the rest of your source code. Additionally it would make the formatting of functions less tiresome.\r\n\r\n```js\r\nmodule.exports = {\r\n  _id: '_design/fetch',\r\n  views: {\r\n    byx: {\r\n      map: (function (doc) {\r\n        emit(doc.x, doc.y);\r\n      }).toString(),\r\n      reduce: '_stats'\r\n    }\r\n  },\r\n  language: 'javascript'\r\n}\r\n```\r\n\r\n```sh\r\ncouchmigrate --dd dd.js --db mydatabase\r\n```\r\n\r\nOr do you handle this some other way? Would be happy to put together a PR ...\r\n"}}