diff --git a/.changeset/brave-ads-decide.md b/.changeset/brave-ads-decide.md new file mode 100644 index 000000000..19c1375c0 --- /dev/null +++ b/.changeset/brave-ads-decide.md @@ -0,0 +1,5 @@ +--- +'@kitql/internals': patch +--- + +internal using svelte 5 diff --git a/.changeset/config.json b/.changeset/config.json index 5607bf98c..ce45f3d5d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -8,7 +8,6 @@ "updateInternalDependencies": "patch", "ignore": [ "website", - "@kitql-old/all-in", - "create-kitql-kit-routes" + "@kitql-old/all-in" ] } diff --git a/.changeset/happy-radios-melt.md b/.changeset/happy-radios-melt.md new file mode 100644 index 000000000..fbbea5ee0 --- /dev/null +++ b/.changeset/happy-radios-melt.md @@ -0,0 +1,5 @@ +--- +'vite-plugin-kit-routes': patch +--- + +remove babel & refact as direct dep and move it to @kitql/internals diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 000000000..df8e4575f --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,18 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "@kitql-old/all-in": "0.9.6", + "create-kitql": "0.1.7", + "create-kitql-kit-routes": "0.0.1", + "@kitql/eslint-config": "0.4.0", + "@kitql/handles": "0.2.0", + "@kitql/helpers": "0.8.10", + "@kitql/internals": "0.9.10", + "vite-plugin-kit-routes": "0.6.11", + "vite-plugin-stripper": "0.5.5", + "vite-plugin-watch-and-run": "1.7.1", + "website": "1.1.2" + }, + "changesets": [] +} diff --git a/.changeset/smart-planes-pull.md b/.changeset/smart-planes-pull.md new file mode 100644 index 000000000..c5cac67a4 --- /dev/null +++ b/.changeset/smart-planes-pull.md @@ -0,0 +1,5 @@ +--- +'@kitql/internals': patch +--- + +expose visit from recast diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a4020262..b58c367cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,38 +43,38 @@ jobs: # - name: 👌 Run Tests # run: pnpm run test:ci - verify_create: - name: Verify Create - runs-on: ubuntu-latest - strategy: - matrix: - template: [kit-routes] - # template: [kit-routes, sveltekit-remult] - steps: - - name: 🌐 Checkout Repository - uses: actions/checkout@v4 - with: - # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits - fetch-depth: 0 - - - name: 🧑‍💻 Setup env - uses: jycouet/jycouet/shared-config/setup@main - with: - pnpmVersion: 9 - nodeVersion: 22.6.0 - - - name: 🚧 Run nx build - run: pnpm build - - - name: ➕ Create template - run: - cd packages/create-kitql && pnpm dev test-${{ matrix.template }} -t ${{ matrix.template }} - - - name: 🧑‍💻 Install playwright - run: cd packages/create-kitql/test-${{ matrix.template }} && npx playwright@1.46.1 install - - - name: 🛠️ e2e install - run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm i --no-frozen-lockfile - - - name: 👌 e2e tests (build, e2e, unit) - run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm run test:ci + # verify_create: + # name: Verify Create + # runs-on: ubuntu-latest + # strategy: + # matrix: + # template: [kit-routes] + # # template: [kit-routes, sveltekit-remult] + # steps: + # - name: 🌐 Checkout Repository + # uses: actions/checkout@v4 + # with: + # # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + # fetch-depth: 0 + + # - name: 🧑‍💻 Setup env + # uses: jycouet/jycouet/shared-config/setup@main + # with: + # pnpmVersion: 9 + # nodeVersion: 22.6.0 + + # - name: 🚧 Run nx build + # run: pnpm build + + # - name: ➕ Create template + # run: + # cd packages/create-kitql && pnpm dev test-${{ matrix.template }} -t ${{ matrix.template }} + + # - name: 🧑‍💻 Install playwright + # run: cd packages/create-kitql/test-${{ matrix.template }} && npx playwright@1.46.1 install + + # - name: 🛠️ e2e install + # run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm i --no-frozen-lockfile + + # - name: 👌 e2e tests (build, e2e, unit) + # run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm run test:ci diff --git a/packages/create-kitql/.gitignore b/packages/create-kitql/.gitignore deleted file mode 100644 index 41deab457..000000000 --- a/packages/create-kitql/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -test-* -package-lock.json diff --git a/packages/create-kitql/CHANGELOG.md b/packages/create-kitql/CHANGELOG.md deleted file mode 100644 index f887ba958..000000000 --- a/packages/create-kitql/CHANGELOG.md +++ /dev/null @@ -1,206 +0,0 @@ -# create-kitql - -## 0.1.7 - -### Patch Changes - -- Updated dependencies - [[`53804e4`](https://github.com/jycouet/kitql/commit/53804e44e6ae3ba8e0de54a2de87cae4f4e32437)]: - - @kitql/helpers@0.8.10 - -## 0.1.6 - -### Patch Changes - -- [#629](https://github.com/jycouet/kitql/pull/629) - [`f474d6f`](https://github.com/jycouet/kitql/commit/f474d6f7b4a1aefefb5eed9dce98bec226ea0310) - Thanks [@jycouet](https://github.com/jycouet)! - bump internals - -- Updated dependencies - [[`f474d6f`](https://github.com/jycouet/kitql/commit/f474d6f7b4a1aefefb5eed9dce98bec226ea0310)]: - - @kitql/helpers@0.8.9 - -## 0.1.5 - -### Patch Changes - -- [#615](https://github.com/jycouet/kitql/pull/615) - [`4f1b749`](https://github.com/jycouet/kitql/commit/4f1b74934cde97056767ee74836c2e4517f5c259) - Thanks [@jycouet](https://github.com/jycouet)! - bump dep - -## 0.1.4 - -### Patch Changes - -- [#600](https://github.com/jycouet/kitql/pull/600) - [`96379f6`](https://github.com/jycouet/kitql/commit/96379f6742e653dd132df64bc7dbab2aec3d8b41) - Thanks [@github-actions](https://github.com/apps/github-actions)! - bump version - -## 0.1.3 - -### Patch Changes - -- [#595](https://github.com/jycouet/kitql/pull/595) - [`f14dfe0`](https://github.com/jycouet/kitql/commit/f14dfe05d9005a1b260ecc1101ee2fa8e4d884fe) - Thanks [@github-actions](https://github.com/apps/github-actions)! - bump - -## 0.1.2 - -### Patch Changes - -- [#574](https://github.com/jycouet/kitql/pull/574) - [`d6b5a08`](https://github.com/jycouet/kitql/commit/d6b5a08f5a15fa9db54818ce69221817b1a7d2bf) - Thanks [@jycouet](https://github.com/jycouet)! - using vite 5 for templates - -- Updated dependencies - [[`d6b5a08`](https://github.com/jycouet/kitql/commit/d6b5a08f5a15fa9db54818ce69221817b1a7d2bf), - [`2aaacce`](https://github.com/jycouet/kitql/commit/2aaacce3fc4ce0792ac8850b84d99c133d3a5997)]: - - @kitql/helpers@0.8.8 - -## 0.1.2-next.1 - -### Patch Changes - -- [#574](https://github.com/jycouet/kitql/pull/574) - [`d6b5a08`](https://github.com/jycouet/kitql/commit/d6b5a08f5a15fa9db54818ce69221817b1a7d2bf) - Thanks [@jycouet](https://github.com/jycouet)! - using vite 5 for templates - -- Updated dependencies - [[`d6b5a08`](https://github.com/jycouet/kitql/commit/d6b5a08f5a15fa9db54818ce69221817b1a7d2bf)]: - - @kitql/helpers@0.8.8-next.1 - -## 0.1.2-next.0 - -### Patch Changes - -- Updated dependencies - [[`2aaacce`](https://github.com/jycouet/kitql/commit/2aaacce3fc4ce0792ac8850b84d99c133d3a5997)]: - - @kitql/helpers@0.8.8-next.0 - -## 0.1.1 - -### Patch Changes - -- [`5f588c9`](https://github.com/jycouet/kitql/commit/5f588c9c80ad7330d36fdaed8d51f17dc77a896e) - Thanks [@jycouet](https://github.com/jycouet)! - bump to latest - -## 0.1.0 - -### Minor Changes - -- [#545](https://github.com/jycouet/kitql/pull/545) - [`635dc31`](https://github.com/jycouet/kitql/commit/635dc312e13404afc8527289a242ed7e2d5a71b8) - Thanks [@jycouet](https://github.com/jycouet)! - bump to latest - -### Patch Changes - -- [`47d9f4d`](https://github.com/jycouet/kitql/commit/47d9f4d80d8f57556ace922b73d3a771d2e09e1c) - Thanks [@jycouet](https://github.com/jycouet)! - tweak readme to explain that "KitQL is nothing" - -- Updated dependencies - [[`47d9f4d`](https://github.com/jycouet/kitql/commit/47d9f4d80d8f57556ace922b73d3a771d2e09e1c)]: - - @kitql/helpers@0.8.6 - -## 0.0.7 - -### Patch Changes - -- Updated dependencies - [[`dcc5b46`](https://github.com/jycouet/kitql/commit/dcc5b46c6142636258d56036193d29183d66bce9)]: - - @kitql/helpers@0.8.5 - -## 0.0.6 - -### Patch Changes - -- [`8f5f447`](https://github.com/jycouet/kitql/commit/8f5f4478ceca6ef289c12b0aa077228738c653d2) - Thanks [@jycouet](https://github.com/jycouet)! - fix path & env - -## 0.0.5 - -### Patch Changes - -- [`790c031`](https://github.com/jycouet/kitql/commit/790c0317fcf45373197d5e70af8337691d48f75c) - Thanks [@jycouet](https://github.com/jycouet)! - bump kit route - -## 0.0.4 - -### Patch Changes - -- [#517](https://github.com/jycouet/kitql/pull/517) - [`e1dd657`](https://github.com/jycouet/kitql/commit/e1dd65716a6b93117648208662a7f7dd9b1ce2a1) - Thanks [@jycouet](https://github.com/jycouet)! - fix windows copy/paste - -- [`592a2fe`](https://github.com/jycouet/kitql/commit/592a2fe2e620a6f1a93a02de7213dc7b88267f43) - Thanks [@jycouet](https://github.com/jycouet)! - update create for kit-routes - -- [`5bda54c`](https://github.com/jycouet/kitql/commit/5bda54c177c1ee389d9ab4251979bd8904bb428a) - Thanks [@jycouet](https://github.com/jycouet)! - bump to .3 exp with 10 formats of Kit Routes - -## 0.0.4-next.2 - -### Patch Changes - -- [#517](https://github.com/jycouet/kitql/pull/517) - [`e1dd657`](https://github.com/jycouet/kitql/commit/e1dd65716a6b93117648208662a7f7dd9b1ce2a1) - Thanks [@jycouet](https://github.com/jycouet)! - fix windows copy/paste - -## 0.0.4-next.1 - -### Patch Changes - -- [`5bda54c`](https://github.com/jycouet/kitql/commit/5bda54c177c1ee389d9ab4251979bd8904bb428a) - Thanks [@jycouet](https://github.com/jycouet)! - bump to .3 exp with 10 formats of Kit Routes - -## 0.0.4-next.0 - -### Patch Changes - -- [`592a2fe`](https://github.com/jycouet/kitql/commit/592a2fe2e620a6f1a93a02de7213dc7b88267f43) - Thanks [@jycouet](https://github.com/jycouet)! - update create for kit-routes - -## 0.0.3 - -### Patch Changes - -- [#481](https://github.com/jycouet/kitql/pull/481) - [`3943581`](https://github.com/jycouet/kitql/commit/3943581044f3f659bd894c8ea07a15e52ca918f5) - Thanks [@jycouet](https://github.com/jycouet)! - add a second template: KitQL Remult - -## 0.0.2 - -### Patch Changes - -- [`6f6b0d1`](https://github.com/jycouet/kitql/commit/6f6b0d1e172b8a696e1e35ced9d4db61a58c05f6) - Thanks [@jycouet](https://github.com/jycouet)! - update readme on npm (this needs a publish of a - new version) - -- [`e6b0cd9`](https://github.com/jycouet/kitql/commit/e6b0cd97d83f652171d6f512edf47df53e7b5f62) - Thanks [@jycouet](https://github.com/jycouet)! - update template kit routes - -- [#465](https://github.com/jycouet/kitql/pull/465) - [`fe26405`](https://github.com/jycouet/kitql/commit/fe26405110965f1d56aaeba1c078f48d1b6fa36f) - Thanks [@jycouet](https://github.com/jycouet)! - init create kitql - -## 0.0.2-next.3 - -### Patch Changes - -- [`6f6b0d1`](https://github.com/jycouet/kitql/commit/6f6b0d1e172b8a696e1e35ced9d4db61a58c05f6) - Thanks [@jycouet](https://github.com/jycouet)! - update readme on npm (this needs a publish of a - new version) - -## 0.0.2-next.2 - -### Patch Changes - -- [`e6b0cd9`](https://github.com/jycouet/kitql/commit/e6b0cd97d83f652171d6f512edf47df53e7b5f62) - Thanks [@jycouet](https://github.com/jycouet)! - update template kit routes - -## 0.0.2-next.1 - -### Patch Changes - -- [#466](https://github.com/jycouet/kitql/pull/466) - [`e4fa7d9`](https://github.com/jycouet/kitql/commit/e4fa7d96116437f76134cac476ff65f016fe9ed0) - Thanks [@jycouet](https://github.com/jycouet)! - update with kit-routes demo diff --git a/packages/create-kitql/README.md b/packages/create-kitql/README.md deleted file mode 100644 index 76d70b9bf..000000000 --- a/packages/create-kitql/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# ➕ create kitql - -[![](https://img.shields.io/npm/v/create-kitql?color=&logo=npm)](https://www.npmjs.com/package/create-kitql) -[![](https://img.shields.io/npm/dm/create-kitql?&logo=npm)](https://www.npmjs.com/package/create-kitql) - -## 📖 Read the doc - -[![](https://img.shields.io/badge/Documentation%20of-create%20kitql-FF3E00.svg?style=flat&logo=stackblitz&logoColor=FF3E00)](https://kitql.dev/docs/create) - -## 🧑‍💻 Try it - -```bash -npm create kitql@latest - -# or with a name & template selected to go even faster -npm create kitql@latest demo-kitql --template sveltekit-remult -``` - -## ⭐️ Join us - -[![GitHub Repo stars](https://img.shields.io/github/stars/jycouet/kitql?logo=github&label=KitQL&color=#4ACC31)](https://github.com/jycouet/kitql) - -💡 _[KitQL](https://www.kitql.dev/docs) itself is not a library, it's "nothing" but a collection of -standalone libraries._ diff --git a/packages/create-kitql/bin.js b/packages/create-kitql/bin.js deleted file mode 100755 index 0f54535af..000000000 --- a/packages/create-kitql/bin.js +++ /dev/null @@ -1,206 +0,0 @@ -#!/usr/bin/env node -import fs from 'fs' -import path from 'path' -import { exit } from 'process' -import { fileURLToPath } from 'url' -import * as p from '@clack/prompts' -import { Option, program } from 'commander' - -import { bold, cyan, gray, green, italic } from '@kitql/helpers' - -const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url), 'utf-8')) -// eslint-disable-next-line no-console -console.log(`${gray(`create-kitql version ${version}`)}\n`) - -// prepare options -const templatesDir = sourcePath(`./templates`) -const options = fs - .readdirSync(templatesDir) - .map((templateDir) => { - // in .meta.json you can find: - /** @type {{label?: string, hint?: string, order?: number}} */ - let data = {} - const metaPath = path.join(templatesDir, templateDir, '.meta.json') - if (fs.existsSync(metaPath)) { - data = JSON.parse(fs.readFileSync(metaPath, 'utf-8')) - } - return { ...data, value: templateDir } - }) - .sort((a, b) => ((a.order ?? 0) > (b.order ?? 0) ? 1 : -1)) - -program.argument('[project_name]', 'optional project name') -program.addOption( - new Option('-t, --template