Skip to content

Commit 089fdf3

Browse files
committed
Create initial repository layout
0 parents  commit 089fdf3

26 files changed

+2890
-0
lines changed

.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.eslintrc.cjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:svelte/recommended',
7+
'prettier'
8+
],
9+
parser: '@typescript-eslint/parser',
10+
plugins: ['@typescript-eslint'],
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020,
14+
extraFileExtensions: ['.svelte']
15+
},
16+
env: {
17+
browser: true,
18+
es2017: true,
19+
node: true
20+
},
21+
overrides: [
22+
{
23+
files: ['*.svelte'],
24+
parser: 'svelte-eslint-parser',
25+
parserOptions: {
26+
parser: '@typescript-eslint/parser'
27+
}
28+
}
29+
]
30+
};

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: 'main'
6+
7+
jobs:
8+
build_site:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v2
16+
with:
17+
version: 8
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: build
29+
env:
30+
BASE_PATH: '/huggingface-llm-filtering'
31+
run: |
32+
pnpm run build
33+
touch build/.nojekyll
34+
35+
- name: Upload Artifacts
36+
uses: actions/upload-pages-artifact@v1
37+
with:
38+
# this should match the `pages` option in your adapter-static options
39+
path: 'build/'
40+
41+
deploy:
42+
needs: build_site
43+
runs-on: ubuntu-latest
44+
45+
permissions:
46+
pages: write
47+
id-token: write
48+
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
53+
steps:
54+
- name: Deploy
55+
id: deployment
56+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*
11+
12+
.idea

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
engine-strict=true
2+
resolution-mode=highest

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
9+
}

.vscode/settings.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"prettier.documentSelectors": [
3+
"**/*.svelte"
4+
],
5+
"tailwindCSS.classAttributes": [
6+
"class",
7+
"accent",
8+
"active",
9+
"aspectRatio",
10+
"background",
11+
"bgBackdrop",
12+
"bgDark",
13+
"bgDrawer",
14+
"bgLight",
15+
"blur",
16+
"border",
17+
"button",
18+
"buttonClasses",
19+
"buttonTextFirst",
20+
"buttonTextLast",
21+
"buttonTextNext",
22+
"buttonTextPrevious",
23+
"caretClosed",
24+
"caretOpen",
25+
"color",
26+
"controlSeparator",
27+
"controlVariant",
28+
"cursor",
29+
"display",
30+
"element",
31+
"fill",
32+
"fillDark",
33+
"fillLight",
34+
"flex",
35+
"gap",
36+
"gridColumns",
37+
"height",
38+
"hover",
39+
"inactive",
40+
"indent",
41+
"justify",
42+
"meter",
43+
"padding",
44+
"regionAnchor",
45+
"regionBackdrop",
46+
"regionBody",
47+
"regionCaption",
48+
"regionCaret",
49+
"regionCell",
50+
"regionChildren",
51+
"regionCone",
52+
"regionContent",
53+
"regionControl",
54+
"regionDefault",
55+
"regionDrawer",
56+
"regionFoot",
57+
"regionFootCell",
58+
"regionHead",
59+
"regionHeadCell",
60+
"regionHeader",
61+
"regionIcon",
62+
"regionInterface",
63+
"regionInterfaceText",
64+
"regionLabel",
65+
"regionLead",
66+
"regionLegend",
67+
"regionList",
68+
"regionListItem",
69+
"regionNavigation",
70+
"regionPage",
71+
"regionPanel",
72+
"regionRowHeadline",
73+
"regionRowMain",
74+
"regionSummary",
75+
"regionSymbol",
76+
"regionTab",
77+
"regionTrail",
78+
"ring",
79+
"rounded",
80+
"select",
81+
"shadow",
82+
"slotDefault",
83+
"slotFooter",
84+
"slotHeader",
85+
"slotLead",
86+
"slotMessage",
87+
"slotMeta",
88+
"slotPageContent",
89+
"slotPageFooter",
90+
"slotPageHeader",
91+
"slotSidebarLeft",
92+
"slotSidebarRight",
93+
"slotTrail",
94+
"spacing",
95+
"text",
96+
"track",
97+
"width",
98+
"zIndex"
99+
]
100+
}

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# create-svelte
2+
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4+
5+
## Creating a project
6+
7+
If you're seeing this, you've probably already done this step. Congrats!
8+
9+
```bash
10+
# create a new project in the current directory
11+
npm create svelte@latest
12+
13+
# create a new project in my-app
14+
npm create svelte@latest my-app
15+
```
16+
17+
## Developing
18+
19+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20+
21+
```bash
22+
npm run dev
23+
24+
# or start the server and open the app in a new browser tab
25+
npm run dev -- --open
26+
```
27+
28+
## Building
29+
30+
To create a production version of your app:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
You can preview the production build with `npm run preview`.
37+
38+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "huggingface-llm-filtering",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"dev": "vite dev",
7+
"build": "vite build",
8+
"preview": "vite preview",
9+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
10+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
11+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
12+
"format": "prettier --plugin-search-dir . --write ."
13+
},
14+
"devDependencies": {
15+
"@skeletonlabs/skeleton": "2.0.0",
16+
"@skeletonlabs/tw-plugin": "0.1.0",
17+
"@sveltejs/adapter-static": "^2.0.3",
18+
"@sveltejs/kit": "^1.20.4",
19+
"@tailwindcss/typography": "0.5.10",
20+
"@types/node": "20.5.9",
21+
"@typescript-eslint/eslint-plugin": "^5.45.0",
22+
"@typescript-eslint/parser": "^5.45.0",
23+
"autoprefixer": "10.4.15",
24+
"eslint": "^8.28.0",
25+
"eslint-config-prettier": "^8.5.0",
26+
"eslint-plugin-svelte": "^2.30.0",
27+
"postcss": "8.4.29",
28+
"prettier": "^2.8.0",
29+
"prettier-plugin-svelte": "^2.10.1",
30+
"svelte": "^4.0.5",
31+
"svelte-check": "^3.4.3",
32+
"tailwindcss": "3.3.3",
33+
"tslib": "^2.4.1",
34+
"typescript": "^5.0.0",
35+
"vite": "^4.4.2",
36+
"vite-plugin-tailwind-purgecss": "0.1.3"
37+
},
38+
"type": "module",
39+
"dependencies": {
40+
"@floating-ui/dom": "1.5.1",
41+
"zod": "^3.22.2"
42+
}
43+
}

0 commit comments

Comments
 (0)