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

Fix account switch #25

Closed
wants to merge 19 commits into from
Closed
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
/build
/.svelte-kit
/.github
/package
.env
.env.*
Expand Down
6 changes: 3 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports = {
es2017: true,
node: true
},
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-explicit-any": 0
rules: {
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-explicit-any': 0
},
overrides: [
{
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm lint
- run: pnpm check
- run: pnpm run build
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/build
/.github
/.svelte-kit
/package
.env
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-tailwindcss"],
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
Expand Down
20 changes: 8 additions & 12 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"watch": [
"src"
],
"ext": "ts,svelte,html",
"ignore": [
"*.test.ts"
],
"delay": 1,
"execMap": {
"ts": "ts-node"
},
"exec": "vite build && npx esbuild ./src/lib/services/background.ts --bundle --outdir=build/ && npx esbuild ./src/lib/services/content.ts --bundle --outdir=build/"
"watch": ["src"],
"ext": "ts,svelte,html",
"ignore": ["*.test.ts"],
"delay": 1,
"execMap": {
"ts": "ts-node"
},
"exec": "vite build && npx esbuild ./src/lib/services/background.ts --bundle --outdir=build/ && npx esbuild ./src/lib/services/content.ts --bundle --outdir=build/"
}
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"build": "vite build && npx esbuild ./src/lib/services/background.ts --bundle --outdir=build/ && npx esbuild ./src/lib/services/content.ts --bundle --outdir=build/",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
Expand All @@ -13,41 +13,42 @@
"format": "prettier --write ."
},
"devDependencies": {
"@skeletonlabs/skeleton": "^2.5.1",
"@skeletonlabs/skeleton": "^2.6.1",
"@skeletonlabs/tw-plugin": "^0.2.4",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.27.4",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.30.3",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@types/webextension-polyfill": "^0.10.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.14",
"daisyui": "^4.4.12",
"eslint": "^8.28.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte": "^2.30.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.24",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"nodemon": "^3.0.2",
"postcss": "^8.4.24",
"postcss-load-config": "^4.0.1",
"prettier": "^3.0.0",
"postcss": "^8.4.32",
"postcss-load-config": "^4.0.2",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.4.1",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"sveltekit-adapter-chrome-extension": "^2.0.0",
"tailwindcss": "^3.3.2",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"tailwindcss": "^3.4.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"webextension-polyfill": "^0.10.0"
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@iconify/svelte": "^3.1.4",
"@iconify/svelte": "^3.1.6",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/chrome": "^0.0.253",
"esbuild": "^0.19.8",
"esbuild": "^0.19.10",
"javascript-time-ago": "^2.5.9",
"nostr-tools": "^1.17.0",
"qrcode": "^1.5.3",
Expand Down
Loading