Skip to content

Commit

Permalink
Attempting to fix CI:
Browse files Browse the repository at this point in the history
* update workflows
* update svelte and postcss config for postcss new way
* restrict output to error only
* updates to some packages
  • Loading branch information
shannonwells committed Sep 18, 2024
1 parent 39c1dc1 commit 6cf6b6a
Show file tree
Hide file tree
Showing 5 changed files with 451 additions and 140 deletions.
1 change: 1 addition & 0 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn run check
- name: Install Playwright
run: npx playwright install
- run: yarn run test
Expand Down
6 changes: 4 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
"build": "vite build",
"preview": "vite preview",
"test": "playwright test",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --threshold error",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@playwright/test": "^1.40.0",
"@playwright/test": "^1.40.1",
"@polkadot/util-crypto": "^13.1.1",
"@sveltejs/adapter-auto": "^3.2.5",
"@sveltejs/adapter-node": "^5.2.3",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.4",
Expand Down
7 changes: 6 additions & 1 deletion client/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
module.exports = { plugins: [require("tailwindcss"), require("autoprefixer")] };
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
4 changes: 2 additions & 2 deletions client/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import nodeAdapter from "@sveltejs/adapter-node";
import staticAdapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";
import {sveltePreprocess} from 'svelte-preprocess'

/** @type {import('@sveltejs/kit').Config} */

const config = {
preprocess: [preprocess({ postcss: true })],
preprocess: sveltePreprocess({ postcss: true }),

kit: {
adapter: process.env.STATIC ? staticAdapter() : nodeAdapter(),
Expand Down
Loading

0 comments on commit 6cf6b6a

Please sign in to comment.