diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml new file mode 100644 index 00000000..694cd772 --- /dev/null +++ b/.github/workflows/node.js.yaml @@ -0,0 +1,25 @@ +name: Node.js CI +on: + push: + branches: ['main'] + pull_request: +jobs: + build: + name: 'Fmt, Lint, & Build' + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: node --version + - run: npm clean-install + - run: npm run fmt + #- run: npm run lint + #- run: npm run lint:types + - run: npm run build diff --git a/package.json b/package.json index 7aeefbef..ea472a6f 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,12 @@ "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --plugin-search-dir . --check . && eslint .", - "format": "prettier --plugin-search-dir . --write ." + "lint": "npm run eslint", + "lint:types": "npm run check", + "fmt": "npm run prettier:svelte && npm run prettier", + "eslint": "npx -p eslint@8 -- eslint .", + "prettier:svelte": "npx -p prettier@2 -- prettier --plugin-search-dir . --write .", + "prettier": "npx -p prettier@2 -- prettier --write '**/*.{js,css,md,html,json}'" }, "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b7..0f772168 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/src/lib/components/common/Overlay.svelte b/src/lib/components/common/Overlay.svelte index a67817fb..d3835821 100644 --- a/src/lib/components/common/Overlay.svelte +++ b/src/lib/components/common/Overlay.svelte @@ -1,33 +1,33 @@ - - -
- {#if show} -
-
- -
-
- -
- - {#if content !== ''} -
- {content} -
- {/if} -
-
- {/if} - - -
+ + +
+ {#if show} +
+
+ +
+
+ +
+ + {#if content !== ''} +
+ {content} +
+ {/if} +
+
+ {/if} + + +
diff --git a/src/lib/components/common/Spinner.svelte b/src/lib/components/common/Spinner.svelte index c2f3708a..206c7f5c 100644 --- a/src/lib/components/common/Spinner.svelte +++ b/src/lib/components/common/Spinner.svelte @@ -1,24 +1,24 @@ - - -
- - - - -
+ + +
+ + + + +