From 717c35bc2a6b6d2ce65b9e3af44c08eb17934bee Mon Sep 17 00:00:00 2001 From: Philip Schatz Date: Wed, 1 Apr 2015 11:48:22 -0400 Subject: [PATCH 1/3] update travis test to run gulp prod --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dfdab0cbab..ca571efcaf 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Client for OpenStax Tutor", "main": "index.js", "scripts": { - "test": "gulp test", + "test": "gulp test && gulp prod", "start": "gulp serve" }, "repository": { From dd83a49dd2c51aabf6b542a60e78ee13fcbaf345 Mon Sep 17 00:00:00 2001 From: Philip Schatz Date: Wed, 1 Apr 2015 12:04:14 -0400 Subject: [PATCH 2/3] do not try to import remote font files --- Gulpfile.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gulpfile.coffee b/Gulpfile.coffee index 3c4f7909f2..b33223ff4e 100644 --- a/Gulpfile.coffee +++ b/Gulpfile.coffee @@ -138,7 +138,8 @@ gulp.task 'minjs', ['build'], -> gulp.task 'mincss', ['build'], -> destDir = './dist/' gulp.src('./dist/tutor.css') - .pipe(minifyCSS({keepBreaks:true})) + # TODO: Remove the `procesImport:false` and host the fonts locally + .pipe(minifyCSS({keepBreaks:true, processImport:false})) .pipe(rename({extname: '.min.css'})) .pipe(gulp.dest(destDir)) From 61b8f5191642eb267d22ed70ac70c6924a8024dd Mon Sep 17 00:00:00 2001 From: Philip Schatz Date: Wed, 1 Apr 2015 12:54:06 -0400 Subject: [PATCH 3/3] simplify the actual test command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ca571efcaf..85fc3f71a9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Client for OpenStax Tutor", "main": "index.js", "scripts": { - "test": "gulp test && gulp prod", + "test": "gulp test prod", "start": "gulp serve" }, "repository": {