@newlogic-digital/core 2.0.0-alpha.11 → 2.0.0-alpha.13

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -56,6 +56,7 @@ const defaultOptions = {
56
56
  }
57
57
  },
58
58
  posthtml: {
59
+ enforce: 'pre',
59
60
  root: resolve(process.cwd(), 'src')
60
61
  },
61
62
  juice: {
@@ -149,12 +150,18 @@ const plugin = (options = {}) => {
149
150
  ]
150
151
  }
151
152
 
153
+ const outDir = resolve(userConfig.root ?? process.cwd(), 'public')
154
+
155
+ if (userConfig.build && !userConfig.build.outDir) {
156
+ userConfig.build.outDir = outDir
157
+ }
158
+
152
159
  userConfig.build = Object.assign({
153
160
  manifest: true,
154
161
  emptyOutDir: false,
155
162
  modulePreload: false,
156
163
  assetsInlineLimit: 0,
157
- outDir: resolve(userConfig.root ?? process.cwd(), 'public'),
164
+ outDir,
158
165
  rollupOptions: {
159
166
  input: defaultInput
160
167
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.11",
4
+ "version": "2.0.0-alpha.13",
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",
@@ -11,10 +11,10 @@
11
11
  "eslint": "eslint '**/*.js' --fix"
12
12
  },
13
13
  "dependencies": {
14
- "@vituum/vite-plugin-posthtml": "^1.0.0-alpha.3",
14
+ "@vituum/vite-plugin-posthtml": "^1.0.0-alpha.4",
15
15
  "@vituum/vite-plugin-juice": "^1.0.0-alpha.2",
16
- "@vituum/vite-plugin-latte": "^1.0.0-alpha.8",
17
- "@vituum/vite-plugin-twig": "^1.0.0-alpha.6",
16
+ "@vituum/vite-plugin-latte": "^1.0.0-alpha.10",
17
+ "@vituum/vite-plugin-twig": "^1.0.0-alpha.7",
18
18
  "@vituum/vite-plugin-tailwindcss": "^1.0.0-alpha.2",
19
19
  "@vituum/vite-plugin-send": "^1.0.0-alpha.2",
20
20
  "vituum": "^1.0.0-alpha.18",
@@ -36,9 +36,14 @@
36
36
  },
37
37
  "files": [
38
38
  "latte",
39
+ "types",
39
40
  "index.js",
40
41
  "src"
41
42
  ],
43
+ "exports": {
44
+ ".": "./index.js",
45
+ "./types": "./types/*"
46
+ },
42
47
  "engines": {
43
48
  "node": ">=16.0.0",
44
49
  "npm": ">=8.0.0"
@@ -0,0 +1,18 @@
1
+ interface Emails {
2
+ outputDir?: string
3
+ appDir?: string
4
+ }
5
+
6
+ export interface PluginUserConfig {
7
+ mode?: string
8
+ format?: string[]
9
+ cert?: string
10
+ emails?: Emails
11
+ vituum?: import('vituum/types').UserConfig,
12
+ posthtml?: import('@vituum/vite-plugin-posthtml/types').PluginUserConfig
13
+ juice?: import('@vituum/vite-plugin-juice/types').PluginUserConfig
14
+ send?: import('@vituum/vite-plugin-send/types').PluginUserConfig
15
+ tailwindcss?: import('@vituum/vite-plugin-tailwindcss/types').PluginUserConfig
16
+ latte?: import('@vituum/vite-plugin-latte/types').PluginUserConfig
17
+ twig?: import('@vituum/vite-plugin-twig/types').PluginUserConfig
18
+ }