create-jwn-js 1.0.13 → 1.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jwn-js",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "license": "PRIVATE",
5
5
  "author": "Webigorkiev",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  "ts-jest": "^27.1.2",
21
21
  "ts-node": "^10.4.0",
22
22
  "typescript": "^4.4.4",
23
- "vite": "^2.7.9",
23
+ "vite": "^2.6.13",
24
24
  "vitepress": "^0.20.10"
25
25
  },
26
26
  "dependencies": {
@@ -16,22 +16,23 @@
16
16
  "@types/jest": "^27.0.3",
17
17
  "@types/memjs": "^1.2.4",
18
18
  "@types/node": "^17.0.4",
19
- "@vue/compiler-sfc": "^3.2.26",
19
+ "@vue/compiler-sfc": "^3.2.31",
20
20
  "@vue/test-utils": "^2.0.0-rc.18",
21
21
  "@vue/vue3-jest": "^27.0.0-alpha.4",
22
+ "@vitejs/plugin-vue": "^2.2.4",
22
23
  "autoprefixer": "^10.4.1",
23
24
  "jest": "^27.4.5",
24
25
  "ts-jest": "^27.1.2",
25
26
  "ts-node": "^10.4.0",
26
27
  "typescript": "^4.4.4",
27
- "vite": "^2.7.9",
28
+ "vite": "^2.8.6",
28
29
  "vite-svg-loader": "^3.1.1",
29
30
  "vitepress": "^0.20.10"
30
31
  },
31
32
  "dependencies": {
32
33
  "@jwn-js/common": "^2.0.7",
33
34
  "@jwn-js/plugins": "^1.0.13",
34
- "@vue/server-renderer": "^3.2.26",
35
+ "@vue/server-renderer": "^3.2.31",
35
36
  "@vuemod/prefetch": "^1.0.10",
36
37
  "amitt": "^1.0.5",
37
38
  "buildmsql": "^1.3.2",
@@ -49,10 +50,10 @@
49
50
  "postcss-plugin": "^1.0.0",
50
51
  "postcss-scss": "^4.0.0",
51
52
  "primevue": "^3.10.0",
52
- "vue": "^3.2.26",
53
+ "vue": "^3.2.31",
53
54
  "vue-router": "^4.0.12",
54
55
  "vuex": "^4.0.2",
55
56
  "vuex-router-sync": "^6.0.0-rc.1",
56
- "vite-ssr-vue": "^0.4.7"
57
+ "vite-ssr-vue": "^1.0.2"
57
58
  }
58
59
  }
@@ -5,7 +5,7 @@ import {webRoutes} from "./web-routes";
5
5
  import {createMariadb} from "./helpers/createMariadb";
6
6
  import {createMemcached} from "./helpers/createMemcached";
7
7
  import {readManifest} from "@/backend/server/helpers/readManifest";
8
- import entry from "@/frontend/main";
8
+ import entry from "@/frontend/entry-server";
9
9
  declare var process: any;
10
10
 
11
11
  const {readConfigSync} = helpers;
@@ -1,2 +1,5 @@
1
- import entry from "./main";
2
- export default entry;
1
+ import ssr from "vite-ssr-vue/client";
2
+ import options from "./entry-options";
3
+ import App from "./App.vue";
4
+
5
+ export default ssr(App, options);
@@ -1,4 +1,4 @@
1
- import ssr, {Context} from "vite-ssr-vue";
1
+ import {Context, CreatorOptions} from "vite-ssr-vue";
2
2
  import App from "./App.vue";
3
3
  import createRouter from "./routes";
4
4
  import createStore from "./store";
@@ -17,7 +17,7 @@ import ConfirmationService from 'primevue/confirmationservice';
17
17
 
18
18
  const defaultLang = "ru";
19
19
 
20
- export default ssr(App, {
20
+ export default {
21
21
  created({app, context, req, res, isClient}) {
22
22
  const emitter = amitt();
23
23
  const head = createHead();
@@ -65,4 +65,4 @@ export default ssr(App, {
65
65
 
66
66
  return {head, router, store}
67
67
  }
68
- });
68
+ } as CreatorOptions;
@@ -1,4 +1,6 @@
1
- import entry from "./main";
1
+ import ssr from "vite-ssr-vue/server";
2
+ import options from "./entry-options";
3
+ import App from "@/frontend/App.vue";
2
4
  import "@/backend/server";
3
5
 
4
- export default entry;
6
+ export default ssr(App, options);
@@ -47,7 +47,8 @@ export default defineConfig({
47
47
  "css-select"
48
48
  ],
49
49
  noExternal: [
50
- "vuex-router-sync"
50
+ "vuex-router-sync",
51
+ "node-html-parser"
51
52
  ]
52
53
  },
53
54
  plugins: [