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:
Luca Casonato
2022-06-14 09:39:38 +02:00
committed by GitHub
parent 844ded8cfd
commit 836cc24bdd
40 changed files with 362 additions and 730 deletions
+6 -15
View File
@@ -29,22 +29,13 @@ the framework.
The [documentation](https://fresh.deno.dev/docs/) is available on
[fresh.deno.dev](https://fresh.deno.dev/).
## Install
To install, run the following command. This will add `fresh` CLI to your PATH.
Make sure to have Deno 1.12.0 or later installed.
```sh
deno install -A -f --no-check -n fresh -r https://raw.githubusercontent.com/lucacasonato/fresh/main/cli.ts
```
## Getting started
The `fresh` CLI can scaffold a new project for you. To scaffold a project in the
`myproject` folder, run the following:
You can scaffold a new project by running the Fresh init script. To scaffold a
project in the `myproject` folder, run the following:
```sh
fresh init my-project
deno run -A --no-check https://raw.githubusercontent.com/lucacasonato/fresh/main/init.ts my-project
```
To now start the project, use `deno task`:
@@ -54,9 +45,9 @@ deno task start
```
To deploy the script to [Deno Deploy](https://deno.com/deploy), push your
project to GitHub, create a `fresh` project, and link it to `main.ts` file in
project to GitHub, create a Fresh project, and link it to **`main.ts`** file in
the created repository.
For a more in-depth getting started guide, visit the
[Getting Started](https://fresh.deno.dev/docs/getting-started) page in the
`fresh` docs.
[Getting Started](https://fresh.deno.dev/docs/getting-started) page in the Fresh
docs.