Skip to content

Commit 023ae8e

Browse files
authored
Merge pull request #74 from maizzle/refactor/vitest
2 parents b323bbc + 9e03a85 commit 023ae8e

File tree

9 files changed

+3820
-11031
lines changed

9 files changed

+3820
-11031
lines changed

.github/tailwindcss-mark.svg

+1
Loading

.github/workflows/nodejs.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: build
55

66
on:
77
push:
@@ -14,15 +14,15 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [12, 14, 16]
17+
node-version: [18, 20]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
- run: npm install
25+
- run: npm ci
2626
- run: npm test
2727
env:
2828
CI: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode
2+
coverage
23
node_modules
34
npm-debug.log
45
yarn-error.log

README.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# tailwindcss-email-variants
1+
<div align="center">
2+
<img src="./.github/tailwindcss-mark.svg" alt="Tailwind CSS" width="108" height="66">
3+
<h1>Tailwind CSS Email Variants</h1>
24

3-
A plugin that provides variants for email client targeting hacks used in HTML emails.
5+
[![Build][github-ci-shield]][github-ci]
6+
[![License][license-shield]][license]
7+
</div>
8+
9+
A Tailwind CSS plugin that provides variants for email client targeting hacks used in HTML emails.
410

511
All variants are based on targeting hacks from [howtotarget.email](https://howtotarget.email)
612

@@ -15,21 +21,18 @@ npm install -D tailwindcss-email-variants
1521
Then add the plugin to your `tailwind.config.js` file:
1622

1723
```js
18-
// tailwind.config.js
24+
/** @type {import('tailwindcss').Config} */
1925
module.exports = {
20-
theme: {
21-
// ...
22-
},
26+
// ...
2327
plugins: [
2428
require('tailwindcss-email-variants'),
25-
// ...
2629
],
2730
}
2831
```
2932

3033
## Usage
3134

32-
Use the available variants to generate utilities that target specific email clients, or [configure it](#configuration) with your own variants.
35+
Use the available variants to generate utilities that target specific email clients.
3336

3437
### Gmail
3538

@@ -156,3 +159,8 @@ Result:
156159
display: none;
157160
}
158161
```
162+
163+
[github-ci]: https://github.com/maizzle/tailwindcss-email-variants/actions
164+
[github-ci-shield]: https://github.com/maizzle/tailwindcss-email-variants/actions/workflows/nodejs.yml/badge.svg
165+
[license]: ./LICENSE
166+
[license-shield]: https://img.shields.io/github/license/maizzle/tailwindcss-email-variants?color=0e9f6e

jest/customMatchers.js

-146
This file was deleted.

0 commit comments

Comments
 (0)