Skip to content
Open
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
Comment on lines 10 to 12
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pylint-dev/pylint
rev: v2.17.2
rev: v4.0.5
hooks:
- id: pylint
- repo: https://github.com/PyCQA/bandit
Expand Down
12 changes: 8 additions & 4 deletions cornucopia.owasp.org/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

https://cornucopia.owasp.org contains the card browser for each of the cards in the cornucopia suits together with the taxonomy and in depth explaination for each of the cards in the suits.

## Development server

This project uses **pnpm** for dependency management.
Please do **not use npm or yarn**, as mixing package managers can cause dependency conflicts.

Comment on lines +5 to +9
## Production build

npm run productionbuild
pnpm run productionbuild

## Release to Cloudflare

Expand All @@ -21,15 +26,14 @@ NB: The CLOUDFLARE_API_TOKEN needs to be renewed once a year.

## Development server

# npm install will raise a conflict
pnpm install # https://pnpm.io/installation
npm run dev
pnpm run dev

## Testing and Code Coverage

Run tests with coverage reporting:

npm run test
pnpm run test

View coverage thresholds and results in the terminal output. Coverage reports are generated in the `./coverage` directory with the following formats:

Expand Down
4 changes: 3 additions & 1 deletion cornucopia.owasp.org/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "cornucopia-website",
"packageManager": "pnpm@10.32.1",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"preinstall": "npx only-allow pnpm",
"prebuild": "echo I run before the build script",
"productionbuild": "vite build && node ./script/headers.js && npx svelte-sitemap --domain https://cornucopia.owasp.org --ignore 404 --ignore cards/COM* --ignore cards/DVE* --ignore cards/AC* --ignore cards/CO*",
"build": "svelte-kit sync && vite build && node ./script/headers.js && npx svelte-sitemap --domain https://cornucopia.owasp.org --ignore 404 --ignore cards/COM* --ignore cards/DVE* --ignore cards/AC* --ignore cards/CO*",
Expand Down Expand Up @@ -69,4 +71,4 @@
"cookie@<0.7.0": ">=0.7.0"
}
}
}
}
6 changes: 6 additions & 0 deletions package-lock.json

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

Loading