Unverified 提交 0e8cc26f authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add prettier hook & contribution guide (#105)

上级 0d566512
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
# Contributing
Dyad is still a very early-stage project, thus the codebase is rapidly changing.
Before opening a pull request, please open an issue and discuss whether the change makes sense in Dyad. Ensuring a cohesive user experience sometimes means we can't include every possible feature or we need to consider the long-term design of how we want to support a feature area.
## More than code contributions
Something that I really appreciate are all the non-code contributions, such as reporting bugs, writing feature requests and participating on [Dyad's sub-reddit](https://www.reddit.com/r/dyadbuilders).
## Development
Dyad is an Electron app.
**Install dependencies:**
```sh
npm install
```
**Run locally:**
```sh
npm start
```
......@@ -18,6 +18,6 @@ No sign-up required. Just download and go.
### [👉 Download for your platform](https://www.dyad.sh/#download)
## 🎥 Preview
**dyad** is open source (Apache 2.0-licensed).
If you're interested in contributing to dyad, please read our [contributing](./CONTRIBUTING.md) doc.
差异被折叠。
......@@ -25,7 +25,8 @@
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"extract-codebase": "ts-node scripts/extract-codebase.ts"
"extract-codebase": "ts-node scripts/extract-codebase.ts",
"prepare": "husky install"
},
"keywords": [],
"author": {
......@@ -58,6 +59,8 @@
"eslint": "^8.57.1",
"eslint-plugin-import": "^2.31.0",
"happy-dom": "^17.4.4",
"husky": "^9.1.7",
"lint-staged": "^15.5.2",
"prettier": "3.5.3",
"typescript": "^5.8.3",
"vite": "^5.4.17",
......@@ -126,5 +129,8 @@
"tw-animate-css": "^1.2.5",
"update-electron-app": "^3.1.1",
"uuid": "^11.1.0"
},
"lint-staged": {
"*.{js,css,md,ts,tsx,jsx,json}": "prettier --write"
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论