Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/fetch-ratings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Fetch IMDB Ratings
on:
schedule:
- cron: '0 2 * * 1' # Runs every Monday at 02:00 UTC
- cron: "0 2 * * 1" # Runs every Monday at 02:00 UTC
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
Expand All @@ -22,8 +22,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run fetchRatings script
Expand Down
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules/
coverage/
dist/
.github/dependabot.yml
.github/FUNDING.yml
.github/workflows/sonarcloud.yml
.vscode/extensions.json
database/beckDB.js
index.html
CONTRIBUTING.md
README.md
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"SonarSource.sonarlint-vscode"
]
}
}
24 changes: 12 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Website",
"file": "${workspaceFolder}/index.html"
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Website",
"file": "${workspaceFolder}/index.html"
}
]
}
11 changes: 7 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "bellmano",
"projectKey": "bellmano_RandomBeckGenerator"
}
"git.autofetch": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"sonarlint.connectedMode.project": {
"connectionId": "bellmano",
"projectKey": "bellmano_RandomBeckGenerator"
}
}
16 changes: 11 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
1. Fork the repository
2. Create a feature branch: `git checkout -b feature/your-feature`
3. Make your changes and add or update tests
4. Run the tests: `npm test` or `npm run test:coverage`
5. Commit your changes: `git commit -m 'Add some feature'`
6. Push to the branch: `git push origin feature/your-feature`
7. Open a Pull Request
4. Format the code with [Prettier](https://prettier.io): `npm run format`
5. Run the tests: `npm test` or `npm run test:coverage`
6. Commit your changes: `git commit -m 'Add some feature'`
7. Push to the branch: `git push origin feature/your-feature`
8. Open a Pull Request

## Development Setup

1. Clone the repository: `git clone https://github.com/bellmano/RandomBeckGenerator.git`
2. Install dependencies: `npm install`

## Code Style

- All code must be formatted with [Prettier](https://prettier.io) before it is committed or pushed. Run `npm run format` from the repository root.
- Write meaningful commit messages

## Testing

- Add or update unit tests for new features or bug fixes
- Ensure all tests pass before submitting a PR (`npm test` or `npm run test:coverage`)

## Issues

If you find a bug or have a feature request, please [open an issue](https://github.com/bellmano/RandomBeckGenerator/issues).
If you find a bug or have a feature request, please [open an issue](https://github.com/bellmano/RandomBeckGenerator/issues).
19 changes: 18 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"format": "prettier --write .",
"format:check": "prettier --check .",
"fetch:ratings": "node src/fetchRatings.js"
},
"devDependencies": {
"jest": "^30.5.1",
"jest-environment-jsdom": "^30.5.1"
"jest-environment-jsdom": "^30.5.1",
"prettier": "^3.9.6"
},
"jest": {
"testEnvironment": "jsdom",
Expand All @@ -18,7 +21,11 @@
"src/fetchRatings.js"
],
"coverageDirectory": "coverage",
"coverageReporters": ["text", "lcov", "html"],
"coverageReporters": [
"text",
"lcov",
"html"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/tests/"
Expand Down
Loading