svelte-awesome
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,56 +1,56 @@ | ||
import Icon from '../src/components/Icon.html'; | ||
import App from './App.html'; | ||
import Icon from '../src/components/Icon.html'; | ||
Icon.register({ | ||
baidu: { | ||
width: 23.868, | ||
height: 26, | ||
d: 'M3.613 13.701c2.827-.608 2.442-3.986 2.357-4.725-.138-1.139-1.477-3.128-3.296-2.971C.386 6.21.052 9.515.052 9.515c-.309 1.528.74 4.793 3.561 4.186zm3.002 5.875c-.083.238-.268.846-.107 1.375.315 1.187 1.346 1.24 1.346 1.24h1.48v-3.619H7.749c-.713.213-1.057.767-1.134 1.004zM8.86 8.035c1.562 0 2.823-1.797 2.823-4.019C11.683 1.796 10.421 0 8.86 0 7.301 0 6.036 1.796 6.036 4.016c0 2.222 1.265 4.019 2.824 4.019zm6.724.265c2.087.271 3.429-1.956 3.695-3.644.272-1.686-1.074-3.644-2.552-3.98-1.48-.339-3.329 2.032-3.497 3.578-.2 1.89.271 3.778 2.354 4.046zm5.114 9.923s-3.229-2.498-5.113-5.198c-2.555-3.981-6.185-2.361-7.399-.337-1.209 2.024-3.093 3.305-3.36 3.644-.271.334-3.9 2.293-3.095 5.871.806 3.576 3.635 3.508 3.635 3.508s2.085.205 4.504-.336c2.42-.537 4.503.134 4.503.134s5.652 1.893 7.199-1.751c1.545-3.645-.874-5.535-.874-5.535zm-9.671 5.423H7.352c-1.587-.316-2.219-1.4-2.299-1.584-.078-.188-.528-1.059-.29-2.539.686-2.219 2.642-2.379 2.642-2.379h1.956V14.74l1.666.025v8.881zm6.844-.025h-4.229c-1.639-.423-1.716-1.587-1.716-1.587v-4.677l1.716-.027v4.203c.104.447.661.529.661.529h1.742v-4.705h1.825v6.264zm5.986-12.486c0-.808-.671-3.239-3.159-3.239-2.492 0-2.825 2.295-2.825 3.917 0 1.548.131 3.71 3.227 3.641 3.096-.068 2.757-3.507 2.757-4.319z' | ||
} | ||
baidu: { | ||
width: 23.868, | ||
height: 26, | ||
d: 'M3.613 13.701c2.827-.608 2.442-3.986 2.357-4.725-.138-1.139-1.477-3.128-3.296-2.971C.386 6.21.052 9.515.052 9.515c-.309 1.528.74 4.793 3.561 4.186zm3.002 5.875c-.083.238-.268.846-.107 1.375.315 1.187 1.346 1.24 1.346 1.24h1.48v-3.619H7.749c-.713.213-1.057.767-1.134 1.004zM8.86 8.035c1.562 0 2.823-1.797 2.823-4.019C11.683 1.796 10.421 0 8.86 0 7.301 0 6.036 1.796 6.036 4.016c0 2.222 1.265 4.019 2.824 4.019zm6.724.265c2.087.271 3.429-1.956 3.695-3.644.272-1.686-1.074-3.644-2.552-3.98-1.48-.339-3.329 2.032-3.497 3.578-.2 1.89.271 3.778 2.354 4.046zm5.114 9.923s-3.229-2.498-5.113-5.198c-2.555-3.981-6.185-2.361-7.399-.337-1.209 2.024-3.093 3.305-3.36 3.644-.271.334-3.9 2.293-3.095 5.871.806 3.576 3.635 3.508 3.635 3.508s2.085.205 4.504-.336c2.42-.537 4.503.134 4.503.134s5.652 1.893 7.199-1.751c1.545-3.645-.874-5.535-.874-5.535zm-9.671 5.423H7.352c-1.587-.316-2.219-1.4-2.299-1.584-.078-.188-.528-1.059-.29-2.539.686-2.219 2.642-2.379 2.642-2.379h1.956V14.74l1.666.025v8.881zm6.844-.025h-4.229c-1.639-.423-1.716-1.587-1.716-1.587v-4.677l1.716-.027v4.203c.104.447.661.529.661.529h1.742v-4.705h1.825v6.264zm5.986-12.486c0-.808-.671-3.239-3.159-3.239-2.492 0-2.825 2.295-2.825 3.917 0 1.548.131 3.71 3.227 3.641 3.096-.068 2.757-3.507 2.757-4.319z' | ||
} | ||
}); | ||
Icon.register({ | ||
webpack: { | ||
width: 1200, | ||
height: 1200, | ||
paths: [ | ||
{ | ||
style: 'fill:#8ED6FB', | ||
d: 'M1035.6 879.3l-418.1 236.5V931.6L878 788.3l157.6 91zm28.6-25.9V358.8l-153 88.3V765l153 88.4zm-901.5 25.9l418.1 236.5V931.6L320.3 788.3l-157.6 91zm-28.6-25.9V358.8l153 88.3V765l-153 88.4zM152 326.8L580.8 84.2v178.1L306.1 413.4l-2.1 1.2-152-87.8zm894.3 0L617.5 84.2v178.1l274.7 151.1 2.1 1.2 152-87.8z' | ||
}, | ||
{ | ||
style: 'fill:#1C78C0', | ||
d: 'M580.8 889.7l-257-141.3v-280l257 148.4v272.9zm36.7 0l257-141.3v-280l-257 148.4v272.9zm-18.3-283.6zM341.2 436l258-141.9 258 141.9-258 149-258-149z' | ||
} | ||
] | ||
} | ||
webpack: { | ||
width: 1200, | ||
height: 1200, | ||
paths: [ | ||
{ | ||
style: 'fill:#8ED6FB', | ||
d: 'M1035.6 879.3l-418.1 236.5V931.6L878 788.3l157.6 91zm28.6-25.9V358.8l-153 88.3V765l153 88.4zm-901.5 25.9l418.1 236.5V931.6L320.3 788.3l-157.6 91zm-28.6-25.9V358.8l153 88.3V765l-153 88.4zM152 326.8L580.8 84.2v178.1L306.1 413.4l-2.1 1.2-152-87.8zm894.3 0L617.5 84.2v178.1l274.7 151.1 2.1 1.2 152-87.8z' | ||
}, | ||
{ | ||
style: 'fill:#1C78C0', | ||
d: 'M580.8 889.7l-257-141.3v-280l257 148.4v272.9zm36.7 0l257-141.3v-280l-257 148.4v272.9zm-18.3-283.6zM341.2 436l258-141.9 258 141.9-258 149-258-149z' | ||
} | ||
] | ||
} | ||
}); | ||
Icon.register({ | ||
vue: { | ||
width: 256, | ||
height: 221, | ||
polygons: [ | ||
{ | ||
style: 'fill:#41B883', | ||
points: '0,0 128,220.8 256,0 204.8,0 128,132.48 50.56,0 0,0' | ||
}, | ||
{ | ||
style: 'fill:#35495E', | ||
points: '50.56,0 128,133.12 204.8,0 157.44,0 128,51.2 97.92,0 50.56,0' | ||
} | ||
] | ||
} | ||
vue: { | ||
width: 256, | ||
height: 221, | ||
polygons: [ | ||
{ | ||
style: 'fill:#41B883', | ||
points: '0,0 128,220.8 256,0 204.8,0 128,132.48 50.56,0 0,0' | ||
}, | ||
{ | ||
style: 'fill:#35495E', | ||
points: '50.56,0 128,133.12 204.8,0 157.44,0 128,51.2 97.92,0 50.56,0' | ||
} | ||
] | ||
} | ||
}); | ||
Icon.register({ | ||
'html5-c': { | ||
width: 512, | ||
height: 512, | ||
raw: '<path fill="#E34F26" d="M71,460 L30,0 481,0 440,460 255,512"/><path fill="#EF652A" d="M256,472 L405,431 440,37 256,37"/><path fill="#EBEBEB" d="M256,208 L181,208 176,150 256,150 256,94 255,94 114,94 115,109 129,265 256,265zM256,355 L255,355 192,338 188,293 158,293 132,293 139,382 255,414 256,414z"/><path fill="#FFF" d="M255,208 L255,265 325,265 318,338 255,355 255,414 371,382 372,372 385,223 387,208 371,208zM255,94 L255,129 255,150 255,150 392,150 392,150 392,150 393,138 396,109 397,94z"/>' | ||
} | ||
'html5-c': { | ||
width: 512, | ||
height: 512, | ||
raw: '<path fill="#E34F26" d="M71,460 L30,0 481,0 440,460 255,512"/><path fill="#EF652A" d="M256,472 L405,431 440,37 256,37"/><path fill="#EBEBEB" d="M256,208 L181,208 176,150 256,150 256,94 255,94 114,94 115,109 129,265 256,265zM256,355 L255,355 192,338 188,293 158,293 132,293 139,382 255,414 256,414z"/><path fill="#FFF" d="M255,208 L255,265 325,265 318,338 255,355 255,414 371,382 372,372 385,223 387,208 371,208zM255,94 L255,129 255,150 255,150 392,150 392,150 392,150 393,138 396,109 397,94z"/>' | ||
} | ||
}); | ||
const app = new App({ | ||
target: document.querySelector('#app') | ||
new App({ | ||
target: document.querySelector('#app') | ||
}); |
module.exports = { | ||
entry: 'example/main.js', | ||
dist: 'example/dist', | ||
presets: [ | ||
require('poi-preset-svelte')() | ||
] | ||
entry: 'example/main.js', | ||
dist: 'example/dist', | ||
presets: [ | ||
require('poi-preset-svelte')() | ||
] | ||
}; |
@@ -1,1 +0,1 @@ | ||
{"name":"svelte-awesome","version":"1.0.0","description":"Font Awesome component for Svelte JS, using inline SVG","main":"dist/svelte-awesome.js","repository":{"type":"git","url":"https://github.com/RobBrazier/svelte-awesome.git"},"author":"Rob Brazier","license":"MIT","scripts":{"build":"rollup -c","icons":"gulp icons:generate","icons:json":"gulp icons:json","example:dev":"poi -c example/poi.config.js","example:build":"poi build -c example/poi.config.js","lint":"standard src/**/.js","test":"npm run lint","commit":"commit","commitmsg":"commitlint -e $GIT_PARAMS","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"peerDependencies":{"svelte":"^1.41.3"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release":{"verifyConditions":{"path":"./build/verifyConditions.js"}},"devDependencies":{"@commitlint/cli":"^5.1.1","@commitlint/config-conventional":"^5.1.3","@commitlint/prompt-cli":"^5.1.2","babel-core":"^6.26.0","font-awesome":"^4.7.0","font-awesome-svg-png":"^1.2.2","gulp":"^3.9.1","gulp-listfiles":"^0.1.0","gulp-rename":"^1.2.2","gulp-transform":"^3.0.5","husky":"^0.14.3","poi":"^9.5.4","poi-preset-svelte":"^9.0.1","rollup":"^0.51.5","rollup-plugin-babel":"^3.0.2","rollup-plugin-buble":"^0.18.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-svelte":"^3.1.0","rollup-plugin-uglify":"^2.0.1","standard":"^10.0.3","semantic-release":"^8.2.0"}} | ||
{"name":"svelte-awesome","version":"1.0.1","description":"Font Awesome component for Svelte JS, using inline SVG","main":"dist/svelte-awesome.js","repository":{"type":"git","url":"https://github.com/RobBrazier/svelte-awesome.git"},"author":"Rob Brazier","license":"MIT","scripts":{"build":"rollup -c","icons":"node build/generate-icons","example:dev":"poi -c example/poi.config.js","example:build":"poi build -c example/poi.config.js","lint":"xo","test":"npm run lint","commit":"commit","commitmsg":"commitlint -e $GIT_PARAMS","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"peerDependencies":{"svelte":"^1.41.3"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release":{"verifyConditions":{"path":"./build/verify-conditions.js"}},"xo":{"space":true,"overrides":[{"files":"src/icons/index.js","rules":{"import/no-unassigned-import":0}},{"files":"src/index.js","rules":{"import/no-unassigned-import":0}},{"files":"example/main.js","rules":{"no-new":0,"no-undef":0}}]},"devDependencies":{"@commitlint/cli":"^5.1.1","@commitlint/config-conventional":"^5.1.3","@commitlint/prompt-cli":"^5.1.2","babel-core":"^6.26.0","cassandra-map":"^0.1.7","font-awesome":"^4.7.0","graceful-fs":"^4.1.11","husky":"^0.14.3","lodash":"^4.17.4","patch-module":"^0.1.0","poi":"^9.5.4","poi-preset-svelte":"^9.0.1","rollup":"^0.51.5","rollup-plugin-babel":"^3.0.2","rollup-plugin-buble":"^0.18.0","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-svelte":"^3.1.0","rollup-plugin-uglify":"^2.0.1","semantic-release":"^8.2.0","standard":"^10.0.3","svgfont2js":"^0.1.2","xo":"^0.18.2"}} |
# svelte-awesome | ||
[![Build Status](https://semaphoreci.com/api/v1/robbrazier/svelte-awesome/branches/master/shields_badge.svg)](https://semaphoreci.com/robbrazier/svelte-awesome) | ||
[![Codacy grade](https://img.shields.io/codacy/grade/f9c405d6855d42b8a1302828be870cfb.svg)](https://www.codacy.com/app/RobBrazier/svelte-awesome) | ||
[![Codacy coverage](https://img.shields.io/codacy/coverage/f9c405d6855d42b8a1302828be870cfb.svg)](https://www.codacy.com/app/RobBrazier/svelte-awesome) | ||
[![Code Climate](https://img.shields.io/codeclimate/maintainability/RobBrazier/svelte-awesome.svg)](https://codeclimate.com/github/RobBrazier/svelte-awesome/maintainability) | ||
[![Code Climate](https://img.shields.io/codeclimate/c/RobBrazier/svelte-awesome.svg)](https://codeclimate.com/github/RobBrazier/svelte-awesome/test_coverage) | ||
[![Waffle.io](https://img.shields.io/waffle/label/robbrazier/svelte-awesome/in%20progress.svg)](https://waffle.io/RobBrazier/svelte-awesome) | ||
@@ -6,0 +6,0 @@ |
const pkg = require('./package.json'); | ||
module.exports = { | ||
input: './src/index.js', | ||
output: { | ||
file: pkg.main, | ||
format: 'umd', | ||
name: 'SvelteAwesome' | ||
}, | ||
context: 'window', | ||
plugins: [ | ||
require('rollup-plugin-svelte')(), | ||
require('rollup-plugin-buble')(), | ||
require('rollup-plugin-commonjs')(), | ||
require('rollup-plugin-node-resolve')(), | ||
require('rollup-plugin-replace')({ | ||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development') | ||
}), | ||
input: './src/index.js', | ||
output: { | ||
file: pkg.main, | ||
format: 'umd', | ||
name: 'SvelteAwesome' | ||
}, | ||
context: 'window', | ||
plugins: [ | ||
require('rollup-plugin-svelte')(), | ||
require('rollup-plugin-buble')(), | ||
require('rollup-plugin-commonjs')(), | ||
require('rollup-plugin-node-resolve')(), | ||
require('rollup-plugin-replace')({ | ||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development') | ||
}), | ||
require('rollup-plugin-uglify')() | ||
] | ||
] | ||
}; |
13923
24
7
84