Skip to content

dirixtom/base-template-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Template Email

This repository provides a base template for creating responsive and modular email designs, with a focus on compatibility with Marketo. It includes configurations, workflows, and scripts to streamline email development and ensure quality.

Features

  • Marketo Compatibility: A script is included to clean the email template and make it ready for use in Marketo by removing unsupported <script> tags.
  • Automated Workflows: GitHub Actions are configured to handle tasks like dependency reviews, linting, and stale issue management.
  • Bun Integration: The repository uses Bun for running scripts efficiently.

Prerequisites

To use this repository, you need to install Bun. Follow the installation instructions on their website.

Usage

Cleaning the Template for Marketo

To prepare the email template for Marketo:

  1. Run the following command:
    bun run clean
  2. This will process the index.html file, remove all <script> tags, and generate a marketo.index.html file that is ready for use in Marketo.
  3. Upload the marketo.index.html file to Marketo or your email platform.

Configuration and Workflows

Scripts

  • bun run clean: Executes the script defined in config/build.js to clean the index.html file and create a Marketo-compatible version.

GitHub Workflows

The repository includes several GitHub Actions workflows to automate tasks:

  • Labeler Workflow (.github/workflows/label.yml):

    • Automatically applies labels to pull requests based on the files modified.
    • Uses the actions/labeler action.
  • Dependency Review Workflow (.github/workflows/dependency-review.yml):

    • Scans dependency manifest files in pull requests for known vulnerabilities.
    • Uses the actions/dependency-review-action.
  • Stale Issues Workflow (.github/workflows/stale.yml):

    • Marks issues and pull requests as stale after a period of inactivity.
    • Uses the actions/stale action.
  • Super Linter Workflow (.github/workflows/super-linter.yml):

    • Lints code in pull requests to ensure quality and consistency.
    • Uses the super-linter action.
    • Automatically commits and pushes fixes for linting issues when applicable.

Development

File Structure

  • index.html: The main email template file.
  • marketo.index.html: The Marketo-ready version of the email template, generated by the cleaning script.
  • config/build.js: Script to clean the template and remove <script> tags.
  • .github/workflows/: Contains GitHub Actions workflows for automation.

Running Locally

  1. Clone the repository:
    git clone https://github.com/your-repo/base-template-email.git
    cd base-template-email
  2. Install Bun if not already installed.
  3. Run the cleaning script:
    bun run clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published