Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SvelteKit's new API #449

Merged
merged 366 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
366 commits
Select commit Hold shift + click to select a range
b40b324
fix import order with multiple inline queries
AlecAivazis Aug 9, 2022
54d6822
make text friendlier
AlecAivazis Aug 9, 2022
aafe415
update store integration tests to use new embedded api
AlecAivazis Aug 9, 2022
f542a27
update preprocess tests
AlecAivazis Aug 9, 2022
20bb453
invert fragment argument order
AlecAivazis Aug 9, 2022
56e4890
added changesets
AlecAivazis Aug 9, 2022
554a47e
comment tweak
AlecAivazis Aug 9, 2022
7611fbe
add loadAll
AlecAivazis Aug 10, 2022
ce050a1
add test for loadAll
AlecAivazis Aug 10, 2022
05418a3
add infrastructure to inject context into query store
AlecAivazis Aug 10, 2022
f87692a
add plugin to inject houdini context everywhere
AlecAivazis Aug 10, 2022
a5c411e
tweak readme
AlecAivazis Aug 10, 2022
82fb925
remove context from integration tests and moved ctx arg to back of pa…
AlecAivazis Aug 10, 2022
534c00c
context error in pagination methods
AlecAivazis Aug 10, 2022
20bf8ec
injectContext is now a list
AlecAivazis Aug 10, 2022
9da9844
merge
AlecAivazis Aug 10, 2022
2640f67
dont lint site
AlecAivazis Aug 10, 2022
ba58afc
docs - hooks dont return props
AlecAivazis Aug 10, 2022
46c76a9
fixed highlighting colors
AlecAivazis Aug 11, 2022
d18e2a8
more doc fixes
AlecAivazis Aug 11, 2022
9848bfd
docs
AlecAivazis Aug 11, 2022
0536913
document pull-schema cmd
AlecAivazis Aug 11, 2022
04058e7
remove mentions of sapper
AlecAivazis Aug 11, 2022
ef4eef9
invert fragment order
AlecAivazis Aug 11, 2022
e45ab54
endpoint
AlecAivazis Aug 11, 2022
4f09416
remove references to houdiniContext
AlecAivazis Aug 11, 2022
210d5fe
store loading api
AlecAivazis Aug 11, 2022
477cc4d
more updates and release notes section
AlecAivazis Aug 11, 2022
208af3c
fix incorrect header in release notes guide
AlecAivazis Aug 11, 2022
bf708f4
version change release notes guide link
AlecAivazis Aug 11, 2022
43156c2
fix build errors
AlecAivazis Aug 11, 2022
1c0e95e
redo working-with-graphql guide
AlecAivazis Aug 11, 2022
ba5ce30
fix transformation css class
AlecAivazis Aug 11, 2022
b8def8b
typo
AlecAivazis Aug 11, 2022
edf9e17
order section
AlecAivazis Aug 11, 2022
643ad1e
working-with-graphql recommendation first
AlecAivazis Aug 11, 2022
3347347
more working with graphql tweaks
AlecAivazis Aug 11, 2022
a73d5c7
SSR -> server side rendering
AlecAivazis Aug 11, 2022
9845d03
so many tweaks
AlecAivazis Aug 11, 2022
71a06f0
conclusion to working with graphql
AlecAivazis Aug 11, 2022
55e9079
english
AlecAivazis Aug 11, 2022
59f2b91
add plugin docs
AlecAivazis Aug 11, 2022
494c163
clean up hook docs
AlecAivazis Aug 11, 2022
6216f84
dry up subscription config
AlecAivazis Aug 12, 2022
f7c5fda
fix syntax highlighting
AlecAivazis Aug 12, 2022
b50f57e
fix session tracking
AlecAivazis Aug 12, 2022
34f8647
supress context logs in store factory
AlecAivazis Aug 12, 2022
6bd1acc
error msg tweak
AlecAivazis Aug 12, 2022
b018c25
rename svelte-preprocess to preprocess
AlecAivazis Aug 12, 2022
14b3ebc
added integration tests
AlecAivazis Aug 12, 2022
ed1d98d
avoid duplicate tag bug in asyncWalk
AlecAivazis Aug 12, 2022
a144f71
fix watch and run bugs
AlecAivazis Aug 12, 2022
577948a
sync on postinstall
AlecAivazis Aug 12, 2022
5677411
start moving to typescript
AlecAivazis Aug 12, 2022
63e09bf
move to vitest
AlecAivazis Aug 14, 2022
140818b
:construction: UPDATE: integration prj
jycouet Aug 16, 2022
d722d44
Generate type definitions for route functions (#470)
AlecAivazis Aug 16, 2022
471c86a
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 16, 2022
6f66698
:recycle: UPDATE: sync
jycouet Aug 16, 2022
f7ea337
tentative
jycouet Aug 16, 2022
551ac9e
fix test name
AlecAivazis Aug 16, 2022
7ad61b9
plugin resolves
AlecAivazis Aug 17, 2022
f98277c
Merge branch 'directory-routes-integration' into directory-routes
AlecAivazis Aug 17, 2022
5ad0622
:construction: ADD: routDir, FIX: some paths, TODO: svelte only
jycouet Aug 17, 2022
3adcece
use artifact name in generated load prop
AlecAivazis Aug 17, 2022
89ca940
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 17, 2022
670b00f
update snapshot
AlecAivazis Aug 17, 2022
099035a
:construction: UPDATE: init with vite config for kit & svelte
jycouet Aug 17, 2022
0d8350c
:construction: FIX: init in layout.tjs file
jycouet Aug 17, 2022
ce91798
:construction: IMPROVE: svelte init with main.js
jycouet Aug 17, 2022
89f3bd2
:construction: IMPROVE: init in layout.svelte
jycouet Aug 17, 2022
2228b32
:construction: IMPROVE: rmv defaults
jycouet Aug 17, 2022
de4b198
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 17, 2022
75fac5c
manual load ssr works :tada:
AlecAivazis Aug 17, 2022
6facfff
add kit plugin back
AlecAivazis Aug 17, 2022
2babf05
fix build errors
AlecAivazis Aug 17, 2022
6d73aca
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 17, 2022
d561bdc
:sparkles: NEW: add graphql in devDep
jycouet Aug 17, 2022
d4fd48c
:sparkles: IMPROVE: init cmd with client
jycouet Aug 17, 2022
d81ab3f
fix config and client imports
AlecAivazis Aug 18, 2022
3a4a5a4
add ? to components
AlecAivazis Aug 18, 2022
bf56897
inline documents use $$props references
AlecAivazis Aug 18, 2022
97f015a
update snapshot
AlecAivazis Aug 18, 2022
35d23de
attempt to migrate to pnpm
AlecAivazis Aug 18, 2022
fe4c332
better attempt at pnpm cached install
AlecAivazis Aug 18, 2022
10fe2b5
i hate yaml
AlecAivazis Aug 18, 2022
eee0d74
add minimatch types
AlecAivazis Aug 18, 2022
c099c9f
missing deps
AlecAivazis Aug 18, 2022
62d6cae
bump node version
AlecAivazis Aug 18, 2022
d646141
import BaseNode from estree-walker
AlecAivazis Aug 18, 2022
9c526a9
more deps
AlecAivazis Aug 18, 2022
73567dd
remove estree dep
AlecAivazis Aug 18, 2022
7dc52fa
no need to generate runtime with integration linter
AlecAivazis Aug 18, 2022
ef5dfb6
more deps!
AlecAivazis Aug 18, 2022
02662fc
use pnpm --filter to run workspace command
AlecAivazis Aug 18, 2022
b73cea6
try without --filter
AlecAivazis Aug 18, 2022
e0d5c5a
maybe its the pnpm cache?
AlecAivazis Aug 18, 2022
7a04e25
gotta run install now
AlecAivazis Aug 18, 2022
2081c36
missed on
AlecAivazis Aug 18, 2022
9e6c97c
build houdini before integration linter
AlecAivazis Aug 18, 2022
ea7d97d
no need for generate before preview in integration tests
AlecAivazis Aug 18, 2022
7c2673a
tweak test flow
AlecAivazis Aug 18, 2022
5c41505
cd integration &&
AlecAivazis Aug 18, 2022
5860b36
dont generate in playwright server
AlecAivazis Aug 18, 2022
67ae5b6
does that move the error?
AlecAivazis Aug 18, 2022
bc0413b
build before sync
AlecAivazis Aug 18, 2022
86206b9
more ci tweaks
AlecAivazis Aug 18, 2022
8bee007
add indexFile generator back
AlecAivazis Aug 18, 2022
256d682
aaaand we're back
AlecAivazis Aug 18, 2022
e72456d
fix yaml
AlecAivazis Aug 18, 2022
325a36e
fix import
AlecAivazis Aug 18, 2022
dbde2ed
fix indexFile tests
AlecAivazis Aug 18, 2022
8f6874c
update test file and watch and run bug
AlecAivazis Aug 18, 2022
f60f1e5
indexFile tests need to use mock fs
AlecAivazis Aug 18, 2022
66bdae0
fix type errors in integration tests
AlecAivazis Aug 18, 2022
7a24faf
add warning about missing client file
AlecAivazis Aug 18, 2022
ba3cf5c
remove flaky test (integration tests cover it)
AlecAivazis Aug 18, 2022
5816504
formatting
AlecAivazis Aug 18, 2022
e991164
delete yarn files
AlecAivazis Aug 18, 2022
32acba9
:sparkles: IMPROVE: logs. Show the end if starting... (if not we coul…
jycouet Aug 18, 2022
80c5a5d
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 18, 2022
571a7c6
:children_crossing: REMOVE: some yarn things
jycouet Aug 18, 2022
1cf7343
query, mutation, and subscription store classes
AlecAivazis Aug 18, 2022
a245b88
first pass at type checking class-based stores
AlecAivazis Aug 19, 2022
a551675
mark type exports explicitly
AlecAivazis Aug 19, 2022
fd9b384
update snapshots
AlecAivazis Aug 19, 2022
d2f68d9
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 19, 2022
2552423
rename houdini/kit to houdini/vite
AlecAivazis Aug 19, 2022
c5db97d
linter
AlecAivazis Aug 19, 2022
b9ba42a
update mutation, fragment, and subscription stores to use classes
AlecAivazis Aug 19, 2022
f96da18
added changeset
AlecAivazis Aug 19, 2022
a132006
document stores as classes
AlecAivazis Aug 19, 2022
22e3dec
missing punctuation
AlecAivazis Aug 19, 2022
d7a3b76
fix typedefinitions for paginated queries
AlecAivazis Aug 19, 2022
49dad5b
fix bug preventing initial page info from loading
AlecAivazis Aug 19, 2022
12f8ba4
offset query pagination
AlecAivazis Aug 19, 2022
7e69951
clean up logs
AlecAivazis Aug 19, 2022
a6b97aa
disable eslint for one line
AlecAivazis Aug 19, 2022
9cd5702
:white_check_mark: FIX: endpoint mutation test
jycouet Aug 19, 2022
0d7fc72
:bug: FIX: windows build
jycouet Aug 19, 2022
a2cb9b9
:recycle: IMPROVE: file orga
jycouet Aug 19, 2022
083c948
fixed hidden page.js client import path
AlecAivazis Aug 19, 2022
f2e1a98
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 19, 2022
d4210f0
Merge branch 'dev/windows' of github.com:HoudiniGraphql/houdini into …
jycouet Aug 19, 2022
1bf64f4
:children_crossing: IMPROVE: linting
jycouet Aug 20, 2022
bcf63b6
inline document functions return stores directly
AlecAivazis Aug 20, 2022
66e4451
added changeset
AlecAivazis Aug 20, 2022
d2e2f56
initial pageinfo ssr's
AlecAivazis Aug 20, 2022
aa22de8
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 20, 2022
9ed275a
paginated fragments typecheck
AlecAivazis Aug 20, 2022
a9e0e5a
paginated fragments tests pass
AlecAivazis Aug 20, 2022
a22020d
more imports
AlecAivazis Aug 20, 2022
06865eb
more integration tests passing (sessions, endpoints, etc)
AlecAivazis Aug 20, 2022
ccf63d9
component queries
AlecAivazis Aug 20, 2022
afe3ac3
remove import.meta.env for cjs compat
AlecAivazis Aug 20, 2022
7d08682
more integration test cleanup
AlecAivazis Aug 20, 2022
63ee875
watch-and-run errors and only generate runtime if version changed
AlecAivazis Aug 20, 2022
2e71cef
add tests for generating route types
AlecAivazis Aug 20, 2022
17c98fa
layout queries
AlecAivazis Aug 20, 2022
4078c4b
set process.env.TEST in vite.setup
AlecAivazis Aug 20, 2022
af2956b
better check for updated versions
AlecAivazis Aug 20, 2022
6e52e61
fix prettier config
AlecAivazis Aug 20, 2022
6458639
:art: IMPROVE: logs
jycouet Aug 20, 2022
181cef7
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 20, 2022
16cb82f
a
jycouet Aug 20, 2022
065e15b
:art: IMPROVE: one liner in plugin
jycouet Aug 20, 2022
ff0d66c
consolidate store vs inline docs
AlecAivazis Aug 20, 2022
aee70a7
update intro
AlecAivazis Aug 20, 2022
b8ac447
document config.client
AlecAivazis Aug 20, 2022
4c463c4
update snapshots and check for unexported data variable
AlecAivazis Aug 21, 2022
f2df446
generate valid page data type
AlecAivazis Aug 21, 2022
d392266
PageData includes return values from hook functions
AlecAivazis Aug 21, 2022
5d31250
update contributing guide
AlecAivazis Aug 21, 2022
a4b623a
clean up todos
AlecAivazis Aug 21, 2022
1e317c8
update snapshot
AlecAivazis Aug 21, 2022
ac6de64
linter and check
AlecAivazis Aug 21, 2022
92c1fee
update snapshot
AlecAivazis Aug 21, 2022
d74e756
bump
AlecAivazis Aug 21, 2022
a185fcd
enable replay
AlecAivazis Aug 21, 2022
9d84e83
downgrade node version
AlecAivazis Aug 21, 2022
2359f91
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 21, 2022
26d4119
independent replay config file
AlecAivazis Aug 21, 2022
2b5ed1b
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 21, 2022
2730b76
add retries
AlecAivazis Aug 21, 2022
53acd9c
remove workers config
AlecAivazis Aug 21, 2022
8d32da7
fix a few tests
AlecAivazis Aug 21, 2022
0ee1613
more local testing
AlecAivazis Aug 21, 2022
d336d12
more invalid tests
AlecAivazis Aug 21, 2022
095d4d5
more test fixes
AlecAivazis Aug 21, 2022
e0f046e
initial page size for paginated fragments
AlecAivazis Aug 21, 2022
b500e01
add retries to local test config
AlecAivazis Aug 21, 2022
c68efd3
start migration guide
AlecAivazis Aug 22, 2022
cdeadce
add migration guide to left bar
AlecAivazis Aug 22, 2022
77142aa
bring highlight imports local
AlecAivazis Aug 22, 2022
a83d976
conclusion for migration guide
AlecAivazis Aug 22, 2022
60bc248
small tweaks
AlecAivazis Aug 22, 2022
4fd9167
:bug: FIX: inline mutation
jycouet Aug 22, 2022
72786a5
:construction: UPDATE: rmv retries for fast tests (will be back later)
jycouet Aug 22, 2022
35c3114
:zap: IMPROVE: page goto default
jycouet Aug 22, 2022
63228f5
:zap: IMPROVE: timing margin
jycouet Aug 22, 2022
886d94d
:zap: UPDATE: goto with extra timing
jycouet Aug 22, 2022
bf4c97a
:bug: FIX: file name
jycouet Aug 22, 2022
aa283d1
:children_crossing: FIX: goto and expect (timing)
jycouet Aug 22, 2022
4a256ad
:ok_hand: FIX: linting
jycouet Aug 22, 2022
78a5de0
:construction: TMP: logs in gh
jycouet Aug 22, 2022
576559c
enter prerelease mode
AlecAivazis Aug 22, 2022
6a937b0
more doc updates
AlecAivazis Aug 22, 2022
a27d20e
:white_check_mark: IMPROVE: testing
jycouet Aug 22, 2022
059ddbe
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 22, 2022
95608dd
:construction: UPDATE: for CI
jycouet Aug 22, 2022
7859d8f
:construction: REMOVE: waitForRequest
jycouet Aug 22, 2022
ab49db2
:recycle: UPDATE: namings
jycouet Aug 22, 2022
31d4d2c
:clown_face: UPDATE: OMG?
jycouet Aug 22, 2022
6c74471
:ok_hand: FIX: wait after click to navigate well
jycouet Aug 22, 2022
3a20e3c
:pencil2: UPDATE: comment
jycouet Aug 22, 2022
9c4aa43
:recycle: REMOVE: scripts and 1 playwright config with options (test …
jycouet Aug 23, 2022
e231946
:recycle: UPDATE: playwright settings
jycouet Aug 23, 2022
4d9a8c8
try caching pnpm and playwright
AlecAivazis Aug 23, 2022
04d422e
bump playwright cache version
AlecAivazis Aug 23, 2022
d82dfae
cache rest of workflows
AlecAivazis Aug 23, 2022
b1261e4
fix houdini client import (to break integration tests)
AlecAivazis Aug 23, 2022
f17e55b
graphql tag to return any
AlecAivazis Aug 23, 2022
e0afa2e
pull schema if it doesn't exist on startup
AlecAivazis Aug 24, 2022
35bed99
fix bug seeing changes in schema file
AlecAivazis Aug 24, 2022
3fddd02
convert all errors to HoudiniError
AlecAivazis Aug 24, 2022
52f2c97
Merge branch 'directory-routes' of https://github.com/HoudiniGraphql/…
AlecAivazis Aug 24, 2022
dce9397
more fixes from fehnomenal
AlecAivazis Aug 24, 2022
c63327c
fix nullish mutation response
AlecAivazis Aug 24, 2022
1f7bc7c
remove context and inline document functions
AlecAivazis Aug 24, 2022
1cdc2ae
added changeset
AlecAivazis Aug 24, 2022
d8bef60
remove all inline document functions except fragment
AlecAivazis Aug 24, 2022
ef2c1a5
document lack of inline wrappers
AlecAivazis Aug 24, 2022
d0687df
tests pass
AlecAivazis Aug 24, 2022
389e547
:bug: FIX: types (thx to @fehnomenal)
jycouet Aug 24, 2022
6680673
:children_crossing: FIX: typings
jycouet Aug 24, 2022
53c3856
update snapshots
AlecAivazis Aug 24, 2022
5afe9b3
remove mention of session
AlecAivazis Aug 24, 2022
22358fb
Generate input types (and more fixes) (#476)
fehnomenal Aug 24, 2022
5d41db0
:sparkles: NEW: custom globalStoreName (#460)
jycouet Aug 24, 2022
1994765
Merge branch 'directory-routes' of github.com:HoudiniGraphql/houdini …
jycouet Aug 24, 2022
a526296
:pencil2: UPDATE: doc & changeset
jycouet Aug 24, 2022
8ea5f45
:white_check_mark: UPDATE: tests with globalStorePrefix
jycouet Aug 24, 2022
4fe2382
:construction: IMPROVE: adding forbiddenNames
jycouet Aug 24, 2022
8a4cd8c
:white_check_mark: FIX: tests using forbidden names
jycouet Aug 24, 2022
e958d8d
:clown_face: UPDATE: snap (sorry, I pushed it wrong before)
jycouet Aug 24, 2022
ad84b34
different link to release notes
AlecAivazis Aug 24, 2022
b43b10a
add mdsvex as regular dep
AlecAivazis Aug 24, 2022
1aa9e88
move dev deps to deps
AlecAivazis Aug 24, 2022
743f022
actual link
AlecAivazis Aug 25, 2022
5575eae
add svelte as dep
AlecAivazis Aug 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/breezy-birds-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': patch
---

You can now define the prefix of your global stores with globalStorePrefix param in the config.
5 changes: 5 additions & 0 deletions .changeset/cool-brooms-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

remove inline document functions query, paginatedQuery, subscription, and mutation
5 changes: 5 additions & 0 deletions .changeset/fifty-doors-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

renamed `generate --pull-header` to `generate --header` and `generate --persist-output` to `generate --output`
5 changes: 5 additions & 0 deletions .changeset/good-trees-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

added support for page queries
5 changes: 5 additions & 0 deletions .changeset/green-melons-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

inverted argument order for inline fragments
5 changes: 5 additions & 0 deletions .changeset/mean-colts-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

inline document functions return store references directly
5 changes: 5 additions & 0 deletions .changeset/neat-taxis-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

Stores are now classes and need to be instantiated with `new MyQueryStore()`
5 changes: 5 additions & 0 deletions .changeset/nice-items-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

query stores must now be passed to routes as props instead of globally imported
5 changes: 5 additions & 0 deletions .changeset/ninety-balloons-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': patch
---

graphql tags return store references
10 changes: 10 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"houdini": "0.15.8",
"integration": "0.0.1",
"site": "0.0.1"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/silent-pandas-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

SvelteKit projects must now use houdini/kit as a vite plugin
5 changes: 5 additions & 0 deletions .changeset/slow-planes-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': patch
---

add generated typedefs for route functions
5 changes: 5 additions & 0 deletions .changeset/swift-ducks-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

`config.sourceGlob` has been renamed to `config.include` and is now optional. Also added `config.exclude` to filter out files matched by `config.include`
5 changes: 5 additions & 0 deletions .changeset/ten-pets-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': minor
---

renamed `houdini/preprocess` to `houdini/svelte-preprocess`
36 changes: 36 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
root: true,
extends: '@theguild',
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/no-var-requires': 'off',
'unicorn/no-lonely-if': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-instanceof-array': 'off',
'unicorn/prefer-includes': 'off',
'import/no-default-export': 'off',
'sonarjs/no-gratuitous-expressions': 'off',
'no-lonely-if': 'off',
'no-console': 'off',
'prefer-arrow-callback': 'off',
'prefer-const': 'off',
'no-else-return': 'off',
'no-empty': 'off',
'no-var': 'off',
'no-undef': 'off',
'object-shorthand': 'off',
// 'no-console': ['error', { allow: ['info', 'warn', 'error', 'time', 'timeEnd'] }],
},
ignorePatterns: ['integration', 'example', 'site'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
},
}
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16.14.2
node-version: 18.7.0

- name: Set Git Identity
run: |
Expand All @@ -47,16 +47,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7

- name: Install Dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
run: pnpm install

- name: Create Release Pull Request or Deploy
uses: changesets/action@v1
with:
version: yarn version
publish: yarn release
version: pnpm run version
publish: pnpm run release
title: '📦 Version Update'
commit: '📦 v{VERSION}'
env:
Expand Down
151 changes: 104 additions & 47 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,25 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Setup Node
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.14.2
cache: 'yarn'
node-version: 16.17.0

- name: Install Dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7

- name: Install dependencies
run: pnpm install

- name: Check prettier
run: yarn format:check
run: pnpm run format:check

- name: Check lint
run: pnpm run lint

tests:
name: Tests
Expand All @@ -47,22 +53,38 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Setup Node
- name: Install Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16.14.2
node-version: 16.17.0

- name: Install Dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Build packages
run: yarn build
run: pnpm run build

- name: Tests
run: yarn tests
run: pnpm run tests

integration:
name: Integration Tests
Expand All @@ -74,43 +96,62 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Setup Node
- name: Install Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16.14.2
node-version: 16.17.0

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Cache playwright binaries
uses: actions/cache@v2
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: cache-playwright-linux-1.21.0

- name: Install dependencies
run: yarn install --immutable
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
key: cache-playwright-linux-1.25.0

- name: Build packages
run: yarn build
run: pnpm run build

- name: Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: SvelteKit Sync
run: cd integration && npx svelte-kit sync

- name: Integration Tests
run: yarn workspace integration tests
run: pnpm --filter integration tests
env:
RECORD_REPLAY_TEST_RUN_ID: ${{ env.GITHUB_SHA }}

# - name: Upload videos
# uses: replayio/action-upload@v0.4.1
# if: ${{ always() }}
# with:
# api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}
# filter: ${{ 'function($v) { $v.metadata.test.result = "failed" and $v.status = "onDisk" }' }}
- name: Upload videos
uses: replayio/action-upload@v0.4.1
if: ${{ always() }}
with:
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" and $v.status = "onDisk" }' }}

integration_linter:
name: Integration Linter
Expand All @@ -122,29 +163,45 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Setup Node
- name: Install Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16.14.2
node-version: 16.17.0

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
run: pnpm install

- name: Build packages
run: yarn build
- name: Build Package
run: pnpm run build

- name: Generate runtime
run: yarn workspace integration generate
- name: SvelteKit Sync
run: cd integration && npx svelte-kit sync

- name: Build kit assets
run: yarn workspace integration build
run: pnpm --filter integration run build

# needs to run after build & houdini generate
- name: Integration lint
run: yarn workspace integration lint
run: pnpm --filter integration run lint

- name: Integration check
run: yarn workspace integration check
run: pnpm --filter integration run check
Loading