Skip to content

Commit

Permalink
feat: add frontend specifications(openimsdk#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu116 committed Jun 27, 2023
1 parent ca3c28d commit b3972d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions web/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
9 changes: 2 additions & 7 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
"build": "vite build",
"preview": "vite preview",
"lint-staged": "lint-staged",
"precommit": "eslint src/**/*.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"prepare": "husky install"
},
"lint-staged": {
"src/**/*.{js,ts,vue}": [
Expand All @@ -36,7 +31,7 @@
"@vitejs/plugin-vue": "^4.2.3",
"eslint": "^8.43.0",
"eslint-plugin-vue": "^9.15.1",
"husky": "^8.0.3",
"husky": "^8.0.0",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"typescript": "^5.1.3",
Expand Down
1 change: 1 addition & 0 deletions web/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ router.afterEach((to, from) => {
console.log('To:', to.path);
});
let abc = '123';
let c = 'dasd';
// expose router
export default router;

0 comments on commit b3972d4

Please sign in to comment.