Skip to content

Commit

Permalink
✨ feat: 升级基础设施
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 13, 2023
1 parent 344fba7 commit 2be248e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 27 deletions.
6 changes: 0 additions & 6 deletions .huskyrc

This file was deleted.

10 changes: 10 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
lockfile=false
resolution-mode=highest
public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*
15 changes: 0 additions & 15 deletions jest.config.ts

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vercel-serverless-api-template",
"version": "1.0.1",
"private": true,
"description": "基于 Vercel 的免费 Serverless api 模板",
"description": "Vercel Serverless API 模板",
"repository": "https://github.com/arvinxx/vercel-serverless-api-template.git",
"scripts": {
"ci": "npm run lint && npm run type-check",
Expand Down Expand Up @@ -43,15 +43,14 @@
"dotenv": "^8",
"eslint": "^8",
"husky": "^8",
"jest": "^29",
"lint-staged": "^13",
"prettier": "^2",
"prettier-plugin-organize-imports": "^3",
"prettier-plugin-packagejson": "^2",
"semantic-release": "^19",
"semantic-release": "^21",
"semantic-release-config-gitmoji": "^1",
"stylelint": "^14",
"typescript": "^4",
"vercel": "^28"
"typescript": "^5",
"vercel": "^31.2.3",
"vitest": "latest"
}
}
8 changes: 8 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
},
});

0 comments on commit 2be248e

Please sign in to comment.