Skip to content

Commit 1f96ae7

Browse files
committed
Initialize frontend SvelteKit app with Tailwind
1 parent a8baed3 commit 1f96ae7

16 files changed

+6950
-0
lines changed

.eslintrc.cjs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"prettier",
8+
],
9+
plugins: ["svelte3", "@typescript-eslint"],
10+
ignorePatterns: ["*.cjs"],
11+
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
12+
settings: {
13+
"svelte3/typescript": () => require("typescript"),
14+
},
15+
parserOptions: {
16+
sourceType: "module",
17+
ecmaVersion: 2020,
18+
},
19+
env: {
20+
browser: true,
21+
es2017: true,
22+
node: true,
23+
},
24+
};

.github/workflows/ci.yml

+19
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,22 @@ jobs:
3030
- run: cargo clippy --all-targets -- -D warnings
3131

3232
- run: cargo test
33+
34+
web:
35+
name: Web lint, check, and build
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- uses: actions/setup-node@v2
42+
with:
43+
node-version: "16"
44+
45+
- run: npm ci
46+
47+
- run: npm run lint
48+
49+
- run: npm run check
50+
51+
- run: npm run build

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
/target
22
.vscode/
3+
4+
.DS_Store
5+
node_modules
6+
/build
7+
/.svelte-kit
8+
/package
9+
.env
10+
.env.*
11+
!.env.example

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"proseWrap": "always",
3+
"trailingComma": "all"
4+
}

0 commit comments

Comments
 (0)