@travetto/email-compiler 8.0.0-alpha.16 → 8.0.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,14 +53,22 @@ The module provides [Command Line Interface](https://github.com/travetto/travett
53
53
  ## CLI Compilation
54
54
  The module provides [Command Line Interface](https://github.com/travetto/travetto/tree/main/module/cli#readme "CLI infrastructure for Travetto framework") support for email template compilation also. Running
55
55
 
56
- **Terminal: Running template compilation**
56
+ ## CLI - email:compile
57
+
58
+ **Terminal: Help for email:compile**
57
59
  ```bash
58
60
  $ trv email:compile --help
59
61
 
60
62
  Usage: email:compile [options]
61
63
 
64
+ Compile all email templates into generated runtime artifacts.
65
+
66
+ The command discovers templated inputs (for example, `.email.html`) and emits
67
+ compiled outputs used at runtime (html/text/subject variants). With watch
68
+ enabled, recompilation runs automatically on matching template changes.
69
+
62
70
  Options:
63
- -w, --watch Compile in watch mode
71
+ -w, --watch Recompile templates whenever source templates change.
64
72
  --help display help for command
65
73
  ```
66
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/email-compiler",
3
- "version": "8.0.0-alpha.16",
3
+ "version": "8.0.0-alpha.18",
4
4
  "type": "module",
5
5
  "description": "Email compiling module",
6
6
  "keywords": [
@@ -27,20 +27,20 @@
27
27
  "directory": "module/email-compiler"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^8.0.0-alpha.15",
31
- "@travetto/di": "^8.0.0-alpha.14",
32
- "@travetto/email": "^8.0.0-alpha.15",
33
- "@travetto/image": "^8.0.0-alpha.14",
34
- "@travetto/runtime": "^8.0.0-alpha.14",
35
- "@travetto/worker": "^8.0.0-alpha.14",
30
+ "@travetto/config": "^8.0.0-alpha.17",
31
+ "@travetto/di": "^8.0.0-alpha.16",
32
+ "@travetto/email": "^8.0.0-alpha.17",
33
+ "@travetto/image": "^8.0.0-alpha.16",
34
+ "@travetto/runtime": "^8.0.0-alpha.16",
35
+ "@travetto/worker": "^8.0.0-alpha.16",
36
36
  "@types/inline-css": "^3.0.4",
37
37
  "html-entities": "^2.6.0",
38
38
  "inline-css": "^4.0.3",
39
39
  "purgecss": "^8.0.0",
40
- "sass": "^1.99.0"
40
+ "sass": "^1.100.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@travetto/cli": "^8.0.0-alpha.20"
43
+ "@travetto/cli": "^8.0.0-alpha.22"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@travetto/cli": {
@@ -6,12 +6,16 @@ import { EmailCompiler } from '../src/compiler.ts';
6
6
  import { EmailCompileUtil } from '../src/util.ts';
7
7
 
8
8
  /**
9
- * CLI Entry point for running the email server
9
+ * Compile all email templates into generated runtime artifacts.
10
+ *
11
+ * The command discovers templated inputs (for example, `.email.html`) and emits
12
+ * compiled outputs used at runtime (html/text/subject variants). With watch
13
+ * enabled, recompilation runs automatically on matching template changes.
10
14
  */
11
15
  @CliCommand()
12
16
  export class EmailCompileCommand implements CliCommandShape {
13
17
 
14
- /** Compile in watch mode */
18
+ /** Recompile templates whenever source templates change. */
15
19
  watch?: boolean;
16
20
 
17
21
  finalize(): void {
@@ -5,7 +5,12 @@ import { DependencyRegistryIndex } from '@travetto/di';
5
5
 
6
6
  import { EditorService } from './bin/editor.ts';
7
7
 
8
- /** The email editor compilation service and output serving */
8
+ /**
9
+ * Start the email template editor service for interactive preview and testing.
10
+ *
11
+ * The editor compiles templates on demand and hosts the preview/test workflow
12
+ * used during local template authoring.
13
+ */
9
14
  @CliCommand()
10
15
  export class EmailEditorCommand {
11
16
 
@@ -8,7 +8,10 @@ import { Env } from '@travetto/runtime';
8
8
  import { EditorService } from './bin/editor.ts';
9
9
 
10
10
  /**
11
- * CLI Entry point for running the email server
11
+ * Render and send a template file to a target recipient for quick validation.
12
+ *
13
+ * This command is useful during template development to verify real delivery and
14
+ * formatting without running the full editor workflow.
12
15
  */
13
16
  @CliCommand()
14
17
  export class EmailTestCommand implements CliCommandShape {