create-neutron 0.1.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.
- package/LICENSE +21 -0
- package/README.md +25 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +201 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
- package/templates/app/_gitignore +3 -0
- package/templates/app/index.html +12 -0
- package/templates/app/neutron.config.ts +5 -0
- package/templates/app/package.json +24 -0
- package/templates/app/src/main.tsx +5 -0
- package/templates/app/src/routes/_layout.tsx +18 -0
- package/templates/app/src/routes/api/session/refresh.tsx +28 -0
- package/templates/app/src/routes/app/dashboard.tsx +39 -0
- package/templates/app/src/routes/app/settings.tsx +68 -0
- package/templates/app/src/routes/index.tsx +26 -0
- package/templates/app/src/routes/login.tsx +14 -0
- package/templates/app/src/routes/protected.tsx +53 -0
- package/templates/app/src/routes/users/[id].tsx +26 -0
- package/templates/app/tsconfig.json +14 -0
- package/templates/app/vite.config.ts +7 -0
- package/templates/basic/_gitignore +3 -0
- package/templates/basic/index.html +12 -0
- package/templates/basic/neutron.config.ts +5 -0
- package/templates/basic/package.json +24 -0
- package/templates/basic/src/main.tsx +5 -0
- package/templates/basic/src/routes/_layout.tsx +16 -0
- package/templates/basic/src/routes/index.tsx +19 -0
- package/templates/basic/src/routes/users/[id].tsx +26 -0
- package/templates/basic/tsconfig.json +14 -0
- package/templates/basic/vite.config.ts +7 -0
- package/templates/docs/_gitignore +3 -0
- package/templates/docs/index.html +12 -0
- package/templates/docs/neutron.config.ts +8 -0
- package/templates/docs/package.json +22 -0
- package/templates/docs/public/favicon.svg +1 -0
- package/templates/docs/src/components/Breadcrumbs.tsx +47 -0
- package/templates/docs/src/components/Callout.tsx +40 -0
- package/templates/docs/src/components/Card.tsx +31 -0
- package/templates/docs/src/components/CopyButton.tsx +35 -0
- package/templates/docs/src/components/Footer.tsx +72 -0
- package/templates/docs/src/components/Search.tsx +139 -0
- package/templates/docs/src/components/Sidebar.tsx +59 -0
- package/templates/docs/src/components/SidebarToggle.tsx +47 -0
- package/templates/docs/src/components/Steps.tsx +9 -0
- package/templates/docs/src/components/Tabs.tsx +35 -0
- package/templates/docs/src/components/ThemeToggle.tsx +45 -0
- package/templates/docs/src/components/Toc.tsx +36 -0
- package/templates/docs/src/components/TocTracker.tsx +35 -0
- package/templates/docs/src/content/config.ts +13 -0
- package/templates/docs/src/content/docs/getting-started/installation.mdx +18 -0
- package/templates/docs/src/content/docs/getting-started/quick-start.mdx +19 -0
- package/templates/docs/src/content/docs/index.mdx +13 -0
- package/templates/docs/src/lib/pagination.ts +39 -0
- package/templates/docs/src/lib/sidebar.ts +100 -0
- package/templates/docs/src/main.tsx +8 -0
- package/templates/docs/src/routes/_layout.tsx +27 -0
- package/templates/docs/src/routes/docs/[...slug].tsx +85 -0
- package/templates/docs/src/routes/docs/_layout.tsx +47 -0
- package/templates/docs/src/styles/code.css +188 -0
- package/templates/docs/src/styles/components.css +264 -0
- package/templates/docs/src/styles/docs.css +416 -0
- package/templates/docs/src/styles/prose.css +224 -0
- package/templates/docs/src/styles/search.css +225 -0
- package/templates/docs/tsconfig.json +19 -0
- package/templates/docs/vite.config.ts +6 -0
- package/templates/full/_gitignore +3 -0
- package/templates/full/index.html +12 -0
- package/templates/full/neutron.config.ts +5 -0
- package/templates/full/package.json +24 -0
- package/templates/full/src/components/Counter.tsx +13 -0
- package/templates/full/src/main.tsx +5 -0
- package/templates/full/src/routes/(marketing)/pricing.tsx +15 -0
- package/templates/full/src/routes/_layout.tsx +17 -0
- package/templates/full/src/routes/app/dashboard.tsx +28 -0
- package/templates/full/src/routes/app/settings.tsx +42 -0
- package/templates/full/src/routes/index.tsx +31 -0
- package/templates/full/src/routes/users/[id].tsx +26 -0
- package/templates/full/tsconfig.json +14 -0
- package/templates/full/vite.config.ts +7 -0
- package/templates/marketing/_gitignore +3 -0
- package/templates/marketing/index.html +12 -0
- package/templates/marketing/neutron.config.ts +5 -0
- package/templates/marketing/package.json +24 -0
- package/templates/marketing/src/components/Counter.tsx +14 -0
- package/templates/marketing/src/main.tsx +5 -0
- package/templates/marketing/src/routes/_layout.tsx +16 -0
- package/templates/marketing/src/routes/about.tsx +10 -0
- package/templates/marketing/src/routes/blog/[slug].tsx +34 -0
- package/templates/marketing/src/routes/blog/index.tsx +27 -0
- package/templates/marketing/src/routes/index.tsx +26 -0
- package/templates/marketing/src/routes/users/index.tsx +10 -0
- package/templates/marketing/tsconfig.json +14 -0
- package/templates/marketing/vite.config.ts +7 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Island } from "@neutron-build/core/client";
|
|
2
|
+
import { Counter } from "../components/Counter";
|
|
3
|
+
|
|
4
|
+
export const config = { mode: "static" };
|
|
5
|
+
|
|
6
|
+
export async function loader() {
|
|
7
|
+
return {
|
|
8
|
+
title: "__PROJECT_NAME__",
|
|
9
|
+
generatedAt: new Date().toISOString(),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default function Home(props: { data?: { title: string; generatedAt: string } }) {
|
|
14
|
+
return (
|
|
15
|
+
<section>
|
|
16
|
+
<h2>{props.data?.title}</h2>
|
|
17
|
+
<p>
|
|
18
|
+
Static-first marketing site with optional islands.
|
|
19
|
+
</p>
|
|
20
|
+
<p>
|
|
21
|
+
Generated at <strong>{props.data?.generatedAt}</strong>.
|
|
22
|
+
</p>
|
|
23
|
+
<Island component={Counter} client="visible" id="marketing-counter" start={1} />
|
|
24
|
+
</section>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022", "DOM"],
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"jsxImportSource": "preact",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"types": ["vite/client"]
|
|
12
|
+
},
|
|
13
|
+
"include": ["src"]
|
|
14
|
+
}
|