Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit ed40306

Browse files
author
Chris Ferdinandi
committed
Updated SVG compiling process
1 parent 050e810 commit ed40306

19 files changed

+19
-22
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Make sure these are installed first.
4747
Add your files to the appropriate `src` subdirectories. Gulp will process and and compile them into `dist`.
4848

4949
* Content in subdirectories under the `js` folder will be concatenated. For example, files in `js/detects` will compile into `detects.js`. Files directly under `js` will compile individually.
50-
* SVGs in the `svg` directory will compile into `icons.svg`.
50+
* SVGs in the `svg` subdirectories of the `svg` directory will compile into `icons.svg`.
5151
* Assets in the `assets` directory will be copied as-is into the `dist` directory.
5252

5353
```
@@ -127,7 +127,9 @@ Unit test results are printed in terminal, but you can also view them in a brows
127127

128128
### SVGs
129129

130-
SVG files placed in the `src` > `svg` directory will be compiled into a single SVG sprite called `icons.svg` in the `dist` > `svg` directory.
130+
SVG files placed in the `src` > `svg` directory will be optimized with SVGO and compiled into `dist` > `svg` as-is.
131+
132+
SVG files placed in subdirectories of `src` > `svg` will be ocmpiled into a single SVG sprite named after the parent directory. For example, files in `src` > `svg` > `icons` would compile into a single `icons.svg` file.
131133

132134
### Documentation
133135

dist/css/myplugin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/css/myplugin.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/** gulp-boilerplate v1.3.2, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
1+
/** gulp-boilerplate v2.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */

dist/js/classList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/js/classList.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/myplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/js/myplugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/svg/icons.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/svg/placeholder.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/dist/css/myplugin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

docs/dist/css/myplugin.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/** gulp-boilerplate v1.3.2, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
1+
/** gulp-boilerplate v2.0.0, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */

docs/dist/js/classList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

docs/dist/js/classList.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/js/myplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.3.2
2+
* gulp-boilerplate v2.0.0
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

docs/dist/js/myplugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/svg/icons.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/dist/svg/placeholder.svg

Lines changed: 1 addition & 0 deletions
Loading

gulpfile.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ gulp.task('build:svgs', ['clean:dist'], function () {
166166
}
167167
}))
168168
.pipe(svgmin())
169-
.pipe(svgstore({
170-
fileName: 'icons.svg',
171-
prefix: 'icon-',
172-
inlineSvg: true
173-
}))
174169
.pipe(gulp.dest(paths.svgs.output));
175170
});
176171

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-boilerplate",
3-
"version": "1.3.2",
3+
"version": "2.0.0",
44
"description": "My Gulp.js boilerplate for creating new web projects",
55
"main": "./dist",
66
"author": {

0 commit comments

Comments
 (0)