@valuerail/cli 1.2.0-beta.3 → 1.2.0-beta.4
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/dist/index.js +3 -3
- package/package.json +1 -1
- package/templates/nextjs/src/app/loading.tsx +24 -0
- package/templates/nextjs/src/app/robots.ts +15 -0
- package/templates/nextjs/src/app/sitemap.ts +25 -0
- package/templates/nextjs/src/lib/config.ts +7 -0
- package/templates/nextjs/vrail.config.ts +25 -0
package/dist/index.js
CHANGED
|
@@ -50665,7 +50665,7 @@ function Banner({ hideStatus = false }) {
|
|
|
50665
50665
|
const isVrailProject = hasVrailConfig();
|
|
50666
50666
|
const [version, setVersion] = import_react26.useState("v0.0.1");
|
|
50667
50667
|
import_react26.useEffect(() => {
|
|
50668
|
-
const v = "1.2.0-beta.
|
|
50668
|
+
const v = "1.2.0-beta.4";
|
|
50669
50669
|
setVersion(v);
|
|
50670
50670
|
}, []);
|
|
50671
50671
|
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
@@ -52783,7 +52783,7 @@ function App2() {
|
|
|
52783
52783
|
onBack: goToDashboard
|
|
52784
52784
|
}, undefined, false, undefined, this),
|
|
52785
52785
|
currentView === "goodbye" && /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(GoodbyeView, {
|
|
52786
|
-
version: "1.2.0-beta.
|
|
52786
|
+
version: "1.2.0-beta.4",
|
|
52787
52787
|
cwd: process.cwd(),
|
|
52788
52788
|
isVrailProject: hasVrailConfig2()
|
|
52789
52789
|
}, undefined, false, undefined, this)
|
|
@@ -52821,7 +52821,7 @@ var showHelp = () => {
|
|
|
52821
52821
|
`);
|
|
52822
52822
|
};
|
|
52823
52823
|
var showVersion = () => {
|
|
52824
|
-
console.log("1.2.0-beta.
|
|
52824
|
+
console.log("1.2.0-beta.4");
|
|
52825
52825
|
};
|
|
52826
52826
|
if (command === "help" || command === "--help" || command === "-h") {
|
|
52827
52827
|
showHelp();
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default function Loading() {
|
|
2
|
+
return (
|
|
3
|
+
<main className="min-h-screen flex flex-col items-center justify-center px-6 py-12 bg-[#0a0a0a]">
|
|
4
|
+
<div className="space-y-6 text-center animate-pulse">
|
|
5
|
+
<pre
|
|
6
|
+
className="font-bold inline-block text-[10px] sm:text-xs md:text-sm leading-none"
|
|
7
|
+
style={{
|
|
8
|
+
backgroundImage: 'linear-gradient(to right, #FF5F6D, #FFC371)',
|
|
9
|
+
WebkitBackgroundClip: 'text',
|
|
10
|
+
WebkitTextFillColor: 'transparent',
|
|
11
|
+
backgroundClip: 'text',
|
|
12
|
+
color: 'transparent'
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
{` _ _ _ _ _ _ ___ ___ _ ___ _
|
|
16
|
+
\\ \\ / / /_\\ | | | | | | | __| | _ \\ /_\\ |_ _| | |
|
|
17
|
+
\\ V / / _ \\ | |__ | |_| | | _| | / / _ \\ | | | |__
|
|
18
|
+
\\_/ /_/ \\_\\ |____| \\___/ |___| |_|_\\ /_/ \\_\\ |___| |____|`}
|
|
19
|
+
</pre>
|
|
20
|
+
<p className="text-[#666] text-sm mt-4">Loading...</p>
|
|
21
|
+
</div>
|
|
22
|
+
</main>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MetadataRoute } from 'next';
|
|
2
|
+
import { siteConfig } from '../lib/config';
|
|
3
|
+
|
|
4
|
+
export default function robots(): MetadataRoute.Robots {
|
|
5
|
+
const baseUrl = siteConfig.metadata.baseUrl;
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
rules: {
|
|
9
|
+
userAgent: '*',
|
|
10
|
+
allow: siteConfig.robots.allow,
|
|
11
|
+
disallow: siteConfig.robots.disallow,
|
|
12
|
+
},
|
|
13
|
+
sitemap: `${baseUrl}/sitemap.xml`,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MetadataRoute } from 'next';
|
|
2
|
+
import { siteConfig } from '../lib/config';
|
|
3
|
+
|
|
4
|
+
export default function sitemap(): MetadataRoute.Sitemap {
|
|
5
|
+
const baseUrl = siteConfig.metadata.baseUrl;
|
|
6
|
+
|
|
7
|
+
// Define your static routes here
|
|
8
|
+
const routes = [
|
|
9
|
+
'',
|
|
10
|
+
'/temp',
|
|
11
|
+
// Add more static routes
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
// Filter out excluded routes from config
|
|
15
|
+
const filteredRoutes = routes.filter(route =>
|
|
16
|
+
!siteConfig.sitemap.exclude.some(excludePath => route.startsWith(excludePath))
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return filteredRoutes.map(route => ({
|
|
20
|
+
url: `${baseUrl}${route}`,
|
|
21
|
+
lastModified: new Date(),
|
|
22
|
+
changeFrequency: 'weekly',
|
|
23
|
+
priority: route === '' ? 1 : 0.8,
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ValueRail Configuration
|
|
3
|
+
*
|
|
4
|
+
* This file controls the global settings for your application,
|
|
5
|
+
* including SEO parameters (sitemap, robots.txt) and metadata.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const config = {
|
|
9
|
+
metadata: {
|
|
10
|
+
title: "ValueRail App",
|
|
11
|
+
description: "Created with ValueRail CLI",
|
|
12
|
+
baseUrl: "https://example.com", // Change this to your actual specific domain
|
|
13
|
+
},
|
|
14
|
+
sitemap: {
|
|
15
|
+
// Routes to exclude from sitemap.xml
|
|
16
|
+
exclude: ['/temp', '/admin'],
|
|
17
|
+
},
|
|
18
|
+
robots: {
|
|
19
|
+
// Rules for robots.txt
|
|
20
|
+
allow: ['/'],
|
|
21
|
+
disallow: ['/temp', '/admin'],
|
|
22
|
+
}
|
|
23
|
+
} as const;
|
|
24
|
+
|
|
25
|
+
export default config;
|