Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 7eb0662

Browse files
committed
completely self-containing bower assets.
1 parent ac0026c commit 7eb0662

14 files changed

Lines changed: 1142 additions & 1 deletion

‎client/fonts/FontAwesome.otf‎

91.7 KB
Binary file not shown.
59.3 KB
Binary file not shown.

‎client/fonts/fontawesome-webfont.svg‎

Lines changed: 565 additions & 0 deletions
Loading
119 KB
Binary file not shown.
69.8 KB
Binary file not shown.
55.4 KB
Binary file not shown.

‎gulpfile.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var gulp = require('gulp')
22
, minifycss = require('gulp-minify-css')
3+
, filter = require('gulp-filter')
34
, concat = require('gulp-concat')
45
, uglify = require('gulp-uglify')
56
, order = require('gulp-order')
@@ -55,17 +56,26 @@ gulp.task('prepare', function() {
5556
.pipe(gulp.dest('client'));
5657

5758
gulp.src(mainBowerFiles())
59+
.pipe(filter(['*.js']))
5860
.pipe(concat('js/lib.js'))
5961
.pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())
6062
.pipe(gulp.dest('public'))
6163
.pipe(gulp.dest('client'));
6264

63-
gulp.src('vendor/fontawesome/css/font-awesome.css')
65+
// gulp.src('vendor/fontawesome/css/font-awesome.css')
66+
gulp.src(mainBowerFiles())
67+
.pipe(filter(['*.css']))
6468
.pipe(concat('css/dist.css'))
6569
.pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())
6670
.pipe(gulp.dest('public'))
6771
.pipe(gulp.dest('client'));
6872

73+
// gulp.src('vendor/fontawesome/fonts/*')
74+
gulp.src(mainBowerFiles())
75+
.pipe(filter(['*.eot', '*.svg', '*.ttf', '*.woff', '*.woff2']))
76+
.pipe(gulp.dest('public/fonts'))
77+
.pipe(gulp.dest('client/fonts'));
78+
6979
gulp.src('node_modules/faye/browser/faye-browser.js')
7080
.pipe(concat('js/data-client.js'))
7181
.pipe(uglify())

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"gulp-concat": "^2.4.1",
3636
"gulp-declare": "^0.3.0",
3737
"gulp-download": "0.0.1",
38+
"gulp-filter": "^2.0.2",
3839
"gulp-handlebars": "^2.2.0",
3940
"gulp-minify-css": "^0.3.10",
4041
"gulp-order": "^1.1.1",

‎public/fonts/FontAwesome.otf‎

91.7 KB
Binary file not shown.
59.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)