You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+45-33Lines changed: 45 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ First of all, thank you for contributing to MeiliSearch! The goal of this docume
8
8
-[How to Contribute](#how-to-contribute)
9
9
-[Development Workflow](#development-workflow)
10
10
-[Git Guidelines](#git-guidelines)
11
+
-[Release Process (for internal team only)](#release-process-for-internal-team-only)
11
12
12
13
<!-- /MarkdownTOC -->
13
14
@@ -23,7 +24,7 @@ First of all, thank you for contributing to MeiliSearch! The goal of this docume
23
24
2. Once done, [fork the instant-meilisearch repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) in your own GitHub account. Ask a maintainer if you want your issue to be checked before making a PR.
24
25
3.[Create a new Git branch](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-and-deleting-branches-within-your-repository).
25
26
4. Review the [Development Workflow](#workflow) section that describes the steps to maintain the repository.
26
-
5. Make your changes.
27
+
5. Make the changes on your branch.
27
28
6.[Submit the branch as a PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) pointing to the `master` branch of the main instant-meilisearch repository. A maintainer should comment and/or review your Pull Request within a few days. Although depending on the circumstances, it may take longer.<br>
28
29
We do not enforce a naming convention for the PRs, but **please use something descriptive of your changes**, having in mind that the title of your PR will be automatically added to the next [release changelog](https://github.com/meilisearch/instant-meilisearch/releases/).
29
30
@@ -68,40 +69,15 @@ Or the React playground:
68
69
$ yarn playground:react
69
70
```
70
71
71
-
Or the Vanilla JavaScript playground:
72
+
Or the JavaScript playground:
72
73
```
73
-
$ yarn playground:vanilla-js
74
+
$ yarn playground:javascript
74
75
```
75
76
76
-
### Release Process
77
-
78
-
MeiliSearch tools follow the [Semantic Versioning Convention](https://semver.org/).
79
-
80
-
#### Automated Changelogs
81
-
82
-
For each PR merged on `master`, a GitHub Action is running and updates the next release description as a draft release in the [GitHub interface](https://github.com/meilisearch/instant-meilisearch/releases). If you don't have the right access to this repository, you will not be able to see the draft release until the release is published.
83
-
84
-
The draft release description is therefore generated and corresponds to all the PRs titles since the previous release. This means each PR should only do one change and the title should be descriptive of this change.
85
-
86
-
About this automation:
87
-
- As the draft release description is generated on every push on `master`, don't change it manually until the final release publishment.
88
-
- If you don't want a PR to appear in the release changelogs: add the label `skip-changelog`. We suggest removing PRs updating the README or the CI (except for big changes).
89
-
- If the changes you are doing in the PR are breaking: add the label `breaking-change`. In the release tag, the minor will be increased instead of the patch. The major will never be changed until [MeiliSearch](https://github.com/meilisearch/MeiliSearch) is stable.
90
-
- If you did any mistake, for example the PR is already closed but you forgot to add a label or you misnamed your PR, don't panic: change what you want in the closed PR and run the job again.
91
-
92
-
*More information about the [Release Drafter](https://github.com/release-drafter/release-drafter), used to automate these steps.*
93
-
94
-
#### How to Publish the Release
95
-
96
-
Make a PR modifying the file [`package.json`](/package.json) with the right version.
97
-
98
-
```javascript
99
-
"version":"X.X.X"
77
+
Or the HTML playground:
78
+
```
79
+
$ yarn playground:html
100
80
```
101
-
102
-
Once the changes are merged on `master`, you can publish the current draft release via the [GitHub interface](https://github.com/meilisearch/instant-meilisearch/releases).
103
-
104
-
A GitHub Action will be triggered and push the package to [npm](https://www.npmjs.com/package/@meilisearch/instant-meilisearch).
105
81
106
82
## Git Guidelines
107
83
@@ -123,11 +99,47 @@ We don't follow any other convention, but if you want to use one, we recommend [
123
99
### GitHub Pull Requests
124
100
125
101
Some notes on GitHub PRs:
102
+
126
103
-[Convert your PR as a draft](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/changing-the-stage-of-a-pull-request) if your changes are a work in progress: no one will review it until you pass your PR as ready for review.<br>
127
104
The draft PR can be very useful if you want to show that you are working on something and make your work visible.
128
-
- The branch related to the PR must be **up-to-date with `master`** before merging. You need to [rebase your branch](https://gist.github.com/curquiza/5f7ce615f85331f083cd467fc4e19398) if it is not.
105
+
- The branch related to the PR must be **up-to-date with `master`** before merging. Fortunately, this project [integrates a bot](https://github.com/meilisearch/integration-guides/blob/master/guides/bors.md) to automatically enforce this requirement without the PR author having to do it manually..
129
106
- All PRs must be reviewed and approved by at least one maintainer.
130
-
- All PRs have to be **squashed and merged**.
131
107
- The PR title should be accurate and descriptive of the changes. The title of the PR will be indeed automatically added to the next [release changelogs](https://github.com/meilisearch/instant-meilisearch/releases/).
132
108
109
+
## Release Process (for internal team only)
110
+
111
+
MeiliSearch tools follow the [Semantic Versioning Convention](https://semver.org/).
112
+
113
+
### Automation to Rebase and Merge the PRs
114
+
115
+
This project integrates a bot that helps us manage pull requests merging.<br>
116
+
_[Read more about this](https://github.com/meilisearch/integration-guides/blob/master/guides/bors.md)._
117
+
118
+
### Automated Changelogs
119
+
120
+
This project integrates a tool to create automated changelogs.<br>
121
+
_[Read more about this](https://github.com/meilisearch/integration-guides/blob/master/guides/release-drafter.md)._
122
+
123
+
### How to Publish the Release
124
+
125
+
Make a PR modifying the file [`package.json`](/package.json) with the right version.
126
+
127
+
```javascript
128
+
"version":"X.X.X"
129
+
```
130
+
131
+
Once the changes are merged on `master`, you can publish the current draft release via the [GitHub interface](https://github.com/meilisearch/instant-meilisearch/releases).
132
+
133
+
GitHub Actions will be triggered and push the package to [npm](https://www.npmjs.com/package/@meilisearch/instant-meilisearch).
134
+
135
+
Once the version is available on npm, please update the instant-meilisearch version used in the different Code-Sandboxes we provide:
<palign="center">⚡ How to integrate a front-end search bar in your website using MeiliSearch</p>
27
25
28
-
**MeiliSearch** is a powerful, fast, open-source, easy to use and deploy search engine. Both searching and indexing are highly customizable. Features such as typo-tolerance, filters, facets, and synonyms are provided out-of-the-box.
26
+
**MeiliSearch** is an open-sourcesearch engine. [Discover what MeiliSearch is!](https://github.com/meilisearch/MeiliSearch)
29
27
30
28
This library is a plugin to establish the communication between your [MeiliSearch](https://github.com/meilisearch/MeiliSearch) instance and the open-source [InstantSearch](https://github.com/algolia/instantsearch.js) tools (powered by Algolia) for your front-end application.<br>
31
29
Instead of reinventing the wheel, we have opted to reuse the InstantSearch library for our own front-end tooling. We will contribute upstream any improvements that may result from our adoption of InstantSearch.
@@ -37,11 +35,25 @@ If you use React or Vue, you might want to check out these repositories:
37
35
38
36
NB: If you don't have any MeiliSearch instance running and containing your data, you should take a look at this [getting started page](https://docs.meilisearch.com/guides/introduction/quick_start_guide.html).
39
37
38
+
## Installation
39
+
40
+
Use `npm` or `yarn` to install `instant-meilisearch`:
This package only guarantees the compatibility with the [version v0.16.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.16.0).
160
+
This package only guarantees the compatibility with the [version v0.18.1 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.18.1).
0 commit comments