Commit bdaba2f 1 parent f4a9294 commit bdaba2f Copy full SHA for bdaba2f
File tree 5 files changed +15
-26
lines changed
5 files changed +15
-26
lines changed Original file line number Diff line number Diff line change 1
- module . exports = require ( './lib/flexicon-generator ' )
1
+ module . exports = require ( './lib/svgpack ' )
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ var path = require('path')
7
7
var perser = require ( 'html-to-json' )
8
8
var svgo = require ( 'svgo' )
9
9
10
- function FlexiconGenerator ( src , options ) {
10
+ function Svgpack ( src , options ) {
11
11
var options = options || { }
12
12
this . src = src || [ ]
13
13
this . options = {
14
- name : 'flexicon ' ,
15
- prefix : 'fi ' ,
16
- dist :'./flexicon ' ,
14
+ name : 'svgpack ' ,
15
+ prefix : 'icon ' ,
16
+ dist :'./svgpack ' ,
17
17
templates : {
18
18
sprite : __dirname + '/../templates/svg/sprite.svg' ,
19
- css : __dirname + '/../templates/css/flexicon .css' ,
19
+ css : __dirname + '/../templates/css/svgpack .css' ,
20
20
html : __dirname + '/../templates/html/default.html' ,
21
21
}
22
22
}
@@ -142,4 +142,4 @@ function createHtml(options) {
142
142
return fs . writeFileSync ( output , result )
143
143
}
144
144
145
- module . exports = FlexiconGenerator
145
+ module . exports = Svgpack
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " flexicon-generator " ,
2
+ "name" : " svgpack " ,
3
3
"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 ." ,
6
6
"main" : " index.js" ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
- "url" : " git@github.com:blivesta/flexicon-generator .git"
9
+ "url" : " git@github.com:blivesta/svgpack .git"
10
10
},
11
11
"author" : {
12
12
"name" : " blivesta" ,
File renamed without changes.
Original file line number Diff line number Diff line change 8
8
< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/alertify.js/0.3.11/alertify.default.min.css " charset ="utf-8 " />
9
9
< style media ="screen ">
10
10
<%= cssInject %>
11
- /* flexicon-generator default template style */
11
+ /* SVGpack default template style */
12
12
body {
13
13
counter- reset: Card;
14
14
}
@@ -45,7 +45,7 @@ <h1 class=""><%= options.name %></h1>
45
45
< main >
46
46
< section class ="Grid ">
47
47
< % _.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 ">
49
49
< div class ="t-center t-width1of3 ">
50
50
< svg width ="64 " height ="64 " class ="<%= options.prefix %> <%= options.prefix %>--full "> < use xlink:href ="#<%= options.prefix %>-<%= icon.name %> " /> </ svg >
51
51
</ div >
@@ -65,22 +65,11 @@ <h4 class="t-pbTn t-mbTn" style="border-bottom:2px solid #000"><%= icon.name %><
65
65
< li >
66
66
< small >
67
67
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
70
70
</ a >
71
71
</ small >
72
72
</ 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 >
84
73
</ ul >
85
74
</ div >
86
75
</ footer >
You can’t perform that action at this time.
0 commit comments