From d91cf640b8ad26076e0b91617f1248653dd2fa46 Mon Sep 17 00:00:00 2001 From: Sam Cook Date: Sat, 21 Oct 2023 18:08:28 -0500 Subject: [PATCH] changeset init (#21) --- .changeset/shy-nails-cover.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.changeset/shy-nails-cover.md b/.changeset/shy-nails-cover.md index d8a22895..442daaba 100644 --- a/.changeset/shy-nails-cover.md +++ b/.changeset/shy-nails-cover.md @@ -7,18 +7,19 @@ First off, huge shoutout to @jharrell for his debugging and research assistance on this PR related to adding Cloudflare Pages support! Thank you! -Cloudflare Pages is now supported! Closes issue #6. +- Cloudflare Pages is now supported! Closes #6. -Added changesets. Closes issue #14. +- Added changesets. Closes #14. -Adds a hwy.config.ts / hwy.config.js file to the root of your project for setting up dev settings and deployment target, and probably other things in the future. As annoying as config files are, this simplifies a lot of things and is not too much to ask for a framework. +- Adds a `hwy.config.ts` / `hwy.config.js` file to the root of your project for setting up dev settings and deployment target, and probably other things in the future. As annoying as config files are, this simplifies a lot of things and is not too much to ask for a framework. -Removes a lot of complexity / variance in build commands and deploy target hacks, as now we can just read the deployment target from the Hwy config and handle everything in Hwy's centralized build step. +- Removes a lot of complexity / variance in build commands and deploy target hacks, as now we can just read the deployment target from the Hwy config and handle everything in Hwy's centralized build step. -Adds a new @hwy-js/build package, splitting up the live refresh stuff (stays in @hwy-js/dev) from the build stuff. +- Adds a new `@hwy-js/build` package, splitting up the live refresh stuff (stays in `@hwy-js/dev`) from the build stuff. -In your src/main.tsx file: +- In your `src/main.tsx` file: -{hwyDev?.DevLiveRefreshScript()} is now just - is now . This is to enable the new client scripts functionality mentioned below. -Added an option to ship client-side JS (including from TS files if you want) by adding a sibling page-name.client.ts or page-name.client.js file to your page. This becomes basically global JS for that page, and anything imported will be bundled into that page's script, which is built into the public folder and referenced in the document head when you visit that page. This will be better documented later. Closes issue #15. + - `{hwyDev?.DevLiveRefreshScript()}` is now just `` + - `` is now ``. This is to enable the new client scripts functionality mentioned below. + +- Added an option to ship client-side JS (including from TS files if you want) by adding a sibling `page-name.client.ts` or `page-name.client.js` file to your page. This becomes basically global JS for that page, and anything imported will be bundled into that page's script, which is built into the public folder and referenced in the document head when you visit that page. This will be better documented later. Closes #15.