@newlogic-digital/core 0.9.7 → 0.9.10

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/modules/Core.js CHANGED
@@ -43,6 +43,7 @@ let Config = {
43
43
  paths: {
44
44
  temp: "temp",
45
45
  cdn: "temp/cdn",
46
+ base: "",
46
47
  input: {
47
48
  root: "src",
48
49
  main: "src/main.json",
@@ -61,7 +62,7 @@ let Config = {
61
62
  icons: "public/assets/css",
62
63
  emails: "public",
63
64
  emailsImg: "public/img",
64
- emailsWww: "www/emails",
65
+ emailsWww: "app/Presenters/emails",
65
66
  assets: "public/assets"
66
67
  }
67
68
  },
@@ -151,7 +152,8 @@ let Config = {
151
152
  removeClasses: false,
152
153
  inlineOnly: false,
153
154
  zipPrefix: ["email"],
154
- postcss: {}
155
+ postcss: {},
156
+ format: "twig"
155
157
  },
156
158
  assets: {
157
159
  revision: true
@@ -323,7 +325,7 @@ class Core {
323
325
  let contents = file.contents.toString();
324
326
 
325
327
  contents = contents.replace(new RegExp(`${Config.paths.input.assets}`, 'g'),
326
- `${Config.paths.output.assets.replace(Config.paths.output.root + "/", "")}`)
328
+ `${Config.paths.output.assets.replace(Config.paths.output.root + "/", Config.paths.base.length > 0 ? Config.paths.base + "/" : "")}`)
327
329
 
328
330
  file.contents = Buffer.from(contents);
329
331
 
@@ -185,7 +185,7 @@ export class Templates {
185
185
  }
186
186
 
187
187
  if (Config.paths.output.rewrite && url.indexOf(`/${Config.paths.output.root}`) === 0) {
188
- url = url.replace(`/${Config.paths.output.root}`, "")
188
+ url = url.replace(`/${Config.paths.output.root}`, Config.paths.base.length > 0 ? `/${Config.paths.base}` : "")
189
189
  }
190
190
 
191
191
  return url;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "0.9.7",
4
+ "version": "0.9.10",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",