{"action":"opened","number":103,"pull_request":{"url":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103","id":51709786,"html_url":"https://github.com/sass-eyeglass/eyeglass/pull/103","diff_url":"https://github.com/sass-eyeglass/eyeglass/pull/103.diff","patch_url":"https://github.com/sass-eyeglass/eyeglass/pull/103.patch","issue_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/103","number":103,"state":"open","locked":false,"title":"add assets option interface","user":{"login":"eoneill","id":552715,"avatar_url":"https://avatars.githubusercontent.com/u/552715?v=3","gravatar_id":"","url":"https://api.github.com/users/eoneill","html_url":"https://github.com/eoneill","followers_url":"https://api.github.com/users/eoneill/followers","following_url":"https://api.github.com/users/eoneill/following{/other_user}","gists_url":"https://api.github.com/users/eoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/eoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoneill/subscriptions","organizations_url":"https://api.github.com/users/eoneill/orgs","repos_url":"https://api.github.com/users/eoneill/repos","events_url":"https://api.github.com/users/eoneill/events{/privacy}","received_events_url":"https://api.github.com/users/eoneill/received_events","type":"User","site_admin":false},"body":"Per suggestion in #46, this allows passing assets via the eyeglass options.\r\n\r\n```js\r\nvar options = eyeglass({\r\n  ...\r\n  eyeglass: {\r\n    assets: [\r\n      [/* srcPath */, /* opts */],\r\n      [/* srcPath */, /* opts */],\r\n      ...\r\n    ]\r\n  }\r\n});\r\n```\r\n\r\nThe interface is an array of arrays, where each nested array is passed through as arguments to `AssetCollection#addSource`\r\n\r\n# Example\r\n\r\n## Explicit via `#assets.addSource`\r\n\r\n```js\r\nvar eyeglass = new Eyeglass({\r\n  ...,\r\n  eyeglass: {\r\n    root: __dirname\r\n  }\r\n});\r\neyeglass.assets.addSource(__dirname, { pattern: \"images/**/*.png\" });\r\neyeglass.assets.addSource(__dirname, { pattern: \"fonts/**/*.png\" });\r\n```\r\n\r\n## Implicit via `assets` option\r\n\r\n```js\r\nvar eyeglass = new Eyeglass({\r\n  ...,\r\n  eyeglass: {\r\n    root: __dirname,\r\n    assets: [\r\n      [__dirname, { pattern: \"images/**/*.png\" }],\r\n      [__dirname, { pattern: \"fonts/**/*.png\" }]\r\n    ]\r\n  }\r\n});\r\n```","created_at":"2015-11-24T20:04:06Z","updated_at":"2015-11-24T20:04:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103/commits","review_comments_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103/comments","review_comment_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/103/comments","statuses_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/statuses/55fd79b5477f3be3f7d115a232fd1b3b144f5aa4","head":{"label":"eoneill:assets-as-option","ref":"assets-as-option","sha":"55fd79b5477f3be3f7d115a232fd1b3b144f5aa4","user":{"login":"eoneill","id":552715,"avatar_url":"https://avatars.githubusercontent.com/u/552715?v=3","gravatar_id":"","url":"https://api.github.com/users/eoneill","html_url":"https://github.com/eoneill","followers_url":"https://api.github.com/users/eoneill/followers","following_url":"https://api.github.com/users/eoneill/following{/other_user}","gists_url":"https://api.github.com/users/eoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/eoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoneill/subscriptions","organizations_url":"https://api.github.com/users/eoneill/orgs","repos_url":"https://api.github.com/users/eoneill/repos","events_url":"https://api.github.com/users/eoneill/events{/privacy}","received_events_url":"https://api.github.com/users/eoneill/received_events","type":"User","site_admin":false},"repo":{"id":41328361,"name":"eyeglass","full_name":"eoneill/eyeglass","owner":{"login":"eoneill","id":552715,"avatar_url":"https://avatars.githubusercontent.com/u/552715?v=3","gravatar_id":"","url":"https://api.github.com/users/eoneill","html_url":"https://github.com/eoneill","followers_url":"https://api.github.com/users/eoneill/followers","following_url":"https://api.github.com/users/eoneill/following{/other_user}","gists_url":"https://api.github.com/users/eoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/eoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoneill/subscriptions","organizations_url":"https://api.github.com/users/eoneill/orgs","repos_url":"https://api.github.com/users/eoneill/repos","events_url":"https://api.github.com/users/eoneill/events{/privacy}","received_events_url":"https://api.github.com/users/eoneill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eoneill/eyeglass","description":"NPM Modules for Sass","fork":true,"url":"https://api.github.com/repos/eoneill/eyeglass","forks_url":"https://api.github.com/repos/eoneill/eyeglass/forks","keys_url":"https://api.github.com/repos/eoneill/eyeglass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eoneill/eyeglass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eoneill/eyeglass/teams","hooks_url":"https://api.github.com/repos/eoneill/eyeglass/hooks","issue_events_url":"https://api.github.com/repos/eoneill/eyeglass/issues/events{/number}","events_url":"https://api.github.com/repos/eoneill/eyeglass/events","assignees_url":"https://api.github.com/repos/eoneill/eyeglass/assignees{/user}","branches_url":"https://api.github.com/repos/eoneill/eyeglass/branches{/branch}","tags_url":"https://api.github.com/repos/eoneill/eyeglass/tags","blobs_url":"https://api.github.com/repos/eoneill/eyeglass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eoneill/eyeglass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eoneill/eyeglass/git/refs{/sha}","trees_url":"https://api.github.com/repos/eoneill/eyeglass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eoneill/eyeglass/statuses/{sha}","languages_url":"https://api.github.com/repos/eoneill/eyeglass/languages","stargazers_url":"https://api.github.com/repos/eoneill/eyeglass/stargazers","contributors_url":"https://api.github.com/repos/eoneill/eyeglass/contributors","subscribers_url":"https://api.github.com/repos/eoneill/eyeglass/subscribers","subscription_url":"https://api.github.com/repos/eoneill/eyeglass/subscription","commits_url":"https://api.github.com/repos/eoneill/eyeglass/commits{/sha}","git_commits_url":"https://api.github.com/repos/eoneill/eyeglass/git/commits{/sha}","comments_url":"https://api.github.com/repos/eoneill/eyeglass/comments{/number}","issue_comment_url":"https://api.github.com/repos/eoneill/eyeglass/issues/comments{/number}","contents_url":"https://api.github.com/repos/eoneill/eyeglass/contents/{+path}","compare_url":"https://api.github.com/repos/eoneill/eyeglass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eoneill/eyeglass/merges","archive_url":"https://api.github.com/repos/eoneill/eyeglass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eoneill/eyeglass/downloads","issues_url":"https://api.github.com/repos/eoneill/eyeglass/issues{/number}","pulls_url":"https://api.github.com/repos/eoneill/eyeglass/pulls{/number}","milestones_url":"https://api.github.com/repos/eoneill/eyeglass/milestones{/number}","notifications_url":"https://api.github.com/repos/eoneill/eyeglass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eoneill/eyeglass/labels{/name}","releases_url":"https://api.github.com/repos/eoneill/eyeglass/releases{/id}","created_at":"2015-08-24T21:39:37Z","updated_at":"2015-11-16T18:49:12Z","pushed_at":"2015-11-24T19:53:29Z","git_url":"git://github.com/eoneill/eyeglass.git","ssh_url":"git@github.com:eoneill/eyeglass.git","clone_url":"https://github.com/eoneill/eyeglass.git","svn_url":"https://github.com/eoneill/eyeglass","homepage":null,"size":344,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"sass-eyeglass:master","ref":"master","sha":"b39120649966dd759bef5f7d48db78e6a80598e7","user":{"login":"sass-eyeglass","id":10853331,"avatar_url":"https://avatars.githubusercontent.com/u/10853331?v=3","gravatar_id":"","url":"https://api.github.com/users/sass-eyeglass","html_url":"https://github.com/sass-eyeglass","followers_url":"https://api.github.com/users/sass-eyeglass/followers","following_url":"https://api.github.com/users/sass-eyeglass/following{/other_user}","gists_url":"https://api.github.com/users/sass-eyeglass/gists{/gist_id}","starred_url":"https://api.github.com/users/sass-eyeglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sass-eyeglass/subscriptions","organizations_url":"https://api.github.com/users/sass-eyeglass/orgs","repos_url":"https://api.github.com/users/sass-eyeglass/repos","events_url":"https://api.github.com/users/sass-eyeglass/events{/privacy}","received_events_url":"https://api.github.com/users/sass-eyeglass/received_events","type":"Organization","site_admin":false},"repo":{"id":30313796,"name":"eyeglass","full_name":"sass-eyeglass/eyeglass","owner":{"login":"sass-eyeglass","id":10853331,"avatar_url":"https://avatars.githubusercontent.com/u/10853331?v=3","gravatar_id":"","url":"https://api.github.com/users/sass-eyeglass","html_url":"https://github.com/sass-eyeglass","followers_url":"https://api.github.com/users/sass-eyeglass/followers","following_url":"https://api.github.com/users/sass-eyeglass/following{/other_user}","gists_url":"https://api.github.com/users/sass-eyeglass/gists{/gist_id}","starred_url":"https://api.github.com/users/sass-eyeglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sass-eyeglass/subscriptions","organizations_url":"https://api.github.com/users/sass-eyeglass/orgs","repos_url":"https://api.github.com/users/sass-eyeglass/repos","events_url":"https://api.github.com/users/sass-eyeglass/events{/privacy}","received_events_url":"https://api.github.com/users/sass-eyeglass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sass-eyeglass/eyeglass","description":"NPM Modules for Sass","fork":false,"url":"https://api.github.com/repos/sass-eyeglass/eyeglass","forks_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/forks","keys_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/teams","hooks_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/hooks","issue_events_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/events{/number}","events_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/events","assignees_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/assignees{/user}","branches_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/branches{/branch}","tags_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/tags","blobs_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/git/refs{/sha}","trees_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/statuses/{sha}","languages_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/languages","stargazers_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/stargazers","contributors_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/contributors","subscribers_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/subscribers","subscription_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/subscription","commits_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/commits{/sha}","git_commits_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/git/commits{/sha}","comments_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/comments{/number}","issue_comment_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/comments{/number}","contents_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/contents/{+path}","compare_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/merges","archive_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/downloads","issues_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues{/number}","pulls_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls{/number}","milestones_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/milestones{/number}","notifications_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/labels{/name}","releases_url":"https://api.github.com/repos/sass-eyeglass/eyeglass/releases{/id}","created_at":"2015-02-04T18:21:33Z","updated_at":"2015-11-20T23:35:14Z","pushed_at":"2015-11-24T19:03:44Z","git_url":"git://github.com/sass-eyeglass/eyeglass.git","ssh_url":"git@github.com:sass-eyeglass/eyeglass.git","clone_url":"https://github.com/sass-eyeglass/eyeglass.git","svn_url":"https://github.com/sass-eyeglass/eyeglass","homepage":null,"size":341,"stargazers_count":408,"watchers_count":408,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":16,"forks":24,"open_issues":16,"watchers":408,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103"},"html":{"href":"https://github.com/sass-eyeglass/eyeglass/pull/103"},"issue":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/103"},"comments":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/sass-eyeglass/eyeglass/statuses/55fd79b5477f3be3f7d115a232fd1b3b144f5aa4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":0,"changed_files":2}}