diff --git a/.github/workflows/clang.yml b/.github/workflows/clang-format.yml similarity index 83% rename from .github/workflows/clang.yml rename to .github/workflows/clang-format.yml index 45882f4055c7e..bb2cca1880c31 100644 --- a/.github/workflows/clang.yml +++ b/.github/workflows/clang-format.yml @@ -1,4 +1,4 @@ -name: clang +name: clang-format permissions: contents: write @@ -15,8 +15,8 @@ env: LLVM_VERSION_MAJOR: "18" jobs: - clang: - name: clang + clang-format: + name: clang-format runs-on: ubuntu-latest steps: - name: Checkout @@ -35,11 +35,6 @@ jobs: LLVM_VERSION: ${{ env.LLVM_VERSION }} run: | bun run clang-format - - name: Clang Tidy - env: - LLVM_VERSION: ${{ env.LLVM_VERSION }} - run: | - bun run clang-tidy:diff - name: Commit uses: stefanzweifel/git-auto-commit-action@v5 with: diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml new file mode 100644 index 0000000000000..a6f06ad620621 --- /dev/null +++ b/.github/workflows/clang-tidy.yml @@ -0,0 +1,41 @@ +name: clang-tidy + +permissions: + contents: write + +on: + workflow_call: + workflow_dispatch: + pull_request: + merge_group: + +env: + BUN_VERSION: "1.1.27" + LLVM_VERSION: "18.1.8" + LLVM_VERSION_MAJOR: "18" + +jobs: + clang-tidy: + name: clang-tidy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Bun + uses: ./.github/actions/setup-bun + with: + bun-version: ${{ env.BUN_VERSION }} + - name: Install LLVM + run: | + curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- ${{ env.LLVM_VERSION_MAJOR }} all + - name: Clang Tidy + env: + LLVM_VERSION: ${{ env.LLVM_VERSION }} + run: | + bun run clang-tidy:diff + - name: Commit + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "`bun run clang-tidy`" diff --git a/docs/guides/ecosystem/sveltekit.md b/docs/guides/ecosystem/sveltekit.md index 6386673bc8585..38824a57756dc 100644 --- a/docs/guides/ecosystem/sveltekit.md +++ b/docs/guides/ecosystem/sveltekit.md @@ -2,56 +2,62 @@ name: Build an app with SvelteKit and Bun --- -Use `bun create` to scaffold your app with the `svelte` package. Answer the prompts to select a template and set up your development environment. +Use `sv create my-app` to create a SvelteKit project with SvelteKit CLI. Answer the prompts to select a template and set up your development environment. ```sh -$ bun create svelte@latest my-app -┌ Welcome to SvelteKit! +$ bunx sv create my-app +┌ Welcome to the Svelte CLI! (v0.5.7) │ -◇ Which Svelte app template? -│ SvelteKit demo app +◇ Which template would you like? +│ SvelteKit demo │ -◇ Add type checking with TypeScript? -│ Yes, using TypeScript syntax +◇ Add type checking with Typescript? +│ Yes, using Typescript syntax │ -◇ Select additional options (use arrow keys/space bar) -│ None +◆ Project created │ -└ Your project is ready! - -✔ Typescript - Inside Svelte components, use