# @gentsagency/gulp-registry-emails

> A modern workflow for e-mail development

Latest version **1.0.2** (published 2018-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gentsagency/gulp-registry-emails
pnpm add @gentsagency/gulp-registry-emails
yarn add @gentsagency/gulp-registry-emails
bun add @gentsagency/gulp-registry-emails
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-10-04 |
| First published | 2018-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pieter Beulque |
| Maintainers | diederik, pieterbeulque |
| Keywords | gulp, email, inline, css, twig |

## Links

- npm: https://www.npmjs.com/package/@gentsagency/gulp-registry-emails
- Repository: https://github.com/gentsagency/gulp-registry-emails
- Homepage: https://github.com/gentsagency/gulp-registry-emails#readme
- Issues: https://github.com/gentsagency/gulp-registry-emails/issues
- npm.io page: https://npm.io/package/@gentsagency/gulp-registry-emails

## Dependencies (9)

- [twig](https://npm.io/package/twig.md) ^1.12.0
- [twing](https://npm.io/package/twing.md) ^2.0.0
- [gulp-twing](https://npm.io/package/gulp-twing.md) ^2.0.0
- [gulp-postcss](https://npm.io/package/gulp-postcss.md) ^8.0.0
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) ^4.1.0
- [postcss-import](https://npm.io/package/postcss-import.md) ^12.0.0
- [postcss-nested](https://npm.io/package/postcss-nested.md) ^4.1.0
- [gulp-inline-css](https://npm.io/package/gulp-inline-css.md) ^3.3.0
- [postcss-preset-env](https://npm.io/package/postcss-preset-env.md) ^6.0.10

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-10-04
- 1.0.1 — 2018-10-04
- 1.0.0 — 2018-10-04

## README

# Gents Agency E-mails Gulp Registry

[![dependencies Status](https://david-dm.org/gentsagency/gulp-registry-emails/status.svg)](https://david-dm.org/gentsagency/gulp-registry-emails)

This task registry provides a workflow to simplify e-mail template development. It optimizes images, inlines CSS and allows you to work with Twig.

## Installation

Install the registry through NPM:

```sh
npm i --save-dev gulp@^4.0.0 @gentsagency/gulp-registry-emails
```

Create a `gulpfile.js` and point it to the registry.

```js
const gulp = require('gulp');
const config = require('./gulp/config');
const Registry = require('@gentsagency/gulp-registry-emails');

const tasks = new Registry(config);

gulp.registry(tasks);
```

## Configuration

Find an example configuration file below

```js
const paths = {
	src: './gulp',
	assets: {
		src: './gulp/assets',
		dest: './build/assets',
	},
	templates: {
		src: './gulp/templates',
		dest: './build',
	},
	html: {
		src: './build',
		dest: './build',
	}
};

module.exports = {
	src: paths.src,
	css: {
		src: `${paths.assets.src}/css/*.css`,
		dest: `${paths.assets.dest}/css`,
	},
	images: {
		src: `${paths.assets.src}/images/**`,
		dest: `${paths.assets.dest}/images`,
	},
	templates: {
		src: `${paths.templates.src}`,
		dest: `${paths.templates.dest}`,
	},
	html: {
		src: `${paths.html.src}/*.html`,
		dest: `${paths.html.dest}`,
	},
};
```

## Usage

`$ gulp` runs a one-time build.

`$ gulp watch` starts the watcher.

## Troubleshooting

### Upgrading to Gulp 4 broke things for me!

Re-install Gulp globally, your older projects should still work (using the Gulp 3 version installed in the projects `/node_modules`)

```sh
npm rm -g gulp
rm /usr/local/share/man/man1/gulp.1
npm i -g gulp-cli
```

---
_Source: https://npm.io/package/@gentsagency/gulp-registry-emails · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
