@valuerail/cli 1.0.0 → 1.1.0-beta.2

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.
@@ -0,0 +1,16 @@
1
+ import { defineConfig, globalIgnores } from "eslint/config";
2
+ import nextVitals from "eslint-config-next/core-web-vitals";
3
+ import nextTs from "eslint-config-next/typescript";
4
+
5
+ const eslintConfig = defineConfig([
6
+ ...nextVitals,
7
+ ...nextTs,
8
+ globalIgnores([
9
+ ".next/**",
10
+ "out/**",
11
+ "build/**",
12
+ "next-env.d.ts",
13
+ ]),
14
+ ]);
15
+
16
+ export default eslintConfig;
@@ -0,0 +1,7 @@
1
+ import type { NextConfig } from "next";
2
+
3
+ const nextConfig: NextConfig = {
4
+ reactCompiler: true,
5
+ };
6
+
7
+ export default nextConfig;
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "{{PROJECT_NAME}}",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "dev": "next dev --turbopack",
7
+ "build": "next build",
8
+ "start": "next start",
9
+ "lint": "eslint ."
10
+ },
11
+ "dependencies": {
12
+ "next": "^16.0.0",
13
+ "react": "^19.0.0",
14
+ "react-dom": "^19.0.0"
15
+ },
16
+ "devDependencies": {
17
+ "@tailwindcss/postcss": "^4.0.0",
18
+ "@types/node": "^20.0.0",
19
+ "@types/react": "^19.0.0",
20
+ "@types/react-dom": "^19.0.0",
21
+ "babel-plugin-react-compiler": "1.0.0",
22
+ "eslint": "^9.0.0",
23
+ "eslint-config-next": "^16.0.0",
24
+ "tailwindcss": "^4.0.0",
25
+ "typescript": "^5.0.0"
26
+ }
27
+ }
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ "@tailwindcss/postcss": {},
4
+ },
5
+ };
6
+
7
+ export default config;
@@ -0,0 +1,55 @@
1
+ @import "tailwindcss";
2
+
3
+ :root {
4
+ --background: #0a0a0a;
5
+ --foreground: #ededed;
6
+ --accent: #CD6052;
7
+ --muted: #666666;
8
+ --border: #222222;
9
+ --card: #111111;
10
+ }
11
+
12
+ * {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ body {
17
+ background: var(--background);
18
+ color: var(--foreground);
19
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
20
+ margin: 0;
21
+ padding: 0;
22
+ min-height: 100vh;
23
+ }
24
+
25
+ ::selection {
26
+ background: var(--accent);
27
+ color: var(--background);
28
+ }
29
+
30
+ a {
31
+ color: var(--accent);
32
+ text-decoration: none;
33
+ }
34
+
35
+ a:hover {
36
+ opacity: 0.8;
37
+ }
38
+
39
+ code {
40
+ background: rgba(205, 96, 82, 0.1);
41
+ border: 1px solid rgba(205, 96, 82, 0.2);
42
+ border-radius: 4px;
43
+ padding: 2px 6px;
44
+ font-size: 0.9em;
45
+ }
46
+
47
+ pre {
48
+ background: rgba(255, 255, 255, 0.03);
49
+ border: 1px solid var(--border);
50
+ border-radius: 8px;
51
+ padding: 16px 20px;
52
+ overflow-x: auto;
53
+ font-size: 14px;
54
+ line-height: 1.6;
55
+ }
@@ -0,0 +1,19 @@
1
+ import type { Metadata } from "next";
2
+ import "./globals.css";
3
+
4
+ export const metadata: Metadata = {
5
+ title: "ValueRail App",
6
+ description: "Created with ValueRail CLI",
7
+ };
8
+
9
+ export default function RootLayout({
10
+ children,
11
+ }: Readonly<{
12
+ children: React.ReactNode;
13
+ }>) {
14
+ return (
15
+ <html lang="en">
16
+ <body>{children}</body>
17
+ </html>
18
+ );
19
+ }
@@ -0,0 +1,83 @@
1
+ const ASCII_LOGO = ` _ _ _ _ _ _ ___ ___ _ ___ _
2
+ \\ \\ / / /_\\ | | | | | | | __| | _ \\ /_\\ |_ _| | |
3
+ \\ V / / _ \\ | |__ | |_| | | _| | / / _ \\ | | | |__
4
+ \\_/ /_/ \\_\\ |____| \\___/ |___| |_|_\\ /_/ \\_\\ |___| |____|`;
5
+
6
+ export default function Home() {
7
+ return (
8
+ <main className="min-h-screen flex flex-col items-center justify-center px-6 py-12">
9
+ <div className="max-w-3xl w-full space-y-12">
10
+ <header className="text-center space-y-6">
11
+ <pre
12
+ className="font-bold inline-block text-[10px] sm:text-xs md:text-sm"
13
+ style={{
14
+ backgroundImage: 'linear-gradient(to right, #FF5F6D, #FFC371)',
15
+ WebkitBackgroundClip: 'text',
16
+ WebkitTextFillColor: 'transparent',
17
+ backgroundClip: 'text',
18
+ color: 'transparent'
19
+ }}
20
+ >
21
+ {ASCII_LOGO}
22
+ </pre>
23
+ <p className="text-[#666] text-sm">
24
+ Your project is ready. Start building something amazing.
25
+ </p>
26
+ </header>
27
+
28
+ <section className="space-y-4">
29
+ <h2 className="text-[#ededed] text-lg font-semibold border-b border-[#333] pb-2">
30
+ Quick Start
31
+ </h2>
32
+ <div className="space-y-2">
33
+ <p className="text-[#666] text-sm">Start development server:</p>
34
+ <pre>
35
+ <span className="text-[#CD6052]">$</span> bun dev
36
+ </pre>
37
+ </div>
38
+ </section>
39
+
40
+ <section className="space-y-4">
41
+ <h2 className="text-[#ededed] text-lg font-semibold border-b border-[#333] pb-2">
42
+ CLI Commands
43
+ </h2>
44
+ <div className="grid gap-3 sm:grid-cols-2">
45
+ <div className="p-4 rounded-lg border border-[#222] bg-[#111]">
46
+ <code className="text-[#CD6052]">vrail add module</code>
47
+ <p className="text-[#666] text-xs mt-1">Add modules to your project</p>
48
+ </div>
49
+ <div className="p-4 rounded-lg border border-[#222] bg-[#111]">
50
+ <code className="text-[#CD6052]">vrail generate</code>
51
+ <p className="text-[#666] text-xs mt-1">Generate components and pages</p>
52
+ </div>
53
+ <div className="p-4 rounded-lg border border-[#222] bg-[#111]">
54
+ <code className="text-[#CD6052]">vrail doctor</code>
55
+ <p className="text-[#666] text-xs mt-1">Check system configuration</p>
56
+ </div>
57
+ <div className="p-4 rounded-lg border border-[#222] bg-[#111]">
58
+ <code className="text-[#CD6052]">vrail secrets</code>
59
+ <p className="text-[#666] text-xs mt-1">Manage project secrets</p>
60
+ </div>
61
+ </div>
62
+ </section>
63
+
64
+ <footer className="pt-6 text-center border-t border-[#222]">
65
+ <p className="text-[#666] text-xs">
66
+ Edit <code>src/app/page.tsx</code> to get started
67
+ </p>
68
+ <div className="mt-4 flex justify-center gap-6 text-xs">
69
+ <a href="https://valuerail.dev/docs" className="text-[#666] hover:text-[#CD6052]">
70
+ Docs
71
+ </a>
72
+ <a href="https://github.com/kamilguszpit/valuerail" className="text-[#666] hover:text-[#CD6052]">
73
+ GitHub
74
+ </a>
75
+ <a href="https://www.npmjs.com/package/@valuerail/cli" className="text-[#666] hover:text-[#CD6052]">
76
+ NPM
77
+ </a>
78
+ </div>
79
+ </footer>
80
+ </div>
81
+ </main>
82
+ );
83
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "react-jsx",
15
+ "incremental": true,
16
+ "plugins": [
17
+ {
18
+ "name": "next"
19
+ }
20
+ ],
21
+ "paths": {
22
+ "@/*": ["./src/*"]
23
+ }
24
+ },
25
+ "include": [
26
+ "next-env.d.ts",
27
+ "**/*.ts",
28
+ "**/*.tsx",
29
+ ".next/types/**/*.ts",
30
+ ".next/dev/types/**/*.ts",
31
+ "**/*.mts"
32
+ ],
33
+ "exclude": ["node_modules"]
34
+ }