Skip to content

Commit

Permalink
Merge pull request #71 from meilisearch/prepare_for_npm_release
Browse files Browse the repository at this point in the history
Prepare project for npm release
  • Loading branch information
bidoubiwa authored Aug 7, 2023
2 parents 954b64d + c55be62 commit 22756a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ yarn playground:default
```

Running this mode has two effects.

- If you change the source code of the docusaurus playground, the docusaurus app restarts.
- If you change the source code of scrapix, scrapix is rebuilded and re-runs a scrapper (either the default one or the docsearch one) on the docusaurus app.


# Re-scrap a chosen app on change

If you which to re-scrap an app based on a custom scrapix configuration file, run the following:
Expand All @@ -35,3 +35,12 @@ npx nodemon --watch src --watch "[PATH_TO_YOUR_CONFIG_FILE]" --ext ts,json --exe
```

This will scrap an app based on the provided "PATH_TO_YOUR_CONFIG_FILE" on every change in the `./src` folder and on your provided config file.

## Publish

To publish scrapix to npm. Increase its version and then:

```sh
yarn build
npm publish .
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "scrapix",
"name": "@meilisearch/scrapix",
"version": "0.0.1",
"description": "This is an example of a Crawlee project.",
"description": "Automatic scraper and indexer to Meilisearch of any website.",
"main": "dist/src/index.js",
"dependencies": {
"axios": "^1.4.0",
Expand Down

0 comments on commit 22756a6

Please sign in to comment.