From 2b1b4600d0f51dcc4c25982619139e81a22a9105 Mon Sep 17 00:00:00 2001 From: Roman Onishchenko Date: Tue, 10 Mar 2026 23:34:58 +0100 Subject: [PATCH 1/2] ci improvements --- .github/workflows/ci.yml | 3 +++ .husky/pre-push | 6 ++---- eslint.config.js | 2 +- package.json | 6 ++++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 105dc13..e7d5d6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,9 @@ jobs: - name: Format check run: npm run format:check + - name: Typecheck + run: npm run typecheck + - name: Lint run: npm run lint diff --git a/.husky/pre-push b/.husky/pre-push index c8d169e..72e38c4 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,6 +1,4 @@ #!/usr/bin/env sh -echo "Running checks before push..." - -npm run lint -npm run test +echo "Running CI checks..." +npm run ci diff --git a/eslint.config.js b/eslint.config.js index a53e381..a3a6785 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,7 +6,7 @@ import tseslint from 'typescript-eslint'; import { defineConfig, globalIgnores } from 'eslint/config'; export default defineConfig([ - globalIgnores(['dist']), + globalIgnores(['dist', 'node_modules', 'build', 'coverage']), { files: ['**/*.{ts,tsx}'], extends: [ diff --git a/package.json b/package.json index b562497..881fef7 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,14 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", - "elint": "eslint .", - "lint": "tsc --noEmit -p tsconfig.json", "preview": "vite preview", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "typecheck": "tsc --noEmit", "format": "prettier --write .", "format:check": "prettier --check .", "test": "", + "ci": "npm run format:check && npm run typecheck && npm run lint && npm run test", "lint-staged": "lint-staged", "prepare": "husky" }, From ec95ef63d7b34e49a6f26def6c66e18c19decf16 Mon Sep 17 00:00:00 2001 From: Roman Onishchenko Date: Wed, 11 Mar 2026 00:16:30 +0100 Subject: [PATCH 2/2] update github links, add badges --- src/components/Footer/Footer.tsx | 2 +- src/components/Header/Header.tsx | 2 +- src/components/Hero/Hero.tsx | 14 ++-- .../InstallCommand/InstallCommand.tsx | 2 +- .../ProjectBadges/ProjectBadges.tsx | 65 +++++++++++++++++++ src/components/index.ts | 1 + 6 files changed, 78 insertions(+), 8 deletions(-) create mode 100644 src/components/ProjectBadges/ProjectBadges.tsx diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 329fd05..7e1a8c7 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -31,7 +31,7 @@ export const Footer = () => { npm { @@ -82,7 +86,7 @@ export const Hero = () => { mt: 3, width: '100%', p: { xs: 3, md: 4 }, - borderRadius: 4, + borderRadius: 1, bgcolor: 'background.paper', border: '1px solid', borderColor: 'divider', diff --git a/src/components/InstallCommand/InstallCommand.tsx b/src/components/InstallCommand/InstallCommand.tsx index 80d10ff..9107c1d 100644 --- a/src/components/InstallCommand/InstallCommand.tsx +++ b/src/components/InstallCommand/InstallCommand.tsx @@ -23,7 +23,7 @@ export const InstallCommand = () => { bgcolor: 'background.paper', border: '1px solid', borderColor: 'divider', - borderRadius: 3, + borderRadius: 1, px: 3, py: 2, maxWidth: 500, diff --git a/src/components/ProjectBadges/ProjectBadges.tsx b/src/components/ProjectBadges/ProjectBadges.tsx new file mode 100644 index 0000000..b6356b9 --- /dev/null +++ b/src/components/ProjectBadges/ProjectBadges.tsx @@ -0,0 +1,65 @@ +import { Stack, Box, Link } from '@mui/material'; + +const packageName = '@dfsync/client'; +const repoName = 'dfsyncjs/dfsync'; + +export const ProjectBadges = () => { + return ( + + {/* npm version */} + + + + + {/* npm weekly downloads */} + + + + + {/* github stars */} + + + + + + + ); +}; diff --git a/src/components/index.ts b/src/components/index.ts index 37735ff..7f27aa8 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -2,3 +2,4 @@ export { Features } from './Features/Features'; export { Footer } from './Footer/Footer'; export { Header } from './Header/Header'; export { Hero } from './Hero/Hero'; +export { ProjectBadges } from './ProjectBadges/ProjectBadges';