From 4186ff05c80c7206d2e83dc1de6eac235135fe8e Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Wed, 25 May 2016 20:45:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20LESS=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/dark/signature-dark.html | 97 +------------------ dist/dark/signature-reply-dark.html | 72 +-------------- dist/light/full-mail-light.html | 128 +------------------------- dist/light/signature-light.html | 113 +---------------------- dist/light/signature-reply-light.html | 86 +---------------- package.json | 4 +- src/light/css/file.css | 0 tasks/less.js | 15 ++- 8 files changed, 20 insertions(+), 495 deletions(-) delete mode 100644 src/light/css/file.css diff --git a/dist/dark/signature-dark.html b/dist/dark/signature-dark.html index f36f662..5e709c4 100644 --- a/dist/dark/signature-dark.html +++ b/dist/dark/signature-dark.html @@ -1,96 +1 @@ - - - - - - - - - - - - - -
- - - - - - -
- - - - - \ No newline at end of file +
\ No newline at end of file diff --git a/dist/dark/signature-reply-dark.html b/dist/dark/signature-reply-dark.html index 47cc455..8c0d576 100644 --- a/dist/dark/signature-reply-dark.html +++ b/dist/dark/signature-reply-dark.html @@ -1,71 +1 @@ - - - - - - - - - - - - - -
- - - - - - - -
- \ No newline at end of file +
\ No newline at end of file diff --git a/dist/light/full-mail-light.html b/dist/light/full-mail-light.html index 44d91ac..75990f9 100644 --- a/dist/light/full-mail-light.html +++ b/dist/light/full-mail-light.html @@ -1,127 +1 @@ - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- Hi there, -
- Thanks for writing up this email.
We are delighted to reply with a responsive template. -
-
- - - - - \ No newline at end of file +
Hi there,
Thanks for writing up this email.
We are delighted to reply with a responsive template.
\ No newline at end of file diff --git a/dist/light/signature-light.html b/dist/light/signature-light.html index a127eda..177898f 100644 --- a/dist/light/signature-light.html +++ b/dist/light/signature-light.html @@ -1,112 +1 @@ - - - - - - - - - - - - - -
- - - - - - -
- - - - - \ No newline at end of file +
\ No newline at end of file diff --git a/dist/light/signature-reply-light.html b/dist/light/signature-reply-light.html index 219e2ac..17e3287 100644 --- a/dist/light/signature-reply-light.html +++ b/dist/light/signature-reply-light.html @@ -1,85 +1 @@ - - - - - - - - - - - - - -
- - - - - - -
- \ No newline at end of file +
\ No newline at end of file diff --git a/package.json b/package.json index 68707b9..c85189e 100644 --- a/package.json +++ b/package.json @@ -26,15 +26,17 @@ "autoprefixer": "^6.3.6", "del": "^2.2.0", "gulp": "~3.9.1", + "gulp-autoprefixer": "^3.1.0", "gulp-david": "~0.4.2", "gulp-inline-css": "~3.1.0", "gulp-inline-image-html": "~0.2.1", + "gulp-less": "^3.1.0", "gulp-minify-html": "~1.0.5", "gulp-minify-inline": "~0.2.1", "gulp-plumber": "^1.1.0", "gulp-postcss": "^6.1.1", "gulp-preprocess": "~2.0.0", - "gulp-rename": "~1.2.2", + "gulp-rename": "^1.2.2", "q": "~1.4.1", "wrench": "~1.5.8" }, diff --git a/src/light/css/file.css b/src/light/css/file.css deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/less.js b/tasks/less.js index 6b87e81..1fd8142 100644 --- a/tasks/less.js +++ b/tasks/less.js @@ -1,10 +1,19 @@ 'use strict'; -var gulp = require('gulp'); +var gulp = require('gulp'), + less = require('gulp-less'), + autoprefixer = require('gulp-autoprefixer'), + rename = require('gulp-rename'); function lessTask(options){ - gulp.task('less', function(){ - //todo + gulp.task('less', ['dupe'], function(){ + return gulp.src(options.workingDir + '/**/*.less') + .pipe(less()) + .pipe(autoprefixer({ + browsers: ['last 5 versions'] + })) + .pipe(rename({ extname: '.css' })) + .pipe(gulp.dest(options.workingDir)); }); }