feat: remove fresh cli, do manifest generation in process (#223)
This commit removes the `fresh` cli, replacing it with a small bootstrap script, and JIT generation of the manifest that happens in process during development.
This commit is contained in:
@@ -30,7 +30,7 @@ declare a component that should be rendered every time a user visits the page.
|
||||
This is done with JSX.
|
||||
|
||||
> ℹ️ To learn more about JSX, you can read [this article][jsx] in the React
|
||||
> documentation. Beware that `fresh` does not use React, but rather
|
||||
> documentation. Beware that Fresh does not use React, but rather
|
||||
> [Preact][preact], a lighter weight virtual dom library that works similar to
|
||||
> React.
|
||||
|
||||
@@ -54,24 +54,7 @@ export default function AboutPage() {
|
||||
> element function. These are just boilerplate. You don't need to know exactly
|
||||
> what they do - they just ensure that JSX get's rendered correctly.
|
||||
|
||||
This alone is not yet enough to actually view the page in the browser though. If
|
||||
one tries to visit `http://localhost:8000/about`, the server will return a 404
|
||||
code.
|
||||
|
||||
Before `fresh` can render the page, the `fresh.gen.ts` manifest needs to be
|
||||
updated to reflect this new route. To do this, one can run the `fresh manifest`
|
||||
command:
|
||||
|
||||
```
|
||||
$ fresh manifest
|
||||
Manifest generated and written to ./my-project/fresh.gen.ts
|
||||
```
|
||||
|
||||
> ℹ️ Updating the manifest needs to be done every time you add, remove, or
|
||||
> rename a page. It does not need to be done if just the contents of a page are
|
||||
> edited.
|
||||
|
||||
Now the page will be visible at `http://localhost:8000/about`.
|
||||
The new page will be visible at `http://localhost:8000/about`.
|
||||
|
||||
<!-- You can find more in depth information about routes on the
|
||||
[_Concepts: Routes_][concepts-routes] documentation page page. The following
|
||||
|
||||
Reference in New Issue
Block a user