Cem and Asher 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
Kamil Ogórek
4dc6881498
fix(init): update routes/index.tsx to be correctly formatted with deno fmt ( #1160 )
2023-05-12 13:06:19 +09:00
Marvin Hagemeister
f481c1a03f
fix: superfluous dir message when dir === cwd ( #1138 )
2023-04-30 10:41:42 +02:00
hashrock
3b0c4b3b67
chore: add a head component to generated project ( #771 )
...
This PR adds a `<Head>` component to projects generated using `init.ts`.
2022-09-15 15:00:25 +02:00
Luca Casonato
ee8812d7f6
chore: tweak console output for init.ts script ( #708 )
2022-09-07 15:28:38 +02:00
Luca Casonato
b19c4bb041
feat: add update.ts script ( #706 )
...
This commit adds an update.ts tool that makes it easy to upgrade
existing Fresh projects to the latest version of Fresh. This tool
updates dependency versions in the import map, and includes some code
mods:
1. update projects from classic JSX to automatic JSX
2. update projects from legacy twind integration to twind plugin
Both of these code mods get you about 95% of the way there most of the
time. Users might still need to do some manual work to get their
projects fully updated.
2022-09-07 09:36:23 +00:00
Luca Casonato and Elias 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
b12867a582
feat: support JSX automatic mode ( #610 )
...
This commit adds support for JSX automatic mode instead of the default
mode that requires the presence of the JSX pragma in each file.
This commit also adds the config file to the `fresh.gen.ts` manifest,
which is used to determine if the client emit should use automatic mode.
The minimum Deno version has also been bumped to 1.25.0.
2022-08-26 11:03:00 +02:00
Luca Casonato
3d682d98cb
chore: update preact & preact-render-to-string ( #651 )
...
preact@10.10 .6 & preact-render-to-string@5.2.2
2022-08-23 22:09:06 +00:00
Roj
67b82d538b
fix: add reference to dom.iterable ( #641 )
...
This fixes TypeScript errors with things like `URLSearchParams.entries`.
2022-08-23 13:26:21 +00: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
Kid
5b9ce720d0
chore: remove deno.unstable references ( #600 )
2022-08-08 23:19:26 +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
Luca Casonato
ba20756c17
chore: update deps ( #561 )
...
Update std, esbuild, and preact.
2022-07-30 17:29:29 +02:00
Sahil Sonawane
7e2ab7fa50
chore: simplify init.ts start instructions ( #486 )
2022-07-15 14:37:48 +00:00
Steven Yung
c6eab38513
feat: enable deno lint & deno fmt for vscode ( #470 )
2022-07-13 00:15:09 +02:00
Anish Karandikar
3af41bb3fd
fix: minor typo in init ( #488 )
2022-07-12 13:36:47 +00:00
X
85687b6c78
chore: update preact-render-to-string import to use esm.sh ?external query ( #499 )
2022-07-12 15:32:36 +02:00
Darius I. Karel
86daf73d47
fix: display real value for the directory to cd to after init ( #415 )
2022-07-05 13:35:44 +02:00
Luca Casonato
87da68b8a7
chore: update preact + twind ( #410 )
2022-07-04 15:25:32 +00:00
Steven Yung and Luca Casonato
b09e033c8e
feat: add vscode files on init ( #367 )
...
Ask the user if they use VS Code, and if so add the `.vscode/` files.
Co-authored-by: Luca Casonato <hello@lcas.dev >
2022-07-04 13:17:09 +00:00
cbbcdc7d93
fix: update README.md and init.ts to match the docs ( #334 )
...
The setup steps presented between them slightly differed.
Co-authored-by: Rasoul Abdulzahra <rasoul.abdulzahra@aubay.it >
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com >
2022-07-04 10:55:48 +00:00
omar2205
3569e645a5
fix: update JOKES example to use the array's length ( #337 )
2022-07-01 01:40:05 +02:00
Luca Casonato
34fc5514f9
chore: update twind import map defaults in init.ts ( #291 )
2022-06-27 14:35:34 +02:00
Luca Casonato
6cb2ebf7d4
chore: check minimum Deno version for init.ts ( #282 )
2022-06-24 13:55:18 +02:00
satotake
f7cc2db225
fix: generate favicon.ico in init script ( #278 )
...
Browsers try to get `/favicon.ico` by default. This request enters `[name].tsx`
and returns greet unexpectedly.
To fix this, the favicon is now fetched from `https://fresh.deno.dev ` and
saved into the `static` folder in the init script.
2022-06-23 14:38:57 +02:00
Luca Casonato
1b3d1319bd
chore: update default preact version ( #272 )
2022-06-22 14:40:37 +02:00
Luca Casonato
1339a315e6
fix: types in fresh-init --twind's main.ts ( #269 )
2022-06-22 12:48:27 +02:00
Luca Casonato
da340daeb2
BREAKING: move a bunch of types into server/ ( #263 )
...
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +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
cbbf616a74
chore: version preact explicitly in import map ( #258 )
...
This allows users to control the `preact` version independently of fresh
itself.
2022-06-20 12:37:24 +02:00
STEVEN
ce9992fbc8
fix: update end line in generated logo.svg ( #243 )
2022-06-17 14:48:54 +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