Skip to content

Commit cbb8ff0

Browse files
authored
Merge pull request #12487 from Turbo87/svelte-basics
Create new Svelte project
2 parents f5e895d + d751a29 commit cbb8ff0

30 files changed

+1164
-22
lines changed

.buildpacks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
https://github.com/heroku/heroku-buildpack-apt
2-
https://github.com/Turbo87/heroku-buildpack-crates-io#7916dff181a455c55ef3a1603a4efe00920a16c2
2+
https://github.com/Turbo87/heroku-buildpack-crates-io#548cef4ec86eda61bfbf62d0546269dc4632175f

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,18 @@ jobs:
8989
with:
9090
files: .github/workflows/**
9191

92+
- uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
93+
id: changed-files-svelte
94+
with:
95+
files: svelte/**
96+
9297
outputs:
9398
non-js: ${{ steps.changed-files-non-js.outputs.any_modified }}
9499
non-rust: ${{ steps.changed-files-non-rust.outputs.any_modified }}
95100
rust-lockfile: ${{ steps.changed-files-rust-lockfile.outputs.any_modified }}
96101
migrations: ${{ steps.changed-files-migrations.outputs.any_modified }}
97102
ci: ${{ steps.changed-files-ci.outputs.any_modified }}
103+
svelte: ${{ steps.changed-files-svelte.outputs.any_modified }}
98104

99105
percy-nonce:
100106
name: Frontend / Percy Nonce
@@ -388,3 +394,35 @@ jobs:
388394
with:
389395
sarif_file: results.sarif
390396
category: zizmor
397+
398+
svelte:
399+
name: Svelte (experimental)
400+
runs-on: ubuntu-24.04
401+
needs: changed-files
402+
if: needs.changed-files.outputs.svelte == 'true'
403+
404+
defaults:
405+
run:
406+
working-directory: svelte
407+
408+
steps:
409+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
410+
with:
411+
persist-credentials: false
412+
413+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
414+
with:
415+
version: ${{ env.PNPM_VERSION }}
416+
417+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
418+
with:
419+
cache: pnpm
420+
node-version-file: package.json
421+
422+
- run: pnpm install
423+
424+
- run: pnpm lint
425+
- run: pnpm check
426+
- run: pnpm build
427+
- run: pnpm playwright install chromium-headless-shell
428+
- run: pnpm test

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
svelte/

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- `/app/models/` - Ember Data models (crate, version, user, keyword, etc.)
1818
- `/app/adapters/`, `/app/serializers/` - Ember Data adapter layer
1919
- `/app/services/` - Shared services (session, notifications, API client)
20+
- `/svelte/` - Frontend SvelteKit application (WIP)
2021
- `/crates/` - Workspace crates providing specialized functionality
2122
- `crates_io_api_types/` - API response serialization types
2223
- `crates_io_database/` - Database models and schema (Diesel ORM)

eslint.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import globals from 'globals';
1010
import path from 'node:path';
1111
import { fileURLToPath } from 'node:url';
1212

13-
const __filename = fileURLToPath(import.meta.url);
14-
const __dirname = path.dirname(__filename);
13+
const filename = fileURLToPath(import.meta.url);
14+
const dirname = path.dirname(filename);
1515
const compat = new FlatCompat({
16-
baseDirectory: __dirname,
16+
baseDirectory: dirname,
1717
recommendedConfig: js.configs.recommended,
1818
allConfig: js.configs.all,
1919
});
@@ -25,6 +25,7 @@ export default [
2525
'.git/**/*',
2626
'crates/',
2727
'playwright-report/',
28+
'svelte/',
2829
'target/',
2930
'test-results/',
3031
'tmp/',

0 commit comments

Comments
 (0)