Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
haiweilian committed Nov 26, 2024
1 parent 777d2d9 commit 51704b6
Show file tree
Hide file tree
Showing 29 changed files with 4,317 additions and 3,516 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
}
26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

Empty file modified .husky/commit-msg
100755 → 100644
Empty file.
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
'package.json': ['prettier --write'],
/** @type {import('lint-staged').Config} */
export default {
'*.{js?(x),ts?(x)}': ['eslint --fix', 'prettier --write'],
'*.{css,scss,less}': ['stylelint --fix', 'prettier --write'],
}
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/** @type {import('prettier').Options} */
export default {
semi: false,
trailingComma: 'es5',
singleQuote: true,
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('stylelint').Config} */
export default {
extends: '@bfehub/stylelint-config-basic',
}
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vitepress'
import taskLists from 'markdown-it-task-lists'
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"deploy": "pnpm build && gh-pages -d .vitepress/dist"
},
"devDependencies": {
"gh-pages": "^6.1.1",
"gh-pages": "^6.2.0",
"markdown-it-task-lists": "^2.1.1",
"vitepress": "^1.3.1"
"vitepress": "^1.5.0"
}
}
2 changes: 1 addition & 1 deletion ecosystem.config.js → ecosystem.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line @typescript-eslint/no-require-imports
const path = require('path')

const env = {
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import typescript from '@bfehub/eslint-config-typescript'

/** @type {import('eslint').Linter.Config[]} */
export default [
...typescript,
{
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
},
},
{
ignores: [
'**/lib/',
'**/dist/',
'**/logs/',
'**/.umi/',
'**/.umi-production/',
'**/.vitepress/cache/',
'vivy-modules/vivy-system/types/mapper.d.ts',
],
},
]
65 changes: 35 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vivy-nest-admin",
"type": "module",
"version": "0.0.1",
"private": true,
"license": "MIT",
Expand All @@ -10,11 +11,12 @@
"preinstall": "npx only-allow pnpm",
"commit": "cz",
"lint:lint-staged": "lint-staged",
"lint:eslint": "eslint --fix \"**/*.{js,jsx,ts,tsx}\"",
"lint:prettier": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"pm2:dev": "pm2 start ecosystem.config.js --env development",
"pm2:prod": "pm2 start ecosystem.config.js --env production",
"pm2:stop": "pm2 stop ecosystem.config.js",
"lint:eslint": "eslint --fix --cache \"**/*.{js,jsx,ts,tsx}\"",
"lint:stylelint": "stylelint --fix --cache \"**/*.{css,scss,less,styl}\"",
"lint:prettier": "prettier --write \"**/*.{css,scss,less,styl,js,jsx,ts,tsx}\"",
"pm2:dev": "pm2 start ecosystem.config.cjs --env development",
"pm2:prod": "pm2 start ecosystem.config.cjs --env production",
"pm2:stop": "pm2 stop ecosystem.config.cjs",
"build": "pnpm build:common && pnpm --recursive --stream build",
"build:common": "pnpm --filter=@vivy-common/** build",
"docker:rm": "docker-compose rm",
Expand All @@ -23,12 +25,12 @@
},
"dependencies": {
"@nestjs-modules/ioredis": "^2.0.2",
"@nestjs/bull": "^10.1.1",
"@nestjs/common": "^10.3.10",
"@nestjs/core": "^10.3.10",
"@nestjs/mapped-types": "^2.0.5",
"@nestjs/platform-express": "^10.3.10",
"@nestjs/swagger": "^7.4.0",
"@nestjs/bull": "^10.2.2",
"@nestjs/common": "^10.4.8",
"@nestjs/core": "^10.4.8",
"@nestjs/mapped-types": "^2.0.6",
"@nestjs/platform-express": "^10.4.8",
"@nestjs/swagger": "^8.0.7",
"@nestjs/typeorm": "^10.0.2",
"@vivy-common/config": "workspace:*",
"@vivy-common/core": "workspace:*",
Expand All @@ -38,37 +40,40 @@
"@vivy-common/mybatis": "workspace:*",
"@vivy-common/security": "workspace:*",
"@vivy-common/swagger": "workspace:*",
"bull": "^4.15.1",
"bull": "^4.16.4",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"date-fns": "^3.6.0",
"express": "^4.19.2",
"express": "^4.21.1",
"ioredis": "^5.4.1",
"lodash": "^4.17.21",
"multer": "1.4.5-lts.1",
"mysql2": "^3.11.0",
"mysql2": "^3.11.4",
"nestjs-typeorm-paginate": "^4.0.4",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@bfehub/eslint-config-typescript": "^2.1.0",
"@changesets/cli": "^2.27.7",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/cz-commitlint": "^19.2.0",
"@nestjs/cli": "^10.4.2",
"@nestjs/schematics": "^10.1.3",
"@types/express": "^4.17.21",
"@types/lodash": "^4.17.7",
"@types/multer": "^1.4.11",
"@bfehub/eslint-config-typescript": "^3.1.0",
"@bfehub/stylelint-config-basic": "^3.1.0",
"@changesets/cli": "^2.27.10",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/cz-commitlint": "^19.5.0",
"@nestjs/cli": "^10.4.8",
"@nestjs/schematics": "^10.2.3",
"@types/express": "^5.0.0",
"@types/lodash": "^4.17.13",
"@types/multer": "^1.4.12",
"@types/node": "20.4.1",
"commitizen": "^4.3.0",
"eslint": "^8.57.0",
"husky": "^9.1.3",
"lint-staged": "^15.2.7",
"commitizen": "^4.3.1",
"eslint": "^9.15.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
"stylelint": "^16.10.0",
"taze": "^0.18.0",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit 51704b6

Please sign in to comment.