Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Package compiler

on:
push:
branches:
- main

pull_request:
branches:
- main

permissions:
contents: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
compile:
name: 'Compile'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- run: 'npm run build'

- run: cp .gitignore .gitignore_old && cp .npmignore .gitignore && rm node_modules -fr

- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: package
force_orphan: true
2 changes: 1 addition & 1 deletion lib/adapters/mjml.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TemplateAdapterConfig } from '../interfaces/template-adapter-config.int
import { PugAdapter } from './pug.adapter';
import { TemplateAdapter } from '../interfaces/template-adapter.interface';
import { MailerOptions } from '../interfaces/mailer-options.interface';
import * as mjml2html from 'mjml';
import mjml2html from 'mjml';

export class MjmlAdapter implements TemplateAdapter {
private engine: TemplateAdapter | null;
Expand Down
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,62 +54,62 @@
]
},
"dependencies": {
"@css-inline/css-inline": "0.14.1",
"glob": "10.3.12"
"@css-inline/css-inline": "0.14.3",
"glob": "11.0.1"
},
"optionalDependencies": {
"@types/ejs": "^3.1.5",
"@types/pug": "^2.0.10",
"@types/mjml": "^4.7.4",
"@types/pug": "^2.0.10",
"ejs": "^3.1.10",
"handlebars": "^4.7.8",
"mjml": "^5.0.0-alpha.4",
"pug": "^3.0.2",
"liquidjs": "^10.11.1",
"preview-email": "^3.0.19"
"liquidjs": "^10.20.2",
"mjml": "5.0.0-alpha.6",
"preview-email": "^3.1.0",
"pug": "^3.0.3"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-angular": "19.3.0",
"@nestjs/common": "10.3.8",
"@nestjs/core": "10.3.8",
"@nestjs/testing": "10.3.8",
"@commitlint/cli": "19.6.1",
"@commitlint/config-angular": "19.7.0",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/testing": "11.0.6",
"@types/glob": "8.1.0",
"@types/jest": "29.5.12",
"@types/lodash": "4.17.0",
"@types/nodemailer": "6.4.14",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.14",
"@types/nodemailer": "6.4.17",
"@types/pug": "2.0.10",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"husky": "9.0.11",
"@typescript-eslint/eslint-plugin": "8.21.0",
"@typescript-eslint/parser": "8.21.0",
"husky": "9.1.7",
"jest": "29.7.0",
"lint-staged": "15.2.2",
"nodemailer": "6.9.13",
"nodemailer-mock": "2.0.6",
"prettier": "3.2.5",
"lint-staged": "15.4.3",
"nodemailer": "6.10.0",
"nodemailer-mock": "2.0.8",
"prettier": "3.4.2",
"preview-email": "3.0.19",
"reflect-metadata": "0.2.2",
"rimraf": "5.0.5",
"rimraf": "6.0.1",
"rxjs": "7.8.1",
"standard-version": "9.5.0",
"ts-jest": "29.1.2",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"tslib": "2.6.2",
"typescript": "5.4.5",
"yarn-audit-fix": "10.0.7"
"tslib": "2.8.1",
"typescript": "5.7.3",
"yarn-audit-fix": "10.1.1"
},
"peerDependencies": {
"@nestjs/common": ">=7.0.9",
"@nestjs/core": ">=7.0.9",
"@types/ejs": ">=3.0.3",
"@types/pug": ">=2.0.6",
"@types/mjml": ">=4.7.4",
"nodemailer": ">=6.4.6",
"@types/pug": ">=2.0.6",
"ejs": ">=3.1.2",
"handlebars": ">=4.7.6",
"mjml": ">=4.15.3",
"pug": ">=3.0.1",
"liquidjs": ">=10.8.2",
"preview-email": ">=3.0.19"
"mjml": ">=4.15.3",
"nodemailer": ">=6.4.6",
"preview-email": ">=3.0.19",
"pug": ">=3.0.1"
}
}
Loading