@deneb-ui/create-template 2.0.23 → 2.0.25
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/bin/index.js
CHANGED
|
@@ -109,6 +109,19 @@ function runScaffolding(targetInput) {
|
|
|
109
109
|
|
|
110
110
|
if (installRes.status === 0) {
|
|
111
111
|
console.log(`\n\x1b[32m✔ All dependencies and DENEB UI components installed successfully!\x1b[0m\n`);
|
|
112
|
+
try {
|
|
113
|
+
const denebBin = path.join(targetPath, 'node_modules', '@deneb-ui', 'cli', 'bin', 'index.js');
|
|
114
|
+
if (fs.existsSync(denebBin)) {
|
|
115
|
+
console.log(`\x1b[36mAa Downloading and configuring DENEB Google Fonts...\x1b[0m\n`);
|
|
116
|
+
require('node:child_process').spawnSync(process.execPath, [denebBin, 'fonts', 'install', '.'], {
|
|
117
|
+
cwd: targetPath,
|
|
118
|
+
stdio: 'inherit',
|
|
119
|
+
shell: false,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
} catch (err) {
|
|
123
|
+
console.log(`\x1b[33m! Fonts: run "npx deneb fonts install ." inside ${folderName} (${err.message})\x1b[0m\n`);
|
|
124
|
+
}
|
|
112
125
|
} else {
|
|
113
126
|
console.log(`\n\x1b[33m! Note: npm install exited with code ${installRes.status}. Run "npm install" inside ${folderName}.\x1b[0m\n`);
|
|
114
127
|
}
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"zip": "deneb zip .",
|
|
12
12
|
"validate-and-zip": "deneb validate-and-zip .",
|
|
13
13
|
"package:template": "deneb package .",
|
|
14
|
-
"update:deneb": "deneb update"
|
|
14
|
+
"update:deneb": "deneb update",
|
|
15
|
+
"fonts:install": "deneb fonts install ."
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"next": "15.5.23",
|
|
@@ -4,6 +4,7 @@ import siteData from '@/data/site-data.json';
|
|
|
4
4
|
import { SiteDataProvider } from '@/lib/siteDataContext';
|
|
5
5
|
import SiteChrome from '@/components/SiteChrome';
|
|
6
6
|
import './globals.css';
|
|
7
|
+
import '../fonts/deneb-fonts.css';
|
|
7
8
|
|
|
8
9
|
export const metadata: Metadata = {
|
|
9
10
|
title: siteData.content.common.websiteTitle,
|
|
@@ -15,8 +16,8 @@ export const metadata: Metadata = {
|
|
|
15
16
|
|
|
16
17
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
17
18
|
return (
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<body>
|
|
19
|
+
<html lang="en" suppressHydrationWarning>
|
|
20
|
+
<body suppressHydrationWarning>
|
|
20
21
|
<SiteDataProvider>
|
|
21
22
|
<SiteChrome>{children}</SiteChrome>
|
|
22
23
|
</SiteDataProvider>
|