Skip to content

Commit 1de6061

Browse files
committed
initial commit from @marko/create
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣤⣤⣤⣤⣤⣤⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣤⣤⣤⣤⣤⣤⣤⡀⠀⠀⠀⢤⣤⣤⣤⣤⣤⣤⣤⡀ ⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆ ⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀ ⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏⠹⣿⣿⣿⣿⣿⣿⣿⣆⣰⣿⣿⣿⣿⣿⣿⣿⠏⠹⣿⣿⣿⣿⣿⣿⣿⣆⠀ ⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆ ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀ ⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆ ⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀ ⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁ ⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏ ⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁ ⠀⠀⠀⠀ ⠹⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏ ⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⡿⠁ ⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⠏ ⠀⠀⠀⠀⠀⠀⠀⠀ ⠈⠛⠛⠛⠛⠛⠛⠛⠓⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⠛⠛⠛⠛⠛⠛⠛⠁⠀⠀⠀⠚⠛⠛⠛⠛⠛⠛⠛⠁
0 parents  commit 1de6061

16 files changed

+24271
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
*.log
4+
.netlify

.marko-run/routes.d.ts

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
WARNING: This file is automatically generated and any changes made to it will be overwritten without warning.
3+
Do NOT manually edit this file or your changes will be lost.
4+
*/
5+
6+
import { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform } from "@marko/run/namespace";
7+
import type * as Run from "@marko/run";
8+
import type { NetlifyFunctionsPlatformInfo } from '@marko/run-adapter-netlify';
9+
10+
declare module "@marko/run" {
11+
interface Platform extends NetlifyFunctionsPlatformInfo {}
12+
13+
interface AppData extends Run.DefineApp<{
14+
routes: {
15+
"/": Routes["/"];
16+
"/story/:id": Routes["/story/$id"];
17+
"/user/:id": Routes["/user/$id"];
18+
}
19+
}> {}
20+
}
21+
22+
declare module "../src/routes/+page.marko" {
23+
namespace MarkoRun {
24+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
25+
export type Route = Run.Routes["/"];
26+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
27+
export type Handler = Run.HandlerLike<Route>;
28+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
29+
export const route: Run.HandlerTypeFn<Route>;
30+
}
31+
}
32+
33+
declare module "../src/routes/story.$id+page.marko" {
34+
namespace MarkoRun {
35+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
36+
export type Route = Run.Routes["/story/:id"];
37+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
38+
export type Handler = Run.HandlerLike<Route>;
39+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
40+
export const route: Run.HandlerTypeFn<Route>;
41+
}
42+
}
43+
44+
declare module "../src/routes/user.$id+page.marko" {
45+
namespace MarkoRun {
46+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
47+
export type Route = Run.Routes["/user/:id"];
48+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
49+
export type Handler = Run.HandlerLike<Route>;
50+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
51+
export const route: Run.HandlerTypeFn<Route>;
52+
}
53+
}
54+
55+
declare module "../src/routes/+layout.marko" {
56+
export interface Input extends Run.LayoutInput<typeof import('../src/routes/+layout.marko')> {}
57+
namespace MarkoRun {
58+
export { NotHandled, NotMatched, GetPaths, PostPaths, GetablePath, GetableHref, PostablePath, PostableHref, Platform };
59+
export type Route = Run.Routes["/" | "/story/:id" | "/user/:id"];
60+
export type Context = Run.MultiRouteContext<Route> & Marko.Global;
61+
export type Handler = Run.HandlerLike<Route>;
62+
/** @deprecated use `((context, next) => { ... }) satisfies MarkoRun.Handler` instead */
63+
export const route: Run.HandlerTypeFn<Route>;
64+
}
65+
}
66+
67+
type Routes = {
68+
"/": { verb: "get"; };
69+
"/story/$id": { verb: "get"; };
70+
"/user/$id": { verb: "get"; };
71+
}

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Hacker News clone with @marko/run
2+
3+
Currently deployed at https://marko-hn-example.netlify.app/
4+
5+
## Overview
6+
7+
This project is powered by [@marko/run](https://github.com/marko-js/run).
8+
9+
- Run `npm run dev` to start the development server
10+
- Run `npm run preview` to run the production server
11+
- Run `npm run deploy` to deploy to netlify (will ask for credentials).

netlify.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[build]
2+
command = "marko-run build"
3+
publish = "dist/public"
4+
functions = "dist"

0 commit comments

Comments
 (0)