Skip to content

Commit

Permalink
changeset init (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjc5 authored Oct 21, 2023
1 parent e4e514a commit d91cf64
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .changeset/shy-nails-cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <DevLiveRefreshScript />
<ClientEntryScript /> is now <ClientScripts activePathData={activePathData} />. 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 `<DevLiveRefreshScript />`
- `<ClientEntryScript />` is now `<ClientScripts activePathData={activePathData} />`. 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.

0 comments on commit d91cf64

Please sign in to comment.