@newlogic-digital/core 0.9.10 → 0.9.13

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
@@ -36,6 +36,7 @@ let Config = {
36
36
  index: "/",
37
37
  mode: "",
38
38
  https: false,
39
+ cert: 'localhost',
39
40
  reload: (file) => (file.endsWith('.php') || file.endsWith('.tpl') || file.endsWith('.latte')) && !file.includes('temp/'),
40
41
  vite: {}
41
42
  },
@@ -186,7 +186,7 @@ export class Scripts {
186
186
  preventAssignment: true,
187
187
  values: Object.assign({
188
188
  'process.env.NODE_ENV': JSON.stringify('production'),
189
- [Config.paths.input.assets]: `${Config.paths.output.assets.replace(Config.paths.output.root + "/", "")}`
189
+ [Config.paths.input.assets]: `${Config.paths.output.assets.replace(Config.paths.output.root + "/", Config.paths.base.length > 0 ? Config.paths.base + "/" : "")}`
190
190
  }, assetsManifest)
191
191
  }),
192
192
  Config.scripts.optimizations && terser(),
package/modules/Serve.js CHANGED
@@ -74,12 +74,12 @@ export const Serve = new class {
74
74
  root: process.cwd(),
75
75
  };
76
76
 
77
- if (fs.existsSync(path.join(os.homedir(),'.ssh/localhost.pem')) && Config.serve.https) {
77
+ if (fs.existsSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}.pem`)) && Config.serve.https) {
78
78
  lodash.merge(config, {
79
79
  server: {
80
80
  https: {
81
- key: fs.readFileSync(path.join(os.homedir(),'.ssh/localhost-key.pem')),
82
- cert: fs.readFileSync(path.join(os.homedir(),'.ssh/localhost.pem')),
81
+ key: fs.readFileSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}-key.pem`)),
82
+ cert: fs.readFileSync(path.join(os.homedir(),`.ssh/${Config.serve.cert}.pem`)),
83
83
  },
84
84
  hmr: {
85
85
  host: 'localhost'
@@ -13,6 +13,8 @@ import loadLanguages from 'prismjs/components/index.js'
13
13
  import NormalizeWhitespace from 'prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.js'
14
14
  import {Config, Exists, Functions, Modules, root} from "./Core.js";
15
15
 
16
+ loadLanguages(['markup', 'css', 'javascript'])
17
+
16
18
  export class Templates {
17
19
  get functions() {
18
20
  return Object.assign(Config.templates.functions, {
@@ -239,8 +241,6 @@ export class Templates {
239
241
  type = type.replace(":mirror", "")
240
242
  }
241
243
 
242
- loadLanguages(['markup', 'css', 'javascript'])
243
-
244
244
  const Normalize = new NormalizeWhitespace({
245
245
  'remove-trailing': true,
246
246
  'remove-indent': true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "0.9.10",
4
+ "version": "0.9.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",
@@ -13,15 +13,15 @@
13
13
  "tailwind": "rollup modules/tailwind/index.js --file modules/tailwind/index.cjs --format cjs"
14
14
  },
15
15
  "dependencies": {
16
- "@babel/core": "^7.16.12",
17
- "@babel/preset-env": "^7.16.11",
18
- "@rollup/plugin-babel": "^5.3.0",
19
- "@rollup/plugin-commonjs": "^21.0.1",
20
- "@rollup/plugin-node-resolve": "^13.1.3",
21
- "@rollup/plugin-replace": "^3.0.1",
16
+ "@babel/core": "^7.17.12",
17
+ "@babel/preset-env": "^7.17.12",
18
+ "@rollup/plugin-babel": "^5.3.1",
19
+ "@rollup/plugin-commonjs": "^22.0.0",
20
+ "@rollup/plugin-node-resolve": "^13.3.0",
21
+ "@rollup/plugin-replace": "^4.0.0",
22
22
  "adm-zip": "^0.5.9",
23
- "clean-css": "^5.2.2",
24
- "fs-extra": "^10.0.0",
23
+ "clean-css": "^5.3.0",
24
+ "fs-extra": "^10.1.0",
25
25
  "plugin-error": "^1.0.1",
26
26
  "through2": "^4.0.2",
27
27
  "twig": "^1.15.4",
@@ -40,23 +40,23 @@
40
40
  "lazypipe": "^1.0.2",
41
41
  "lodash": "^4.17.21",
42
42
  "postcss-custom-media": "^8.0.0",
43
- "postcss-custom-properties": "^12.1.4",
43
+ "postcss-custom-properties": "^12.1.7",
44
44
  "postcss-custom-selectors": "^6.0.0",
45
- "postcss-import": "^14.0.2",
46
- "postcss-nesting": "^10.1.2",
47
- "rollup": "^2.66.1",
45
+ "postcss-import": "^14.1.0",
46
+ "postcss-nesting": "^10.1.6",
47
+ "rollup": "^2.73.0",
48
48
  "rollup-plugin-import-map": "^2.2.2",
49
49
  "rollup-plugin-terser": "^7.0.2",
50
- "vite": "~2.7.13",
51
- "prismjs": "^1.26.0"
50
+ "vite": "~2.9.9",
51
+ "prismjs": "^1.28.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "autoprefixer": "^10.4.2",
55
- "postcss": "^8.4.5",
56
- "tailwindcss": "^3.0.18"
54
+ "autoprefixer": "^10.4.7",
55
+ "postcss": "^8.4.13",
56
+ "tailwindcss": "^3.0.24"
57
57
  },
58
58
  "devDependencies": {
59
- "vitepress": "^0.21.6"
59
+ "vitepress": "^0.22.4"
60
60
  },
61
61
  "files": [
62
62
  "index.js",