create-backtick-app 0.2.8 → 0.3.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/README.md +3 -3
- package/package.json +1 -1
- package/templates/react/package.json +6 -6
- package/templates/react/server/Home.tsx +1 -1
- package/templates/react-native/package.json +8 -8
- package/templates/react-native/server/Home.tsx +1 -1
- package/templates/react-native/server/index.tsx +2 -2
- package/templates/solid-js/package.json +6 -6
- package/templates/solid-js/server/Home.tsx +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ npm run ios # or android, or web: a simulator, an emulator or a browser
|
|
|
61
61
|
|
|
62
62
|
Each starts your Backtick server alongside Expo, in one terminal. Edit `server/Home.tsx` and save: the server restarts, and once it listens, `reloadExpo()` in `server/index.tsx` reloads the app. The app fetches the new screen without rebuilding.
|
|
63
63
|
|
|
64
|
-
`npm test` draws `server/Home.tsx` as the app would, in `server/Home.test.tsx`; [Testing screens](https://backtickjs.
|
|
64
|
+
`npm test` draws `server/Home.tsx` as the app would, in `server/Home.test.tsx`; [Testing screens](https://backtickjs.dev/docs/testing/) explains the test.
|
|
65
65
|
|
|
66
66
|
### `react` and `solid-js`
|
|
67
67
|
|
|
@@ -77,8 +77,8 @@ Then open http://localhost:3000. Edit `server/Home.tsx`, save, and refresh the p
|
|
|
77
77
|
|
|
78
78
|
- [`@backtickjs/core`](https://github.com/backtickjs/backtick/tree/main/packages/core): the `cs` tag
|
|
79
79
|
- [`@backtickjs/bundler`](https://github.com/backtickjs/backtick/tree/main/packages/bundler): runs server components and writes the bundle
|
|
80
|
-
- [Quick start](https://backtickjs.
|
|
81
|
-
- [Tutorial](https://backtickjs.
|
|
80
|
+
- [Quick start](https://backtickjs.dev/docs/)
|
|
81
|
+
- [Tutorial](https://backtickjs.dev/docs/tutorial/)
|
|
82
82
|
|
|
83
83
|
## License
|
|
84
84
|
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"format:check": "prettier --check --ignore-unknown ."
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@backtickjs/bundler": "0.
|
|
15
|
-
"@backtickjs/core": "0.
|
|
16
|
-
"@backtickjs/node-plugin": "0.
|
|
17
|
-
"@backtickjs/jsx-react": "0.
|
|
14
|
+
"@backtickjs/bundler": "0.3.0",
|
|
15
|
+
"@backtickjs/core": "0.3.0",
|
|
16
|
+
"@backtickjs/node-plugin": "0.3.0",
|
|
17
|
+
"@backtickjs/jsx-react": "0.3.0",
|
|
18
18
|
"@hono/node-server": "^2.1.4",
|
|
19
19
|
"hono": "^4.13.13",
|
|
20
20
|
"react": "19.2.3",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"typescript": "^6.0.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@backtickjs/prettier-plugin": "0.
|
|
26
|
-
"@backtickjs/tsc": "0.
|
|
25
|
+
"@backtickjs/prettier-plugin": "0.3.0",
|
|
26
|
+
"@backtickjs/tsc": "0.3.0",
|
|
27
27
|
"@types/node": "^25.9.1",
|
|
28
28
|
"@types/react": "19.2.18",
|
|
29
29
|
"@types/react-dom": "19.2.7",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"format:check": "prettier --check --ignore-unknown ."
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@backtickjs/bundler": "0.
|
|
20
|
-
"@backtickjs/core": "0.
|
|
21
|
-
"@backtickjs/expo": "0.
|
|
22
|
-
"@backtickjs/hono": "0.
|
|
23
|
-
"@backtickjs/node-plugin": "0.
|
|
24
|
-
"@backtickjs/jsx-react": "0.
|
|
19
|
+
"@backtickjs/bundler": "0.3.0",
|
|
20
|
+
"@backtickjs/core": "0.3.0",
|
|
21
|
+
"@backtickjs/expo": "0.3.0",
|
|
22
|
+
"@backtickjs/hono": "0.3.0",
|
|
23
|
+
"@backtickjs/node-plugin": "0.3.0",
|
|
24
|
+
"@backtickjs/jsx-react": "0.3.0",
|
|
25
25
|
"@hono/node-server": "^2.1.4",
|
|
26
26
|
"expo": "~57.0.26",
|
|
27
27
|
"expo-constants": "~57.0.20",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"typescript": "^6.0.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@backtickjs/prettier-plugin": "0.
|
|
39
|
-
"@backtickjs/tsc": "0.
|
|
38
|
+
"@backtickjs/prettier-plugin": "0.3.0",
|
|
39
|
+
"@backtickjs/tsc": "0.3.0",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@testing-library/user-event": "^14.6.7",
|
|
42
42
|
"@types/node": "^25.9.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reloadExpo } from "@backtickjs/expo/server";
|
|
2
|
-
import {
|
|
2
|
+
import { backtickRenderer } from "@backtickjs/hono";
|
|
3
3
|
import { serve } from "@hono/node-server";
|
|
4
4
|
import { Hono } from "hono";
|
|
5
5
|
import { cors } from "hono/cors";
|
|
@@ -11,7 +11,7 @@ const app = new Hono();
|
|
|
11
11
|
app.use(cors({ origin: "*", allowHeaders: ["x-backtick-modules"] }));
|
|
12
12
|
|
|
13
13
|
// `context.render(element)` answers with the screen, bundled for the app.
|
|
14
|
-
app.use(
|
|
14
|
+
app.use(backtickRenderer());
|
|
15
15
|
|
|
16
16
|
// Your app's screens: add a route, and the app can fetch it. A path can
|
|
17
17
|
// take parameters, `/stories/:id`, read with `context.req.param("id")`.
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"format:check": "prettier --check --ignore-unknown ."
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@backtickjs/bundler": "0.
|
|
15
|
-
"@backtickjs/core": "0.
|
|
16
|
-
"@backtickjs/node-plugin": "0.
|
|
17
|
-
"@backtickjs/jsx-solid": "0.
|
|
14
|
+
"@backtickjs/bundler": "0.3.0",
|
|
15
|
+
"@backtickjs/core": "0.3.0",
|
|
16
|
+
"@backtickjs/node-plugin": "0.3.0",
|
|
17
|
+
"@backtickjs/jsx-solid": "0.3.0",
|
|
18
18
|
"@hono/node-server": "^2.1.4",
|
|
19
19
|
"hono": "^4.13.13",
|
|
20
20
|
"solid-js": "1.9.17",
|
|
21
21
|
"typescript": "^6.0.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@backtickjs/prettier-plugin": "0.
|
|
25
|
-
"@backtickjs/tsc": "0.
|
|
24
|
+
"@backtickjs/prettier-plugin": "0.3.0",
|
|
25
|
+
"@backtickjs/tsc": "0.3.0",
|
|
26
26
|
"@types/node": "^25.9.1",
|
|
27
27
|
"agent-device": "^0.21.27",
|
|
28
28
|
"nodemon": "^3.1.14",
|