Skip to content

Commit

Permalink
fix entries sorting and add direction param (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaknesler authored May 18, 2024
1 parent a185a30 commit 72a0444
Show file tree
Hide file tree
Showing 14 changed files with 1,856 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- run: pnpm install
- run: pnpm typeshare:generate
- run: pnpm tsc
# - run: pnpm test
- run: pnpm test:cov
- run: pnpm build

- run: ${{ matrix.command }} build --verbose --locked --release --target ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ jobs:
- run: pnpm install
- run: pnpm typeshare:generate
- run: pnpm tsc
# - run: pnpm test
- run: pnpm test:cov
- run: pnpm build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ target

# js
node_modules
coverage
dist
.solid
.output
Expand Down
8 changes: 8 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('jest').Config} */
module.exports = {
transform: { '^.+\\.(t|j)sx?$': '@swc/jest' },
moduleNameMapper: { '^~/(.*)$': '<rootDir>/ui/src/$1' },
coveragePathIgnorePatterns: ['/node_modules/'],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
passWithNoTests: true,
};
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"serve": "vite preview ui",
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "jest",
"test:cov": "jest --coverage",
"watch": "mprocs \"pnpm dev\" \"cargo watch -x \\\"run -- start\\\"\"",
"watch:trace": "mprocs \"pnpm dev\" \"cargo watch -x \\\"run -- -ltrace start\\\"\"",
"typeshare:generate": "typeshare ./ --lang=typescript --output-file=./ui/src/types/bindings.ts && eslint --fix \"./ui/src/types/bindings.ts\""
Expand All @@ -28,16 +30,20 @@
"wretch": "^2.8.1"
},
"devDependencies": {
"@swc/core": "^1.5.7",
"@swc/jest": "^0.2.36",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@total-typescript/ts-reset": "^0.5.1",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-solid": "^0.14.0",
"jest": "^29.7.0",
"postcss": "^8.4.38",
"prettier-plugin-tailwindcss": "^0.5.14",
"solid-devtools": "^0.30.1",
Expand Down
Loading

0 comments on commit 72a0444

Please sign in to comment.