diff --git a/template.tpl b/template.tpl
index 71467c0..6e3ab3e 100644
--- a/template.tpl
+++ b/template.tpl
@@ -17,7 +17,7 @@
.sprite__{{fileName}}:before {
@extend %sprite;
background-position: {{x}}{{units}} {{y}}{{units}};
- width: {{width}}{{units}};
- height: {{height}}{{units}};
+ width: {{w}}{{units}};
+ height: {{h}}{{units}};
}
{{/sprites}}
\ No newline at end of file
diff --git a/test/gulpfile.js b/test/gulpfile.js
index 3dc4436..c68838e 100644
--- a/test/gulpfile.js
+++ b/test/gulpfile.js
@@ -1,16 +1,25 @@
var gulp = require('gulp'),
- svgmin = require('gulp-svgmin'),
- svgsprite = require('../index');
+ jshint = require('gulp-jshint'),
+ svgmin = require('gulp-svgmin'),
+ svgsprite = require('../index');
gulp.task('default', function () {
- gulp.src('icons/*.svg')
+ gulp.src('svgs/*.svg')
.pipe(svgsprite({
- cssPathNoSvg: './test.png',
- demoDest: './demo.html',
- padding: 0,
- positioning: 'packed',
- units: 'em'
+ cssPathNoSvg: './test.png',
+ demoDest: './demo.html',
+ padding: 0,
+ positioning: 'packed',
+ units: 'em'
}))
.pipe(svgmin())
.pipe(gulp.dest('test.svg'));
-})
\ No newline at end of file
+});
+
+gulp.task('jshint', function() {
+ gulp.src('../index.js')
+ .pipe(jshint({
+ 'node': true
+ }))
+ .pipe(jshint.reporter('default'));
+});
\ No newline at end of file
diff --git a/test/svgs/c-20x20.svg b/test/svgs/c-20x20.svg
new file mode 100644
index 0000000..b74ca91
--- /dev/null
+++ b/test/svgs/c-20x20.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/c-50x33.svg b/test/svgs/c-50x33.svg
new file mode 100644
index 0000000..d0842c2
--- /dev/null
+++ b/test/svgs/c-50x33.svg
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/test/svgs/h-50x50.svg b/test/svgs/h-50x50.svg
new file mode 100644
index 0000000..6609bab
--- /dev/null
+++ b/test/svgs/h-50x50.svg
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/test/svgs/r-100x200.svg b/test/svgs/r-100x200.svg
new file mode 100644
index 0000000..2495ce4
--- /dev/null
+++ b/test/svgs/r-100x200.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-20x20-1.svg b/test/svgs/r-20x20-1.svg
new file mode 100644
index 0000000..7be33fb
--- /dev/null
+++ b/test/svgs/r-20x20-1.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-20x20-2.svg b/test/svgs/r-20x20-2.svg
new file mode 100644
index 0000000..51d9477
--- /dev/null
+++ b/test/svgs/r-20x20-2.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-20x20-3.svg b/test/svgs/r-20x20-3.svg
new file mode 100644
index 0000000..93f06b3
--- /dev/null
+++ b/test/svgs/r-20x20-3.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-20x20.svg b/test/svgs/r-20x20.svg
new file mode 100644
index 0000000..20acc9e
--- /dev/null
+++ b/test/svgs/r-20x20.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-300x100.svg b/test/svgs/r-300x100.svg
new file mode 100644
index 0000000..8b0d08b
--- /dev/null
+++ b/test/svgs/r-300x100.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/r-60x30.svg b/test/svgs/r-60x30.svg
new file mode 100644
index 0000000..796aaae
--- /dev/null
+++ b/test/svgs/r-60x30.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/s-40x40-1.svg b/test/svgs/s-40x40-1.svg
new file mode 100644
index 0000000..ee98b3d
--- /dev/null
+++ b/test/svgs/s-40x40-1.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/s-40x40-2.svg b/test/svgs/s-40x40-2.svg
new file mode 100644
index 0000000..41db442
--- /dev/null
+++ b/test/svgs/s-40x40-2.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/s-40x40.svg b/test/svgs/s-40x40.svg
new file mode 100644
index 0000000..844f7ae
--- /dev/null
+++ b/test/svgs/s-40x40.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/s-50x50.svg b/test/svgs/s-50x50.svg
new file mode 100644
index 0000000..3145d54
--- /dev/null
+++ b/test/svgs/s-50x50.svg
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/test/svgs/t-20x20.svg b/test/svgs/t-20x20.svg
new file mode 100644
index 0000000..1bdd5d9
--- /dev/null
+++ b/test/svgs/t-20x20.svg
@@ -0,0 +1,7 @@
+
+
+
+