Skip to content

Commit

Permalink
chore: bumped dependencies + added nix shell + updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
freb97 committed Apr 6, 2024
1 parent cc024b0 commit 481186e
Show file tree
Hide file tree
Showing 5 changed files with 5,799 additions and 2,909 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 1.0.4
- Bumped dependencies
- Added nix shell for development
- Updated development documentation

# 1.0.3
- Added type checks in ci + updated documentation
- Added type checks in ci
- Updated documentation

# 1.0.2
- Updated package.json
Expand Down
77 changes: 68 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,26 +271,85 @@ You can also use different image components here, i.e. `NuxtImg` or others.
## Development
### Dependencies
To install the dependencies, run the `install` command:
```bash
# Install dependencies
npm install
```
The project requires Node.js and NPM to run.
You can either install these manually on your system or if you have the nix package manager installed, use the
provided nix-shell with the following command:
```bash
nix-shell
```
This will automatically install the needed software and start up a shell.
### Type stubs
# Generate type stubs
To generate the type stubs for the nuxt module, run the `dev:prepare` command:
```bash
npm run dev:prepare
```
### Development server
To start the development server with the provided text components, run the `dev` command:
# Develop with the basic text components playground
```bash
npm run dev
```
# Develop with the custom text components playground
This will boot up the playground with the default text components.
To start the development server using custom text components, overriding the provided components,
use the `dev:custom` command:
```bash
npm run dev:custom
```
### Quality
#### Linter
To run ESLint, use the following command:
```bash
npm run lint:es
```
#### Type checks
To run the TypeScript type checks, use the following command:
# Run ESLint
npm run lint
```bash
npm run lint:types
```
#### Unit Tests
# Run Vitest
npm run test
To run the Vitest unit tests, run the following command:
```bash
npm run lint:types
````
# Release new version
### Release
To release a new version of the strapi blocks renderer nuxt module, take the following steps:
1. Increment version number in the `package.json` file
2. Add changelog entry for the new version number
3. Run linters and unit tests
4. Log in to NPM using your access token
5. Run the `release` command
```bash
npm run release
```
Expand Down
Loading

0 comments on commit 481186e

Please sign in to comment.