From 8e4ca6169cfe70689ca36e63a4b129fa098b13ab Mon Sep 17 00:00:00 2001 From: Sam Cook Date: Sat, 21 Oct 2023 15:30:37 -0500 Subject: [PATCH] overall changeset --- .changeset/pre.json | 2 +- .changeset/shy-nails-cover.md | 14 ++++++++++++++ CHANGESETS-DIRECTIONS.md | 2 -- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .changeset/shy-nails-cover.md diff --git a/.changeset/pre.json b/.changeset/pre.json index 7390b07b..6a4ae8b2 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -1,5 +1,5 @@ { - "mode": "pre", + "mode": "exit", "tag": "beta", "initialVersions": { "docs": "0.0.0", diff --git a/.changeset/shy-nails-cover.md b/.changeset/shy-nails-cover.md new file mode 100644 index 00000000..7fce93f8 --- /dev/null +++ b/.changeset/shy-nails-cover.md @@ -0,0 +1,14 @@ +--- +"create-hwy": minor +"@hwy-js/build": minor +"hwy": minor +"@hwy-js/dev": minor +--- + +- Cloudflare Pages is now supported! +- 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. +- Adds a new `@hwy-js/build` package, splitting up the live refresh stuff (stays in `@hwy-js/dev`) from the build stuff. +- `{hwyDev?.DevLiveRefreshScript()}` is now `` +- `` is now `` +- 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. diff --git a/CHANGESETS-DIRECTIONS.md b/CHANGESETS-DIRECTIONS.md index 50311f90..20075caa 100644 --- a/CHANGESETS-DIRECTIONS.md +++ b/CHANGESETS-DIRECTIONS.md @@ -14,14 +14,12 @@ https://github.com/changesets/changesets/blob/main/docs/prereleases.md ```sh pnpm build -pnpm changeset pre exit pnpm changeset pre enter beta pnpm changeset version pnpm changeset publish git add . git commit -am "whatever" git push --follow-tags -pnpm changeset pre exit ``` # Normal release workflow