Marvin Hagemeister
ffd7cdd0bd
fix(init): fetch favicon from network like before ( #2948 )
...
Reverts back to fetching the favicon from the network. Copying assets
from JSR turns out to be difficult.
Fixes https://github.com/denoland/fresh/issues/2941
2025-05-14 23:20:42 +02:00
Marvin Hagemeister
638a98b106
chore: release alpha 32 ( #2947 )
2025-05-14 23:05:22 +02:00
Marvin Hagemeister
1957fd0ff6
fix(init): must use urls for asset copying ( #2946 )
...
Second attempt to fix https://github.com/denoland/fresh/pull/2943 .
Turns out that `import.meta.dirname` is `undefined` when served from
JSR. I'm not able to reproduce that error locally though.
Fixes https://github.com/denoland/fresh/pull/2943
2025-05-14 22:59:02 +02:00
Marvin Hagemeister
74d5c0f98f
chore: release alpha.31 ( #2945 )
2025-05-14 22:50:25 +02:00
Marvin Hagemeister
4fc1a2b92e
fix(init): include favicon.ico in init package ( #2943 )
...
Fixes a regression introduced by
https://github.com/denoland/fresh/pull/2867
Fixes https://github.com/denoland/fresh/issues/2941
2025-05-14 22:38:10 +02:00
Marvin Hagemeister
c3095f38c4
chore: release 2.0.0-alpha.30 ( #2939 )
2025-05-14 10:55:47 +02:00
Asher Gomez
84a03ee66c
chore(init): cleanup twind options ( #2868 )
...
These values are no longer used.
2025-05-12 23:29:17 +02:00
Marvin Hagemeister
a49fc3796f
chore: ignore check fmt on canary ( #2925 )
...
Ignore checking formatting on canary as the formatting might be
different from stable releases of Deno.
2025-05-12 20:30:17 +02:00
Christian Svensson
d10ea5a89a
fix: remove unnecessary config property in init script ( #2915 )
...
From what I can see, `fsRoutes` uses the `FreshConfig.root` option by
default, so this property does not need to be specified. I also added
some JSDoc for the `dir` option in `fsRoutes()` as I understood it's
purpose.
2025-05-12 09:42:16 +02:00
Asher Gomez
54d18d8bca
tests: fix leaks, macOS hangs and utility cleanups ( #2897 )
...
1. Upgrades `@astral/astral`
2. Fixes test leaks
3. Fixes `@fresh/init` test hangs
4. Simplifies and cleans up test utilities
2025-05-07 10:53:42 +02:00
Asher Gomez
45ce7e3ac0
chore: add doc checker ( #2877 )
...
First steps towards #2876
Depends on https://github.com/denoland/std/pull/6632
2025-05-02 10:55:55 +02:00
Asher Gomez
d077130b05
refactor(init): avoid network request for downloading of favicon ( #2867 )
2025-04-28 15:10:03 +02:00
Asher Gomez
149509995e
fix(init): define working directory in check task for init script ( #2852 )
...
~~This fixes CI for current PRs until
https://github.com/denoland/deno/pull/28655 is added to Deno 2.3.0.~~
This fixes CI until https://github.com/denoland/deno/issues/28923 is
fixed. Then, we can use `Deno.makeTempDir()` and not have to use
`tmp_*/`.
2025-04-22 13:17:05 +02:00
Marvin Hagemeister
65c05b2127
2.0.0-alpha.29 ( #2812 )
2025-01-16 22:43:40 +01:00
Marvin Hagemeister
c7c341b695
2.0.0-alpha.28 ( #2810 )
2025-01-16 14:24:07 +01:00
Luca Casonato
0864559562
2.0.0-alpha.27 ( #2791 )
2024-12-12 14:08:25 +01:00
Luca Casonato
03847e9a33
2.0.0-alpha.26
2024-12-10 16:05:22 +01:00
Luca Casonato
4a25ac385f
refactor: make this repo a Deno workspace ( #2719 )
2024-12-10 13:41:18 +01:00
Brian Buchholz
d86dcd6d2f
fix: tests broken on Deno 2.1 ( #2776 )
...
Resolves https://github.com/denoland/fresh/issues/2771
Specifically the `init` test fails:
```
deno test -A ./init
```
Output:
```
error: No target files found.
----- output end -----
init - fmt, lint, and type check project ... FAILED (157ms)
init with tailwind - fmt, lint, and type check project ...
------- output -------
Task check deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx
error: No target files found.
----- output end -----
init with tailwind - fmt, lint, and type check project ... FAILED (136ms)
```
Seems to be a gitignore issue, and _probably_ relates to the new
features that ["lint an fmt respect
gitignore"](https://github.com/denoland/deno/pull/26897 ):
- the gitignore file in the fresh project has `tmp-*`
- the tmp directory created by the init test matches that pattern:
`tmp-${hash}`
- changing the tmp directory to `tmp_${hash}` resolves the issue 😄
2024-12-04 10:44:45 -08:00
Luca Casonato
6ee4551df1
2.0.0-alpha.25
2024-11-08 12:08:56 +01:00
Luca Casonato
96e520a352
chore: release alpha.24 ( #2745 )
2024-10-31 11:31:51 +01:00
Marvin Hagemeister
bf45e8652a
chore: release alpha.23 ( #2728 )
2024-10-22 14:01:21 +02:00
Marvin Hagemeister
e303b873a6
chore: release 2.0.0-alpha.22 ( #2685 )
2024-10-04 10:32:02 +02:00
Tim Reichen
182bda5b7f
fix(init): add dom.iterable to template compilerOptions.lib ( #2656 )
...
Ref: https://github.com/denoland/deno/issues/25741
2024-10-02 01:28:50 +02:00
Marvin Hagemeister
39dbee5497
chore: release 2.0.0-alpha.21 ( #2665 )
2024-09-30 18:38:41 +02:00
Marvin Hagemeister and Luca Casonato
de8f1b0c59
feat: update for Deno 2 ( #2655 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev >
2024-09-30 18:30:30 +02:00
Marvin Hagemeister
85c44d6460
chore: release alpha 20 ( #2618 )
2024-08-13 14:20:59 +02:00
Marvin Hagemeister
76af4114b7
chore: release alpha 19 ( #2571 )
2024-07-03 11:30:37 +02:00
Marvin Hagemeister
e33915b34b
fix: remove lock option from init as it's the default ( #2570 )
2024-07-03 11:25:31 +02:00
Marvin Hagemeister
bfb5753ecb
chore: release alpha 18 ( #2553 )
2024-06-27 11:59:36 +02:00
Marvin Hagemeister
fc820e8965
feat: add error messages for missing build cache ( #2551 )
2024-06-26 15:33:25 +02:00
Marvin Hagemeister
28eca25a42
fix: add vendor/ to gitignore by default ( #2550 )
2024-06-26 14:30:45 +02:00
Marvin Hagemeister
fa22c60a4e
chore: release 2.0.0-alpha.17 ( #2549 )
2024-06-26 11:29:54 +02:00
Marvin Hagemeister
0f6b4f624f
chore: remove debug trace logs ( #2545 )
2024-06-25 10:08:48 +02:00
Reed von Redwitz
77bd7d0d44
feat: re-enable lockfile in init ( #2538 )
...
closes https://github.com/denoland/fresh/issues/2533
Or does this need a test to assert the file exists?
2024-06-24 09:26:55 +02:00
Reed von Redwitz
deeccd7e25
feat: add example of define.middleware to init ( #2534 )
...
The documentation for `MiddlewareFn` is out of date, because it
references a nonexistent `defineMiddleware` function. It's been updated
to reference the correct `define.middleware` function.
Additionally, I included an example of using this in the init project. I
also complicated the usage of `app.get` so that the function actually
uses the context. To make it clear to users of fresh 1 that this can be
equivalent to a file-based-route, I've included such a route as well.
The two new examples in `maini.ts` should make it much more clear to
fresh 1 users how the new system can work.
2024-06-23 22:46:04 +02:00
Reed von Redwitz
5a7184ad99
fix: ensure deno task check passes in initialized projects ( #2529 )
...
There were two issues with initialized projects:
1. not every file was formatted properly
2. linting wasn't passing when using `verbatim-module-syntax`. This
isn't enabled right now, due to it not having the `recommended` tag, but
it seems like a good idea. Actually initializing a project with this can
be done in a separate PR.
2024-06-23 17:44:07 +02:00
Marvin Hagemeister
b0b1a306c5
chore: release alpha 16 ( #2511 )
2024-06-08 09:07:32 +02:00
Marvin Hagemeister
d6cabce71d
chore: release alpha 15 ( #2507 )
2024-06-08 08:14:59 +02:00
Marvin Hagemeister
0ceab6b8a9
feat: init projects with jsx precompile ( #2506 )
2024-06-08 08:07:18 +02:00
Marvin Hagemeister
fe26b8e2ff
chore: don't rely on jsr version in init test ( #2509 )
2024-06-08 08:05:33 +02:00
Luca Casonato
c3ec742a65
feat: import fresh from fresh ( #2479 )
...
Instead of importing as `@fresh/core`.
2024-06-05 14:51:35 +02:00
Marvin Hagemeister
f09130cebf
fix: add init background gradient ( #2502 )
2024-06-05 14:00:57 +02:00
Marvin Hagemeister
f69d393eae
fix(init): update init complete text ( #2499 )
...
Related: https://github.com/denoland/fresh/issues/2197
2024-06-05 10:11:17 +02:00
Marvin Hagemeister
0928ecbe11
chore: release alpha 14 ( #2493 )
2024-06-04 18:27:43 +02:00
Marvin Hagemeister
bcfb4e34c1
fix: wrong type in init files ( #2492 )
2024-06-04 18:26:44 +02:00
Marvin Hagemeister
339ee98ea3
chore: release alpha ( #2491 )
2024-06-04 18:09:49 +02:00
Marvin Hagemeister
b0b4bf1efd
chore: add release script ( #2490 )
2024-06-04 18:01:32 +02:00
Luca Casonato
aa19b393e7
feat: export compat types from /compat export ( #2478 )
2024-06-03 14:32:38 +00:00
Marvin Hagemeister
2fb8606e9e
fix: path handling inconsistencies ( #2482 )
2024-06-03 15:03:48 +02:00