0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-28 16:12:17 +01:00
Commit Graph

29 Commits

Author SHA1 Message Date
Rich Harris
fd78385447
chore: restructure docs for new site (#13699) 2024-10-21 08:57:07 -07:00
Simon H
c4b721584a
chore: repo cleanup (#13029)
* chore: cleanup repo configs

- remove prettier from packages, everything runs through the root now (also better aligns with how you work with it in VS Code: no more config duplication needed)
- remove eslint from packages, run it once through the root now (revealed some inconsistencies and missing stuff, config tightened up as a result) (bump eslint while we're at it)

* update vite and related packages (since rollup includes an addition to one estree node we need to adjust code a bit)

* bump more packages

* bump jsdom

* lint
2024-08-26 11:30:45 -04:00
Dominic Gannaway
ccb3c90cd5
breaking: rename $effect.active to $effect.tracking (#12022)
* breaking: rename $effect.active to $effect.tracking

* update type

* add more helpful error

* tweak changeset

* fix prettier config

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-06-13 23:00:38 -04:00
Simon H
de3bb78da4
chore: bring back prettierignore root config (#12020)
It was wrongfully cut down in #11834 - sadly we need to duplicate the config because of a prettier VS Code bug which does not pick up the nearest prettier config. This change results in the proper files getting ignored when touching them with the editor
2024-06-13 15:01:29 +02:00
Ben McCann
9a86e3b5e6
chore: linting and formatting on a per-package basis (#11834) 2024-05-30 14:37:17 +01:00
Rich Harris
8e17428316
chore: tidy up messages (#11327)
* start reorganising messages

* tidy up

* more

* more

* more

* alphabetise

* consolidate

* more

* more

* more

* more

* more

* more

* alphabetise

* more

* this is no longer needed

* no longer necessary

* more

* more

* fix

* regenerate messages

* more

* more

* tighten up rune validation

* more

* fix

* more

* tweak a11y messages

* add server errors

* overhaul runtime errors

* regenerate messages

* unused

* lint

* more

* more

* Update packages/svelte/messages/compile-errors/script.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* Update packages/svelte/messages/client-warnings/warnings.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* fix

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2024-04-25 08:54:05 -04:00
Rich Harris
94b4268ce3
chore: markdown runtime errors/warnings (#11304)
* chore: markdown runtime warnings

* on second thoughts

* start adding errors too

* lint

* centralise
2024-04-24 09:30:55 -04:00
Rich Harris
7b55bd4d89
chore: markdown warnings (#11302)
* rename warnings.js to warnings-tmp.js

* start porting warnings

* centralise stuff

* finish porting warnings

* tidy up

* get messages into JSDoc annotations

* prettier

* lint
2024-04-23 21:32:28 -04:00
Rich Harris
73490bbb8e
chore: markdown errors (#11294)
* rename errors.js to errors-tmp.js

* start porting errors

* generate markdown files for more errors

* convert parse errors

* convert css errors

* convert special_element errors

* convert runes errors

* convert element errors

* more

* more

* more

* more

* more

* more

* fix some tests

* fix some tests

* more tests

* remove unused error

* prettierignore

* weird

* ugh

* lint
2024-04-23 10:39:37 -04:00
Jeremiasz Major
0cf2e98322
chore: upgrade eslint to v9 (#11108) 2024-04-10 16:02:03 -07:00
Rich Harris
4f3fae7c6d
chore: compiler subpackage (#10988)
* move compiler.cjs to compiler/index.js

* changeset

* prettier

* ugh
2024-04-01 18:03:14 -04:00
Rich Harris
7bd853b1a8
fix: hydrate HTML with surrounding whitespace (#10996)
* fix: hydrate HTML with surrounding whitespace

* add test

* fix a few more short comments

* tidy up

* avoid magic strings

* avoid magic strings

* fix

* oops
2024-03-30 11:34:06 -04:00
Yuichiro Yamashita
da1aa7c4a8
feat: support type annotations in {@const ...} tag (#9609)
* support type for const tag

* use expression directly

* lint

* format

* format

* revert

* legacy mode

* format

* revert and update .prettierignore
2023-11-27 08:39:29 -05:00
Simon Holthausen
341810b82c chore: don't format changeset folder 2023-11-10 16:51:30 +01:00
Simon H
c6c934afb2
chore: cleanup (#9381)
* lets see if this works

* fix versions

* sigh

* debugging ci is sooo fun

* oh wow

* fix stuff, changelog, add back readme

* appease prettier

* format stuff
2023-11-10 16:46:40 +01:00
Simon Holthausen
fe8a9ce31d breaking: init Svelte 5
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2023-11-10 15:48:23 +01:00
Puru Vijay
bd51e6f3ea Merge remote-tracking branch 'origin/version-4' into sites 2023-05-28 01:19:27 +05:30
Puru Vijay
cf0d815b73 fix: lint errors 2023-05-25 18:37:43 +05:30
Puru Vijay
ad949c5490 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-25 16:30:20 +05:30
Simon H
a40af4dd11
chore: unbundled esm (#8613)
- remove esm bundle step
- introduce generated version.js because we can no longer use replace because we don't bundle esm
- remove register hook, cjs compiler output and cjs runtime
- keep umd compiler version for prettier/eslint/browser but without sourcemaps
- move devdependencies to dependencies where necessary
- various cleanup

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2023-05-24 15:31:09 +02:00
Puru Vijay
098a5539f3 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-23 17:06:44 +05:30
gtmnayan
3df9d8466f
chore: speed up test execution (#8598)
- shard runtime tests for better use of Vite's test parallelization
- merge custom element and other browser tests to run in one test suite and use esbuild in it
- on some setups only generate code output when test fails
2023-05-22 15:46:27 +02:00
S. Elliott Johnson
fd9d61a7b7
chore: TS to JSDoc Conversion (#8569)
---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-05-19 15:59:42 +02:00
Puru Vijay
cf5561cd36 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-19 10:08:42 +05:30
gtmnayan
783bd9899e
chore: swap mocha with vitest (#8584)
Also swap out the require hook hacks with a less-hacky-but-still-somewhat-hacky loader for the Svelte files

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-05-17 21:00:20 +02:00
Puru Vijay
f363af7cca
site -> documentation (#8585) 2023-05-13 08:06:21 -07:00
Puru Vijay
fbd3ccdf80 Merge remote-tracking branch 'origin/version-4' into sites 2023-05-13 11:39:13 +05:30
Yuichiro Yamashita
b6a400a549
chore: add prettier (#8543) 2023-05-08 23:32:52 +02:00
Puru Vijay
db2d07f236
feat(site-2): Update links, move blog out of SK folder to content (#8289)
* Update links

* Move blog to site/content

* Update site/content/docs/02-component-format.md

* Fix docs links

* Add global prettierrc

* Auto format

* Fix git merge artifact

* Fix errors

* Update html to svelte(remaining ones)

* Add 2 blog posts

* Modify prettierrc

* Minor design fix

* Switch package lock to spaces, prettier ignore

* Regenerate package lock

* prettier format

* Update deps

* Hack the build into working

* add missing blog post

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Rich Harris <git@rich-harris.dev>
2023-04-02 11:24:33 -04:00