Skip to content

Commit bdaba2f

Browse files
committed
rename module
1 parent f4a9294 commit bdaba2f

File tree

5 files changed

+15
-26
lines changed

5 files changed

+15
-26
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./lib/flexicon-generator')
1+
module.exports = require('./lib/svgpack')

lib/flexicon-generator.js lib/svgpack.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ var path = require('path')
77
var perser = require('html-to-json')
88
var svgo = require('svgo')
99

10-
function FlexiconGenerator(src, options){
10+
function Svgpack(src, options){
1111
var options = options || {}
1212
this.src = src || []
1313
this.options = {
14-
name: 'flexicon',
15-
prefix: 'fi',
16-
dist:'./flexicon',
14+
name: 'svgpack',
15+
prefix: 'icon',
16+
dist:'./svgpack',
1717
templates: {
1818
sprite: __dirname + '/../templates/svg/sprite.svg',
19-
css: __dirname + '/../templates/css/flexicon.css',
19+
css: __dirname + '/../templates/css/svgpack.css',
2020
html: __dirname + '/../templates/html/default.html',
2121
}
2222
}
@@ -142,4 +142,4 @@ function createHtml(options) {
142142
return fs.writeFileSync(output, result)
143143
}
144144

145-
module.exports = FlexiconGenerator
145+
module.exports = Svgpack

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "flexicon-generator",
2+
"name": "svgpack",
33
"version": "0.0.3",
4-
"homepage": "https://github.com/blivesta/flexicon-generator",
5-
"description": "A Simple SVG Sprite Generator Using Node.js.",
4+
"homepage": "https://github.com/blivesta/svgpack",
5+
"description": "SVG sprite generator and create a page for a preview and code copy.",
66
"main": "index.js",
77
"repository": {
88
"type": "git",
9-
"url": "git@github.com:blivesta/flexicon-generator.git"
9+
"url": "git@github.com:blivesta/svgpack.git"
1010
},
1111
"author": {
1212
"name": "blivesta",
File renamed without changes.

templates/html/default.html

+4-15
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/alertify.js/0.3.11/alertify.default.min.css" charset="utf-8" />
99
<style media="screen">
1010
<%= cssInject %>
11-
/* flexicon-generator default template style */
11+
/* SVGpack default template style */
1212
body {
1313
counter-reset: Card;
1414
}
@@ -45,7 +45,7 @@ <h1 class=""><%= options.name %></h1>
4545
<main>
4646
<section class="Grid">
4747
<% _.each(icons, function(icon) { %>
48-
<div class="Card Grid-col t-widthHalf t-sm-width1of3 t-lg-width1of5 t-mbXl">
48+
<div class="Card Grid-col t-widthHalf t-sm-width4of12 t-lg-width2of10 t-mbXl">
4949
<div class="t-center t-width1of3">
5050
<svg width="64" height="64" class="<%= options.prefix %> <%= options.prefix %>--full"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg>
5151
</div>
@@ -65,22 +65,11 @@ <h4 class="t-pbTn t-mbTn" style="border-bottom:2px solid #000"><%= icon.name %><
6565
<li>
6666
<small>
6767
Genereted by
68-
<a href="https://github.com/blivesta/flexicon-generator" target="_blank">
69-
flexicon-generator
68+
<a href="https://github.com/blivesta/svgpack" target="_blank">
69+
svgpack
7070
</a>
7171
</small>
7272
</li>
73-
<li>
74-
<small>
75-
Created by
76-
<svg width="64" height="64" class="<%= options.prefix %>">
77-
<use xlink:href="#<%= options.prefix %>-blivesta" />
78-
</svg>
79-
<a href="http://www.blivesta.com" target="_blank">
80-
blivesta
81-
</a>
82-
</small>
83-
</li>
8473
</ul>
8574
</div>
8675
</footer>

0 commit comments

Comments
 (0)