Skip to content

Commit

Permalink
Add development instructions to README (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersnylund authored Apr 13, 2023
1 parent 8ce2d3d commit 65ee392
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ resume export resume.pdf --theme 8-bit-sheep

## Local development of the theme

The theme uses React, styled-components, and Vite. The build is ran with `tsc` (not optimal) and the build can be found under `./dist`

### Requirements

- node.js
Expand All @@ -38,3 +40,26 @@ resume export resume.pdf --theme 8-bit-sheep
- Run `npm run build` which will generate the JS build into `./dist`
- Run `npm run create-example-html` to generate the HTML build to `./build/html/example.html`
- Run `npm run create-example-pdf` to generate the PDF build to `./build/pdf/example.pdf`

### Tests

Unit tests can be run with `npm run test`. Tests are written with `vitest`.

### Linting

The code style follows some basic recommendations in conjunction with prettier. To perform linting run `npm run lint`.

### CI

[./.github/workflows/ci.yaml](./.github/workflows/ci.yaml) defines a CI pipeline that runs the build, linting, tests, and CV builds to assert that everything is working.

## Publish new version

- Make sure you are in the `main`-branch and that the new changes that you want to publish have been merged there
- Run `npm version <major|minor|patch>` depending on what kind of changes have been made.
- Run `npm publish`. This will run the build and publish the contents of `./dist`.
- Push the new commit directly to main with `git push`
- Push the new tag created by `npm publish` by running `git push origin <new_version>`
- Go to <https://github.com/8-bit-sheep/jsonresume-theme-8-bit-sheep/releases> and click "Draft a new release".
- Select the new tag that you just pushed and click "Generate release notes".
- Publish the release

0 comments on commit 65ee392

Please sign in to comment.