Skip to content

Commit 3664108

Browse files
authored
Merge pull request #24 from farm-fe/feat/contribution
chore: contribution
2 parents f46bdd8 + e7286c4 commit 3664108

File tree

5 files changed

+886
-3
lines changed

5 files changed

+886
-3
lines changed

.cspell.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"ignoreWords": ["farmfe", "farmup", "execa", "shulandmimi"]
2+
"ignoreWords": ["farmfe", "farmup", "execa", "shulandmimi", "biomejs"],
3+
"ignorePaths": ["./pnpm-lock.yaml", "LICENSE", "CHANGELOG.md"]
34
}

CONTRIBUTING.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Contributing
2+
3+
## Local Development
4+
5+
```shell
6+
# 1. install dependents
7+
pnpm install
8+
9+
# 2. build source
10+
pnpm run build
11+
12+
# 3. local development
13+
# start watch mode for build source
14+
pnpm run farmup
15+
16+
# 4. link to global, use in other somewhere
17+
pnpm link --global
18+
19+
# 5. test your change
20+
farmup file.ts
21+
```
22+
23+
## Ready PR
24+
25+
<!-- TODO: add lint in CI -->
26+
27+
1. lint or other check
28+
29+
```shell
30+
pnpm run ready
31+
```
32+
33+
2. run changeset
34+
3. select changed package e.g farmup
35+
4. select an appropriate version number, e.g `patch`
36+
37+
```shell
38+
npx changeset
39+
```
40+
41+
## Create PR
42+
43+
create PR in github and add reviewer for your PR

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
"build": "farm build",
1414
"preview": "farm preview",
1515
"clean": "farm clean",
16-
"release": "pnpm run build && changeset publish"
16+
"release": "pnpm run build && changeset publish",
17+
"farmup": "node ./bin/farmup.js --no-exec -w",
18+
"ready": "node ./bin/farmup.js ./scripts/ready.ts -o ./dist/ready --no-config"
1719
},
1820
"bin": {
1921
"farmup": "./bin/farmup.js"
2022
},
2123
"devDependencies": {
24+
"@biomejs/biome": "^1.7.3",
2225
"@farmfe/cli": "^1.0.2",
2326
"@types/fs-extra": "^11.0.4",
2427
"@types/lodash-es": "^4.17.12",
@@ -47,6 +50,7 @@
4750
"@changesets/cli": "^2.27.3",
4851
"@farmfe/core": "^1.1.12",
4952
"cac": "^6.7.14",
53+
"cspell": "^8.8.3",
5054
"fs-extra": "^11.2.0",
5155
"glob": "^10.3.15",
5256
"lodash-es": "^4.17.21",
@@ -58,4 +62,4 @@
5862
"README.md",
5963
"bin"
6064
]
61-
}
65+
}

0 commit comments

Comments
 (0)