Skip to content

Commit f4155f4

Browse files
committed
Add lynx starter
1 parent 3425e89 commit f4155f4

23 files changed

+8102
-0
lines changed

lynx/starter/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
5+
6+
# Dist
7+
node_modules
8+
dist/
9+
10+
# IDE
11+
.vscode/*
12+
!.vscode/extensions.json
13+
.idea

lynx/starter/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Rspeedy project
2+
3+
This is a ReactLynx project bootstrapped with `create-rspeedy`.
4+
5+
## Getting Started
6+
7+
First, install the dependencies:
8+
9+
```bash
10+
pnpm install
11+
```
12+
13+
Then, run the development server:
14+
15+
```bash
16+
pnpm run dev
17+
```
18+
19+
Scan the QRCode in the terminal with your LynxExplorer App to see the result.
20+
21+
You can start editing the page by modifying `src/App.tsx`. The page auto-updates as you edit the file.

lynx/starter/lynx.config.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { defineConfig } from "@lynx-js/rspeedy";
2+
3+
import { pluginQRCode } from "@lynx-js/qrcode-rsbuild-plugin";
4+
import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
5+
6+
export default defineConfig({
7+
plugins: [
8+
pluginQRCode({
9+
schema(url) {
10+
// We use `?fullscreen=true` to open the page in LynxExplorer in full screen mode
11+
return `${url}?fullscreen=true`;
12+
},
13+
}),
14+
pluginReactLynx(),
15+
],
16+
environments: {
17+
web: {
18+
output: {
19+
assetPrefix: "/",
20+
},
21+
},
22+
lynx: {},
23+
},
24+
});

0 commit comments

Comments
 (0)