Skip to content

Commit

Permalink
More readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 11, 2024
1 parent 60d105c commit d4d1c47
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ There is a `Makefile` with a few standard commands for working with the website:
| `make publish` | Publish the website to s3 |
| `make invalidate` | Invalidate the Cloudfront cache |

The `dev` server builds pages on request and live-updates as you make changes. It includes additional debugging tools, but does not do all type-checking.

There are also a bunch of `npm` commands for more fine-grained control:

<details>
Expand All @@ -28,13 +30,28 @@ There are also a bunch of `npm` commands for more fine-grained control:

</details>

## Code formatting

Code syntax is enforced using [Prettier](https://prettier.io/). You can use a plugin in your code editor to run this automatically on save and it also runs as a CI check on push and pull-requests.

To make it easier to catch formatting errors before pushing, the repo is set up to use [pre-commit](https://pre-commit.com/). If installed, this will run Prettier on any edited files before allowing a commit.

To use, set up as follows:

```bash
pip install pre-commit # Install the pre-commit tool itself
pre-commit install # Set up in the Nextflow website repo
```

After that, checks will automatically run every time you do `git commit` in the repo. Note that formatting changes will be applied automatically but the commit will be aborted - you must do `git add .` and `git commit` again.

## Publishing

The Nextflow website is hosted on AWS s3, behind a Cloudfront cache. There are three components to the website:

- Front end (this repository)
- Docs (`/docs`, built from the main Nextflow repo using Sphinx)
- Nextflow binary downloads (`https://get.nextflow.io`, built from the main Nextflow repo)
1. Front end (this repository)
2. Docs (`/docs`, built from the main Nextflow repo using Sphinx)
3. Nextflow binary downloads (`https://get.nextflow.io`, built from the main Nextflow repo)

All three parts of the website are published separately. Care must be taken not to clobber anything by overwriting.

Expand Down

0 comments on commit d4d1c47

Please sign in to comment.