@paroicms/public-menu-plugin 0.16.0 → 0.18.0
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.
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { escapeHtml, makeStylesheetLinkAsyncTag, } from "@paroicms/public-server-lib";
|
|
2
|
+
import { esmDirName, extractPackageNameAndVersionSync } from "@paroicms/script-lib";
|
|
2
3
|
import { dirname, join } from "node:path";
|
|
3
|
-
|
|
4
|
-
import { type } from "arktype";
|
|
5
|
-
const projectDir = resolveModuleDirectory(import.meta.url, { parent: true });
|
|
4
|
+
const projectDir = dirname(esmDirName(import.meta.url));
|
|
6
5
|
const packageDir = dirname(projectDir);
|
|
7
|
-
const
|
|
6
|
+
const { version } = extractPackageNameAndVersionSync(packageDir);
|
|
8
7
|
const plugin = {
|
|
9
8
|
version,
|
|
10
|
-
slug: "public-menu",
|
|
11
9
|
async siteInit(service) {
|
|
12
10
|
service.setPublicAssetsDirectory(join(packageDir, "frontend", "dist"));
|
|
13
11
|
service.registerHeadTags(({ html }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/public-menu-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Public menu plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -16,16 +16,15 @@
|
|
|
16
16
|
"author": "Paroi Team",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"build": "npm run build:backend && npm run build:public",
|
|
19
|
+
"build": "npm run build:backend && npm run build:frontend",
|
|
21
20
|
"build:backend": "(cd backend && tsc)",
|
|
22
|
-
"build:backend:watch": "(cd backend && tsc --watch)",
|
|
23
|
-
"build:
|
|
24
|
-
"
|
|
25
|
-
"build:public:watch": "(cd frontend && tsc && vite build --watch)",
|
|
21
|
+
"build:backend:watch": "(cd backend && tsc --watch --preserveWatchOutput)",
|
|
22
|
+
"build:frontend": "(cd frontend && npm run build)",
|
|
23
|
+
"build:frontend:watch": "(cd frontend && npm run build:watch)",
|
|
26
24
|
"clear": "rimraf backend/dist/* frontend/dist/*"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
27
|
+
"@paroicms/script-lib": "0.2.0",
|
|
29
28
|
"arktype": "~2.1.20"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
@@ -33,21 +32,14 @@
|
|
|
33
32
|
"@paroicms/public-server-lib": "0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
37
|
-
"@paroicms/public-server-lib": "0.
|
|
38
|
-
"@paroicms/tiny-modal": "0.6.0",
|
|
35
|
+
"@paroicms/public-anywhere-lib": "0.34.0",
|
|
36
|
+
"@paroicms/public-server-lib": "0.43.0",
|
|
39
37
|
"@types/node": "~24.0.1",
|
|
40
38
|
"rimraf": "~6.0.1",
|
|
41
|
-
"
|
|
42
|
-
"solid-devtools": "~0.34.0",
|
|
43
|
-
"solid-js": "1.9.7",
|
|
44
|
-
"terser": "~5.42.0",
|
|
45
|
-
"typescript": "~5.8.3",
|
|
46
|
-
"vite": "~6.3.5",
|
|
47
|
-
"vite-plugin-solid": "~2.11.6"
|
|
39
|
+
"typescript": "~5.8.3"
|
|
48
40
|
},
|
|
49
41
|
"type": "module",
|
|
50
|
-
"main": "backend/dist/
|
|
42
|
+
"main": "backend/dist/index.js",
|
|
51
43
|
"files": [
|
|
52
44
|
"backend/dist",
|
|
53
45
|
"frontend/dist"
|