dokio-create-template 1.0.0 → 1.0.1
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/LICENSE +1 -1
- package/README.md +10 -1
- package/package.json +4 -4
- package/templates/general/index.html +3 -11
- package/templates/general/style.scss.hbs +1 -1
- package/templates/pdf/index.html +1 -9
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -62,17 +62,20 @@ The tool generates the following files:
|
|
|
62
62
|
## Template Types
|
|
63
63
|
|
|
64
64
|
### General (Image)
|
|
65
|
+
|
|
65
66
|
- Export formats: JPG, PNG
|
|
66
67
|
- Dimensions: 400x400px (customizable)
|
|
67
68
|
- Use case: Social media graphics, banners, thumbnails
|
|
68
69
|
|
|
69
70
|
### PDF
|
|
71
|
+
|
|
70
72
|
- Export formats: Hi-res PDF, Low-res PDF, Print orders
|
|
71
73
|
- Prince XML support (versions 11 or 15)
|
|
72
74
|
- Built-in support for headers, footers, page numbers
|
|
73
75
|
- Use case: Brochures, flyers, certificates, reports
|
|
74
76
|
|
|
75
77
|
### Email
|
|
78
|
+
|
|
76
79
|
- Responsive design (desktop and mobile)
|
|
77
80
|
- Outlook and Gmail compatible
|
|
78
81
|
- Export formats: Standalone HTML, Hosted HTML, URL
|
|
@@ -80,6 +83,7 @@ The tool generates the following files:
|
|
|
80
83
|
- Use case: Marketing emails, newsletters, transactional emails
|
|
81
84
|
|
|
82
85
|
### Video
|
|
86
|
+
|
|
83
87
|
- Resolution: 1920x1080 (Full HD)
|
|
84
88
|
- Default duration: 30 seconds
|
|
85
89
|
- Export format: 1080p video
|
|
@@ -120,22 +124,26 @@ $ dokio-create-template
|
|
|
120
124
|
After generating your template, you can customize:
|
|
121
125
|
|
|
122
126
|
### data.yaml
|
|
127
|
+
|
|
123
128
|
- Add/modify fields
|
|
124
129
|
- Configure export options
|
|
125
130
|
- Set page dimensions
|
|
126
131
|
- Define default values
|
|
127
132
|
|
|
128
133
|
### index.html
|
|
134
|
+
|
|
129
135
|
- Add markup structure
|
|
130
136
|
- Use Handlebars syntax for dynamic content
|
|
131
137
|
- Reference field values with `{{{field-name}}}`
|
|
132
138
|
|
|
133
139
|
### style.scss.hbs
|
|
140
|
+
|
|
134
141
|
- Write SCSS styles
|
|
135
142
|
- Use Handlebars for dynamic styling
|
|
136
143
|
- Configure responsive breakpoints (email templates)
|
|
137
144
|
|
|
138
145
|
### CHANGELOG.md
|
|
146
|
+
|
|
139
147
|
- Document template changes
|
|
140
148
|
- Track version history
|
|
141
149
|
|
|
@@ -155,7 +163,8 @@ MIT
|
|
|
155
163
|
|
|
156
164
|
## Author
|
|
157
165
|
|
|
158
|
-
|
|
166
|
+
- [Jake Lourence Villar](https://github.com/jeikudev)
|
|
167
|
+
- [Dokio](https://dokio.com)
|
|
159
168
|
|
|
160
169
|
---
|
|
161
170
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dokio-create-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "CLI tool to scaffold Dokio templates (general, pdf, email, video)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/
|
|
28
|
+
"url": "https://github.com/jeikudev/dokio-create-template"
|
|
29
29
|
},
|
|
30
30
|
"bugs": {
|
|
31
|
-
"url": "https://github.com/
|
|
31
|
+
"url": "https://github.com/jeikudev/dokio-create-template/issues"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://
|
|
33
|
+
"homepage": "https://dokio.com/",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"inquirer": "^8.2.5",
|
|
36
36
|
"chalk": "^4.1.2",
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
<
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>{{TEMPLATE_NAME}}</title>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<div class="container" style="background-color: #{{background-color}};">
|
|
1
|
+
|
|
2
|
+
<div class="page" style="background-color: #{{background-color}};">
|
|
10
3
|
<div class="content">
|
|
11
4
|
<h1 class="heading">{{{heading}}}</h1>
|
|
12
5
|
<div class="body-text">{{{body-text}}}</div>
|
|
13
6
|
</div>
|
|
14
7
|
</div>
|
|
15
|
-
|
|
16
|
-
</html>
|
|
8
|
+
|
package/templates/pdf/index.html
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>{{TEMPLATE_NAME}}</title>
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
1
|
+
|
|
8
2
|
<div class="page">
|
|
9
3
|
<div class="content">
|
|
10
4
|
<h1 class="heading" style="color: #{{primary-color}};">{{{heading}}}</h1>
|
|
11
5
|
<div class="body-text">{{{body-text}}}</div>
|
|
12
6
|
</div>
|
|
13
7
|
</div>
|
|
14
|
-
</body>
|
|
15
|
-
</html>
|