{"action":"created","issue":{"url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/8","labels_url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/8/comments","events_url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/8/events","html_url":"https://github.com/cthrax/gulp-bower-normalize/issues/8","id":71896270,"number":8,"title":"Add some common normalizations","user":{"login":"Koed00","id":3934261,"avatar_url":"https://avatars.githubusercontent.com/u/3934261?v=3","gravatar_id":"","url":"https://api.github.com/users/Koed00","html_url":"https://github.com/Koed00","followers_url":"https://api.github.com/users/Koed00/followers","following_url":"https://api.github.com/users/Koed00/following{/other_user}","gists_url":"https://api.github.com/users/Koed00/gists{/gist_id}","starred_url":"https://api.github.com/users/Koed00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Koed00/subscriptions","organizations_url":"https://api.github.com/users/Koed00/orgs","repos_url":"https://api.github.com/users/Koed00/repos","events_url":"https://api.github.com/users/Koed00/events{/privacy}","received_events_url":"https://api.github.com/users/Koed00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T14:48:14Z","updated_at":"2015-04-29T16:55:57Z","closed_at":null,"body":"Most libraries expect their fonts and images to live in a common folder, not in folders based on their extension.  I find myself writing the same overwrites over and over again. \r\nWould it benefit the plugin to support these normalization's as standard?\r\n\r\n```\r\n      \"normalize\": {\r\n        \"fonts\": [\r\n          \"*.otf\",\r\n          \"*.eot\",\r\n          \"*.svg\",\r\n          \"*.ttf\",\r\n          \"*.woff\",\r\n          \"*.woff2\"\r\n         ]\r\n    }\r\n```\r\n```\r\n   \"normalize\": {\r\n    \"img\": [\r\n       \"*.gif\",\r\n       \"*.png\",\r\n       \"*.jpg\",\r\n      ]\r\n    }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/comments/97503707","html_url":"https://github.com/cthrax/gulp-bower-normalize/issues/8#issuecomment-97503707","issue_url":"https://api.github.com/repos/cthrax/gulp-bower-normalize/issues/8","id":97503707,"user":{"login":"cthrax","id":102173,"avatar_url":"https://avatars.githubusercontent.com/u/102173?v=3","gravatar_id":"","url":"https://api.github.com/users/cthrax","html_url":"https://github.com/cthrax","followers_url":"https://api.github.com/users/cthrax/followers","following_url":"https://api.github.com/users/cthrax/following{/other_user}","gists_url":"https://api.github.com/users/cthrax/gists{/gist_id}","starred_url":"https://api.github.com/users/cthrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cthrax/subscriptions","organizations_url":"https://api.github.com/users/cthrax/orgs","repos_url":"https://api.github.com/users/cthrax/repos","events_url":"https://api.github.com/users/cthrax/events{/privacy}","received_events_url":"https://api.github.com/users/cthrax/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T16:55:57Z","updated_at":"2015-04-29T16:55:57Z","body":"That's a very interesting idea. So providing some method to add constants to the configuration file so that  common options are included.\r\n\r\nSomething like:\r\n\r\n```javascript\r\n\"normalize\": {\r\n   \"img\": [ \"_normalize_img_defaults_\"]\r\n}\r\n```\r\n\r\nWhich will expand to some predefined set of image wildcards. And in the case you mention of images and fonts together, you could have:\r\n\r\n```javascript\r\n\"normalize\": {\r\n   \"img\": [ \"_normalize_img_defaults_\", \"_normalize_font_defaults_\"]\r\n}\r\n```\r\n\r\nYou'd still be writing the same overrides, but the amount of writing has been reduced.\r\n\r\nAs to the statement about not organizing by filetype, the expectation for the use of this plugin is that assets are moved as part of a build process. So if images, css and fonts are supposed to be in the same folder, then there is a copy command that takes care of that. The behavior can obviously be customized to your need of putting images, css and fonts into the same folder as outlined above, but I don't plan on making that a default behavior."}}