Flatten out dist folder structure and use normalized naming convention

This commit is contained in:
MannyC 2018-03-13 15:00:35 +00:00
parent 4f37a0f519
commit e0fb8e780c
2 changed files with 44 additions and 44 deletions

View File

@ -3,18 +3,18 @@
<head>
<meta charset="utf-8">
<title>cryptocurrency-icons example build usage</title>
<link rel="stylesheet" href="dist/32/black.css">
<link rel="stylesheet" href="dist/32/color.css">
<link rel="stylesheet" href="dist/32/icon.css">
<link rel="stylesheet" href="dist/32/white.css">
<link rel="stylesheet" href="dist/128/black.css">
<link rel="stylesheet" href="dist/128/color.css">
<link rel="stylesheet" href="dist/128/icon.css">
<link rel="stylesheet" href="dist/128/white.css">
<link rel="stylesheet" href="dist/svg/black.css">
<link rel="stylesheet" href="dist/svg/color.css">
<link rel="stylesheet" href="dist/svg/icon.css">
<link rel="stylesheet" href="dist/svg/white.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-32-black.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-32-color.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-32-icon.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-32-white.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-128-black.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-128-color.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-128-icon.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-128-white.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-svg-black.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-svg-color.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-svg-icon.css">
<link rel="stylesheet" href="dist/cryptocurrency-icons-svg-white.css">
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@ -54,10 +54,10 @@
</tr>
<tr>
<th> xlink svg </th>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/svg/black.svg#agi"> </use></svg></td>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/svg/color.svg#agi"> </use></svg></td>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/svg/icon.svg#agi"> </use></svg></td>
<td><svg style="background-color: black" class="crypto-icon-128" role="img"><use xlink:href="dist/svg/white.svg#agi"> </use></svg></td>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/cryptocurrency-icons-black.svg#agi"> </use></svg></td>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/cryptocurrency-icons-color.svg#agi"> </use></svg></td>
<td><svg class="crypto-icon-128" role="img"><use xlink:href="dist/cryptocurrency-icons-icon.svg#agi"> </use></svg></td>
<td><svg style="background-color: black" class="crypto-icon-128" role="img"><use xlink:href="dist/cryptocurrency-icons-white.svg#agi"> </use></svg></td>
</tr>
</table>

View File

@ -28,38 +28,38 @@
"minify-images:svg:white": "imagemin 'svg/white/*' --out-dir='build/svg/white'",
"minify-images:svg": "npm run minify-images:svg:black && npm run minify-images:svg:color && npm run minify-images:svg:icon && npm run minify-images:svg:white",
"minify-images": "npm run minify-images:32 && npm run minify-images:128 && npm run minify-images:svg",
"imacss:32:black": "mkdirp dist/32 && imacss 'build/32/black/*' blank_option crypto-icon-32-black > build/32/black.css",
"imacss:32:color": "mkdirp dist/32 && imacss 'build/32/color/*' blank_option crypto-icon-32-color > build/32/color.css",
"imacss:32:icon": "mkdirp dist/32 && imacss 'build/32/icon/*' blank_option crypto-icon-32-icon > build/32/icon.css",
"imacss:32:white": "mkdirp dist/32 && imacss 'build/32/white/*' blank_option crypto-icon-32-white > build/32/white.css",
"postimacss:32:black": "concat defaults.css build/32/black.css > dist/32/black.css",
"postimacss:32:color": "concat defaults.css build/32/color.css > dist/32/color.css",
"postimacss:32:icon": "concat defaults.css build/32/icon.css > dist/32/icon.css",
"postimacss:32:white": "concat defaults.css build/32/white.css > dist/32/white.css",
"imacss:32:black": "mkdirp dist && imacss 'build/32/black/*' blank_option crypto-icon-32-black > build/32/black.css",
"imacss:32:color": "mkdirp dist && imacss 'build/32/color/*' blank_option crypto-icon-32-color > build/32/color.css",
"imacss:32:icon": "mkdirp dist && imacss 'build/32/icon/*' blank_option crypto-icon-32-icon > build/32/icon.css",
"imacss:32:white": "mkdirp dist && imacss 'build/32/white/*' blank_option crypto-icon-32-white > build/32/white.css",
"postimacss:32:black": "concat defaults.css build/32/black.css > dist/cryptocurrency-icons-32-black.css",
"postimacss:32:color": "concat defaults.css build/32/color.css > dist/cryptocurrency-icons-32-color.css",
"postimacss:32:icon": "concat defaults.css build/32/icon.css > dist/cryptocurrency-icons-32-icon.css",
"postimacss:32:white": "concat defaults.css build/32/white.css > dist/cryptocurrency-icons-32-white.css",
"imacss:32": "npm run imacss:32:black && npm run imacss:32:color && npm run imacss:32:icon && npm run imacss:32:white",
"imacss:128:black": "mkdirp dist/128 && imacss 'build/128/black/*' blank_option crypto-icon-128-black > build/128/black.css",
"imacss:128:color": "mkdirp dist/128 && imacss 'build/128/color/*' blank_option crypto-icon-128-color > build/128/color.css",
"imacss:128:icon": "mkdirp dist/128 && imacss 'build/128/icon/*' blank_option crypto-icon-128-icon > build/128/icon.css",
"imacss:128:white": "mkdirp dist/128 && imacss 'build/128/white/*' blank_option crypto-icon-128-white > build/128/white.css",
"postimacss:128:black": "concat defaults.css build/128/black.css > dist/128/black.css",
"postimacss:128:color": "concat defaults.css build/128/color.css > dist/128/color.css",
"postimacss:128:icon": "concat defaults.css build/128/icon.css > dist/128/icon.css",
"postimacss:128:white": "concat defaults.css build/128/white.css > dist/128/white.css",
"imacss:128:black": "mkdirp dist && imacss 'build/128/black/*' blank_option crypto-icon-128-black > build/128/black.css",
"imacss:128:color": "mkdirp dist && imacss 'build/128/color/*' blank_option crypto-icon-128-color > build/128/color.css",
"imacss:128:icon": "mkdirp dist && imacss 'build/128/icon/*' blank_option crypto-icon-128-icon > build/128/icon.css",
"imacss:128:white": "mkdirp dist && imacss 'build/128/white/*' blank_option crypto-icon-128-white > build/128/white.css",
"postimacss:128:black": "concat defaults.css build/128/black.css > dist/cryptocurrency-icons-128-black.css",
"postimacss:128:color": "concat defaults.css build/128/color.css > dist/cryptocurrency-icons-128-color.css",
"postimacss:128:icon": "concat defaults.css build/128/icon.css > dist/cryptocurrency-icons-128-icon.css",
"postimacss:128:white": "concat defaults.css build/128/white.css > dist/cryptocurrency-icons-128-white.css",
"imacss:128": "npm run imacss:128:black && npm run imacss:128:color && npm run imacss:128:icon && npm run imacss:128:white",
"imacss:svg:black": "mkdirp dist/svg && imacss 'build/svg/black/*' blank_option crypto-icon-svg-black > build/svg/black.css",
"imacss:svg:color": "mkdirp dist/svg && imacss 'build/svg/color/*' blank_option crypto-icon-svg-color > build/svg/color.css",
"imacss:svg:icon": "mkdirp dist/svg && imacss 'build/svg/icon/*' blank_option crypto-icon-svg-icon > build/svg/icon.css",
"imacss:svg:white": "mkdirp dist/svg && imacss 'build/svg/white/*' blank_option crypto-icon-svg-white > build/svg/white.css",
"postimacss:svg:black": "concat defaults.css build/svg/black.css > dist/svg/black.css",
"postimacss:svg:color": "concat defaults.css build/svg/color.css > dist/svg/color.css",
"postimacss:svg:icon": "concat defaults.css build/svg/icon.css > dist/svg/icon.css",
"postimacss:svg:white": "concat defaults.css build/svg/white.css > dist/svg/white.css",
"imacss:svg:black": "mkdirp dist && imacss 'build/svg/black/*' blank_option crypto-icon-svg-black > build/svg/black.css",
"imacss:svg:color": "mkdirp dist && imacss 'build/svg/color/*' blank_option crypto-icon-svg-color > build/svg/color.css",
"imacss:svg:icon": "mkdirp dist && imacss 'build/svg/icon/*' blank_option crypto-icon-svg-icon > build/svg/icon.css",
"imacss:svg:white": "mkdirp dist && imacss 'build/svg/white/*' blank_option crypto-icon-svg-white > build/svg/white.css",
"postimacss:svg:black": "concat defaults.css build/svg/black.css > dist/cryptocurrency-icons-svg-black.css",
"postimacss:svg:color": "concat defaults.css build/svg/color.css > dist/cryptocurrency-icons-svg-color.css",
"postimacss:svg:icon": "concat defaults.css build/svg/icon.css > dist/cryptocurrency-icons-svg-icon.css",
"postimacss:svg:white": "concat defaults.css build/svg/white.css > dist/cryptocurrency-icons-svg-white.css",
"imacss:svg": "npm run imacss:svg:black && npm run imacss:svg:color && npm run imacss:svg:icon && npm run imacss:svg:white",
"imacss": "npm run imacss:32 && npm run imacss:128 && npm run imacss:svg",
"svgstore:black": "mkdirp dist/svg && svgstore -o dist/svg/black.svg build/svg/black/*.svg",
"svgstore:color": "mkdirp dist/svg && svgstore -o dist/svg/color.svg build/svg/color/*.svg",
"svgstore:icon": "mkdirp dist/svg && svgstore -o dist/svg/icon.svg build/svg/icon/*.svg",
"svgstore:white": "mkdirp dist/svg && svgstore -o dist/svg/white.svg build/svg/white/*.svg",
"svgstore:black": "mkdirp dist && svgstore -o dist/cryptocurrency-icons-black.svg build/svg/black/*.svg",
"svgstore:color": "mkdirp dist && svgstore -o dist/cryptocurrency-icons-color.svg build/svg/color/*.svg",
"svgstore:icon": "mkdirp dist && svgstore -o dist/cryptocurrency-icons-icon.svg build/svg/icon/*.svg",
"svgstore:white": "mkdirp dist && svgstore -o dist/cryptocurrency-icons-white.svg build/svg/white/*.svg",
"svgstore": "npm run svgstore:black && npm run svgstore:color && npm run svgstore:icon && npm run svgstore:white",
"clean": "rimraf build && rimraf dist",
"build": "npm run minify-images && npm run imacss && npm run svgstore",