-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,053 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
test-results | ||
node_modules | ||
dist | ||
|
||
# Output | ||
.output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
] | ||
"useTabs": false, | ||
"singleQuote": false, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], | ||
"overrides": [ | ||
{ | ||
"files": "*.svelte", | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,41 @@ | ||
import prettier from 'eslint-config-prettier'; | ||
import js from '@eslint/js'; | ||
import { includeIgnoreFile } from '@eslint/compat'; | ||
import svelte from 'eslint-plugin-svelte'; | ||
import globals from 'globals'; | ||
import { fileURLToPath } from 'node:url'; | ||
import ts from 'typescript-eslint'; | ||
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); | ||
import prettier from "eslint-config-prettier"; | ||
import js from "@eslint/js"; | ||
import { includeIgnoreFile } from "@eslint/compat"; | ||
import svelte from "eslint-plugin-svelte"; | ||
import globals from "globals"; | ||
import { fileURLToPath } from "node:url"; | ||
import ts from "typescript-eslint"; | ||
const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url)); | ||
|
||
export default ts.config( | ||
includeIgnoreFile(gitignorePath), | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
...svelte.configs['flat/recommended'], | ||
prettier, | ||
...svelte.configs['flat/prettier'], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node | ||
} | ||
} | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
includeIgnoreFile(gitignorePath), | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
...svelte.configs["flat/recommended"], | ||
prettier, | ||
...svelte.configs["flat/prettier"], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node | ||
} | ||
} | ||
}, | ||
{ | ||
files: ["**/*.svelte"], | ||
|
||
languageOptions: { | ||
parserOptions: { | ||
parser: ts.parser | ||
} | ||
} | ||
} | ||
languageOptions: { | ||
parserOptions: { | ||
parser: ts.parser | ||
} | ||
} | ||
}, | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"@typescript-eslint/no-unused-vars": "warn", | ||
"@typescript-eslint/no-unused-expressions": "off" | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,70 @@ | ||
{ | ||
"name": "wagmi-svelte5", | ||
"private": true, | ||
"version": "0.1.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check . && eslint .", | ||
"test:unit": "vitest", | ||
"test": "npm run test:unit -- --run && npm run test:e2e", | ||
"test:e2e": "playwright test" | ||
}, | ||
"devDependencies": { | ||
"@eslint/compat": "^1.2.4", | ||
"@playwright/test": "^1.49.1", | ||
"@sveltejs/adapter-auto": "^3.3.1", | ||
"@sveltejs/kit": "^2.15.0", | ||
"@sveltejs/vite-plugin-svelte": "^4.0.4", | ||
"@wagmi/connectors": "^5.7.3", | ||
"@wagmi/core": "^2.16.3", | ||
"autoprefixer": "^10.4.20", | ||
"daisyui": "^4.12.22", | ||
"eslint": "^9.17.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.46.1", | ||
"globals": "^15.14.0", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-svelte": "^3.3.2", | ||
"prettier-plugin-tailwindcss": "^0.6.9", | ||
"svelte": "^5.15.0", | ||
"svelte-check": "^4.1.1", | ||
"svelte-hero-icons": "^5.2.0", | ||
"svelte-hot-french-toast": "^1.0.0", | ||
"tailwindcss": "^3.4.17", | ||
"typescript": "^5.7.2", | ||
"typescript-eslint": "^8.18.2", | ||
"viem": "^2.21.57", | ||
"vite": "^5.4.11", | ||
"vitest": "^2.1.8" | ||
} | ||
"name": "wagmi-svelte5", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"svelte": "./dist/index.js" | ||
} | ||
}, | ||
"svelte": "./dist/index.js", | ||
"sideEffects": [ | ||
"**/*.css" | ||
], | ||
"type": "module", | ||
"scripts": { | ||
"all": "pnpm run setup && pnpm run format && pnpm run check && pnpm run build && pnpm run test && pnpm run dev", | ||
"clean": "rm -rf node_modules .pnpm-lock.yaml .svelte-kit dist", | ||
"setup": "pnpm run clean && pnpm install", | ||
"format": "prettier --write --list-different .", | ||
"check": "prettier --check . && eslint . && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"build": "vite build", | ||
"test": "npm run test:unit -- --run && npm run test:e2e", | ||
"dev": "vite dev", | ||
"preview": "vite preview", | ||
"test:unit": "vitest", | ||
"test:e2e": "playwright test", | ||
"package": "NODE_ENV=prod svelte-kit sync && svelte-package && publint" | ||
}, | ||
"dependencies": { | ||
"svelte": "^5.16.0" | ||
}, | ||
"devDependencies": { | ||
"@coinbase/wallet-sdk": "^4.2.4", | ||
"@eslint/compat": "^1.2.4", | ||
"@metamask/sdk": "^0.31.4", | ||
"@playwright/test": "^1.49.1", | ||
"@sveltejs/adapter-auto": "^3.3.1", | ||
"@sveltejs/adapter-static": "^3.0.8", | ||
"@sveltejs/kit": "^2.15.0", | ||
"@sveltejs/package": "^2.3.7", | ||
"@sveltejs/vite-plugin-svelte": "^4.0.4", | ||
"@wagmi/connectors": "^5.7.3", | ||
"@wagmi/core": "^2.16.3", | ||
"@walletconnect/ethereum-provider": "^2.17.3", | ||
"autoprefixer": "^10.4.20", | ||
"daisyui": "^4.12.22", | ||
"eslint": "^9.17.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.46.1", | ||
"esm-env": "^1.2.1", | ||
"globals": "^15.14.0", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-svelte": "^3.3.2", | ||
"prettier-plugin-tailwindcss": "^0.6.9", | ||
"publint": "^0.2.12", | ||
"svelte-check": "^4.1.1", | ||
"svelte-hero-icons": "^5.2.0", | ||
"svelte-hot-french-toast": "^1.0.0", | ||
"tailwindcss": "^3.4.17", | ||
"typescript": "^5.7.2", | ||
"typescript-eslint": "^8.18.2", | ||
"viem": "^2.21.57", | ||
"vite": "^5.4.11", | ||
"vitest": "^2.1.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { defineConfig } from '@playwright/test'; | ||
import { defineConfig } from "@playwright/test"; | ||
|
||
export default defineConfig({ | ||
webServer: { | ||
command: 'npm run build && npm run preview', | ||
port: 4173 | ||
}, | ||
webServer: { | ||
command: "npm run build && npm run preview", | ||
port: 4173 | ||
}, | ||
|
||
testDir: 'e2e' | ||
testDir: "tests/e2e" | ||
}); |
Oops, something went wrong.