Commit Graph
43 Commits
Author SHA1 Message Date
Reed von Redwitz 6d5428eeaa fix(update): update script actually supports comments in jsonc (#1591) 2023-08-04 15:22:08 +02:00
Asher Gomez 5e78224f49 chore(CI): fix and simplify caching (#1571) 2023-08-02 09:44:42 +02:00
Marvin Hagemeister 0fc6850d87 chore: make test more timing resilient (#1473) 2023-07-18 12:41:36 +02:00
Lino Le Van 292b4c2d6f chore: bump dependencies (#1428) 2023-07-08 22:47:12 +02:00
Reed von Redwitz 70e9c556c3 feat(starter): always initialize _app.tsx (#1380) 2023-07-01 12:59:10 +02:00
Reed von Redwitz a30c6bdf5c fix(test): cli_test now retries to move files (#1372) 2023-06-28 14:47:26 +02:00
Reed von Redwitz ae984924e5 fix: update script broken when using src dir (#1353)
closes https://github.com/denoland/fresh/issues/1338

This is more complex than first expected. It turns out the head of main
no longer has this error, because we started swallowing errors in
https://github.com/denoland/fresh/pull/1327. I'm not sure this is the
right implementation. It seems like we should explicitly check for the
`islands` folder instead of ignoring errors. But the obvious approach
(https://deno.land/std@0.192.0/fs/mod.ts?s=exists) is apparently
forbidden, due to some sort of nonsense with race conditions. Well, not
being able to find `islands` because it doesn't exist at all is
definitely different than it being buried in a source directory, so
we'll need to sort this out at some point.

I suppose that's now some technical debt to deal with, and not related
to this issue. The latest "error" when running `update` and using a
source directory is the following:
```
deno run -A -r file:///Users/reed/code/fresh/update.ts .
The manifest has been generated for 0 routes and 0 islands.
```
i.e. it just doesn't do anything. (To be fair, it does generate a
`fresh.gen.ts` in the incorrect location, so I suppose it does
_something_.)

But of course this isn't what we want. So we'll hunt for a source
directory, as defined by the precense of `main.ts`.

The fix for this is relatively straightforward. The test implements the
user's actions, i.e. init a project, move things, and then try to
update.
2023-06-24 13:28:05 +02:00
Reed von Redwitz 03dbbd4f8e fix: update script supports deno.jsonc files (#1349) 2023-06-23 14:26:22 +02:00
arrow2nd ab461cd71d fix: update.ts fails when there is no islands directory (#1327) 2023-06-21 19:11:50 +02:00
Marvin Hagemeister 3a83c5974d chore: simplify folder tests (#1337) 2023-06-21 14:02:25 +02:00
Marvin Hagemeister 87b15885aa feat(starter): add 404 page template (#1336) 2023-06-21 11:01:48 +02:00
Marvin Hagemeister ea6a74237d feat: improve starter template design (#1320) 2023-06-17 20:31:08 +02:00
Marvin Hagemeister 36d56a9878 feat(server): pick free port if none specified (#1274) 2023-06-12 13:18:52 +02:00
Marvin Hagemeister cd760b90d4 chore(test): extract shared start server code (#1250)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-06-05 18:52:22 +02:00
Asher GomezandLuca Casonato 1b6678951a feat: support embedded import map in deno.json (#1188)
One can now inline the `imports` and `scopes` from the import map directly into deno.json.

For new projects, `import_map.json` is not generated anymore.

Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-06-03 10:46:40 +02:00
Lino Le VanandAsher Gomez 736c5524d5 chore: upgrade preact to 10.15.1 and std to 0.190.0 (#1237)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-06-03 10:04:23 +10:00
Khang Nguyen DuyandLuca Casonato a49e2d04e3 feat: remove hardcoded deno.json path (#1208)
`deno.json` files can now be placed in a parent directory of the file
containing `fresh.gen.ts`.

Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-05-31 12:02:28 +02:00
Asher Gomez e0cb693c0f chore(deps): update to std@0.189.0 (#1201) 2023-05-27 17:36:15 +10:00
CemandAsher Gomez 114c4dbfab dotenv option (#740)
added dotenv option to read environment variables files

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-17 09:48:39 +10:00
Marvin Hagemeister f481c1a03f fix: superfluous dir message when dir === cwd (#1138) 2023-04-30 10:41:42 +02:00
Sylvain CauandLuca Casonato 7e72fa236c refactor: remove deno.run (#1036)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-03-10 04:57:16 +09:00
hashrock 20736cd02a fix(test): retry flaky file remove on Windows (#1010) 2023-02-01 19:28:47 +09:00
e2c54d00b6 test: remove tmp dir (#280)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: hashrock <hashrock@users.noreply.github.com>
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2022-10-19 19:08:27 +09:00
Luca CasonatoandElias Sjögreen 1b3c9f2569 fix(plugin/twind): load configuration as module (#705)
This commit loads the Twind configuration as an actual module rather
than evaluating it on the server and then serializing. This allows usage
of unserializable plugin functions.

Co-authored-by: Elias Sjögreen <eliassjogreen1@gmail.com>
2022-09-07 00:44:46 +02:00
Luca Casonato 660e0f5fef feat: twind plugin (#513)
This adds a first-party twind plugin to use twind for styling.
2022-08-09 21:41:11 +02:00
ashish 58f9769baf refactor: add components/ in starter project (#353)
This commit adds a `components/` folder to the starter project to
indicate that one can also create components that are not themselves
islands.
2022-07-30 15:56:42 +00:00
AbdulazizandLuca Casonato 1dc1f87fc3 refactor: use named status codes from std internally (#417)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-07-30 15:35:31 +00:00
Luca Casonato ba20756c17 chore: update deps (#561)
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Luca Casonato e0e669ef3d tests: fix hanging tests locally (#408)
Also add a test for --vscode for the init script.
2022-07-04 15:16:49 +00:00
Yuki ShindoandLuca Casonato 56ecfcc7ee tests: add case for invalid inputs in fresh-init (#276)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-06-23 11:18:04 +00:00
Luca Casonato 1339a315e6 fix: types in fresh-init --twind's main.ts (#269) 2022-06-22 12:48:27 +02:00
Luca Casonato ff5684df67 feat: add twind auto-setup to init.ts (#261)
This adds options to `init.ts` to automatically set up `twind` a new
project.
2022-06-20 17:43:12 +02:00
Luca Casonato de6c3f6ed5 chore: remove --no-check flags (#259)
Since Deno 1.23.0, `--no-check` has become the default type checking
mode for `deno run`. As such, we don't need to specify this flag
anymore.
2022-06-20 12:45:48 +02:00
Luca Casonato 836cc24bdd 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.
2022-06-14 09:39:38 +02:00
Sylvain CauandLuca Casonato afafb7c938 fix: reviving multiple islands on one page (#197)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-06-07 15:02:48 +02:00
Luca Casonato 80598d07fd feat: use import maps instead of deps files (#209)
This commit updates fresh to use import maps instead of deps files in generated projects.
2022-05-23 19:35:15 +02:00
Luca Casonato fd6724c050 chore: rename *_deps.ts -> deps.*.ts (#206)
As per David's suggestion.
2022-05-23 16:05:33 +02:00
Luca Casonato 3ef6504e93 test: make cli test more robust (#199) 2022-05-20 16:04:46 +02:00
Luca Casonato cf438a7879 refactor: asset caching via query param (#192)
This updates the asset caching to use a cache busting query string,
rather than a totally separate path. This makes it safer to apply
caching automatically to things like `<img>` tags, as the path does not
change anymore.
2022-05-16 17:39:22 +00:00
Sylvain Cau 0e2c58578d feat: add static folder and logo.svg to fresh init (#189)
This makes it easier to discover fresh's support for simple static file handling.
2022-05-16 02:17:33 +02:00
Sylvain Cau 2f053816f4 test: Add revive test with puppeteer (#185) 2022-05-14 12:28:41 +02:00
Tyler BrostromandLuca Casonato 4e1d4231f7 chore: update esbuild (#151)
Update esbuild to 14.34, and remove esbuild-wasm from vendored depedencies.

Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-04-23 15:01:45 +02:00
Iori IKEDAandLuca Casonato 3d63efc7a8 tests: add fresh init integration test (#141)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-03-28 21:52:05 +02:00