@@ -65,32 +65,56 @@ async fn code_in_web_worker() -> Result<i32, diesel::QueryResult<usize>> {
65
65
66
66
look in ` tests/web.rs ` for working example!
67
67
68
- ## Development
68
+ ## Contributing
69
69
70
- ### Install yarn dependencies
70
+ ### Building
71
+
72
+ #### Install yarn dependencies
71
73
72
74
` yarn install `
73
75
74
- ### Build the SQLite/OPFS BUndle
76
+ #### Build the SQLite/OPFS BUndle
75
77
76
78
` yarn run build `
77
79
78
- ### Build the rust code, and re-build ` package.json ` if it changed
80
+ #### Build the rust code, and re-build ` package.json ` if it changed
79
81
80
82
` cargo build --target wasm32-unknown-unknown `
81
83
82
- ### Run Tests
84
+ #### Run Tests
83
85
84
86
` wasm-pack test --safari --features unsafe-debug-query `
85
87
86
88
navigate to ` http://localhost:8000 ` to observe test output
87
89
88
- ### Run Tests (headless)
90
+ #### Run Tests (headless)
89
91
90
92
` wasm-pack test --safari --headless `
91
93
92
- ### Setting up the project in VSCode
94
+ #### Setting up the project in VSCode
93
95
94
96
rust-analyzer does not like crates with different targets in the same workspace.
95
97
If you want this to work well with your LSP, open ` diesel-wasm-sqlite ` as it's
96
98
own project in VSCode.
99
+
100
+ ### Opening a Pull Request
101
+
102
+ PR Title should follow
103
+ [ conventional commits format] ( https://www.conventionalcommits.org/en/v1.0.0/ )
104
+
105
+ In short, if should be one of:
106
+
107
+ - ` fix: ` represents bug fixes, and results in a SemVer patch bump.
108
+ - ` feat: ` represents a new feature, and results in a SemVer minor bump.
109
+ - ` <prefix>!: ` (e.g. feat!:): represents a ** breaking change** (indicated by the
110
+ !) and results in a SemVer major bump.
111
+ - ` doc: ` documentation changes
112
+ - ` perf: ` changes related to performance
113
+ - ` refactor: ` a refactor
114
+ - ` style: `
115
+ - ` test: `
116
+
117
+ You can add extra context to conventional commits by using parantheses, for
118
+ instance if a PR touched only database-related code, a PR title may be:
119
+
120
+ - ` feat(db): Add SQLCipher plaintext_header support to database connection `
0 commit comments