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

chore: Clean-up repo config #520

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/update-stars/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import core from '@actions/core';
import { writeFileSync } from 'node:fs';
import components from '../src/routes/components/components.json' assert { type: 'json' };
import templates from '../src/routes/templates/templates.json' assert { type: 'json' };
import tools from '../src/routes/tools/tools.json' assert { type: 'json' };
import components from '../../../src/routes/components/components.json' assert { type: 'json' };
import templates from '../../../src/routes/templates/templates.json' assert { type: 'json' };
import tools from '../../../src/routes/tools/tools.json' assert { type: 'json' };
import { fetch } from 'undici';

const ghGraphQlUrl = 'https://api.github.com/graphql';
Expand Down
42 changes: 0 additions & 42 deletions .gitpod.yml

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"sync": "svelte-kit sync",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"test": "vitest",
"lint": "prettier --check ./**/*.{js,ts,css,md,svelte,html,json} && eslint . && node scripts/validateData.js",
"format": "prettier --write ./**/*.{js,ts,css,md,svelte,html,json}",
"lint": "prettier --check ./**/*.{js,cjs,ts,css,md,svx,svelte,html,json} && eslint . && node scripts/validateData.js",
"format": "prettier --write ./**/*.{js,cjs,ts,css,md,svx,svelte,html,json}",
"prepare": "husky install"
},
"devDependencies": {
Expand All @@ -23,6 +23,7 @@
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/itemsjs": "^2.1.6",
"@types/eslint": "^8.44.9",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
Expand Down Expand Up @@ -51,6 +52,6 @@
"zod": "^3.22.4"
},
"lint-staged": {
"*.{js,ts,css,md,svx,svelte,html,json}": "prettier --write"
"*.{js,cjs,ts,css,md,svx,svelte,html,json}": "prettier --write"
}
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The following works as expected and update the dom:
</script>

<button on:click={updateNum}>Update</button>

<p>{num}</p>
```

Expand Down Expand Up @@ -91,6 +92,7 @@ This is the sort of problem you may run into when dealing with objects. Since ob
</script>

<button on:click={updateNum}>Update</button>

<p>{obj.num}</p>
```

Expand All @@ -112,6 +114,7 @@ Another situation that can sometimes cause unexpected results is when you reassi
</script>

<button on:click={() => updateNum(obj)}>Update</button>

<p>{num}</p>
```

Expand Down
1 change: 1 addition & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const config = {
config.include = [
...config.include,
'../scripts/**/*.js',
'../.eslintrc.cjs',
'../prettier.config.js',
'../svelte.config.js'
];
Expand Down