This commit changes how bundling works, by bundling all routes at once. Static JS assets are now cached immutably. Additionally this PR completly refactors how the router works to make it more modular. This allows users to opt out of the default oak server, and instead create their own.
22 lines
354 B
Markdown
22 lines
354 B
Markdown
# fresh project
|
|
|
|
### Usage
|
|
|
|
Install deployctl:
|
|
|
|
```
|
|
deno install --allow-read --allow-write --allow-env --allow-net --allow-run --no-check -r -f https://deno.land/x/deploy/deployctl.ts
|
|
```
|
|
|
|
Start the project:
|
|
|
|
```
|
|
deployctl run --no-check --watch main.ts
|
|
```
|
|
|
|
After adding, removing, or moving a page in the `pages` directory, run:
|
|
|
|
```
|
|
fresh routes
|
|
```
|