diff --git a/.changeset/honest-fishes-tickle.md b/.changeset/honest-fishes-tickle.md new file mode 100644 index 000000000..d56346f09 --- /dev/null +++ b/.changeset/honest-fishes-tickle.md @@ -0,0 +1,6 @@ +--- +'@gqty/solid': minor +'@gqty/cli': minor +--- + +Improves Solid support using createResource over createSignal diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b302ae9a6..9ae32e04f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -66,4 +66,4 @@ jobs: run: node scripts/test-esm.mjs - name: Test everything - run: pnpm test:ci + run: pnpm test diff --git a/.husky/pre-commit b/.husky/pre-commit index 3a8a19210..cf567a5bc 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - pnpm --quiet dlx pretty-quick --staged -pnpm --quiet dlx sort-package-json --quiet packages/*/package.json && git add packages/*/package.json +pnpm --quiet dlx sort-package-json --quiet packages/*/package.json && \ + git add packages/*/package.json diff --git a/examples/react/package.json b/examples/react/package.json index 2c610cbac..92878f8da 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -55,7 +55,6 @@ "bob-tsm": "^1.1.2", "concurrently": "^8.2.2", "cross-env": "^7.0.3", - "esbuild": "^0.23.0", "jest": "^29.7.0", "open-cli": "^8.0.0", "wait-on": "^7.2.0" diff --git a/examples/solid/README.md b/examples/solid/README.md new file mode 100644 index 000000000..a13873249 --- /dev/null +++ b/examples/solid/README.md @@ -0,0 +1,9 @@ +# GQty Solid Example + +Run the example with the following commands: + +```bash +cd examples/solid +pnpm install +pnpm dev +``` diff --git a/examples/solid/index.html b/examples/solid/index.html new file mode 100644 index 000000000..48c59fc12 --- /dev/null +++ b/examples/solid/index.html @@ -0,0 +1,16 @@ + + +
+ + + + ++ {data()?.species} +
++ {data()?.origin?.name} +
+
+