@newlogic-digital/core 0.9.6 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
package/modules/Core.js CHANGED
@@ -61,7 +61,7 @@ let Config = {
61
61
  icons: "public/assets/css",
62
62
  emails: "public",
63
63
  emailsImg: "public/img",
64
- emailsWww: "www/emails",
64
+ emailsWww: "app/Presenters/emails",
65
65
  assets: "public/assets"
66
66
  }
67
67
  },
@@ -151,7 +151,8 @@ let Config = {
151
151
  removeClasses: false,
152
152
  inlineOnly: false,
153
153
  zipPrefix: ["email"],
154
- postcss: {}
154
+ postcss: {},
155
+ format: "twig"
155
156
  },
156
157
  assets: {
157
158
  revision: true
package/modules/Emails.js CHANGED
@@ -20,7 +20,7 @@ export class Emails {
20
20
  removeStyleTags: Config.emails.inlineOnly
21
21
  }
22
22
 
23
- const buildCss = lazypipe().pipe(() => gulpif("*.css", postcss(new Utils().postcssPlugins(Config.emails.postcss, [postcssCustomProperties({
23
+ const buildCss = lazypipe().pipe(() => gulpif("*.css", postcss(new Utils().postcssPluginsEmails(Config.emails.postcss, [postcssCustomProperties({
24
24
  preserve: false
25
25
  }), autoprefixer])))
26
26
  ).pipe(() => gulpif("*.less", Modules.less.module()))
@@ -107,4 +107,4 @@ export class Emails {
107
107
  resolve();
108
108
  })
109
109
  }
110
- }
110
+ }
package/modules/Utils.js CHANGED
@@ -279,6 +279,21 @@ export class Utils {
279
279
  return config;
280
280
  }
281
281
 
282
+ return plugins.concat(after);
283
+ }
284
+ postcssPluginsEmails(config, after) {
285
+ let plugins = [postcssImport, postcssNesting({
286
+ noIsPseudoSelector: true
287
+ }), postcssCustomMedia, postcssCustomSelectors];
288
+
289
+ if (Exists.postcssConfig) {
290
+ return {config: root}
291
+ } else if (typeof config.extend !== "undefined") {
292
+ plugins = plugins.concat(config.extend)
293
+ } else if (Array.isArray(config) && config.length !== 0) {
294
+ return config;
295
+ }
296
+
282
297
  return plugins.concat(after);
283
298
  }
284
299
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "0.9.6",
4
+ "version": "0.9.9",
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",