Skip to content

Commit

Permalink
Updated for Emails v2.4.0 with Dart Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
joeworkman committed Mar 23, 2022
1 parent 30d5a45 commit 3b40a8e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
12 changes: 7 additions & 5 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import siphon from 'siphon-media-query';
import path from 'path';
import merge from 'merge-stream';
import beep from 'beepbeep';
import colors from 'colors';

const $ = plugins();

var dartSass = require('gulp-sass');
dartSass.compiler = require('sass');

// Look for the --production flag
const PRODUCTION = !!(yargs.argv.production);
const PRODUCTION = !!yargs.argv.production;
const EMAIL = yargs.argv.to;

// Declar var so that both AWS and Litmus task can use it.
Expand Down Expand Up @@ -72,9 +74,9 @@ function resetPages(done) {
function sass() {
return gulp.src('src/assets/scss/app.scss')
.pipe($.if(!PRODUCTION, $.sourcemaps.init()))
.pipe($.sass({
includePaths: ['node_modules/foundation-emails/scss']
}).on('error', $.sass.logError))
.pipe(dartSass.sync({
includePaths: ['node_modules/foundation-emails/scss']
}).on('error', dartSass.logError))
.pipe($.if(PRODUCTION, $.uncss(
{
html: ['dist/**/*.html']
Expand Down
41 changes: 26 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "foundation-emails-template",
"version": "1.0.0",
"version": "2.4.0",
"description": "Basic template for a Foundation for Emails project.",
"repository": "zurb/foundation-emails-template",
"repository": "foundation/foundation-emails-template",
"main": "gulpfile.babel.js",
"scripts": {
"start": "gulp",
Expand All @@ -11,10 +11,10 @@
"litmus": "gulp litmus --production",
"mail": "gulp mail --production"
},
"author": "ZURB <[email protected]>",
"author": "Foundation <[email protected]> (https://get.foundation)",
"license": "MIT",
"dependencies": {
"foundation-emails": "^2.2.1"
"foundation-emails": "^2.4.0"
},
"devDependencies": {
"babel-core": "^6.3.26",
Expand All @@ -23,28 +23,39 @@
"beepbeep": "^1.2.0",
"browser-sync": "^2.11.0",
"colors": "^1.1.2",
"gulp": "^4.0.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-cached": "^1.1.0",
"gulp-concat": "^2.6.0",
"gulp-htmlmin": "^5.0.1",
"gulp-if": "^3.0.0",
"gulp-inject-string": "^1.1.0",
"gulp-inline-css": "^3.4.0",
"gulp-load-plugins": "^2.0.1",
"gulp-postcss": "^8.0.0",
"gulp-prettify": "^0.5.0",
"gulp-prompt": "^1.2.0",
"gulp-rename": "^1.2.2",
"gulp-rsync": "0.0.8",
"gulp-sass": "^4.1.0",
"gulp-sass-lint": "^1.4.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-uncss": "^1.0.1",
"gulp-wrap": "^0.15.0",
"gulp-zip": "^5.0.1",
"gulp-awspublish": "^3.0.1",
"gulp-cli": "^1.1.0",
"gulp-html-src": "^1.0.0",
"gulp-htmlmin": "^1.1.1",
"gulp-if": "^2.0.0",
"gulp-imagemin": "^2.4.0",
"gulp-inline-css": "^3.0.0",
"gulp-litmus": "0.0.7",
"gulp-load-plugins": "^1.1.0",
"gulp-mail": "^0.1.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uncss": "^1.0.1",
"gulp-zip": "^3.2.0",
"inky": "^1.3.6",
"inky": "^1.4.1",
"lazypipe": "^1.0.1",
"merge-stream": "^1.0.0",
"panini": "^1.3.0",
"rimraf": "^2.3.3",
"sass": "^1.35.2",
"siphon-media-query": "^1.0.0",
"yargs": "^4.1.0"
},
Expand Down

0 comments on commit 3b40a8e

Please sign in to comment.