Commit Graph

15 Commits

Author SHA1 Message Date
Lachlan Collins
1b3b8d78c7 feat: Fetch keywords from NPM to improve search (#567) 2024-01-02 07:41:45 +11:00
Lachlan Collins
7c382c8a8f Fix typescript errors and update packages (#561)
* Add @ts-expect errro

* Fix store type

* Add strictNullChecks

* Remove confusing $layout alias

* Update packages

* Use save-exact

* Update vitest
2023-12-30 21:52:04 +11:00
Lachlan Collins
615adbaea6 fix: Run updateNpm.js and updatePublint.js in chunked pages (#536)
* fix: Run `updateNpm` and `updatePublint` in chunked pages

* Object shorthand
2023-12-21 10:42:31 +11:00
Lachlan Collins
9d6c7c55dc fix: Script types and a11y warnings (#535)
* Fix Tag.svelte a11y warnings

* Fix types in scripts

* Remove unused CardList.svelte

* Revert "Remove unused CardList.svelte"

This reverts commit acd01fd4fdb57487521de9721e175e9d8d4c72cf.

* Clearer import

* Format
2023-12-21 10:32:57 +11:00
Lachlan Collins
f0442d55e8 feat: Submitted data restructure (#533)
* Merge tools into components and resources

* Rename components to packages

* Format

* Redirect with code 302

* Fix text on submitting page

* Validate misc.json, format

* Permanent redirects

* Implement feedback for resources

* Fix lint

* Improve updateNpm.js types

* Fix repo links
2023-12-21 08:58:42 +11:00
Lachlan Collins
ea37aa2395 feat: Separate github and gitlab scripts (#526)
* feat: Add updateGitlab.js

* feat: Add updateGithub.js

* Remove stars action

* Remove @actions/core

* Add injectors

* Fix matching repo URLs

* Format

* Simplify injectData

* Add shared chunk.js file
2023-12-18 17:44:20 +11:00
Lachlan Collins
94803b4cae fix: Simplify scripts/updatePublint.js (#527) 2023-12-18 14:35:53 +11:00
Lachlan Collins
156f65436c feat: Add script to check if packages pass publint (#523)
* Add zod schemas for CI validation

* Require npm field for components.json

* Remove svelte-layout-resizable

* Stricter Zod validation

* Stricter repository field validation

* Implement requested changes

* Add back accidentally removed field

* Move SvelteStore to templates.json

* Update category and tags

* Add script to get npm data

* Add script to get publint data

* Re-run updateNpm.js

* Re-run updatePublint.js

* Implement initial feedback

* Use npm.json data

* Update npm.js

* Switch async/await to then/catch

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Fix prettier

* Run script

* Re-run updateNpm

* Also read tools.json

* Add @types/node

* Restructure npm.json output

* Fix updatePublint.js

* Display last update on components page

* Add to weekly workflow

* Clarify updating npm data

* Update src/lib/utils/injectNpmData.ts

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Smaller date font, add version

* Improve error text

* Fix property title

* Move json to lib/data directory

* Fix npm.json path

* Also check tools.json

* Add to automated PR

* Add injectPublintData function

* Update publint

---------

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>
2023-12-18 13:26:25 +11:00
Lachlan Collins
c597e70e11 chore: Edit automated PR config (#519)
* Edit PR title/body, add $lib/data folder

* Remove unused scripts/updateStars.js

* Load json with import assertion
2023-12-18 10:59:20 +11:00
Lachlan Collins
77451078d7 feat: Add script to get npm package data (#499)
* Add zod schemas for CI validation

* Require npm field for components.json

* Remove svelte-layout-resizable

* Stricter Zod validation

* Stricter repository field validation

* Implement requested changes

* Add back accidentally removed field

* Move SvelteStore to templates.json

* Update category and tags

* Add script to get npm data

* Re-run updateNpm.js

* Implement initial feedback

* Update npm.js

* Switch async/await to then/catch

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Fix prettier

* Run script

* Re-run updateNpm

* Also read tools.json

* Add @types/node

* Restructure npm.json output

* Display last update on components page

* Add to weekly workflow

* Clarify updating npm data

* Update src/lib/utils/injectNpmData.ts

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>

* Smaller date font, add version

* Improve error text

* Fix property title

---------

Co-authored-by: MacFJA <MacFJA@users.noreply.github.com>
2023-12-18 10:37:40 +11:00
Lachlan Collins
71d1b2e4d6 feat: Add zod schemas for CI validation (#479)
* Add zod schemas for CI validation

* Stricter Zod validation
2023-11-12 12:57:01 +01:00
Ambar Mutha
f32ffb0377 Merge branch 'staging' of https://github.com/svelte-society/sveltesociety.dev into gitlab-stars 2021-09-18 22:00:17 +05:30
ABarnob
2f68cd89da Add component snippet generator (#108) 2021-09-16 08:47:35 -07:00
Ambar Mutha
308158ec22 Fetch stars from Gitlab 2021-09-07 16:17:36 +05:30
Ambar Mutha
45a4a00871 Add script for updating stars 2021-08-30 23:17:22 +05:30